| 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 23 matching lines...) Expand all Loading... |
| 34 #include "sky/engine/core/animation/PendingAnimations.h" | 34 #include "sky/engine/core/animation/PendingAnimations.h" |
| 35 #include "sky/engine/core/dom/ContainerNode.h" | 35 #include "sky/engine/core/dom/ContainerNode.h" |
| 36 #include "sky/engine/core/dom/DocumentInit.h" | 36 #include "sky/engine/core/dom/DocumentInit.h" |
| 37 #include "sky/engine/core/dom/DocumentLifecycle.h" | 37 #include "sky/engine/core/dom/DocumentLifecycle.h" |
| 38 #include "sky/engine/core/dom/DocumentSupplementable.h" | 38 #include "sky/engine/core/dom/DocumentSupplementable.h" |
| 39 #include "sky/engine/core/dom/ExecutionContext.h" | 39 #include "sky/engine/core/dom/ExecutionContext.h" |
| 40 #include "sky/engine/core/dom/MutationObserver.h" | 40 #include "sky/engine/core/dom/MutationObserver.h" |
| 41 #include "sky/engine/core/dom/TextLinkColors.h" | 41 #include "sky/engine/core/dom/TextLinkColors.h" |
| 42 #include "sky/engine/core/dom/TreeScope.h" | 42 #include "sky/engine/core/dom/TreeScope.h" |
| 43 #include "sky/engine/core/dom/UserActionElementSet.h" | 43 #include "sky/engine/core/dom/UserActionElementSet.h" |
| 44 #include "sky/engine/core/fetch/ResourceClient.h" | |
| 45 #include "sky/engine/core/loader/DocumentLoadTiming.h" | 44 #include "sky/engine/core/loader/DocumentLoadTiming.h" |
| 46 #include "sky/engine/core/page/FocusType.h" | 45 #include "sky/engine/core/page/FocusType.h" |
| 47 #include "sky/engine/core/page/PageVisibilityState.h" | 46 #include "sky/engine/core/page/PageVisibilityState.h" |
| 48 #include "sky/engine/platform/Length.h" | 47 #include "sky/engine/platform/Length.h" |
| 49 #include "sky/engine/platform/Timer.h" | 48 #include "sky/engine/platform/Timer.h" |
| 50 #include "sky/engine/platform/heap/Handle.h" | 49 #include "sky/engine/platform/heap/Handle.h" |
| 51 #include "sky/engine/platform/weborigin/KURL.h" | 50 #include "sky/engine/platform/weborigin/KURL.h" |
| 52 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" | 51 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" |
| 53 #include "sky/engine/wtf/HashSet.h" | 52 #include "sky/engine/wtf/HashSet.h" |
| 54 #include "sky/engine/wtf/OwnPtr.h" | 53 #include "sky/engine/wtf/OwnPtr.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 class StyleResolver; | 106 class StyleResolver; |
| 108 class Text; | 107 class Text; |
| 109 | 108 |
| 110 struct AnnotatedRegionValue; | 109 struct AnnotatedRegionValue; |
| 111 | 110 |
| 112 typedef int ExceptionCode; | 111 typedef int ExceptionCode; |
| 113 | 112 |
| 114 class Document; | 113 class Document; |
| 115 | 114 |
| 116 class Document : public ContainerNode, public TreeScope, public ExecutionContext
, public ExecutionContextClient | 115 class Document : public ContainerNode, public TreeScope, public ExecutionContext
, public ExecutionContextClient |
| 117 , public DocumentSupplementable, public LifecycleContext<Document>, public R
esourceClient { | 116 , public DocumentSupplementable, public LifecycleContext<Document> { |
| 118 DEFINE_WRAPPERTYPEINFO(); | 117 DEFINE_WRAPPERTYPEINFO(); |
| 119 public: | 118 public: |
| 120 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) | 119 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) |
| 121 { | 120 { |
| 122 return adoptRef(new Document(initializer)); | 121 return adoptRef(new Document(initializer)); |
| 123 } | 122 } |
| 124 virtual ~Document(); | 123 virtual ~Document(); |
| 125 | 124 |
| 126 MediaQueryMatcher& mediaQueryMatcher(); | 125 MediaQueryMatcher& mediaQueryMatcher(); |
| 127 | 126 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 217 |
| 219 void setupFontBuilder(RenderStyle* documentStyle); | 218 void setupFontBuilder(RenderStyle* documentStyle); |
| 220 | 219 |
| 221 bool needsRenderTreeUpdate() const; | 220 bool needsRenderTreeUpdate() const; |
| 222 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } | 221 void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } |
| 223 void updateRenderTreeForNodeIfNeeded(Node*); | 222 void updateRenderTreeForNodeIfNeeded(Node*); |
| 224 void updateLayout(); | 223 void updateLayout(); |
| 225 | 224 |
| 226 void updateDistributionForNodeIfNeeded(Node*); | 225 void updateDistributionForNodeIfNeeded(Node*); |
| 227 | 226 |
| 228 ResourceFetcher* fetcher() { return m_fetcher.get(); } | |
| 229 | |
| 230 virtual void attach(const AttachContext& = AttachContext()) override; | 227 virtual void attach(const AttachContext& = AttachContext()) override; |
| 231 virtual void detach(const AttachContext& = AttachContext()) override; | 228 virtual void detach(const AttachContext& = AttachContext()) override; |
| 232 void prepareForDestruction(); | 229 void prepareForDestruction(); |
| 233 | 230 |
| 234 // If you have a Document, use renderView() instead which is faster. | 231 // If you have a Document, use renderView() instead which is faster. |
| 235 void renderer() const = delete; | 232 void renderer() const = delete; |
| 236 | 233 |
| 237 RenderView* renderView() const { return m_renderView; } | 234 RenderView* renderView() const { return m_renderView; } |
| 238 | 235 |
| 239 DocumentLoadTiming* timing() const; | 236 DocumentLoadTiming* timing() const; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 550 |
| 554 DocumentLifecycle m_lifecycle; | 551 DocumentLifecycle m_lifecycle; |
| 555 | 552 |
| 556 AbstractModule* m_module; | 553 AbstractModule* m_module; |
| 557 | 554 |
| 558 bool m_evaluateMediaQueriesOnStyleRecalc; | 555 bool m_evaluateMediaQueriesOnStyleRecalc; |
| 559 | 556 |
| 560 LocalFrame* m_frame; | 557 LocalFrame* m_frame; |
| 561 RawPtr<LocalDOMWindow> m_domWindow; | 558 RawPtr<LocalDOMWindow> m_domWindow; |
| 562 | 559 |
| 563 RefPtr<ResourceFetcher> m_fetcher; | |
| 564 unsigned m_activeParserCount; | 560 unsigned m_activeParserCount; |
| 565 | 561 |
| 566 // Document URLs. | 562 // Document URLs. |
| 567 KURL m_url; // Document.URL: The URL from which this document was retrieved. | 563 KURL m_url; // Document.URL: The URL from which this document was retrieved. |
| 568 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. | 564 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. |
| 569 | 565 |
| 570 // Mime-type of the document in case it was cloned or created by XHR. | 566 // Mime-type of the document in case it was cloned or created by XHR. |
| 571 AtomicString m_mimeType; | 567 AtomicString m_mimeType; |
| 572 | 568 |
| 573 RefPtr<CSSStyleSheet> m_elemSheet; | 569 RefPtr<CSSStyleSheet> m_elemSheet; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 675 } |
| 680 | 676 |
| 681 } // namespace blink | 677 } // namespace blink |
| 682 | 678 |
| 683 #ifndef NDEBUG | 679 #ifndef NDEBUG |
| 684 // Outside the WebCore namespace for ease of invocation from gdb. | 680 // Outside the WebCore namespace for ease of invocation from gdb. |
| 685 void showLiveDocumentInstances(); | 681 void showLiveDocumentInstances(); |
| 686 #endif | 682 #endif |
| 687 | 683 |
| 688 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 684 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
| OLD | NEW |