Index: Source/core/css/resolver/FontBuilder.cpp |
diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp |
index 8d3f5aa5cc80c035aab006b20e1e3ec400d83b01..684f36d47c9f2bfbacf137cf6284f1cd6a9ab45d 100644 |
--- a/Source/core/css/resolver/FontBuilder.cpp |
+++ b/Source/core/css/resolver/FontBuilder.cpp |
@@ -65,13 +65,13 @@ FontBuilder::FontBuilder() |
{ |
} |
-void FontBuilder::initForStyleResolve(const Document* document, RenderStyle* style, bool useSVGZoomRules) |
+void FontBuilder::initForStyleResolve(const Document& document, RenderStyle* style, bool useSVGZoomRules) |
{ |
// All documents need to be in a frame (and thus have access to Settings) |
// for style-resolution to make sense. |
// Unfortunately SVG Animations currently violate this: crbug.com/260966 |
// ASSERT(m_document->frame()); |
- m_document = document; |
+ m_document = &document; |
m_useSVGZoomRules = useSVGZoomRules; |
m_style = style; |
m_fontDirty = false; |