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

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

Issue 251183006: Web Animations: Timeline should not advance during task execution (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tick animation clock using approximate frame time. 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
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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 24 matching lines...) Expand all
35 #include "SVGNames.h" 35 #include "SVGNames.h"
36 #include "XMLNSNames.h" 36 #include "XMLNSNames.h"
37 #include "XMLNames.h" 37 #include "XMLNames.h"
38 #include "bindings/v8/CustomElementConstructorBuilder.h" 38 #include "bindings/v8/CustomElementConstructorBuilder.h"
39 #include "bindings/v8/Dictionary.h" 39 #include "bindings/v8/Dictionary.h"
40 #include "bindings/v8/ExceptionMessages.h" 40 #include "bindings/v8/ExceptionMessages.h"
41 #include "bindings/v8/ExceptionState.h" 41 #include "bindings/v8/ExceptionState.h"
42 #include "bindings/v8/ExceptionStatePlaceholder.h" 42 #include "bindings/v8/ExceptionStatePlaceholder.h"
43 #include "bindings/v8/ScriptController.h" 43 #include "bindings/v8/ScriptController.h"
44 #include "core/accessibility/AXObjectCache.h" 44 #include "core/accessibility/AXObjectCache.h"
45 #include "core/animation/AnimationClock.h"
46 #include "core/animation/DocumentAnimations.h" 45 #include "core/animation/DocumentAnimations.h"
47 #include "core/animation/DocumentTimeline.h" 46 #include "core/animation/DocumentTimeline.h"
48 #include "core/animation/css/TransitionTimeline.h" 47 #include "core/animation/css/TransitionTimeline.h"
49 #include "core/css/CSSFontSelector.h" 48 #include "core/css/CSSFontSelector.h"
50 #include "core/css/CSSStyleDeclaration.h" 49 #include "core/css/CSSStyleDeclaration.h"
51 #include "core/css/CSSStyleSheet.h" 50 #include "core/css/CSSStyleSheet.h"
52 #include "core/css/MediaQueryMatcher.h" 51 #include "core/css/MediaQueryMatcher.h"
53 #include "core/css/StylePropertySet.h" 52 #include "core/css/StylePropertySet.h"
54 #include "core/css/StyleSheetContents.h" 53 #include "core/css/StyleSheetContents.h"
55 #include "core/css/StyleSheetList.h" 54 #include "core/css/StyleSheetList.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 , m_directionSetOnDocumentElement(false) 468 , m_directionSetOnDocumentElement(false)
470 , m_writingModeSetOnDocumentElement(false) 469 , m_writingModeSetOnDocumentElement(false)
471 , m_writeRecursionIsTooDeep(false) 470 , m_writeRecursionIsTooDeep(false)
472 , m_writeRecursionDepth(0) 471 , m_writeRecursionDepth(0)
473 , m_taskRunner(MainThreadTaskRunner::create(this)) 472 , m_taskRunner(MainThreadTaskRunner::create(this))
474 , m_registrationContext(initializer.registrationContext(this)) 473 , m_registrationContext(initializer.registrationContext(this))
475 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi red) 474 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi red)
476 #ifndef NDEBUG 475 #ifndef NDEBUG
477 , m_didDispatchViewportPropertiesChanged(false) 476 , m_didDispatchViewportPropertiesChanged(false)
478 #endif 477 #endif
479 , m_animationClock(AnimationClock::create()) 478 , m_animationClock()
esprehn 2014/05/07 06:07:06 remove this line.
dstockwell 2014/05/07 06:51:38 Done.
480 , m_timeline(DocumentTimeline::create(this)) 479 , m_timeline(DocumentTimeline::create(this))
481 , m_transitionTimeline(TransitionTimeline::create(this)) 480 , m_transitionTimeline(TransitionTimeline::create(this))
482 , m_templateDocumentHost(nullptr) 481 , m_templateDocumentHost(nullptr)
483 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT imerFired) 482 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT imerFired)
484 , m_hasViewportUnits(false) 483 , m_hasViewportUnits(false)
485 , m_styleRecalcElementCounter(0) 484 , m_styleRecalcElementCounter(0)
486 { 485 {
487 setClient(this); 486 setClient(this);
488 ScriptWrappable::init(this); 487 ScriptWrappable::init(this);
489 488
(...skipping 5212 matching lines...) Expand 10 before | Expand all | Expand 10 after
5702 visitor->trace(m_contextFeatures); 5701 visitor->trace(m_contextFeatures);
5703 visitor->trace(m_userActionElements); 5702 visitor->trace(m_userActionElements);
5704 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5703 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5705 DocumentSupplementable::trace(visitor); 5704 DocumentSupplementable::trace(visitor);
5706 TreeScope::trace(visitor); 5705 TreeScope::trace(visitor);
5707 ContainerNode::trace(visitor); 5706 ContainerNode::trace(visitor);
5708 ExecutionContext::trace(visitor); 5707 ExecutionContext::trace(visitor);
5709 } 5708 }
5710 5709
5711 } // namespace WebCore 5710 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698