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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1123563003: Improving direction-based selection strategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index e8a8db71b4d4d026920048fcd602f0a1834171d1..8e12d3c58986c5c0894c8210769ada5b3062afee 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1249,7 +1249,7 @@ void WebLocalFrameImpl::selectRange(const WebRange& webRange)
void WebLocalFrameImpl::moveRangeSelectionExtent(const WebPoint& point)
{
- frame()->selection().moveRangeSelectionExtent(visiblePositionForViewportPoint(point));
+ frame()->selection().moveRangeSelectionExtent(frame()->view()->viewportToContents(point));
}
void WebLocalFrameImpl::moveRangeSelection(const WebPoint& baseInViewport, const WebPoint& extentInViewport, WebFrame::TextGranularity granularity)
« Source/core/editing/GranularityStrategy.cpp ('K') | « Source/core/editing/VisibleSelection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698