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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2706013005: Expand FrameSeleciton::getSelectionType() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T21:26:37 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/editing/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index f9b47463ac92d5348f9d0dfcdd1621cb0540da0d..2d52869702ead34abf8afdeaf26383377f402dfd 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -975,7 +975,7 @@ void FrameSelection::revealSelection(const ScrollAlignment& alignment,
LayoutRect rect;
- switch (getSelectionType()) {
+ switch (computeVisibleSelectionInDOMTree().getSelectionType()) {
case NoSelection:
return;
case CaretSelection:

Powered by Google App Engine
This is Rietveld 408576698