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

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

Issue 2702403004: Expand FrameSeleciton::start() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T12:32:36 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/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index 7ea8eddf77aaa70f6038d00a88f883508d7364c3..60b4e1578d903f4ec77a7382666cde55f86ca9ab 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -816,7 +816,9 @@ void InputMethodController::extendSelectionAndDelete(int before, int after) {
if (before == 0)
break;
++before;
- } while (frame().selection().start() ==
+ } while (frame().selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .start() ==
frame()
.selection()
.computeVisibleSelectionInDOMTreeDeprecated()

Powered by Google App Engine
This is Rietveld 408576698