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

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

Issue 1306053017: Introduce composed tree version of lastEditableVisiblePositionBeforePositionInRoot() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-08T16:55:04 Created 5 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/editing/EditingUtilities.cpp
diff --git a/Source/core/editing/EditingUtilities.cpp b/Source/core/editing/EditingUtilities.cpp
index db235eed5f42dcaa57c41212dca318f9bfaa4fbf..498470b97abf49054f9d0d8f639f87bb554d07f7 100644
--- a/Source/core/editing/EditingUtilities.cpp
+++ b/Source/core/editing/EditingUtilities.cpp
@@ -497,6 +497,11 @@ VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&
return createVisiblePosition(lastEditablePositionBeforePositionInRoot(position, highestRoot));
}
+VisiblePositionInComposedTree lastEditableVisiblePositionBeforePositionInRoot(const PositionInComposedTree& position, ContainerNode* highestRoot)
+{
+ return createVisiblePosition(lastEditablePositionBeforePositionInRoot(position, highestRoot));
+}
+
template <typename Strategy>
PositionAlgorithm<Strategy> lastEditablePositionBeforePositionInRootAlgorithm(const PositionAlgorithm<Strategy>& position, Node* highestRoot)
{

Powered by Google App Engine
This is Rietveld 408576698