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

Side by Side Diff: third_party/WebKit/Source/core/page/PageAnimator.cpp

Issue 2391383002: Moving platform tracing things into platform/tracing. (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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/page/PageAnimator.h" 5 #include "core/page/PageAnimator.h"
6 6
7 #include "core/animation/DocumentAnimations.h" 7 #include "core/animation/DocumentAnimations.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/page/ChromeClient.h" 10 #include "core/page/ChromeClient.h"
11 #include "core/page/Page.h" 11 #include "core/page/Page.h"
12 #include "core/svg/SVGDocumentExtensions.h" 12 #include "core/svg/SVGDocumentExtensions.h"
13 #include "platform/TraceEvent.h" 13 #include "platform/tracing/TraceEvent.h"
14 #include "wtf/AutoReset.h" 14 #include "wtf/AutoReset.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 PageAnimator::PageAnimator(Page& page) 18 PageAnimator::PageAnimator(Page& page)
19 : m_page(page), 19 : m_page(page),
20 m_servicingAnimations(false), 20 m_servicingAnimations(false),
21 m_updatingLayoutAndStyleForPainting(false) {} 21 m_updatingLayoutAndStyleForPainting(false) {}
22 22
23 PageAnimator* PageAnimator::create(Page& page) { 23 PageAnimator* PageAnimator::create(Page& page) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 m_page->chromeClient().scheduleAnimation(frame->view()); 79 m_page->chromeClient().scheduleAnimation(frame->view());
80 } 80 }
81 81
82 void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame) { 82 void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame) {
83 FrameView* view = rootFrame.view(); 83 FrameView* view = rootFrame.view();
84 AutoReset<bool> servicing(&m_updatingLayoutAndStyleForPainting, true); 84 AutoReset<bool> servicing(&m_updatingLayoutAndStyleForPainting, true);
85 view->updateAllLifecyclePhases(); 85 view->updateAllLifecyclePhases();
86 } 86 }
87 87
88 } // namespace blink 88 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698