Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 03d146e5fde0a57ca966bc3b334e1ad441ab4b87..849252c1e6e9c1ea1a2812d14d89b53147d0aca8 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -252,9 +252,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyCursor(StyleResolverState& stat |
void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& state, CSSValue* value) |
{ |
state.style()->setDirection(*toCSSPrimitiveValue(value)); |
- Element* element = state.element(); |
- if (element && element == element->document().documentElement()) |
- element->document().setDirectionSetOnDocumentElement(true); |
} |
void StyleBuilderFunctions::applyValueCSSPropertyGlyphOrientationVertical(StyleResolverState& state, CSSValue* value) |
@@ -877,9 +874,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(StyleResolver |
{ |
if (value->isPrimitiveValue()) |
state.setWritingMode(*toCSSPrimitiveValue(value)); |
- // FIXME: It is not ok to modify document state while applying style. |
- if (state.element() && state.element() == state.document().documentElement()) |
- state.document().setWritingModeSetOnDocumentElement(true); |
} |
void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(StyleResolverState& state, CSSValue* value) |