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

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

Issue 2708703003: Expand FrameSeleciton::isRange() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T23:48:22 rebase 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/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index b698e348d9b5176d89e108eb84b7ddabacad4367..6d5853967979d907d2af3e104cb201bd7ab28150 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -725,7 +725,7 @@ std::unique_ptr<DragImage> LocalFrame::nodeImage(Node& node) {
}
std::unique_ptr<DragImage> LocalFrame::dragImageForSelection(float opacity) {
- if (!selection().isRange())
+ if (!selection().computeVisibleSelectionInDOMTreeDeprecated().isRange())
return nullptr;
m_view->updateAllLifecyclePhasesExceptPaint();

Powered by Google App Engine
This is Rietveld 408576698