Restore MouseEventWithHitTestResults::targetNode's old behavior
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2007 06:04:56 +0000 (06:04 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2007 06:04:56 +0000 (06:04 +0000)
Reviewed by Mark.

Fixes fast/images/imagemap-case and fast/replace/image-map.

* page/MouseEventWithHitTestResults.cpp:
(WebCore::MouseEventWithHitTestResults::targetNode): Use the inner
node, not the inner non-shared node.

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

WebCore/ChangeLog
WebCore/page/MouseEventWithHitTestResults.cpp

index 12dd00f..83754ca 100644 (file)
@@ -1,5 +1,17 @@
 2007-07-04  Adam Roben  <aroben@apple.com>
 
+        Restore MouseEventWithHitTestResults::targetNode's old behavior
+
+        Reviewed by Mark.
+
+        Fixes fast/images/imagemap-case and fast/replace/image-map.
+
+        * page/MouseEventWithHitTestResults.cpp:
+        (WebCore::MouseEventWithHitTestResults::targetNode): Use the inner
+        node, not the inner non-shared node.
+
+2007-07-04  Adam Roben  <aroben@apple.com>
+
         Mac, Qt, and Gdk build fixes.
 
         * page/EventHandler.h:
index d359ebc..525c1f9 100644 (file)
@@ -45,7 +45,7 @@ MouseEventWithHitTestResults::MouseEventWithHitTestResults(const PlatformMouseEv
         
 Node* MouseEventWithHitTestResults::targetNode() const
 {
-    Node* node = m_hitTestResult.innerNonSharedNode();
+    Node* node = m_hitTestResult.innerNode();
     if (node && node->inDocument())
         return node;