Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index b61bd5d47a10eb0c5358b32a1d92e7e922940116..adabac9cceee6d357ae7b8af9a086136ff89cca8 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -1653,7 +1653,7 @@ void Document::recalcStyle(StyleChange change) |
// style selector may set this again during recalc |
m_hasNodesWithPlaceholderStyle = false; |
- RefPtr<RenderStyle> documentStyle = StyleResolver::styleForDocument(this, m_styleResolver ? m_styleResolver->fontSelector() : 0); |
+ RefPtr<RenderStyle> documentStyle = StyleResolver::styleForDocument(*this, m_styleResolver ? m_styleResolver->fontSelector() : 0); |
StyleChange ch = Node::diff(documentStyle.get(), renderer()->style(), this); |
if (ch != NoChange) |
renderer()->setStyle(documentStyle.release()); |
@@ -1865,7 +1865,7 @@ void Document::createStyleResolver() |
bool matchAuthorAndUserStyles = true; |
if (Settings* docSettings = settings()) |
matchAuthorAndUserStyles = docSettings->authorAndUserStylesEnabled(); |
- m_styleResolver = adoptPtr(new StyleResolver(this, matchAuthorAndUserStyles)); |
+ m_styleResolver = adoptPtr(new StyleResolver(*this, matchAuthorAndUserStyles)); |
m_styleSheetCollections->combineCSSFeatureFlags(m_styleResolver->ruleFeatureSet()); |
} |