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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2680943004: Make FrameSelection to hold non-canonicalized positions (Closed)
Patch Set: 2017-02-10T16:43:07 Rebase and update test expectation for cached Document Range Created 3 years, 10 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: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 94b9738bcba2e46c73347ca92297c95115a7e7f8..0620905bfdb507a035f5c8d68ccb6ebecc455bd6 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1973,7 +1973,8 @@ bool FrameView::computeCompositedSelection(LocalFrame& frame,
if (!frame.view() || frame.view()->shouldThrottleRendering())
return false;
- const VisibleSelection& visibleSelection = frame.selection().selection();
+ const VisibleSelection& visibleSelection =
+ frame.selection().computeVisibleSelectionInDOMTree();
if (visibleSelection.isNone() || !frame.selection().isHandleVisible())
return false;

Powered by Google App Engine
This is Rietveld 408576698