Only use CPView -display* methods while in DOM.

This commit is contained in:
Nicholas Small committed 2010-07-02 14:58:23 -04:00
1 parent e385321f95
commit 071ab7d555
1 file changed
+2
+2
View File
@@ -1791,12 +1791,14 @@ setBoundsOrigin:
- (void)displayRectIgnoringOpacity:(CGRect)aRect inContext:(CPGraphicsContext)aGraphicsContext
{
#if PLATFORM(DOM)
[self lockFocus];
CGContextClearRect([[CPGraphicsContext currentContext] graphicsPort], aRect);
[self drawRect:aRect];
[self unlockFocus];
#endif
}
- (void)viewWillDraw