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

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

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename hasActiveAnimationOnCompositor to hasActiveAnimationsOnCompositor Created 7 years, 1 month 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/css/CSSComputedStyleDeclaration.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 11 matching lines...) Expand all
22 * along with this library; see the file COPYING.LIB. If not, write to 22 * along with this library; see the file COPYING.LIB. If not, write to
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/ScriptValue.h" 31 #include "bindings/v8/ScriptValue.h"
32 #include "core/animation/css/CSSPendingAnimations.h"
32 #include "core/dom/ContainerNode.h" 33 #include "core/dom/ContainerNode.h"
33 #include "core/dom/DOMTimeStamp.h" 34 #include "core/dom/DOMTimeStamp.h"
34 #include "core/dom/DocumentEncodingData.h" 35 #include "core/dom/DocumentEncodingData.h"
35 #include "core/dom/DocumentInit.h" 36 #include "core/dom/DocumentInit.h"
36 #include "core/dom/DocumentLifecycle.h" 37 #include "core/dom/DocumentLifecycle.h"
37 #include "core/dom/DocumentSupplementable.h" 38 #include "core/dom/DocumentSupplementable.h"
38 #include "core/dom/DocumentTiming.h" 39 #include "core/dom/DocumentTiming.h"
39 #include "core/dom/ExecutionContext.h" 40 #include "core/dom/ExecutionContext.h"
40 #include "core/dom/IconURL.h" 41 #include "core/dom/IconURL.h"
41 #include "core/dom/MutationObserver.h" 42 #include "core/dom/MutationObserver.h"
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 void notifySeamlessChildDocumentsOfStylesheetUpdate() const; 971 void notifySeamlessChildDocumentsOfStylesheetUpdate() const;
971 972
972 bool inStyleRecalc() { return m_inStyleRecalc; } 973 bool inStyleRecalc() { return m_inStyleRecalc; }
973 974
974 // Return a Locale for the default locale if the argument is null or empty. 975 // Return a Locale for the default locale if the argument is null or empty.
975 Locale& getCachedLocale(const AtomicString& locale = nullAtom); 976 Locale& getCachedLocale(const AtomicString& locale = nullAtom);
976 977
977 AnimationClock& animationClock() { return *m_animationClock; } 978 AnimationClock& animationClock() { return *m_animationClock; }
978 DocumentTimeline* timeline() const { return m_timeline.get(); } 979 DocumentTimeline* timeline() const { return m_timeline.get(); }
979 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g et(); } 980 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g et(); }
981 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations ; }
980 982
981 void addToTopLayer(Element*, const Element* before = 0); 983 void addToTopLayer(Element*, const Element* before = 0);
982 void removeFromTopLayer(Element*); 984 void removeFromTopLayer(Element*);
983 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer Elements; } 985 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer Elements; }
984 HTMLDialogElement* activeModalDialog() const; 986 HTMLDialogElement* activeModalDialog() const;
985 987
986 const Document* templateDocument() const; 988 const Document* templateDocument() const;
987 Document& ensureTemplateDocument(); 989 Document& ensureTemplateDocument();
988 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; } 990 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; }
989 Document* templateDocumentHost() { return m_templateDocumentHost; } 991 Document* templateDocumentHost() { return m_templateDocumentHost; }
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 #ifndef NDEBUG 1293 #ifndef NDEBUG
1292 bool m_didDispatchViewportPropertiesChanged; 1294 bool m_didDispatchViewportPropertiesChanged;
1293 #endif 1295 #endif
1294 1296
1295 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; 1297 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap;
1296 LocaleIdentifierToLocaleMap m_localeCache; 1298 LocaleIdentifierToLocaleMap m_localeCache;
1297 1299
1298 OwnPtr<AnimationClock> m_animationClock; 1300 OwnPtr<AnimationClock> m_animationClock;
1299 RefPtr<DocumentTimeline> m_timeline; 1301 RefPtr<DocumentTimeline> m_timeline;
1300 RefPtr<DocumentTimeline> m_transitionTimeline; 1302 RefPtr<DocumentTimeline> m_transitionTimeline;
1303 CSSPendingAnimations m_cssPendingAnimations;
1301 1304
1302 RefPtr<Document> m_templateDocument; 1305 RefPtr<Document> m_templateDocument;
1303 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). 1306 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument).
1304 1307
1305 Timer<Document> m_didAssociateFormControlsTimer; 1308 Timer<Document> m_didAssociateFormControlsTimer;
1306 HashSet<RefPtr<Element> > m_associatedFormControls; 1309 HashSet<RefPtr<Element> > m_associatedFormControls;
1307 }; 1310 };
1308 1311
1309 inline void Document::notifyRemovePendingSheetIfNeeded() 1312 inline void Document::notifyRemovePendingSheetIfNeeded()
1310 { 1313 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 inline bool Node::isDocumentNode() const 1359 inline bool Node::isDocumentNode() const
1357 { 1360 {
1358 return this == documentInternal(); 1361 return this == documentInternal();
1359 } 1362 }
1360 1363
1361 Node* eventTargetNodeForDocument(Document*); 1364 Node* eventTargetNodeForDocument(Document*);
1362 1365
1363 } // namespace WebCore 1366 } // namespace WebCore
1364 1367
1365 #endif // Document_h 1368 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698