Index: Source/core/css/CSSParser-in.cpp |
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp |
index ff6a7589e8177690d4c7b45f030fd15847f1522d..500e47197112ea7a11162a52b5e25b710b76b917 100644 |
--- a/Source/core/css/CSSParser-in.cpp |
+++ b/Source/core/css/CSSParser-in.cpp |
@@ -1285,10 +1285,10 @@ void CSSParser::parseSelector(const String& string, CSSSelectorList& selectorLis |
PassRefPtr<ImmutableStylePropertySet> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element) |
{ |
- Document* document = element->document(); |
- CSSParserContext context = document->elementSheet()->contents()->parserContext(); |
- context.mode = strictToCSSParserMode(element->isHTMLElement() && !document->inQuirksMode()); |
- return CSSParser(context, UseCounter::getFrom(document)).parseDeclaration(string, document->elementSheet()->contents()); |
+ Document& document = element->document(); |
+ CSSParserContext context = document.elementSheet()->contents()->parserContext(); |
+ context.mode = strictToCSSParserMode(element->isHTMLElement() && !document.inQuirksMode()); |
+ return CSSParser(context, UseCounter::getFrom(&document)).parseDeclaration(string, document.elementSheet()->contents()); |
} |
PassRefPtr<ImmutableStylePropertySet> CSSParser::parseDeclaration(const String& string, StyleSheetContents* contextStyleSheet) |