OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |