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 r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 SVGDocumentClass = 1 << 5, | 207 SVGDocumentClass = 1 << 5, |
208 XMLDocumentClass = 1 << 6, | 208 XMLDocumentClass = 1 << 6, |
209 }; | 209 }; |
210 | 210 |
211 enum ShadowCascadeOrder { | 211 enum ShadowCascadeOrder { |
212 ShadowCascadeNone, | 212 ShadowCascadeNone, |
213 ShadowCascadeV0, | 213 ShadowCascadeV0, |
214 ShadowCascadeV1 | 214 ShadowCascadeV1 |
215 }; | 215 }; |
216 | 216 |
217 enum CreateElementFlags { | |
yosin_UTC9
2016/05/24 08:53:53
Is this bit flag? If not, please use |enum class|
kojii
2016/05/24 09:49:14
Yes, this is a bit flag.
yosin_UTC9
2016/05/25 01:32:52
How about using |CreateRequester| or another good
kojii
2016/05/25 04:11:45
Done, added aliases.
The sync flag is added to th
| |
218 CreatedByParser = 1 << 0, | |
219 // Synchronous custom elements flag | |
220 // https://dom.spec.whatwg.org/#concept-create-element | |
221 SynchronousCustomElements = 0, | |
222 AsynchronousCustomElements = 1 << 1, | |
223 }; | |
224 | |
217 using DocumentClassFlags = unsigned char; | 225 using DocumentClassFlags = unsigned char; |
218 | 226 |
219 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext, public Supplementable<Document> { | 227 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext, public Supplementable<Document> { |
220 DEFINE_WRAPPERTYPEINFO(); | 228 DEFINE_WRAPPERTYPEINFO(); |
221 USING_GARBAGE_COLLECTED_MIXIN(Document); | 229 USING_GARBAGE_COLLECTED_MIXIN(Document); |
222 public: | 230 public: |
223 static Document* create(const DocumentInit& initializer = DocumentInit()) | 231 static Document* create(const DocumentInit& initializer = DocumentInit()) |
224 { | 232 { |
225 return new Document(initializer); | 233 return new Document(initializer); |
226 } | 234 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 Element* createElement(const AtomicString& name, ExceptionState&); | 293 Element* createElement(const AtomicString& name, ExceptionState&); |
286 DocumentFragment* createDocumentFragment(); | 294 DocumentFragment* createDocumentFragment(); |
287 Text* createTextNode(const String& data); | 295 Text* createTextNode(const String& data); |
288 Comment* createComment(const String& data); | 296 Comment* createComment(const String& data); |
289 CDATASection* createCDATASection(const String& data, ExceptionState&); | 297 CDATASection* createCDATASection(const String& data, ExceptionState&); |
290 ProcessingInstruction* createProcessingInstruction(const String& target, con st String& data, ExceptionState&); | 298 ProcessingInstruction* createProcessingInstruction(const String& target, con st String& data, ExceptionState&); |
291 Attr* createAttribute(const AtomicString& name, ExceptionState&); | 299 Attr* createAttribute(const AtomicString& name, ExceptionState&); |
292 Attr* createAttributeNS(const AtomicString& namespaceURI, const AtomicString & qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = false); | 300 Attr* createAttributeNS(const AtomicString& namespaceURI, const AtomicString & qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = false); |
293 Node* importNode(Node* importedNode, bool deep, ExceptionState&); | 301 Node* importNode(Node* importedNode, bool deep, ExceptionState&); |
294 Element* createElementNS(const AtomicString& namespaceURI, const AtomicStrin g& qualifiedName, ExceptionState&); | 302 Element* createElementNS(const AtomicString& namespaceURI, const AtomicStrin g& qualifiedName, ExceptionState&); |
295 Element* createElement(const QualifiedName&, bool createdByParser); | 303 Element* createElement(const QualifiedName&, CreateElementFlags); |
296 | 304 |
297 Element* elementFromPoint(int x, int y) const; | 305 Element* elementFromPoint(int x, int y) const; |
298 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const; | 306 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const; |
299 Range* caretRangeFromPoint(int x, int y); | 307 Range* caretRangeFromPoint(int x, int y); |
300 Element* scrollingElement(); | 308 Element* scrollingElement(); |
301 VisualViewport* visualViewport(); | 309 VisualViewport* visualViewport(); |
302 | 310 |
303 String readyState() const; | 311 String readyState() const; |
304 | 312 |
305 AtomicString characterSet() const { return Document::encodingName(); } | 313 AtomicString characterSet() const { return Document::encodingName(); } |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1438 | 1446 |
1439 } // namespace blink | 1447 } // namespace blink |
1440 | 1448 |
1441 #ifndef NDEBUG | 1449 #ifndef NDEBUG |
1442 // Outside the WebCore namespace for ease of invocation from gdb. | 1450 // Outside the WebCore namespace for ease of invocation from gdb. |
1443 CORE_EXPORT void showLiveDocumentInstances(); | 1451 CORE_EXPORT void showLiveDocumentInstances(); |
1444 #endif | 1452 #endif |
1445 | 1453 |
1446 #endif // Document_h | 1454 #endif // Document_h |
OLD | NEW |