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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 1370193002: scheduler: Disable per-frame timer scheduling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable the same override in LocalDOMWindow too. Created 5 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // (see DOMTimer comment for more.) 142 // (see DOMTimer comment for more.)
143 EAGERLY_FINALIZE(); 143 EAGERLY_FINALIZE();
144 DEFINE_INLINE_VIRTUAL_TRACE() 144 DEFINE_INLINE_VIRTUAL_TRACE()
145 { 145 {
146 visitor->trace(m_event); 146 visitor->trace(m_event);
147 visitor->trace(m_window); 147 visitor->trace(m_window);
148 visitor->trace(m_stackTrace); 148 visitor->trace(m_stackTrace);
149 SuspendableTimer::trace(visitor); 149 SuspendableTimer::trace(visitor);
150 } 150 }
151 151
152 WebTaskRunner* timerTaskRunner() override
153 {
154 return m_window->frame()->frameScheduler()->timerTaskRunner();
155 }
156
157 private: 152 private:
158 void fired() override 153 void fired() override
159 { 154 {
160 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceA syncOperationCompletedCallbackStarting(executionContext(), m_asyncOperationId); 155 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceA syncOperationCompletedCallbackStarting(executionContext(), m_asyncOperationId);
161 // Prevent calls to stop triggered from the event handler to 156 // Prevent calls to stop triggered from the event handler to
162 // kill this object. 157 // kill this object.
163 m_preventDestruction = true; 158 m_preventDestruction = true;
164 m_window->postMessageTimerFired(this); 159 m_window->postMessageTimerFired(this);
165 // Will destroy this object 160 // Will destroy this object
166 m_window->removePostMessageTimer(this); 161 m_window->removePostMessageTimer(this);
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 DOMWindow::trace(visitor); 1510 DOMWindow::trace(visitor);
1516 DOMWindowLifecycleNotifier::trace(visitor); 1511 DOMWindowLifecycleNotifier::trace(visitor);
1517 } 1512 }
1518 1513
1519 LocalFrame* LocalDOMWindow::frame() const 1514 LocalFrame* LocalDOMWindow::frame() const
1520 { 1515 {
1521 return m_frameObserver->frame(); 1516 return m_frameObserver->frame();
1522 } 1517 }
1523 1518
1524 } // namespace blink 1519 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698