Index: Source/core/dom/ScriptableDocumentParser.cpp |
diff --git a/Source/core/dom/ScriptableDocumentParser.cpp b/Source/core/dom/ScriptableDocumentParser.cpp |
index 5e8f2f39a2be0312e48d50301785f82fe301fb2a..6d00efb4b66f48301cf2e3bb83d65474b5d79217 100644 |
--- a/Source/core/dom/ScriptableDocumentParser.cpp |
+++ b/Source/core/dom/ScriptableDocumentParser.cpp |
@@ -31,12 +31,12 @@ |
namespace WebCore { |
-ScriptableDocumentParser::ScriptableDocumentParser(Document* document, ParserContentPolicy parserContentPolicy) |
+ScriptableDocumentParser::ScriptableDocumentParser(Document& document, ParserContentPolicy parserContentPolicy) |
: DecodedDataDocumentParser(document) |
, m_wasCreatedByScript(false) |
, m_parserContentPolicy(parserContentPolicy) |
{ |
- if (!pluginContentIsAllowed(m_parserContentPolicy) && (!document->settings() || document->settings()->unsafePluginPastingEnabled())) |
+ if (!pluginContentIsAllowed(m_parserContentPolicy) && (!document.settings() || document.settings()->unsafePluginPastingEnabled())) |
m_parserContentPolicy = allowPluginContent(m_parserContentPolicy); |
} |