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

Unified Diff: Source/core/layout/HitTestResult.h

Issue 1094133004: Image maps should work for images with alt content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/layout/HitTestResult.h
diff --git a/Source/core/layout/HitTestResult.h b/Source/core/layout/HitTestResult.h
index 5a45b86ac7c6fc16c11ae13a89f39690c7dd1df9..93305e689fe3aace018090eef9adddde26c37340 100644
--- a/Source/core/layout/HitTestResult.h
+++ b/Source/core/layout/HitTestResult.h
@@ -91,7 +91,7 @@ public:
// The hit-tested point in the coordinates of the inner node.
const LayoutPoint& localPoint() const { return m_localPoint; }
- void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; }
+ void setNodeAndPosition(Node* node, const LayoutPoint& p) { m_localPoint = p; setInnerNode(node); }
pdr. 2015/04/24 21:48:23 I like this cleanup.
PositionWithAffinity position() const;
LayoutObject* layoutObject() const;

Powered by Google App Engine
This is Rietveld 408576698