Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1094133004: Image maps should work for images with alt content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutTextControl.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index a934dafcdcb0783c643cfb2c83126546c1c6abc9..81687a9e67d8cd4d7d06913ea0c34750e2feab52 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -890,12 +890,9 @@ void LayoutView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p
Node* node = document().documentElement();
if (node) {
- result.setInnerNode(node);
-
LayoutPoint adjustedPoint = point;
offsetForContents(adjustedPoint);
-
- result.setLocalPoint(adjustedPoint);
+ result.setNodeAndPosition(node, adjustedPoint);
}
}
« no previous file with comments | « Source/core/layout/LayoutTextControl.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698