mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 03:02:19 +00:00
workaround for FF crash in very large documents
This commit is contained in:
1 parent
8dec42f295
commit
67ba2e49c3
1 file changed
+2
-3
@@ -623,14 +623,13 @@ 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 lockFocus]; // this line crashes FF for obscure reasons when displaying large documents (2k+ lines)
|
||||
[self drawRect:aRect];
|
||||
[self unlockFocus];
|
||||
// [self unlockFocus];
|
||||
}
|
||||
|
||||
- (void)drawRect:(CGRect)aRect
|
||||
|
||||
Reference in new issue
Block a user