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

Side by Side Diff: Source/core/dom/Document.h

Issue 299723002: Revert of Web Animations: Timeline should not advance during task execution (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/DocumentAnimations.cpp ('k') | Source/core/dom/Document.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 12 matching lines...) Expand all
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef Document_h 28 #ifndef Document_h
29 #define Document_h 29 #define Document_h
30 30
31 #include "bindings/v8/ExceptionStatePlaceholder.h" 31 #include "bindings/v8/ExceptionStatePlaceholder.h"
32 #include "bindings/v8/ScriptValue.h" 32 #include "bindings/v8/ScriptValue.h"
33 #include "core/animation/AnimationClock.h"
34 #include "core/animation/CompositorPendingAnimations.h" 33 #include "core/animation/CompositorPendingAnimations.h"
35 #include "core/dom/ContainerNode.h" 34 #include "core/dom/ContainerNode.h"
36 #include "core/dom/DocumentEncodingData.h" 35 #include "core/dom/DocumentEncodingData.h"
37 #include "core/dom/DocumentInit.h" 36 #include "core/dom/DocumentInit.h"
38 #include "core/dom/DocumentLifecycle.h" 37 #include "core/dom/DocumentLifecycle.h"
39 #include "core/dom/DocumentSupplementable.h" 38 #include "core/dom/DocumentSupplementable.h"
40 #include "core/dom/DocumentTiming.h" 39 #include "core/dom/DocumentTiming.h"
41 #include "core/dom/ExecutionContext.h" 40 #include "core/dom/ExecutionContext.h"
42 #include "core/dom/IconURL.h" 41 #include "core/dom/IconURL.h"
43 #include "core/dom/MutationObserver.h" 42 #include "core/dom/MutationObserver.h"
(...skipping 14 matching lines...) Expand all
58 #include "platform/weborigin/ReferrerPolicy.h" 57 #include "platform/weborigin/ReferrerPolicy.h"
59 #include "wtf/HashSet.h" 58 #include "wtf/HashSet.h"
60 #include "wtf/OwnPtr.h" 59 #include "wtf/OwnPtr.h"
61 #include "wtf/PassOwnPtr.h" 60 #include "wtf/PassOwnPtr.h"
62 #include "wtf/PassRefPtr.h" 61 #include "wtf/PassRefPtr.h"
63 #include "wtf/WeakPtr.h" 62 #include "wtf/WeakPtr.h"
64 63
65 namespace WebCore { 64 namespace WebCore {
66 65
67 class AXObjectCache; 66 class AXObjectCache;
67 class AnimationClock;
68 class Attr; 68 class Attr;
69 class CDATASection; 69 class CDATASection;
70 class CSSFontSelector; 70 class CSSFontSelector;
71 class CSSStyleDeclaration; 71 class CSSStyleDeclaration;
72 class CSSStyleSheet; 72 class CSSStyleSheet;
73 class CSSStyleSheetResource; 73 class CSSStyleSheetResource;
74 class CanvasRenderingContext2D; 74 class CanvasRenderingContext2D;
75 class CharacterData; 75 class CharacterData;
76 class Chrome; 76 class Chrome;
77 class Comment; 77 class Comment;
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 void didLoadAllScriptBlockingResources(); 1021 void didLoadAllScriptBlockingResources();
1022 void didRemoveAllPendingStylesheet(); 1022 void didRemoveAllPendingStylesheet();
1023 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend ingStylesheet = true; } 1023 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend ingStylesheet = true; }
1024 void clearStyleResolver(); 1024 void clearStyleResolver();
1025 1025
1026 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; } 1026 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; }
1027 1027
1028 // Return a Locale for the default locale if the argument is null or empty. 1028 // Return a Locale for the default locale if the argument is null or empty.
1029 Locale& getCachedLocale(const AtomicString& locale = nullAtom); 1029 Locale& getCachedLocale(const AtomicString& locale = nullAtom);
1030 1030
1031 AnimationClock& animationClock() { return m_animationClock; } 1031 AnimationClock& animationClock() { return *m_animationClock; }
1032 AnimationTimeline& timeline() const { return *m_timeline; } 1032 AnimationTimeline& timeline() const { return *m_timeline; }
1033 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos itorPendingAnimations; } 1033 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos itorPendingAnimations; }
1034 1034
1035 void addToTopLayer(Element*, const Element* before = 0); 1035 void addToTopLayer(Element*, const Element* before = 0);
1036 void removeFromTopLayer(Element*); 1036 void removeFromTopLayer(Element*);
1037 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; } 1037 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; }
1038 HTMLDialogElement* activeModalDialog() const; 1038 HTMLDialogElement* activeModalDialog() const;
1039 1039
1040 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 1040 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
1041 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 1041 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 1367
1368 OwnPtr<ElementDataCache> m_elementDataCache; 1368 OwnPtr<ElementDataCache> m_elementDataCache;
1369 1369
1370 #ifndef NDEBUG 1370 #ifndef NDEBUG
1371 bool m_didDispatchViewportPropertiesChanged; 1371 bool m_didDispatchViewportPropertiesChanged;
1372 #endif 1372 #endif
1373 1373
1374 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; 1374 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap;
1375 LocaleIdentifierToLocaleMap m_localeCache; 1375 LocaleIdentifierToLocaleMap m_localeCache;
1376 1376
1377 AnimationClock m_animationClock; 1377 OwnPtr<AnimationClock> m_animationClock;
1378 RefPtrWillBeMember<AnimationTimeline> m_timeline; 1378 RefPtrWillBeMember<AnimationTimeline> m_timeline;
1379 CompositorPendingAnimations m_compositorPendingAnimations; 1379 CompositorPendingAnimations m_compositorPendingAnimations;
1380 1380
1381 RefPtrWillBeMember<Document> m_templateDocument; 1381 RefPtrWillBeMember<Document> m_templateDocument;
1382 // With Oilpan the templateDocument and the templateDocumentHost 1382 // With Oilpan the templateDocument and the templateDocumentHost
1383 // live and die together. Without Oilpan, the templateDocumentHost 1383 // live and die together. Without Oilpan, the templateDocumentHost
1384 // is a manually managed backpointer from m_templateDocument. 1384 // is a manually managed backpointer from m_templateDocument.
1385 RawPtrWillBeMember<Document> m_templateDocumentHost; 1385 RawPtrWillBeMember<Document> m_templateDocumentHost;
1386 1386
1387 Timer<Document> m_didAssociateFormControlsTimer; 1387 Timer<Document> m_didAssociateFormControlsTimer;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 inline bool Node::isDocumentNode() const 1452 inline bool Node::isDocumentNode() const
1453 { 1453 {
1454 return this == document(); 1454 return this == document();
1455 } 1455 }
1456 1456
1457 Node* eventTargetNodeForDocument(Document*); 1457 Node* eventTargetNodeForDocument(Document*);
1458 1458
1459 } // namespace WebCore 1459 } // namespace WebCore
1460 1460
1461 #endif // Document_h 1461 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/animation/DocumentAnimations.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698