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

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

Issue 2413633002: Prune createVisiblePositionDeprecated from EditingUtilities (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
Index: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
index c1f5955226c34a0d4875813dd1ea5273751c634b..a834b43569a48db44f7d59ea1428e0a7afd4ad2d 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -832,6 +832,7 @@ void ApplyStyleCommand::applyInlineStyle(EditingStyle* style,
if (editingState->isAborted())
return;
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
yosin_UTC9 2016/10/12 07:32:00 How about moving updateStyleAndLayoutXXX() to just
Xiaocheng 2016/10/12 07:45:56 The call at L803 seems pretty normal to me. The ne
styleToApply = styleWithoutEmbedding;
}
}

Powered by Google App Engine
This is Rietveld 408576698