OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 ensureRootLayer(); | 1138 ensureRootLayer(); |
1139 } | 1139 } |
1140 | 1140 |
1141 void PaintLayerCompositor::attachCompositorTimeline() | 1141 void PaintLayerCompositor::attachCompositorTimeline() |
1142 { | 1142 { |
1143 LocalFrame& frame = m_layoutView.frameView()->frame(); | 1143 LocalFrame& frame = m_layoutView.frameView()->frame(); |
1144 Page* page = frame.page(); | 1144 Page* page = frame.page(); |
1145 if (!page) | 1145 if (!page) |
1146 return; | 1146 return; |
1147 | 1147 |
1148 WebCompositorAnimationTimeline* compositorTimeline = frame.document() ? fram
e.document()->timeline().compositorTimeline() : nullptr; | 1148 CompositorAnimationTimeline* compositorTimeline = frame.document() ? frame.d
ocument()->timeline().compositorTimeline() : nullptr; |
1149 if (compositorTimeline) | 1149 if (compositorTimeline) |
1150 page->chromeClient().attachCompositorAnimationTimeline(compositorTimelin
e, &frame); | 1150 page->chromeClient().attachCompositorAnimationTimeline(compositorTimelin
e, &frame); |
1151 } | 1151 } |
1152 | 1152 |
1153 void PaintLayerCompositor::detachCompositorTimeline() | 1153 void PaintLayerCompositor::detachCompositorTimeline() |
1154 { | 1154 { |
1155 LocalFrame& frame = m_layoutView.frameView()->frame(); | 1155 LocalFrame& frame = m_layoutView.frameView()->frame(); |
1156 Page* page = frame.page(); | 1156 Page* page = frame.page(); |
1157 if (!page) | 1157 if (!page) |
1158 return; | 1158 return; |
1159 | 1159 |
1160 WebCompositorAnimationTimeline* compositorTimeline = frame.document() ? fram
e.document()->timeline().compositorTimeline() : nullptr; | 1160 CompositorAnimationTimeline* compositorTimeline = frame.document() ? frame.d
ocument()->timeline().compositorTimeline() : nullptr; |
1161 if (compositorTimeline) | 1161 if (compositorTimeline) |
1162 page->chromeClient().detachCompositorAnimationTimeline(compositorTimelin
e, &frame); | 1162 page->chromeClient().detachCompositorAnimationTimeline(compositorTimelin
e, &frame); |
1163 } | 1163 } |
1164 | 1164 |
1165 ScrollingCoordinator* PaintLayerCompositor::scrollingCoordinator() const | 1165 ScrollingCoordinator* PaintLayerCompositor::scrollingCoordinator() const |
1166 { | 1166 { |
1167 if (Page* page = this->page()) | 1167 if (Page* page = this->page()) |
1168 return page->scrollingCoordinator(); | 1168 return page->scrollingCoordinator(); |
1169 | 1169 |
1170 return nullptr; | 1170 return nullptr; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 } else if (graphicsLayer == m_scrollLayer.get()) { | 1205 } else if (graphicsLayer == m_scrollLayer.get()) { |
1206 name = "Frame Scrolling Layer"; | 1206 name = "Frame Scrolling Layer"; |
1207 } else { | 1207 } else { |
1208 ASSERT_NOT_REACHED(); | 1208 ASSERT_NOT_REACHED(); |
1209 } | 1209 } |
1210 | 1210 |
1211 return name; | 1211 return name; |
1212 } | 1212 } |
1213 | 1213 |
1214 } // namespace blink | 1214 } // namespace blink |
OLD | NEW |