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

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: Created 4 years, 2 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
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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 m_useSecureKeyboardEntryWhenActive(false), 469 m_useSecureKeyboardEntryWhenActive(false),
470 m_documentClasses(documentClasses), 470 m_documentClasses(documentClasses),
471 m_isViewSource(false), 471 m_isViewSource(false),
472 m_sawElementsInKnownNamespaces(false), 472 m_sawElementsInKnownNamespaces(false),
473 m_isSrcdocDocument(false), 473 m_isSrcdocDocument(false),
474 m_isMobileDocument(false), 474 m_isMobileDocument(false),
475 m_layoutView(0), 475 m_layoutView(0),
476 m_contextDocument(initializer.contextDocument()), 476 m_contextDocument(initializer.contextDocument()),
477 m_hasFullscreenSupplement(false), 477 m_hasFullscreenSupplement(false),
478 m_loadEventDelayCount(0), 478 m_loadEventDelayCount(0),
479 m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired), 479 m_loadEventDelayTimer(TaskType::Networking,
480 m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired), 480 this,
dcheng 2016/10/19 00:08:39 This look a bit weird... but I don't have better i
481 this,
482 &Document::loadEventDelayTimerFired),
483 m_pluginLoadingTimer(TaskType::Embed,
dcheng 2016/10/19 00:08:38 I'm not really sure if this is the right task queu
haraken 2016/10/19 03:07:47 Maybe this is not a speced task? If so we could us
dcheng 2016/10/19 03:47:44 Done.
484 this,
485 this,
486 &Document::pluginLoadingTimerFired),
481 m_documentTiming(*this), 487 m_documentTiming(*this),
482 m_writeRecursionIsTooDeep(false), 488 m_writeRecursionIsTooDeep(false),
483 m_writeRecursionDepth(0), 489 m_writeRecursionDepth(0),
484 m_taskRunner(MainThreadTaskRunner::create(this)), 490 m_taskRunner(MainThreadTaskRunner::create(this)),
485 m_registrationContext(initializer.registrationContext(this)), 491 m_registrationContext(initializer.registrationContext(this)),
486 m_elementDataCacheClearTimer(this, 492 m_elementDataCacheClearTimer(this,
487 &Document::elementDataCacheClearTimerFired), 493 &Document::elementDataCacheClearTimerFired),
488 m_timeline(DocumentTimeline::create(this)), 494 m_timeline(DocumentTimeline::create(this)),
489 m_compositorPendingAnimations(new CompositorPendingAnimations()), 495 m_compositorPendingAnimations(new CompositorPendingAnimations()),
490 m_templateDocumentHost(nullptr), 496 m_templateDocumentHost(nullptr),
(...skipping 5906 matching lines...) Expand 10 before | Expand all | Expand 10 after
6397 } 6403 }
6398 6404
6399 void showLiveDocumentInstances() { 6405 void showLiveDocumentInstances() {
6400 WeakDocumentSet& set = liveDocumentSet(); 6406 WeakDocumentSet& set = liveDocumentSet();
6401 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6407 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6402 for (Document* document : set) 6408 for (Document* document : set)
6403 fprintf(stderr, "- Document %p URL: %s\n", document, 6409 fprintf(stderr, "- Document %p URL: %s\n", document,
6404 document->url().getString().utf8().data()); 6410 document->url().getString().utf8().data());
6405 } 6411 }
6406 #endif 6412 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698