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

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

Issue 2370253002: Mark calls of visible{Start,End} with dirty layout deprecated (Closed)
Patch Set: Created 4 years, 3 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/EditorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
index 8fe0041f093d33471cfabf899454db4576cb7a4f..888685aed04bd515b5b8670b4ced78122ea86994 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -396,6 +396,8 @@ static String valueStyle(LocalFrame& frame, CSSPropertyID propertyID)
static TriState stateTextWritingDirection(LocalFrame& frame, WritingDirection direction)
{
+ frame.document()->updateStyleAndLayoutIgnorePendingStylesheets();
+
bool hasNestedOrMultipleEmbeddings;
WritingDirection selectionDirection = EditingStyle::textDirectionForSelection(frame.selection().selection(),
frame.selection().typingStyle(), hasNestedOrMultipleEmbeddings);

Powered by Google App Engine
This is Rietveld 408576698