Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index cbfebe7732840b7a0a9d26fbbef22a278e246483..0ef9df287ad81f90f9b2c5ba1318bb18be8cf662 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -999,7 +999,7 @@ void Editor::setBaseWritingDirection(WritingDirection direction) |
return; |
} |
- RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
+ RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksMode); |
style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDirection ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit", false); |
applyParagraphStyleToSelection(style.get(), EditActionSetWritingDirection); |
} |