Reviewed by NOBODY (OOPS!).
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2005 16:52:54 +0000 (16:52 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2005 16:52:54 +0000 (16:52 +0000)
        - fixed <rdar://problem/3890352> REGRESSION (125-170, Panther-only): pasted textarea contents disappear (exception in NSText)

        * kwq/KWQTextArea.mm: (-[KWQTextArea tile]): Don't resize the text view immediately here.
        Use performWithDelay to defer it to avoid the re-entrancy that bothers the Panther version
        of NSTextView. On Tiger, leave the code alone.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8540 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQTextArea.mm

index f0d6cc7b579bc834fe3319cba4c23b93cb113c3b..de589c9ef8b6c1b9499032b0a3a914aeed207781 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-07  Darin Adler  <darin@apple.com>
+
+        Reviewed by NOBODY (OOPS!).
+
+        - fixed <rdar://problem/3890352> REGRESSION (125-170, Panther-only): pasted textarea contents disappear (exception in NSText)
+
+        * kwq/KWQTextArea.mm: (-[KWQTextArea tile]): Don't resize the text view immediately here.
+        Use performWithDelay to defer it to avoid the re-entrancy that bothers the Panther version
+        of NSTextView. On Tiger, leave the code alone.
+
 2005-02-07  Adele Amchan  <adele@apple.com>
 
         Reviewed by Darin.
index 85dd79c04b40068270ff29ccc0a0d46820bf61d6..2b5f4878655e8f615dc5944b082e235373338e86 100644 (file)
@@ -270,7 +270,12 @@ const float LargeNumberForText = 1.0e7;
 - (void)tile
 {
     [super tile];
+#if !BUILDING_ON_PANTHER
     [self _updateTextViewWidth];
+#else
+    // Pre-Tiger, if we change the width here we re-enter in a way that makes NSText unhappy.
+    [self performSelector:@selector(_updateTextViewWidth) withObject:nil afterDelay:0];
+#endif
 }
 
 - (void)getCursorPositionAsIndex:(int *)index inParagraph:(int *)paragraph