Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Mar 2005 21:46:39 +0000 (21:46 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Mar 2005 21:46:39 +0000 (21:46 +0000)
        <rdar://problem/4069161> REGRESSION (8A416-8A419): Safari crash bringing up context menu for non-HTML content in a frame

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject rendererForView:]):
        Nil-check node variable instead of rechecking document variable.

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

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

index 8d9f2bd60769a7d28cedb27a022f5c407b841539..1529891522163c70f0e95c77f49d2f05199c77d7 100644 (file)
@@ -1,3 +1,13 @@
+2005-03-28  David Harrison  <harrison@apple.com>
+
+        Reviewed by Darin.
+        
+        <rdar://problem/4069161> REGRESSION (8A416-8A419): Safari crash bringing up context menu for non-HTML content in a frame
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject rendererForView:]):
+        Nil-check node variable instead of rechecking document variable.
+
 === WebCore-413 ===
 
 2005-03-27  Darin Adler  <darin@apple.com>
index bbf935a5b2a8914b02c2e95e6c27645dfb1c8772..948ee53604294e5c3cf6973ca1d6a165d300858d 100644 (file)
@@ -1916,7 +1916,7 @@ static void AXAttributedStringAppendReplaced (NSMutableAttributedString *attrStr
         return NULL;
         
     NodeImpl* node = document->ownerElement();
-    if (!document)
+    if (!node)
         return NULL;
 
     return node->renderer();