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 13 matching lines...) Expand all Loading... |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
29 #define SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 29 #define SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
30 | 30 |
31 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" | 31 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" |
32 #include "sky/engine/bindings/core/v8/ScriptValue.h" | 32 #include "sky/engine/bindings/core/v8/ScriptValue.h" |
33 #include "sky/engine/core/animation/AnimationClock.h" | 33 #include "sky/engine/core/animation/AnimationClock.h" |
34 #include "sky/engine/core/animation/CompositorPendingAnimations.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/dom/custom/CustomElement.h" | 44 #include "sky/engine/core/dom/custom/CustomElement.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } | 556 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } |
557 | 557 |
558 void didLoadAllScriptBlockingResources(); | 558 void didLoadAllScriptBlockingResources(); |
559 void didRemoveAllPendingStylesheet(); | 559 void didRemoveAllPendingStylesheet(); |
560 void clearStyleResolver(); | 560 void clearStyleResolver(); |
561 | 561 |
562 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } | 562 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
563 | 563 |
564 AnimationClock& animationClock() { return m_animationClock; } | 564 AnimationClock& animationClock() { return m_animationClock; } |
565 AnimationTimeline& timeline() const { return *m_timeline; } | 565 AnimationTimeline& timeline() const { return *m_timeline; } |
566 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } | 566 PendingAnimations& pendingAnimations() { return m_pendingAnimations; } |
567 | 567 |
568 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). | 568 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). |
569 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 569 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
570 Document& ensureTemplateDocument(); | 570 Document& ensureTemplateDocument(); |
571 Document* templateDocumentHost() { return m_templateDocumentHost; } | 571 Document* templateDocumentHost() { return m_templateDocumentHost; } |
572 | 572 |
573 virtual void addMessage(PassRefPtr<ConsoleMessage>) override final; | 573 virtual void addMessage(PassRefPtr<ConsoleMessage>) override final; |
574 | 574 |
575 virtual LocalDOMWindow* executingWindow() override final; | 575 virtual LocalDOMWindow* executingWindow() override final; |
576 LocalFrame* executingFrame(); | 576 LocalFrame* executingFrame(); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 RefPtr<CustomElementRegistrationContext> m_registrationContext; | 782 RefPtr<CustomElementRegistrationContext> m_registrationContext; |
783 RefPtr<CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; | 783 RefPtr<CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; |
784 | 784 |
785 void elementDataCacheClearTimerFired(Timer<Document>*); | 785 void elementDataCacheClearTimerFired(Timer<Document>*); |
786 Timer<Document> m_elementDataCacheClearTimer; | 786 Timer<Document> m_elementDataCacheClearTimer; |
787 | 787 |
788 OwnPtr<ElementDataCache> m_elementDataCache; | 788 OwnPtr<ElementDataCache> m_elementDataCache; |
789 | 789 |
790 AnimationClock m_animationClock; | 790 AnimationClock m_animationClock; |
791 RefPtr<AnimationTimeline> m_timeline; | 791 RefPtr<AnimationTimeline> m_timeline; |
792 CompositorPendingAnimations m_compositorPendingAnimations; | 792 PendingAnimations m_pendingAnimations; |
793 | 793 |
794 RefPtr<Document> m_templateDocument; | 794 RefPtr<Document> m_templateDocument; |
795 // With Oilpan the templateDocument and the templateDocumentHost | 795 // With Oilpan the templateDocument and the templateDocumentHost |
796 // live and die together. Without Oilpan, the templateDocumentHost | 796 // live and die together. Without Oilpan, the templateDocumentHost |
797 // is a manually managed backpointer from m_templateDocument. | 797 // is a manually managed backpointer from m_templateDocument. |
798 RawPtr<Document> m_templateDocumentHost; | 798 RawPtr<Document> m_templateDocumentHost; |
799 | 799 |
800 bool m_hasViewportUnits; | 800 bool m_hasViewportUnits; |
801 | 801 |
802 int m_styleRecalcElementCounter; | 802 int m_styleRecalcElementCounter; |
(...skipping 29 matching lines...) Expand all Loading... |
832 Node* eventTargetNodeForDocument(Document*); | 832 Node* eventTargetNodeForDocument(Document*); |
833 | 833 |
834 } // namespace blink | 834 } // namespace blink |
835 | 835 |
836 #ifndef NDEBUG | 836 #ifndef NDEBUG |
837 // Outside the WebCore namespace for ease of invocation from gdb. | 837 // Outside the WebCore namespace for ease of invocation from gdb. |
838 void showLiveDocumentInstances(); | 838 void showLiveDocumentInstances(); |
839 #endif | 839 #endif |
840 | 840 |
841 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 841 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
OLD | NEW |