| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 class AnimationTimeline; | 63 class AnimationTimeline; |
| 64 class Attr; | 64 class Attr; |
| 65 class CSSStyleDeclaration; | 65 class CSSStyleDeclaration; |
| 66 class CSSStyleSheet; | 66 class CSSStyleSheet; |
| 67 class CanvasRenderingContext2D; | 67 class CanvasRenderingContext2D; |
| 68 class Comment; | 68 class Comment; |
| 69 class ConsoleMessage; | 69 class ConsoleMessage; |
| 70 class CustomElementMicrotaskRunQueue; | 70 class CustomElementMicrotaskRunQueue; |
| 71 class CustomElementRegistrationContext; | 71 class CustomElementRegistrationContext; |
| 72 class DOMImplementation; | |
| 73 class DocumentFragment; | 72 class DocumentFragment; |
| 74 class DocumentLifecycleNotifier; | 73 class DocumentLifecycleNotifier; |
| 75 class DocumentLoadTiming; | 74 class DocumentLoadTiming; |
| 76 class DocumentMarkerController; | 75 class DocumentMarkerController; |
| 77 class DocumentParser; | 76 class DocumentParser; |
| 78 class Element; | 77 class Element; |
| 79 class ElementDataCache; | 78 class ElementDataCache; |
| 80 class Event; | 79 class Event; |
| 81 class EventFactoryBase; | 80 class EventFactoryBase; |
| 82 class EventListener; | 81 class EventListener; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 , public DocumentSupplementable, public LifecycleContext<Document>, public R
esourceClient { | 169 , public DocumentSupplementable, public LifecycleContext<Document>, public R
esourceClient { |
| 171 DEFINE_WRAPPERTYPEINFO(); | 170 DEFINE_WRAPPERTYPEINFO(); |
| 172 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); | 171 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); |
| 173 public: | 172 public: |
| 174 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) | 173 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) |
| 175 { | 174 { |
| 176 return adoptRef(new Document(initializer)); | 175 return adoptRef(new Document(initializer)); |
| 177 } | 176 } |
| 178 virtual ~Document(); | 177 virtual ~Document(); |
| 179 | 178 |
| 179 // Called by JS. |
| 180 static PassRefPtr<Document> create(Document&); |
| 181 |
| 180 MediaQueryMatcher& mediaQueryMatcher(); | 182 MediaQueryMatcher& mediaQueryMatcher(); |
| 181 | 183 |
| 182 void mediaQueryAffectingValueChanged(); | 184 void mediaQueryAffectingValueChanged(); |
| 183 | 185 |
| 184 #if !ENABLE(OILPAN) | 186 #if !ENABLE(OILPAN) |
| 185 using ContainerNode::ref; | 187 using ContainerNode::ref; |
| 186 using ContainerNode::deref; | 188 using ContainerNode::deref; |
| 187 #endif | 189 #endif |
| 188 using ExecutionContextClient::addConsoleMessage; | 190 using ExecutionContextClient::addConsoleMessage; |
| 189 using TreeScope::getElementById; | 191 using TreeScope::getElementById; |
| 190 | 192 |
| 191 virtual bool canContainRangeEndPoint() const override { return true; } | 193 virtual bool canContainRangeEndPoint() const override { return true; } |
| 192 | 194 |
| 193 SelectorQueryCache& selectorQueryCache(); | 195 SelectorQueryCache& selectorQueryCache(); |
| 194 | 196 |
| 195 // Focus Management. | 197 // Focus Management. |
| 196 Element* activeElement() const; | 198 Element* activeElement() const; |
| 197 bool hasFocus() const; | 199 bool hasFocus() const; |
| 198 | 200 |
| 199 // DOM methods & attributes for Document | 201 // DOM methods & attributes for Document |
| 200 | 202 |
| 201 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } | 203 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } |
| 202 | 204 |
| 203 void setReferrerPolicy(ReferrerPolicy); | 205 void setReferrerPolicy(ReferrerPolicy); |
| 204 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 206 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } |
| 205 | 207 |
| 206 String outgoingReferrer(); | 208 String outgoingReferrer(); |
| 207 | 209 |
| 208 DOMImplementation& implementation(); | |
| 209 | |
| 210 Element* documentElement() const | 210 Element* documentElement() const |
| 211 { | 211 { |
| 212 return m_documentElement.get(); | 212 return m_documentElement.get(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 Location* location() const; | 215 Location* location() const; |
| 216 | 216 |
| 217 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionState&)
; | 217 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionState&)
; |
| 218 PassRefPtr<DocumentFragment> createDocumentFragment(); | 218 PassRefPtr<DocumentFragment> createDocumentFragment(); |
| 219 PassRefPtr<Text> createTextNode(const String& data); | 219 PassRefPtr<Text> createTextNode(const String& data); |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 RefPtr<DocumentParser> m_parser; | 760 RefPtr<DocumentParser> m_parser; |
| 761 unsigned m_activeParserCount; | 761 unsigned m_activeParserCount; |
| 762 | 762 |
| 763 // Document URLs. | 763 // Document URLs. |
| 764 KURL m_url; // Document.URL: The URL from which this document was retrieved. | 764 KURL m_url; // Document.URL: The URL from which this document was retrieved. |
| 765 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. | 765 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. |
| 766 | 766 |
| 767 // Mime-type of the document in case it was cloned or created by XHR. | 767 // Mime-type of the document in case it was cloned or created by XHR. |
| 768 AtomicString m_mimeType; | 768 AtomicString m_mimeType; |
| 769 | 769 |
| 770 OwnPtr<DOMImplementation> m_implementation; | |
| 771 | |
| 772 RefPtr<CSSStyleSheet> m_elemSheet; | 770 RefPtr<CSSStyleSheet> m_elemSheet; |
| 773 | 771 |
| 774 Timer<Document> m_executeScriptsWaitingForResourcesTimer; | 772 Timer<Document> m_executeScriptsWaitingForResourcesTimer; |
| 775 | 773 |
| 776 bool m_hasAutofocused; | 774 bool m_hasAutofocused; |
| 777 Timer<Document> m_clearFocusedElementTimer; | 775 Timer<Document> m_clearFocusedElementTimer; |
| 778 Timer<Document> m_focusAutofocusElementTimer; | 776 Timer<Document> m_focusAutofocusElementTimer; |
| 779 RefPtr<Element> m_autofocusElement; | 777 RefPtr<Element> m_autofocusElement; |
| 780 RefPtr<Element> m_focusedElement; | 778 RefPtr<Element> m_focusedElement; |
| 781 RefPtr<Node> m_hoverNode; | 779 RefPtr<Node> m_hoverNode; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 Node* eventTargetNodeForDocument(Document*); | 900 Node* eventTargetNodeForDocument(Document*); |
| 903 | 901 |
| 904 } // namespace blink | 902 } // namespace blink |
| 905 | 903 |
| 906 #ifndef NDEBUG | 904 #ifndef NDEBUG |
| 907 // Outside the WebCore namespace for ease of invocation from gdb. | 905 // Outside the WebCore namespace for ease of invocation from gdb. |
| 908 void showLiveDocumentInstances(); | 906 void showLiveDocumentInstances(); |
| 909 #endif | 907 #endif |
| 910 | 908 |
| 911 #endif // Document_h | 909 #endif // Document_h |
| OLD | NEW |