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

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

Issue 96483003: CANCEL: Make Document::caretRangeFromPoint() to work with :before style Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-12-03T12:38:54 Created 7 years 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/rendering/HitTestResult.h
diff --git a/Source/core/rendering/HitTestResult.h b/Source/core/rendering/HitTestResult.h
index a6cadadfb56318d625afc60dcfdb10d7cd93dff6..12936e529e3263882de43a99394600e140770bbf 100644
--- a/Source/core/rendering/HitTestResult.h
+++ b/Source/core/rendering/HitTestResult.h
@@ -24,6 +24,8 @@
#include "core/rendering/HitTestLocation.h"
#include "core/rendering/HitTestRequest.h"
+// TODO: We should |enum CursorDirective| to its own header file from RenderObject.h.
+#include "core/rendering/RenderObject.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/LayoutRect.h"
@@ -41,6 +43,7 @@ class HTMLMediaElement;
class Image;
class KURL;
class Node;
+class PositionWithAffinity;
class RenderObject;
class RenderRegion;
class Scrollbar;
@@ -78,10 +81,11 @@ public:
IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(pointInInnerNodeFrame()); }
Frame* innerNodeFrame() const;
- // The hit-tested point in the coordinates of the inner node.
+ // The hit-tested point in the coordinates of |innerPossiblyPseudoNode()|
+ // rather htan |innerNode()|.
const LayoutPoint& localPoint() const { return m_localPoint; }
void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; }
-
+ PositionWithAffinity position() const;
RenderObject* renderer() const;
void setToNodesInDocumentTreeScope();

Powered by Google App Engine
This is Rietveld 408576698