| 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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 } | 1413 } |
| 1414 return true; | 1414 return true; |
| 1415 } | 1415 } |
| 1416 | 1416 |
| 1417 // Recurs down the RenderLayer tree until its finds the compositing descendants
of compositingAncestor and updates their geometry. | 1417 // Recurs down the RenderLayer tree until its finds the compositing descendants
of compositingAncestor and updates their geometry. |
| 1418 void RenderLayerCompositor::updateCompositingDescendantGeometry(RenderLayerStack
ingNode* compositingAncestor, RenderLayer* layer, bool compositedChildrenOnly) | 1418 void RenderLayerCompositor::updateCompositingDescendantGeometry(RenderLayerStack
ingNode* compositingAncestor, RenderLayer* layer, bool compositedChildrenOnly) |
| 1419 { | 1419 { |
| 1420 if (layer->stackingNode() != compositingAncestor) { | 1420 if (layer->stackingNode() != compositingAncestor) { |
| 1421 if (layer->hasCompositedLayerMapping()) { | 1421 if (layer->hasCompositedLayerMapping()) { |
| 1422 CompositedLayerMappingPtr compositedLayerMapping = layer->composited
LayerMapping(); | 1422 CompositedLayerMappingPtr compositedLayerMapping = layer->composited
LayerMapping(); |
| 1423 compositedLayerMapping->updateCompositedBounds(); | 1423 compositedLayerMapping->updateCompositedBounds(GraphicsLayerUpdater:
:ForceUpdate); |
| 1424 | 1424 |
| 1425 if (layer->reflectionInfo()) { | 1425 if (layer->reflectionInfo()) { |
| 1426 RenderLayer* reflectionLayer = layer->reflectionInfo()->reflecti
onLayer(); | 1426 RenderLayer* reflectionLayer = layer->reflectionInfo()->reflecti
onLayer(); |
| 1427 if (reflectionLayer->hasCompositedLayerMapping()) | 1427 if (reflectionLayer->hasCompositedLayerMapping()) |
| 1428 reflectionLayer->compositedLayerMapping()->updateCompositedB
ounds(); | 1428 reflectionLayer->compositedLayerMapping()->updateCompositedB
ounds(GraphicsLayerUpdater::ForceUpdate); |
| 1429 } | 1429 } |
| 1430 | 1430 |
| 1431 compositedLayerMapping->updateGraphicsLayerGeometry(GraphicsLayerUpd
ater::ForceUpdate); | 1431 compositedLayerMapping->updateGraphicsLayerGeometry(GraphicsLayerUpd
ater::ForceUpdate); |
| 1432 if (compositedChildrenOnly) | 1432 if (compositedChildrenOnly) |
| 1433 return; | 1433 return; |
| 1434 } | 1434 } |
| 1435 } | 1435 } |
| 1436 | 1436 |
| 1437 if (layer->reflectionInfo()) | 1437 if (layer->reflectionInfo()) |
| 1438 updateCompositingDescendantGeometry(compositingAncestor, layer->reflecti
onInfo()->reflectionLayer(), compositedChildrenOnly); | 1438 updateCompositingDescendantGeometry(compositingAncestor, layer->reflecti
onInfo()->reflectionLayer(), compositedChildrenOnly); |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 } else if (graphicsLayer == m_scrollLayer.get()) { | 2260 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 2261 name = "LocalFrame Scrolling Layer"; | 2261 name = "LocalFrame Scrolling Layer"; |
| 2262 } else { | 2262 } else { |
| 2263 ASSERT_NOT_REACHED(); | 2263 ASSERT_NOT_REACHED(); |
| 2264 } | 2264 } |
| 2265 | 2265 |
| 2266 return name; | 2266 return name; |
| 2267 } | 2267 } |
| 2268 | 2268 |
| 2269 } // namespace WebCore | 2269 } // namespace WebCore |
| OLD | NEW |