| 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);
|
|
|