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

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

Issue 2419383007: Remove layout updates from Editor::{applied,unapplied,reapplied}Editing (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2779b19c41197a3ad046474c6eeeb2174742bb07..077c85423e11da6db14b8b798d788a11dc6c1f71 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -796,7 +796,6 @@ static void dispatchEditableContentChangedEvents(Element* startRoot,
void Editor::appliedEditing(CompositeEditCommand* cmd) {
DCHECK(!cmd->isCommandGroupWrapper());
EventQueueScope scope;
- frame().document()->updateStyleAndLayout();
// Request spell checking before any further DOM change.
spellChecker().markMisspellingsAfterApplyingCommand(*cmd);
@@ -853,7 +852,6 @@ static VisibleSelection correctedVisibleSelection(
void Editor::unappliedEditing(EditCommandComposition* cmd) {
EventQueueScope scope;
- frame().document()->updateStyleAndLayout();
dispatchEditableContentChangedEvents(cmd->startingRootEditableElement(),
cmd->endingRootEditableElement());
@@ -883,7 +881,6 @@ void Editor::unappliedEditing(EditCommandComposition* cmd) {
void Editor::reappliedEditing(EditCommandComposition* cmd) {
EventQueueScope scope;
- frame().document()->updateStyleAndLayout();
dispatchEditableContentChangedEvents(cmd->startingRootEditableElement(),
cmd->endingRootEditableElement());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698