| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 DOMImplementation& implementation(); | 311 DOMImplementation& implementation(); |
| 312 | 312 |
| 313 Element* documentElement() const { return document_element_.Get(); } | 313 Element* documentElement() const { return document_element_.Get(); } |
| 314 | 314 |
| 315 // Returns whether the Document has an AppCache manifest. | 315 // Returns whether the Document has an AppCache manifest. |
| 316 bool HasAppCacheManifest() const; | 316 bool HasAppCacheManifest() const; |
| 317 | 317 |
| 318 Location* location() const; | 318 Location* location() const; |
| 319 | 319 |
| 320 Element* createElement(const AtomicString& name, | 320 Element* createElement(const LocalDOMWindow*, |
| 321 ExceptionState& = ASSERT_NO_EXCEPTION); | 321 const AtomicString& name, |
| 322 ExceptionState&); |
| 322 DocumentFragment* createDocumentFragment(); | 323 DocumentFragment* createDocumentFragment(); |
| 323 Text* createTextNode(const String& data); | 324 Text* createTextNode(const String& data); |
| 324 Comment* createComment(const String& data); | 325 Comment* createComment(const String& data); |
| 325 CDATASection* createCDATASection(const String& data, ExceptionState&); | 326 CDATASection* createCDATASection(const String& data, ExceptionState&); |
| 326 ProcessingInstruction* createProcessingInstruction(const String& target, | 327 ProcessingInstruction* createProcessingInstruction(const String& target, |
| 327 const String& data, | 328 const String& data, |
| 328 ExceptionState&); | 329 ExceptionState&); |
| 329 Attr* createAttribute(const AtomicString& name, ExceptionState&); | 330 Attr* createAttribute(const AtomicString& name, ExceptionState&); |
| 330 Attr* createAttributeNS(const AtomicString& namespace_uri, | 331 Attr* createAttributeNS(const AtomicString& namespace_uri, |
| 331 const AtomicString& qualified_name, | 332 const AtomicString& qualified_name, |
| 332 ExceptionState&, | 333 ExceptionState&, |
| 333 bool should_ignore_namespace_checks = false); | 334 bool should_ignore_namespace_checks = false); |
| 334 Node* importNode(Node* imported_node, bool deep, ExceptionState&); | 335 Node* importNode(Node* imported_node, bool deep, ExceptionState&); |
| 335 Element* createElementNS(const AtomicString& namespace_uri, | 336 Element* createElementNS(const LocalDOMWindow*, |
| 337 const AtomicString& namespace_uri, |
| 336 const AtomicString& qualified_name, | 338 const AtomicString& qualified_name, |
| 337 ExceptionState&); | 339 ExceptionState&); |
| 338 Element* createElement(const QualifiedName&, CreateElementFlags); | 340 Element* createElement(const QualifiedName&, CreateElementFlags); |
| 339 | 341 |
| 340 Element* ElementFromPoint(int x, int y) const; | 342 Element* ElementFromPoint(int x, int y) const; |
| 341 HeapVector<Member<Element>> ElementsFromPoint(int x, int y) const; | 343 HeapVector<Member<Element>> ElementsFromPoint(int x, int y) const; |
| 342 Range* caretRangeFromPoint(int x, int y); | 344 Range* caretRangeFromPoint(int x, int y); |
| 343 Element* scrollingElement(); | 345 Element* scrollingElement(); |
| 344 // When calling from C++ code, use this method. scrollingElement() is | 346 // When calling from C++ code, use this method. scrollingElement() is |
| 345 // just for the web IDL implementation. | 347 // just for the web IDL implementation. |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 | 1134 |
| 1133 EventTarget* ErrorEventTarget() final; | 1135 EventTarget* ErrorEventTarget() final; |
| 1134 void ExceptionThrown(ErrorEvent*) final; | 1136 void ExceptionThrown(ErrorEvent*) final; |
| 1135 | 1137 |
| 1136 void InitDNSPrefetch(); | 1138 void InitDNSPrefetch(); |
| 1137 | 1139 |
| 1138 bool IsInDocumentWrite() const { return write_recursion_depth_ > 0; } | 1140 bool IsInDocumentWrite() const { return write_recursion_depth_ > 0; } |
| 1139 | 1141 |
| 1140 TextAutosizer* GetTextAutosizer(); | 1142 TextAutosizer* GetTextAutosizer(); |
| 1141 | 1143 |
| 1142 Element* createElement(const AtomicString& local_name, | 1144 Element* createElement( |
| 1145 const AtomicString& local_name, |
| 1146 ExceptionState& exception_state = ASSERT_NO_EXCEPTION) { |
| 1147 return createElement(nullptr, local_name, exception_state); |
| 1148 } |
| 1149 Element* createElement(const LocalDOMWindow*, |
| 1150 const AtomicString& local_name, |
| 1143 const StringOrDictionary&, | 1151 const StringOrDictionary&, |
| 1144 ExceptionState& = ASSERT_NO_EXCEPTION); | 1152 ExceptionState& = ASSERT_NO_EXCEPTION); |
| 1145 Element* createElementNS(const AtomicString& namespace_uri, | 1153 Element* createElementNS(const LocalDOMWindow*, |
| 1154 const AtomicString& namespace_uri, |
| 1146 const AtomicString& qualified_name, | 1155 const AtomicString& qualified_name, |
| 1147 const StringOrDictionary&, | 1156 const StringOrDictionary&, |
| 1148 ExceptionState&); | 1157 ExceptionState&); |
| 1149 ScriptValue registerElement( | 1158 ScriptValue registerElement( |
| 1150 ScriptState*, | 1159 ScriptState*, |
| 1151 const AtomicString& name, | 1160 const AtomicString& name, |
| 1152 const ElementRegistrationOptions&, | 1161 const ElementRegistrationOptions&, |
| 1153 ExceptionState&, | 1162 ExceptionState&, |
| 1154 V0CustomElement::NameSet valid_names = V0CustomElement::kStandardNames); | 1163 V0CustomElement::NameSet valid_names = V0CustomElement::kStandardNames); |
| 1155 V0CustomElementRegistrationContext* RegistrationContext() { | 1164 V0CustomElementRegistrationContext* RegistrationContext() { |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1742 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1734 | 1743 |
| 1735 } // namespace blink | 1744 } // namespace blink |
| 1736 | 1745 |
| 1737 #ifndef NDEBUG | 1746 #ifndef NDEBUG |
| 1738 // Outside the WebCore namespace for ease of invocation from gdb. | 1747 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1739 CORE_EXPORT void showLiveDocumentInstances(); | 1748 CORE_EXPORT void showLiveDocumentInstances(); |
| 1740 #endif | 1749 #endif |
| 1741 | 1750 |
| 1742 #endif // Document_h | 1751 #endif // Document_h |
| OLD | NEW |