Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp |
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
index 44b0f6fb922301d8b3acf8bb2b6c61acc5621f25..298ac5238c1482fedddbf300f43f40baad3f551c 100644 |
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
@@ -350,8 +350,11 @@ bool CompositedLayerMapping::shouldClipCompositedBounds() const |
return false; |
} |
-void CompositedLayerMapping::updateCompositedBounds() |
+void CompositedLayerMapping::updateCompositedBounds(GraphicsLayerUpdater::UpdateType updateType) |
{ |
+ if (!m_needToUpdateGeometry && updateType != GraphicsLayerUpdater::ForceUpdate) |
+ return; |
+ |
// We need to know if we draw content in order to update our bounds (this has an effect |
// on whether or not descendands will paint into our backing). Update this value now. |
updateDrawsContent(); |
@@ -425,7 +428,7 @@ void CompositedLayerMapping::updateAfterLayout(UpdateAfterLayoutFlags flags) |
// |
// The solution is to update compositing children of this layer here, |
// via updateCompositingChildrenGeometry(). |
- updateCompositedBounds(); |
+ updateCompositedBounds(GraphicsLayerUpdater::ForceUpdate); |
layerCompositor->updateCompositingDescendantGeometry(m_owningLayer.stackingNode(), &m_owningLayer, flags & CompositingChildrenOnly); |
if (flags & IsUpdateRoot) { |