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

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: remove Inspector calls and update LayoutTest. 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 #include "core/page/ChromeClient.h" 183 #include "core/page/ChromeClient.h"
184 #include "core/page/EventWithHitTestResults.h" 184 #include "core/page/EventWithHitTestResults.h"
185 #include "core/page/FocusController.h" 185 #include "core/page/FocusController.h"
186 #include "core/page/FrameTree.h" 186 #include "core/page/FrameTree.h"
187 #include "core/page/Page.h" 187 #include "core/page/Page.h"
188 #include "core/page/PointerLockController.h" 188 #include "core/page/PointerLockController.h"
189 #include "core/page/scrolling/ScrollingCoordinator.h" 189 #include "core/page/scrolling/ScrollingCoordinator.h"
190 #include "core/svg/SVGDocumentExtensions.h" 190 #include "core/svg/SVGDocumentExtensions.h"
191 #include "core/svg/SVGTitleElement.h" 191 #include "core/svg/SVGTitleElement.h"
192 #include "core/svg/SVGUseElement.h" 192 #include "core/svg/SVGUseElement.h"
193 #include "core/timing/DOMWindowPerformance.h"
194 #include "core/timing/Performance.h"
193 #include "core/workers/SharedWorkerRepositoryClient.h" 195 #include "core/workers/SharedWorkerRepositoryClient.h"
194 #include "core/xml/parser/XMLDocumentParser.h" 196 #include "core/xml/parser/XMLDocumentParser.h"
195 #include "platform/DateComponents.h" 197 #include "platform/DateComponents.h"
196 #include "platform/EventDispatchForbiddenScope.h" 198 #include "platform/EventDispatchForbiddenScope.h"
197 #include "platform/Language.h" 199 #include "platform/Language.h"
198 #include "platform/LengthFunctions.h" 200 #include "platform/LengthFunctions.h"
199 #include "platform/Logging.h" 201 #include "platform/Logging.h"
200 #include "platform/PluginScriptForbiddenScope.h" 202 #include "platform/PluginScriptForbiddenScope.h"
201 #include "platform/RuntimeEnabledFeatures.h" 203 #include "platform/RuntimeEnabledFeatures.h"
202 #include "platform/ScriptForbiddenScope.h" 204 #include "platform/ScriptForbiddenScope.h"
(...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4950 void Document::tasksWereResumed() 4952 void Document::tasksWereResumed()
4951 { 4953 {
4952 scriptRunner()->resume(); 4954 scriptRunner()->resume();
4953 4955
4954 if (m_parser) 4956 if (m_parser)
4955 m_parser->resumeScheduledTasks(); 4957 m_parser->resumeScheduledTasks();
4956 if (m_scriptedAnimationController) 4958 if (m_scriptedAnimationController)
4957 m_scriptedAnimationController->resume(); 4959 m_scriptedAnimationController->resume();
4958 4960
4959 MutationObserver::resumeSuspendedObservers(); 4961 MutationObserver::resumeSuspendedObservers();
4962 if (m_domWindow)
4963 DOMWindowPerformance::performance(*m_domWindow)->resumeSuspendedObserver s();
4960 } 4964 }
4961 4965
4962 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension() 4966 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension()
4963 // should be moved to LocalDOMWindow once it inherits ExecutionContext 4967 // should be moved to LocalDOMWindow once it inherits ExecutionContext
4964 void Document::suspendScheduledTasks() 4968 void Document::suspendScheduledTasks()
4965 { 4969 {
4966 ExecutionContext::suspendScheduledTasks(); 4970 ExecutionContext::suspendScheduledTasks();
4967 m_taskRunner->suspend(); 4971 m_taskRunner->suspend();
4968 } 4972 }
4969 4973
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
5704 #ifndef NDEBUG 5708 #ifndef NDEBUG
5705 using namespace blink; 5709 using namespace blink;
5706 void showLiveDocumentInstances() 5710 void showLiveDocumentInstances()
5707 { 5711 {
5708 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 5712 Document::WeakDocumentSet& set = Document::liveDocumentSet();
5709 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5713 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5710 for (Document* document : set) 5714 for (Document* document : set)
5711 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5715 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5712 } 5716 }
5713 #endif 5717 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698