Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 772673002: Fix Animations, Remove Compostior Animations. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: CompositorPendingAnimations -> PendingAnimations Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698