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

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

Issue 2616593002: Move core/animation timers to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h ('k') | no next file » | 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, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 &Document::pluginLoadingTimerFired), 475 &Document::pluginLoadingTimerFired),
476 m_documentTiming(*this), 476 m_documentTiming(*this),
477 m_writeRecursionIsTooDeep(false), 477 m_writeRecursionIsTooDeep(false),
478 m_writeRecursionDepth(0), 478 m_writeRecursionDepth(0),
479 m_registrationContext(initializer.registrationContext(this)), 479 m_registrationContext(initializer.registrationContext(this)),
480 m_elementDataCacheClearTimer( 480 m_elementDataCacheClearTimer(
481 TaskRunnerHelper::get(TaskType::UnspecedTimer, this), 481 TaskRunnerHelper::get(TaskType::UnspecedTimer, this),
482 this, 482 this,
483 &Document::elementDataCacheClearTimerFired), 483 &Document::elementDataCacheClearTimerFired),
484 m_timeline(DocumentTimeline::create(this)), 484 m_timeline(DocumentTimeline::create(this)),
485 m_compositorPendingAnimations(new CompositorPendingAnimations()), 485 m_compositorPendingAnimations(new CompositorPendingAnimations(*this)),
486 m_templateDocumentHost(nullptr), 486 m_templateDocumentHost(nullptr),
487 m_didAssociateFormControlsTimer( 487 m_didAssociateFormControlsTimer(
488 TaskRunnerHelper::get(TaskType::UnspecedLoading, this), 488 TaskRunnerHelper::get(TaskType::UnspecedLoading, this),
489 this, 489 this,
490 &Document::didAssociateFormControlsTimerFired), 490 &Document::didAssociateFormControlsTimerFired),
491 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), 491 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()),
492 m_hasViewportUnits(false), 492 m_hasViewportUnits(false),
493 m_parserSyncPolicy(AllowAsynchronousParsing), 493 m_parserSyncPolicy(AllowAsynchronousParsing),
494 m_nodeCount(0), 494 m_nodeCount(0),
495 m_wouldLoadReason(Created), 495 m_wouldLoadReason(Created),
(...skipping 6088 matching lines...) Expand 10 before | Expand all | Expand 10 after
6584 } 6584 }
6585 6585
6586 void showLiveDocumentInstances() { 6586 void showLiveDocumentInstances() {
6587 WeakDocumentSet& set = liveDocumentSet(); 6587 WeakDocumentSet& set = liveDocumentSet();
6588 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6588 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6589 for (Document* document : set) 6589 for (Document* document : set)
6590 fprintf(stderr, "- Document %p URL: %s\n", document, 6590 fprintf(stderr, "- Document %p URL: %s\n", document,
6591 document->url().getString().utf8().data()); 6591 document->url().getString().utf8().data());
6592 } 6592 }
6593 #endif 6593 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698