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

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

Issue 1245843003: [CodeHealth] Use Position::anchorNode instead of deprecatedNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Position.h
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
index 04425a34c448101c25e93d2ed56003c4caa2e71a..9937a86efbf4f61ef91f899ac165b73926eb992e 100644
--- a/Source/core/dom/Position.h
+++ b/Source/core/dom/Position.h
@@ -167,11 +167,6 @@ public:
Node* anchorNode() const { return m_anchorNode.get(); }
- // 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).
- Node* deprecatedNode() const { return m_anchorNode.get(); }
-
Document* document() const { return m_anchorNode ? &m_anchorNode->document() : 0; }
bool inDocument() const { return m_anchorNode && m_anchorNode->inDocument(); }
Element* rootEditableElement() const
« no previous file with comments | « no previous file | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698