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

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

Issue 1310323004: Introduce positionForPoint() in LocalFrame class as replacement of visiblePositionForPoint() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T15:15:43 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/VisibleSelection.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleSelection.cpp
diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp
index c0181c12bd7402842a092f053a0dc055849a9406..710f24a737413b32a0715978a2a93d4106e0fbff 100644
--- a/Source/core/editing/VisibleSelection.cpp
+++ b/Source/core/editing/VisibleSelection.cpp
@@ -70,6 +70,11 @@ VisibleSelection::VisibleSelection(const PositionInComposedTree& base, const Pos
{
}
+VisibleSelection::VisibleSelection(const PositionWithAffinity& pos, bool isDirectional)
+ : VisibleSelection(pos.position(), pos.affinity(), isDirectional)
+{
+}
+
VisibleSelection::VisibleSelection(const VisiblePosition& pos, bool isDirectional)
: VisibleSelection(pos, pos, isDirectional)
{
« no previous file with comments | « Source/core/editing/VisibleSelection.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698