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

Unified Diff: Source/core/dom/Position.h

Issue 20681004: Make first-letter style to work with editing Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-09-20T18:27:32 Created 7 years, 3 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/dom/Position.h
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
index d2b1d1e552fa20b0ee464fa32e2dde7ba10a95a4..2c04aabd65bd6beead69854fafdcec06a1561891 100644
--- a/Source/core/dom/Position.h
+++ b/Source/core/dom/Position.h
@@ -122,6 +122,13 @@ public:
Node* anchorNode() const { return m_anchorNode.get(); }
+ // FIXME: We should replace anchorNode()->renderer() and deprecatedNode()->renderer()
+ // with rendererOfAnchorNode().
+ RenderObject* rendererOfAnchorNode() const;
+
+ // New code should not use this function.
+ int deprecatedOffsetInRendererOfAnchorNode() const;
+
// FIXME: Callers should be moved off of node(), node() is not always the container for this position.
// For nodes which editingIgnoresContent(node()) returns true, positions like [ignoredNode, 0]
// will be treated as before ignoredNode (thus node() is really after the position, not containing it).

Powered by Google App Engine
This is Rietveld 408576698