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

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

Issue 2698793003: Get rid of redundant layout tree update related to selection (Closed)
Patch Set: 2017-02-17T16:13:56 selectionTypeWithLegacyGranularity() 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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 4bf340fd5f88a108d11159655cef891e15700d7c..809f18b1717c529c338cc53792ca0da043926c65 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -1628,7 +1628,10 @@ void Editor::respondToChangedSelection(
FrameSelection::SetSelectionOptions options) {
spellChecker().respondToChangedSelection(oldSelectionStart, options);
client().respondToChangedSelection(&frame(),
- frame().selection().getSelectionType());
+ frame()
+ .selection()
+ .selectionInDOMTree()
+ .selectionTypeWithLegacyGranularity());
setStartNewKillRingSequence(true);
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/DOMSelection.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698