Index: third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
index 8aab9bbbe43126a637cd62de820b90afeb2ff968..54d9e626d54e0a31dc9f67cac859798f35fd5bd3 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
@@ -77,6 +77,7 @@ DocumentType* DOMImplementation::createDocumentType( |
} |
XMLDocument* DOMImplementation::createDocument( |
+ const LocalDOMWindow* window, |
const AtomicString& namespace_uri, |
const AtomicString& qualified_name, |
DocumentType* doctype, |
@@ -98,8 +99,8 @@ XMLDocument* DOMImplementation::createDocument( |
Node* document_element = nullptr; |
if (!qualified_name.IsEmpty()) { |
- document_element = |
- doc->createElementNS(namespace_uri, qualified_name, exception_state); |
+ document_element = doc->createElementNS(window, namespace_uri, |
+ qualified_name, exception_state); |
if (exception_state.HadException()) |
return nullptr; |
} |