| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 | 88 |
| 89 void PageAnimator::updateLayoutAndStyleForPainting(LocalFrame* rootFrame) | 89 void PageAnimator::updateLayoutAndStyleForPainting(LocalFrame* rootFrame) |
| 90 { | 90 { |
| 91 RefPtrWillBeRawPtr<FrameView> view = rootFrame->view(); | 91 RefPtrWillBeRawPtr<FrameView> view = rootFrame->view(); |
| 92 | 92 |
| 93 TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true); | 93 TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true); |
| 94 | 94 |
| 95 // setFrameRect may have the side-effect of causing existing page layout to | 95 // setFrameRect may have the side-effect of causing existing page layout to |
| 96 // be invalidated, so layout needs to be called last. | 96 // be invalidated, so layout needs to be called last. |
| 97 view->updateAllLifecyclePhases(); | 97 view->updateLayoutAndStyleForPainting(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } | 100 } |
| OLD | NEW |