2006-10-31 Mitz Pettel <mitz@webkit.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 07:53:36 +0000 (07:53 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 07:53:36 +0000 (07:53 +0000)
        Reviewed by Maciej.

        - fix image dragging

        This is covered by editing/selection/drag-to-contenteditable-iframe.html

        * rendering/HitTestResult.cpp:
        (WebCore::HitTestResult::altDisplayString): Changed imageTag to imgTag, for
        HTML IMG elements.
        (WebCore::HitTestResult::absoluteImageURL): Ditto.

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

WebCore/ChangeLog
WebCore/rendering/HitTestResult.cpp

index 540d8405f5ded1f0a8ea8c09f6f758b284f60114..12c398464582118e23608f172c6893f89ea1b9fd 100644 (file)
@@ -1,3 +1,16 @@
+2006-10-31  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Maciej.
+
+        - fix image dragging
+
+        This is covered by editing/selection/drag-to-contenteditable-iframe.html
+
+        * rendering/HitTestResult.cpp:
+        (WebCore::HitTestResult::altDisplayString): Changed imageTag to imgTag, for
+        HTML IMG elements.
+        (WebCore::HitTestResult::absoluteImageURL): Ditto.
+
 2006-10-31  Beth Dakin  <bdakin@apple.com>
 
         Reviewed by Maciej.
 2006-10-31  Beth Dakin  <bdakin@apple.com>
 
         Reviewed by Maciej.
index 8cc94ca5086347f4ad8a75d005ff37337a2895f3..2168aa753ae3eb360e426c0cfdeacc6b53a8976a 100644 (file)
@@ -167,7 +167,7 @@ String HitTestResult::altDisplayString() const
     if (!m_innerNonSharedNode)
         return String();
     
     if (!m_innerNonSharedNode)
         return String();
     
-    if (m_innerNonSharedNode->hasTagName(imageTag)) {
+    if (m_innerNonSharedNode->hasTagName(imgTag)) {
         HTMLImageElement* image = static_cast<HTMLImageElement*>(m_innerNonSharedNode.get());
         return displayString(image->alt(), m_innerNonSharedNode.get());
     }
         HTMLImageElement* image = static_cast<HTMLImageElement*>(m_innerNonSharedNode.get());
         return displayString(image->alt(), m_innerNonSharedNode.get());
     }
@@ -204,7 +204,7 @@ KURL HitTestResult::absoluteImageURL() const
         return KURL();
 
     String name;
         return KURL();
 
     String name;
-    if (m_innerNonSharedNode->hasTagName(imageTag) || m_innerNonSharedNode->hasTagName(inputTag))
+    if (m_innerNonSharedNode->hasTagName(imgTag) || m_innerNonSharedNode->hasTagName(inputTag))
         name = "src";
     else if (m_innerNonSharedNode->hasTagName(objectTag))
         name = "data";
         name = "src";
     else if (m_innerNonSharedNode->hasTagName(objectTag))
         name = "data";