Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 5eaec6e755b633616f55bed8a545a1324abb2ae7..400e6b3c8dbd5106617e2099aa2cd4bed5260bd0 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -172,8 +172,8 @@ void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s |
{ |
state.style()->setDirection(*toCSSPrimitiveValue(value)); |
Element* element = state.element(); |
- if (element && element == element->document()->documentElement()) |
- element->document()->setDirectionSetOnDocumentElement(true); |
+ if (element && element == element->document().documentElement()) |
+ element->document().setDirectionSetOnDocumentElement(true); |
} |
static inline bool isValidDisplayValue(StyleResolverState& state, EDisplay displayPropertyValue) |