Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (289359 => 289360)
--- trunk/Source/WebCore/rendering/RenderLayer.cpp 2022-02-08 05:47:11 UTC (rev 289359)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp 2022-02-08 09:53:04 UTC (rev 289360)
@@ -3795,7 +3795,7 @@
// Paint the background.
// FIXME: Eventually we will collect the region from the fragment itself instead of just from the paint info.
PaintInfo paintInfo(context, fragment.backgroundRect.rect(), PaintPhase::BlockBackground, paintBehavior, subtreePaintRootForRenderer, nullptr, nullptr, &localPaintingInfo.rootLayer->renderer(), this);
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}
@@ -3890,7 +3890,7 @@
PaintInfo paintInfo(context, fragment.foregroundRect.rect(), phase, paintBehavior, subtreePaintRootForRenderer, nullptr, nullptr, &localPaintingInfo.rootLayer->renderer(), this, localPaintingInfo.requireSecurityOriginAccessForWidgets);
if (phase == PaintPhase::Foreground)
paintInfo.overlapTestRequests = localPaintingInfo.overlapTestRequests;
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}
@@ -3908,7 +3908,7 @@
EventRegionContextStateSaver eventRegionStateSaver(localPaintingInfo.eventRegionContext);
clipToRect(context, stateSaver, eventRegionStateSaver, localPaintingInfo, paintBehavior, fragment.backgroundRect, DoNotIncludeSelfForBorderRadius);
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}
@@ -3928,7 +3928,7 @@
// Paint the mask.
// FIXME: Eventually we will collect the region from the fragment itself instead of just from the paint info.
PaintInfo paintInfo(context, fragment.backgroundRect.rect(), PaintPhase::Mask, paintBehavior, subtreePaintRootForRenderer, nullptr, nullptr, &localPaintingInfo.rootLayer->renderer(), this);
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}
@@ -3946,7 +3946,7 @@
// Paint the clipped mask.
PaintInfo paintInfo(context, fragment.backgroundRect.rect(), PaintPhase::ClippingMask, paintBehavior, subtreePaintRootForRenderer, nullptr, nullptr, &localPaintingInfo.rootLayer->renderer(), this);
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}
@@ -3962,7 +3962,7 @@
EventRegionContextStateSaver eventRegionStateSaver(localPaintingInfo.eventRegionContext);
clipToRect(context, stateSaver, eventRegionStateSaver, localPaintingInfo, { }, fragment.backgroundRect);
- m_scrollableArea->paintOverflowControls(context, roundedIntPoint(toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset)), snappedIntRect(fragment.backgroundRect.rect()), true);
+ m_scrollableArea->paintOverflowControls(context, roundedIntPoint(paintOffsetForRenderer(fragment, localPaintingInfo)), snappedIntRect(fragment.backgroundRect.rect()), true);
}
}
@@ -3973,7 +3973,7 @@
for (const auto& fragment : layerFragments) {
PaintInfo paintInfo(context, fragment.foregroundRect.rect(), PaintPhase::EventRegion, paintBehavior);
paintInfo.eventRegionContext = localPaintingInfo.eventRegionContext;
- renderer().paint(paintInfo, toLayoutPoint(fragment.layerBounds.location() - rendererLocation() + localPaintingInfo.subpixelOffset));
+ renderer().paint(paintInfo, paintOffsetForRenderer(fragment, localPaintingInfo));
}
}