mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-19 06:51:18 +00:00
speedup for chrome
This commit is contained in:
1 parent
65ffce8db2
commit
a0cbc5822e
1 file changed
+10
@@ -619,6 +619,16 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
[_caret setVisibility:flag stop:NO];
|
||||
}
|
||||
|
||||
// remove unnecessary call to CGContextClearRect from CPView implementation
|
||||
- (void)displayRectIgnoringOpacity:(CGRect)aRect inContext:(CPGraphicsContext)aGraphicsContext
|
||||
{ if ([self isHidden])
|
||||
return;
|
||||
|
||||
[self lockFocus];
|
||||
|
||||
[self drawRect:aRect];
|
||||
[self unlockFocus];
|
||||
}
|
||||
|
||||
- (void)drawRect:(CGRect)aRect
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user