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

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

Issue 955583002: InlinedVisitor: Migrate page to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/PageAnimator.h ('k') | Source/core/page/PagePopupController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 #include "core/page/PageAnimator.h" 6 #include "core/page/PageAnimator.h"
7 7
8 #include "core/animation/DocumentAnimations.h" 8 #include "core/animation/DocumentAnimations.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 11 matching lines...) Expand all
22 , m_servicingAnimations(false) 22 , m_servicingAnimations(false)
23 , m_updatingLayoutAndStyleForPainting(false) 23 , m_updatingLayoutAndStyleForPainting(false)
24 { 24 {
25 } 25 }
26 26
27 PassRefPtrWillBeRawPtr<PageAnimator> PageAnimator::create(Page& page) 27 PassRefPtrWillBeRawPtr<PageAnimator> PageAnimator::create(Page& page)
28 { 28 {
29 return adoptRefWillBeNoop(new PageAnimator(page)); 29 return adoptRefWillBeNoop(new PageAnimator(page));
30 } 30 }
31 31
32 void PageAnimator::trace(Visitor* visitor) 32 DEFINE_TRACE(PageAnimator)
33 { 33 {
34 visitor->trace(m_page); 34 visitor->trace(m_page);
35 } 35 }
36 36
37 void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime) 37 void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
38 { 38 {
39 RefPtrWillBeRawPtr<PageAnimator> protector(this); 39 RefPtrWillBeRawPtr<PageAnimator> protector(this);
40 m_animationFramePending = false; 40 m_animationFramePending = false;
41 TemporaryChange<bool> servicing(m_servicingAnimations, true); 41 TemporaryChange<bool> servicing(m_servicingAnimations, true);
42 42
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // setFrameRect(). This will be a quick operation for most frames, but the 99 // setFrameRect(). This will be a quick operation for most frames, but the
100 // NativeWindowWidgets will update a proper clipping region. 100 // NativeWindowWidgets will update a proper clipping region.
101 view->setFrameRect(view->frameRect()); 101 view->setFrameRect(view->frameRect());
102 102
103 // setFrameRect may have the side-effect of causing existing page layout to 103 // setFrameRect may have the side-effect of causing existing page layout to
104 // be invalidated, so layout needs to be called last. 104 // be invalidated, so layout needs to be called last.
105 view->updateLayoutAndStyleForPainting(); 105 view->updateLayoutAndStyleForPainting();
106 } 106 }
107 107
108 } 108 }
OLDNEW
« no previous file with comments | « Source/core/page/PageAnimator.h ('k') | Source/core/page/PagePopupController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698