workaround for FF crash in very large documents

This commit is contained in:
daboe01 committed 2016-05-10 22:27:21 +02:00
1 parent 8dec42f295
commit 67ba2e49c3
1 file changed
+2 -3
+2 -3
View File
@@ -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