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

Unified Diff: Source/core/dom/PositionIterator.cpp

Issue 189773005: Revert of Have Position deal with more references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/dom/Position.cpp ('k') | Source/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PositionIterator.cpp
diff --git a/Source/core/dom/PositionIterator.cpp b/Source/core/dom/PositionIterator.cpp
index 7d24e2fd93fe433d15c6fc7281e4bac5245e6966..5913fc3a3866c80c9cec8202d4e97547d1b3fa0f 100644
--- a/Source/core/dom/PositionIterator.cpp
+++ b/Source/core/dom/PositionIterator.cpp
@@ -40,7 +40,7 @@
ASSERT(m_nodeAfterPositionInAnchor->parentNode() == m_anchorNode);
// FIXME: This check is inadaquete because any ancestor could be ignored by editing
if (editingIgnoresContent(m_nodeAfterPositionInAnchor->parentNode()))
- return positionBeforeNode(*m_anchorNode);
+ return positionBeforeNode(m_anchorNode);
return positionInParentBeforeNode(*m_nodeAfterPositionInAnchor);
}
if (m_anchorNode->hasChildren())
@@ -61,7 +61,7 @@
}
if (!m_anchorNode->hasChildren() && m_offsetInAnchor < lastOffsetForEditing(m_anchorNode))
- m_offsetInAnchor = Position::uncheckedNextOffset(*m_anchorNode, m_offsetInAnchor);
+ m_offsetInAnchor = Position::uncheckedNextOffset(m_anchorNode, m_offsetInAnchor);
else {
m_nodeAfterPositionInAnchor = m_anchorNode;
m_anchorNode = m_nodeAfterPositionInAnchor->parentNode();
@@ -93,7 +93,7 @@
m_offsetInAnchor = m_anchorNode->hasChildren()? 0: lastOffsetForEditing(m_anchorNode);
} else {
if (m_offsetInAnchor)
- m_offsetInAnchor = Position::uncheckedPreviousOffset(*m_anchorNode, m_offsetInAnchor);
+ m_offsetInAnchor = Position::uncheckedPreviousOffset(m_anchorNode, m_offsetInAnchor);
else {
m_nodeAfterPositionInAnchor = m_anchorNode;
m_anchorNode = m_anchorNode->parentNode();
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698