<rdar://problem/4882527> VO should speak URL of image links that lack tags
authorpyeh <pyeh@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jun 2007 20:56:12 +0000 (20:56 +0000)
committerpyeh <pyeh@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jun 2007 20:56:12 +0000 (20:56 +0000)
        Add additional change from review

        * bridge/mac/WebCoreAXObject.mm:
        (-[WebCoreAXObject accessibilityAttributeValue:]):
        Check if the element has imgTag before asking for its url

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

WebCore/ChangeLog
WebCore/bridge/mac/WebCoreAXObject.mm

index c33958d..621a18b 100644 (file)
@@ -1,5 +1,16 @@
 2007-06-20  Patti Hoa  <patti@apple.com>
 
+        Reviewed by Geoffrey Garen.
+
+        <rdar://problem/4882527> VO should speak URL of image links that lack tags
+        Add additional change from review
+        
+        * bridge/mac/WebCoreAXObject.mm:
+        (-[WebCoreAXObject accessibilityAttributeValue:]):
+        Check if the element has imgTag before asking for its url
+        
+2007-06-20  Patti Hoa  <patti@apple.com>
+
         Reviewed by Tristan O'Tierney.
 
         <rdar://problem/4882527> VO should speak URL of image links that lack tags
index 170810f..3652fea 100644 (file)
@@ -1093,7 +1093,7 @@ static IntRect boundingBoxRect(RenderObject* obj)
                 }
             }
         }
-        else if (m_renderer->isImage() && m_renderer->element() && m_renderer->element()->isHTMLElement()) {
+        else if (m_renderer->isImage() && m_renderer->element() && m_renderer->element()->hasTagName(imgTag)) {
             DeprecatedString src = static_cast<HTMLImageElement*>(m_renderer->element())->src().deprecatedString();
             if (!src.isNull()) 
                 return KURL(src).getNSURL();