- fixed <rdar://problem/3664375> repro crash in -[KWQAccObject accessibilityA...
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Oct 2004 15:13:52 +0000 (15:13 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Oct 2004 15:13:52 +0000 (15:13 +0000)
        (-[KWQAccObject accessibilityActionNames]):
        check for nil m_renderer

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

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

index e572a9e23c5b67347e562f4822d186d5268f272f..2d336e23ddd8240715eb87163bf2fe581df154ef 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-10  John Sullivan  <sullivan@apple.com>
+
+        - fixed <rdar://problem/3664375> repro crash in -[KWQAccObject accessibilityAttributeNames]
+
+        (-[KWQAccObject accessibilityActionNames]):
+        check for nil m_renderer
+
 2004-10-09  Darin Adler  <darin@apple.com>
 
         Reviewed by Kevin.
index 215c2a02d81b8fa9f87b42cb7a24bcaf35584829..a62c695cbabb57184f6adc46af0bfbeae882f557 100644 (file)
@@ -512,9 +512,9 @@ static QRect boundingBoxRect(RenderObject* obj)
             nil];
     }
     
-    if (m_renderer->isCanvas())
+    if (m_renderer && m_renderer->isCanvas())
         return webAreaAttrs;
-    if (m_areaElement || (!m_renderer->isImage() && m_renderer->element() && m_renderer->element()->hasAnchor()))
+    if (m_areaElement || (m_renderer && !m_renderer->isImage() && m_renderer->element() && m_renderer->element()->hasAnchor()))
         return anchorAttrs;
     return attributes;
 }