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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp

Issue 2705373002: Remove unnecessary layout updates from InsertInto/DeleteFromTextNodeCommand (Closed)
Patch Set: Add layout updates for clients requiring that explicitly 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/commands/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index d7391d43ef068e430a8f55a560419ab38eacdb42..82cc8352677c31380ec47bbf3dcbe4bfb131439c 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -690,6 +690,10 @@ void CompositeEditCommand::setNodeAttribute(Element* element,
}
bool CompositeEditCommand::canRebalance(const Position& position) const {
+ // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets()
+ // needs to be audited. See http://crbug.com/590369 for more details.
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
+
Node* node = position.computeContainerNode();
if (!position.isOffsetInAnchor() || !node || !node->isTextNode() ||
!hasRichlyEditableStyle(*node))

Powered by Google App Engine
This is Rietveld 408576698