Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2881323002: Support Document constructor. (Closed)
Patch Set: add svg/xml tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 0f79aedd84747debbd272ade4b870f59ec6b91a2..ad3b9481ef8f4f5aee62a56a2042eb7de7b8dd22 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -261,6 +261,11 @@ class CORE_EXPORT Document : public ContainerNode,
static Document* Create(const DocumentInit& initializer = DocumentInit()) {
return new Document(initializer);
}
+ // Factory for web-exposed Document constructor. The argument document must be
+ // a document instance representing window.document, and it works as the
+ // source of ExecutionContext and security origin of the new document.
+ // https://dom.spec.whatwg.org/#dom-document-document
+ static Document* Create(const Document&);
~Document() override;
MediaQueryMatcher& GetMediaQueryMatcher();
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/dom-constructors-expected.txt ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698