| 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 "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" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 !suppress_frame_requests); | 84 !suppress_frame_requests); |
| 85 suppress_frame_requests_workaround_for704763_only_ = suppress_frame_requests; | 85 suppress_frame_requests_workaround_for704763_only_ = suppress_frame_requests; |
| 86 } | 86 } |
| 87 | 87 |
| 88 DISABLE_CFI_PERF | 88 DISABLE_CFI_PERF |
| 89 void PageAnimator::ScheduleVisualUpdate(LocalFrame* frame) { | 89 void PageAnimator::ScheduleVisualUpdate(LocalFrame* frame) { |
| 90 if (servicing_animations_ || updating_layout_and_style_for_painting_ || | 90 if (servicing_animations_ || updating_layout_and_style_for_painting_ || |
| 91 suppress_frame_requests_workaround_for704763_only_) { | 91 suppress_frame_requests_workaround_for704763_only_) { |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 page_->GetChromeClient().ScheduleAnimation(frame->View()); | 94 page_->GetChromeClient().ScheduleAnimation(frame); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void PageAnimator::UpdateAllLifecyclePhases(LocalFrame& root_frame) { | 97 void PageAnimator::UpdateAllLifecyclePhases(LocalFrame& root_frame) { |
| 98 FrameView* view = root_frame.View(); | 98 FrameView* view = root_frame.View(); |
| 99 AutoReset<bool> servicing(&updating_layout_and_style_for_painting_, true); | 99 AutoReset<bool> servicing(&updating_layout_and_style_for_painting_, true); |
| 100 view->UpdateAllLifecyclePhases(); | 100 view->UpdateAllLifecyclePhases(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |