| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 m_updateCompositingLayersTimer.startOneShot(0); | 237 m_updateCompositingLayersTimer.startOneShot(0); |
| 238 } | 238 } |
| 239 | 239 |
| 240 void RenderLayerCompositor::updateCompositingLayersTimerFired(Timer<RenderLayerC
ompositor>*) | 240 void RenderLayerCompositor::updateCompositingLayersTimerFired(Timer<RenderLayerC
ompositor>*) |
| 241 { | 241 { |
| 242 updateCompositingLayers(); | 242 updateCompositingLayers(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 bool RenderLayerCompositor::hasAnyAdditionalCompositedLayers(const RenderLayer*
rootLayer) const | 245 bool RenderLayerCompositor::hasAnyAdditionalCompositedLayers(const RenderLayer*
rootLayer) const |
| 246 { | 246 { |
| 247 return m_compositedLayerCount > rootLayer->isComposited(); | 247 return m_compositedLayerCount > (rootLayer->isComposited() ? 1 : 0); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void RenderLayerCompositor::updateCompositingLayers(CompositingUpdateType update
Type, RenderLayer* updateRoot) | 250 void RenderLayerCompositor::updateCompositingLayers(CompositingUpdateType update
Type, RenderLayer* updateRoot) |
| 251 { | 251 { |
| 252 m_updateCompositingLayersTimer.stop(); | 252 m_updateCompositingLayersTimer.stop(); |
| 253 | 253 |
| 254 // Compositing layers will be updated in Document::implicitClose() if suppre
ssed here. | 254 // Compositing layers will be updated in Document::implicitClose() if suppre
ssed here. |
| 255 if (!m_renderView->document()->visualUpdatesAllowed()) | 255 if (!m_renderView->document()->visualUpdatesAllowed()) |
| 256 return; | 256 return; |
| 257 | 257 |
| (...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1958 if (!viewLayer->isComposited()) | 1958 if (!viewLayer->isComposited()) |
| 1959 return; | 1959 return; |
| 1960 | 1960 |
| 1961 if (GraphicsLayer* rootLayer = viewLayer->backing()->graphicsLayer()) | 1961 if (GraphicsLayer* rootLayer = viewLayer->backing()->graphicsLayer()) |
| 1962 rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants(); | 1962 rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants(); |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 } // namespace WebCore | 1965 } // namespace WebCore |
| 1966 | 1966 |
| 1967 #endif // USE(ACCELERATED_COMPOSITING) | 1967 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |