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

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

Issue 2703313002: Expand FrameSeleciton::end() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T12:26:29 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 01eaa00c9e91afeec04a76f01c97f5ee661a4128..8e297906799fc69c2f377046ee25c67f27ca41a8 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -793,7 +793,11 @@ void InputMethodController::extendSelectionAndDelete(int before, int after) {
if (before == 0)
break;
++before;
- } while (frame().selection().start() == frame().selection().end() &&
+ } while (frame().selection().start() ==
+ frame()
+ .selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .end() &&
before <= static_cast<int>(selectionOffsets.start()));
// TODO(chongz): Find a way to distinguish Forward and Backward.
Node* target = document().focusedElement();

Powered by Google App Engine
This is Rietveld 408576698