Index: Source/core/paint/LayerPainter.cpp |
diff --git a/Source/core/paint/LayerPainter.cpp b/Source/core/paint/LayerPainter.cpp |
index 69a440d5e87ea14b0c6a705be488ad0850c01c0e..bc2964844ef4fd325414a105179d5b12b887456b 100644 |
--- a/Source/core/paint/LayerPainter.cpp |
+++ b/Source/core/paint/LayerPainter.cpp |
@@ -822,11 +822,11 @@ void LayerPainter::paintChildClippingMaskForFragments(const LayerFragments& laye |
OwnPtr<ClipRecorder> clipRecorder; |
if (localPaintingInfo.clipToDirtyRect && needsToClip(localPaintingInfo, fragment.foregroundRect)) { |
clipRecorder = adoptPtr(new ClipRecorder(&m_renderLayer, context, DisplayItem::ClipLayerFragmentClippingMask, fragment.foregroundRect)); |
- applyRoundedRectClips(localPaintingInfo, context, fragment.foregroundRect, paintFlags, *clipRecorder, IncludeSelfForBorderRadius); // Child clipping mask painting will handle clipping to self. |
+ applyRoundedRectClips(localPaintingInfo, context, fragment.foregroundRect, paintFlags, *clipRecorder, IncludeSelfForBorderRadius); |
} |
// Paint the the clipped mask. |
- PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.backgroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); |
+ PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); |
chrishtr
2014/11/06 02:03:04
The rect passed here is supposed to be the bounds
mstensho (USE GERRIT)
2014/11/06 14:06:41
No, it's supposed to be the damage rectangle, isn'
chrishtr
2014/11/06 18:10:01
Bear with me, I am learning some of this code also
mstensho (USE GERRIT)
2014/11/06 19:06:08
No, it didn't fail prior to my changes. Like it sa
|
m_renderLayer.renderer()->paint(paintInfo, toPoint(fragment.layerBounds.location() - m_renderLayer.renderBoxLocation() + subPixelAccumulationIfNeeded(localPaintingInfo.subPixelAccumulation, m_renderLayer.compositingState()))); |
} |
} |