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

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

Issue 2430513003: Move some Document timers to frame-specific task runners. (Closed)
Patch Set: Remove FrameTimer Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 m_useSecureKeyboardEntryWhenActive(false), 462 m_useSecureKeyboardEntryWhenActive(false),
463 m_documentClasses(documentClasses), 463 m_documentClasses(documentClasses),
464 m_isViewSource(false), 464 m_isViewSource(false),
465 m_sawElementsInKnownNamespaces(false), 465 m_sawElementsInKnownNamespaces(false),
466 m_isSrcdocDocument(false), 466 m_isSrcdocDocument(false),
467 m_isMobileDocument(false), 467 m_isMobileDocument(false),
468 m_layoutView(0), 468 m_layoutView(0),
469 m_contextDocument(initializer.contextDocument()), 469 m_contextDocument(initializer.contextDocument()),
470 m_hasFullscreenSupplement(false), 470 m_hasFullscreenSupplement(false),
471 m_loadEventDelayCount(0), 471 m_loadEventDelayCount(0),
472 m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired), 472 m_loadEventDelayTimer(TaskRunnerHelper::get(TaskType::Networking, this),
473 m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired), 473 this,
474 &Document::loadEventDelayTimerFired),
475 m_pluginLoadingTimer(TaskRunnerHelper::get(TaskType::Internal, this),
476 this,
477 &Document::pluginLoadingTimerFired),
474 m_documentTiming(*this), 478 m_documentTiming(*this),
475 m_writeRecursionIsTooDeep(false), 479 m_writeRecursionIsTooDeep(false),
476 m_writeRecursionDepth(0), 480 m_writeRecursionDepth(0),
477 m_taskRunner(MainThreadTaskRunner::create(this)), 481 m_taskRunner(MainThreadTaskRunner::create(this)),
478 m_registrationContext(initializer.registrationContext(this)), 482 m_registrationContext(initializer.registrationContext(this)),
479 m_elementDataCacheClearTimer(this, 483 m_elementDataCacheClearTimer(this,
480 &Document::elementDataCacheClearTimerFired), 484 &Document::elementDataCacheClearTimerFired),
481 m_timeline(DocumentTimeline::create(this)), 485 m_timeline(DocumentTimeline::create(this)),
482 m_compositorPendingAnimations(new CompositorPendingAnimations()), 486 m_compositorPendingAnimations(new CompositorPendingAnimations()),
483 m_templateDocumentHost(nullptr), 487 m_templateDocumentHost(nullptr),
(...skipping 5909 matching lines...) Expand 10 before | Expand all | Expand 10 after
6393 } 6397 }
6394 6398
6395 void showLiveDocumentInstances() { 6399 void showLiveDocumentInstances() {
6396 WeakDocumentSet& set = liveDocumentSet(); 6400 WeakDocumentSet& set = liveDocumentSet();
6397 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6401 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6398 for (Document* document : set) 6402 for (Document* document : set)
6399 fprintf(stderr, "- Document %p URL: %s\n", document, 6403 fprintf(stderr, "- Document %p URL: %s\n", document,
6400 document->url().getString().utf8().data()); 6404 document->url().getString().utf8().data());
6401 } 6405 }
6402 #endif 6406 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698