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

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: 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 | « LayoutTests/fast/replaced/image-map-alt-content-expected.txt ('k') | Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/HitTestResult.h
diff --git a/Source/core/layout/HitTestResult.h b/Source/core/layout/HitTestResult.h
index 5a45b86ac7c6fc16c11ae13a89f39690c7dd1df9..e0e9a18d4303ba7fbf542beac2de24fa0f518431 100644
--- a/Source/core/layout/HitTestResult.h
+++ b/Source/core/layout/HitTestResult.h
@@ -39,6 +39,7 @@ namespace blink {
class Element;
class LocalFrame;
+class HTMLAreaElement;
class HTMLMediaElement;
class Image;
class KURL;
@@ -91,7 +92,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); }
PositionWithAffinity position() const;
LayoutObject* layoutObject() const;
@@ -102,6 +103,7 @@ public:
const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; }
void setInnerNode(Node*);
+ HTMLAreaElement* imageAreaForImage() const;
void setURLElement(Element*);
void setScrollbar(Scrollbar*);
void setIsOverWidget(bool b) { m_isOverWidget = b; }
« no previous file with comments | « LayoutTests/fast/replaced/image-map-alt-content-expected.txt ('k') | Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698