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

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

Issue 1198863006: First version of PerformanceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 3 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 | « Source/core/core.gypi ('k') | Source/core/timing/Performance.idl » ('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, 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #include "core/page/ChromeClient.h" 184 #include "core/page/ChromeClient.h"
185 #include "core/page/EventWithHitTestResults.h" 185 #include "core/page/EventWithHitTestResults.h"
186 #include "core/page/FocusController.h" 186 #include "core/page/FocusController.h"
187 #include "core/page/FrameTree.h" 187 #include "core/page/FrameTree.h"
188 #include "core/page/Page.h" 188 #include "core/page/Page.h"
189 #include "core/page/PointerLockController.h" 189 #include "core/page/PointerLockController.h"
190 #include "core/page/scrolling/ScrollingCoordinator.h" 190 #include "core/page/scrolling/ScrollingCoordinator.h"
191 #include "core/svg/SVGDocumentExtensions.h" 191 #include "core/svg/SVGDocumentExtensions.h"
192 #include "core/svg/SVGTitleElement.h" 192 #include "core/svg/SVGTitleElement.h"
193 #include "core/svg/SVGUseElement.h" 193 #include "core/svg/SVGUseElement.h"
194 #include "core/timing/DOMWindowPerformance.h"
195 #include "core/timing/Performance.h"
194 #include "core/workers/SharedWorkerRepositoryClient.h" 196 #include "core/workers/SharedWorkerRepositoryClient.h"
195 #include "core/xml/parser/XMLDocumentParser.h" 197 #include "core/xml/parser/XMLDocumentParser.h"
196 #include "platform/DateComponents.h" 198 #include "platform/DateComponents.h"
197 #include "platform/EventDispatchForbiddenScope.h" 199 #include "platform/EventDispatchForbiddenScope.h"
198 #include "platform/Language.h" 200 #include "platform/Language.h"
199 #include "platform/LengthFunctions.h" 201 #include "platform/LengthFunctions.h"
200 #include "platform/Logging.h" 202 #include "platform/Logging.h"
201 #include "platform/PluginScriptForbiddenScope.h" 203 #include "platform/PluginScriptForbiddenScope.h"
202 #include "platform/RuntimeEnabledFeatures.h" 204 #include "platform/RuntimeEnabledFeatures.h"
203 #include "platform/ScriptForbiddenScope.h" 205 #include "platform/ScriptForbiddenScope.h"
(...skipping 4756 matching lines...) Expand 10 before | Expand all | Expand 10 after
4960 void Document::tasksWereResumed() 4962 void Document::tasksWereResumed()
4961 { 4963 {
4962 scriptRunner()->resume(); 4964 scriptRunner()->resume();
4963 4965
4964 if (m_parser) 4966 if (m_parser)
4965 m_parser->resumeScheduledTasks(); 4967 m_parser->resumeScheduledTasks();
4966 if (m_scriptedAnimationController) 4968 if (m_scriptedAnimationController)
4967 m_scriptedAnimationController->resume(); 4969 m_scriptedAnimationController->resume();
4968 4970
4969 MutationObserver::resumeSuspendedObservers(); 4971 MutationObserver::resumeSuspendedObservers();
4972 if (m_domWindow)
4973 DOMWindowPerformance::performance(*m_domWindow)->resumeSuspendedObserver s();
4970 } 4974 }
4971 4975
4972 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension() 4976 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension()
4973 // should be moved to LocalDOMWindow once it inherits ExecutionContext 4977 // should be moved to LocalDOMWindow once it inherits ExecutionContext
4974 void Document::suspendScheduledTasks() 4978 void Document::suspendScheduledTasks()
4975 { 4979 {
4976 ExecutionContext::suspendScheduledTasks(); 4980 ExecutionContext::suspendScheduledTasks();
4977 m_taskRunner->suspend(); 4981 m_taskRunner->suspend();
4978 } 4982 }
4979 4983
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 #ifndef NDEBUG 5728 #ifndef NDEBUG
5725 using namespace blink; 5729 using namespace blink;
5726 void showLiveDocumentInstances() 5730 void showLiveDocumentInstances()
5727 { 5731 {
5728 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 5732 Document::WeakDocumentSet& set = Document::liveDocumentSet();
5729 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5733 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5730 for (Document* document : set) 5734 for (Document* document : set)
5731 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5735 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5732 } 5736 }
5733 #endif 5737 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/timing/Performance.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698