Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp |
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
index d5637522c90fb7713d9fcaebb75fd8f0977c2077..5f209729e89ae19650bdf898a8e1a81c381c6bc2 100644 |
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
@@ -1919,11 +1919,14 @@ struct SetContentsNeedsDisplayInRectFunctor { |
}; |
// r is in the coordinate space of the layer's render object |
-void CompositedLayerMapping::setContentsNeedDisplayInRect(const IntRect& r) |
+void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r) |
{ |
// FIXME: need to split out repaints for the background. |
ASSERT(!paintsIntoCompositedAncestor()); |
- SetContentsNeedsDisplayInRectFunctor functor = { r }; |
+ |
+ SetContentsNeedsDisplayInRectFunctor functor = { |
+ pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size()) |
+ }; |
ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); |
} |