Index: Source/core/css/resolver/StyleResolverState.cpp |
diff --git a/Source/core/css/resolver/StyleResolverState.cpp b/Source/core/css/resolver/StyleResolverState.cpp |
index 059d57dacc3372df21f43b2b528fd23f08390479..caefee7f02b5c2591f28120c6f49ba400abefb28 100644 |
--- a/Source/core/css/resolver/StyleResolverState.cpp |
+++ b/Source/core/css/resolver/StyleResolverState.cpp |
@@ -38,7 +38,7 @@ StyleResolverState::StyleResolverState(Document* document, Element* element, Ren |
{ |
if (element) { |
m_elementContext = ElementResolveContext(element); |
- m_document = m_elementContext.document(); |
+ m_document = &m_elementContext.document(); |
} else { |
m_elementContext = ElementResolveContext(); |
m_document = document; |