mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-01 10:52:03 +00:00
Only use CPView -display* methods while in DOM.
This commit is contained in:
1 parent
e385321f95
commit
071ab7d555
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user