OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |