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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 public ExecutionContext, 254 public ExecutionContext,
255 public SynchronousMutationNotifier, 255 public SynchronousMutationNotifier,
256 public Supplementable<Document> { 256 public Supplementable<Document> {
257 DEFINE_WRAPPERTYPEINFO(); 257 DEFINE_WRAPPERTYPEINFO();
258 USING_GARBAGE_COLLECTED_MIXIN(Document); 258 USING_GARBAGE_COLLECTED_MIXIN(Document);
259 259
260 public: 260 public:
261 static Document* Create(const DocumentInit& initializer = DocumentInit()) { 261 static Document* Create(const DocumentInit& initializer = DocumentInit()) {
262 return new Document(initializer); 262 return new Document(initializer);
263 } 263 }
264 // Factory for web-exposed Document constructor. The argument document must be
265 // a document instance representing window.document, and it works as the
266 // source of ExecutionContext and security origin of the new document.
267 // https://dom.spec.whatwg.org/#dom-document-document
268 static Document* Create(const Document&);
264 ~Document() override; 269 ~Document() override;
265 270
266 MediaQueryMatcher& GetMediaQueryMatcher(); 271 MediaQueryMatcher& GetMediaQueryMatcher();
267 272
268 void MediaQueryAffectingValueChanged(); 273 void MediaQueryAffectingValueChanged();
269 274
270 using SecurityContext::GetSecurityOrigin; 275 using SecurityContext::GetSecurityOrigin;
271 using SecurityContext::GetContentSecurityPolicy; 276 using SecurityContext::GetContentSecurityPolicy;
272 using TreeScope::getElementById; 277 using TreeScope::getElementById;
273 278
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1750 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1746 1751
1747 } // namespace blink 1752 } // namespace blink
1748 1753
1749 #ifndef NDEBUG 1754 #ifndef NDEBUG
1750 // Outside the WebCore namespace for ease of invocation from gdb. 1755 // Outside the WebCore namespace for ease of invocation from gdb.
1751 CORE_EXPORT void showLiveDocumentInstances(); 1756 CORE_EXPORT void showLiveDocumentInstances();
1752 #endif 1757 #endif
1753 1758
1754 #endif // Document_h 1759 #endif // Document_h
OLDNEW
« 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