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

Unified Diff: Source/core/editing/RenderedPosition.cpp

Issue 1300823002: Introduce PositionAlgorithm<Strategy>::editingPositionOf() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-18T17:38:11 Created 5 years, 4 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/editing/PositionIterator.cpp ('k') | Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/RenderedPosition.cpp
diff --git a/Source/core/editing/RenderedPosition.cpp b/Source/core/editing/RenderedPosition.cpp
index 44af6a110b6864f574fde164cb6f6ea2192b0c43..692951e7b218f94117df2565400b29582c7e07be 100644
--- a/Source/core/editing/RenderedPosition.cpp
+++ b/Source/core/editing/RenderedPosition.cpp
@@ -218,9 +218,9 @@ Position RenderedPosition::positionAtLeftBoundaryOfBiDiRun() const
ASSERT(atLeftBoundaryOfBidiRun());
if (atLeftmostOffsetInBox())
- return createLegacyEditingPosition(m_layoutObject->node(), m_offset);
+ return Position::editingPositionOf(m_layoutObject->node(), m_offset);
- return createLegacyEditingPosition(nextLeafChild()->layoutObject().node(), nextLeafChild()->caretLeftmostOffset());
+ return Position::editingPositionOf(nextLeafChild()->layoutObject().node(), nextLeafChild()->caretLeftmostOffset());
}
Position RenderedPosition::positionAtRightBoundaryOfBiDiRun() const
@@ -228,9 +228,9 @@ Position RenderedPosition::positionAtRightBoundaryOfBiDiRun() const
ASSERT(atRightBoundaryOfBidiRun());
if (atRightmostOffsetInBox())
- return createLegacyEditingPosition(m_layoutObject->node(), m_offset);
+ return Position::editingPositionOf(m_layoutObject->node(), m_offset);
- return createLegacyEditingPosition(prevLeafChild()->layoutObject().node(), prevLeafChild()->caretRightmostOffset());
+ return Position::editingPositionOf(prevLeafChild()->layoutObject().node(), prevLeafChild()->caretRightmostOffset());
}
IntRect RenderedPosition::absoluteRect(LayoutUnit* extraWidthToEndOfLine) const
« no previous file with comments | « Source/core/editing/PositionIterator.cpp ('k') | Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698