Index: Source/core/css/resolver/MatchedPropertiesCache.cpp |
diff --git a/Source/core/css/resolver/MatchedPropertiesCache.cpp b/Source/core/css/resolver/MatchedPropertiesCache.cpp |
index 1b0946d534fff02975249dcdfa95c1f763ca5afe..eb984abcbf8c40f2c029464e40b4ad045be823e1 100644 |
--- a/Source/core/css/resolver/MatchedPropertiesCache.cpp |
+++ b/Source/core/css/resolver/MatchedPropertiesCache.cpp |
@@ -115,7 +115,7 @@ void MatchedPropertiesCache::sweep(Timer<MatchedPropertiesCache>*) |
bool MatchedPropertiesCache::isCacheable(const Element* element, const RenderStyle* style, const RenderStyle* parentStyle) |
{ |
// FIXME: CSSPropertyWebkitWritingMode modifies state when applying to document element. We can't skip the applying by caching. |
- if (element == element->document()->documentElement() && element->document()->writingModeSetOnDocumentElement()) |
+ if (element == element->document().documentElement() && element->document().writingModeSetOnDocumentElement()) |
return false; |
if (style->unique() || (style->styleType() != NOPSEUDO && parentStyle->unique())) |
return false; |