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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 for (size_t i = 0; i < documents.size(); ++i) { | 64 for (size_t i = 0; i < documents.size(); ++i) { |
65 DocumentAnimations::updateAnimationTimingForAnimationFrame(*documents[i] , monotonicAnimationStartTime); | 65 DocumentAnimations::updateAnimationTimingForAnimationFrame(*documents[i] , monotonicAnimationStartTime); |
66 SVGDocumentExtensions::serviceOnAnimationFrame(*documents[i], monotonicA nimationStartTime); | 66 SVGDocumentExtensions::serviceOnAnimationFrame(*documents[i], monotonicA nimationStartTime); |
67 } | 67 } |
68 | 68 |
69 for (size_t i = 0; i < documents.size(); ++i) | 69 for (size_t i = 0; i < documents.size(); ++i) |
70 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); | 70 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); |
71 | |
72 #if ENABLE(OILPAN) | |
73 documents.clear(); | |
dstockwell
2015/03/10 22:38:31
This might be a reasonable optimiziation, but to a
haraken
2015/03/10 23:26:08
Yeah, that's something we're considering.
Option
| |
74 #endif | |
71 } | 75 } |
72 | 76 |
73 void PageAnimator::scheduleVisualUpdate(LocalFrame* frame) | 77 void PageAnimator::scheduleVisualUpdate(LocalFrame* frame) |
74 { | 78 { |
75 // FIXME: also include m_animationFramePending here. It is currently not the re due to crbug.com/353756. | 79 // FIXME: also include m_animationFramePending here. It is currently not the re due to crbug.com/353756. |
76 if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting) | 80 if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting) |
77 return; | 81 return; |
78 // FIXME: The frame-specific version of scheduleAnimation() is for | 82 // FIXME: The frame-specific version of scheduleAnimation() is for |
79 // out-of-process iframes. Passing 0 or the top-level frame to this method | 83 // out-of-process iframes. Passing 0 or the top-level frame to this method |
80 // causes scheduleAnimation() to be called for the page, which still uses | 84 // causes scheduleAnimation() to be called for the page, which still uses |
(...skipping 18 matching lines...) Expand all Loading... | |
99 // setFrameRect(). This will be a quick operation for most frames, but the | 103 // setFrameRect(). This will be a quick operation for most frames, but the |
100 // NativeWindowWidgets will update a proper clipping region. | 104 // NativeWindowWidgets will update a proper clipping region. |
101 view->setFrameRect(view->frameRect()); | 105 view->setFrameRect(view->frameRect()); |
102 | 106 |
103 // setFrameRect may have the side-effect of causing existing page layout to | 107 // setFrameRect may have the side-effect of causing existing page layout to |
104 // be invalidated, so layout needs to be called last. | 108 // be invalidated, so layout needs to be called last. |
105 view->updateLayoutAndStyleForPainting(); | 109 view->updateLayoutAndStyleForPainting(); |
106 } | 110 } |
107 | 111 |
108 } | 112 } |
OLD | NEW |