From 67ba2e49c3f5020cfbc12fed247f8e8a73a8e219 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 10 May 2016 22:27:21 +0200 Subject: [PATCH] workaround for FF crash in very large documents --- AppKit/CPTextView/CPTextView.j | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 77403ef68..c581e5fda 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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