src/blinkit/blink/renderer/core/layout/compositing/CompositedLayerMapping.cpp
void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r, PaintInvalidationReason invalidationReason)
{
    // TODO(wangxianzhu): Enable the following assert after paint invalidation for spv2 is ready.
    // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());

    SetContentsNeedsDisplayInRectFunctor functor = {
        enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size())),
        invalidationReason
    };
    ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
}
// r is in the coordinate space of the layer's layout object
r is in the coordinate space of the layer's layout object
r is in the coordinate space of the layer ' s layout object
void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r, PaintInvalidationReason invalidationReason)
{
    SetContentsNeedsDisplayInRectFunctor functor = {
        enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size())),
        invalidationReason
    };
    ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
}
void CompositedLayerMapping :: setContentsNeedDisplayInRect ( const LayoutRect & r , PaintInvalidationReason invalidationReason ) { SetContentsNeedsDisplayInRectFunctor functor = { enclosingIntRect ( LayoutRect ( r . location ( ) + m_owningLayer . subpixelAccumulation ( ) , r . size ( ) ) ) , invalidationReason } ; ApplyToGraphicsLayers ( this , functor , ApplyToContentLayers ) ; }
r is in the coordinate space of the layer's layout object
r is in the coordinate space of the layer ' s layout object
// TODO(wangxianzhu): Enable the following assert after paint invalidation for spv2 is ready. // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());