| Index: Source/core/css/resolver/StyleBuilderCustom.cpp
|
| diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| index 61f9469503e9409c0ba3b885b951b06d94bc637f..ad0b7f1fcc2cd8f77f2c59d34f0369cbba3c48d0 100644
|
| --- a/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| +++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| @@ -897,8 +897,12 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitAppRegion(StyleResolverSt
|
|
|
| void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(StyleResolverState& state, CSSValue* value)
|
| {
|
| - if (value->isPrimitiveValue())
|
| - state.setWritingMode(*toCSSPrimitiveValue(value));
|
| + if (value->isPrimitiveValue()) {
|
| + WritingMode writingMode = *toCSSPrimitiveValue(value);
|
| + state.setWritingMode(writingMode);
|
| + if (writingMode != TopToBottomWritingMode)
|
| + state.document().setContainsAnyRareWritingMode(true);
|
| + }
|
|
|
| // FIXME: It is not ok to modify document state while applying style.
|
| if (state.element() && state.element() == state.document().documentElement())
|
|
|