Index: Source/core/paint/LayerPainter.cpp |
diff --git a/Source/core/paint/LayerPainter.cpp b/Source/core/paint/LayerPainter.cpp |
index 93a30cb17c4a4d33ef142f59739d390bf17001e5..1cd19e3d7f7e713a97bd3af0f882a8f66b603468 100644 |
--- a/Source/core/paint/LayerPainter.cpp |
+++ b/Source/core/paint/LayerPainter.cpp |
@@ -688,7 +688,7 @@ void LayerPainter::paintBackgroundForFragments(const LayerFragments& layerFragme |
if (localPaintingInfo.clipToDirtyRect && needsToClip(localPaintingInfo, fragment.backgroundRect)) { |
clipRecorder = adoptPtr(new ClipRecorder(&m_renderLayer, context, DisplayItem::ClipLayerBackground, fragment.backgroundRect)); |
- applyRoundedRectClips(localPaintingInfo, context, fragment.backgroundRect, paintFlags, *clipRecorder); |
+ applyRoundedRectClips(localPaintingInfo, context, fragment.backgroundRect, paintFlags, *clipRecorder, DoNotIncludeSelfForBorderRadius); |
mstensho (USE GERRIT)
2014/11/03 13:28:08
There used to be a comment "Background painting wi
chrishtr
2014/11/03 17:36:21
Done.
|
} |
// Paint the background. |
@@ -873,7 +873,8 @@ void LayerPainter::paintTransformedLayerIntoFragments(GraphicsContext* context, |
OwnPtr<ClipRecorder> clipRecorder; |
if (needsToClip(paintingInfo, clipRect)) { |
clipRecorder = adoptPtr(new ClipRecorder(m_renderLayer.parent(), context, DisplayItem::ClipLayerFragmentParent, clipRect)); |
- LayerPainter(*m_renderLayer.parent()).applyRoundedRectClips(paintingInfo, context, clipRect, paintFlags, *clipRecorder, DoNotIncludeSelfForBorderRadius); // Child clipping mask painting will handle clipping to self. |
+ // FIXME: why should we have to deal with rounded rect clips here at all? |
+ LayerPainter(*m_renderLayer.parent()).applyRoundedRectClips(paintingInfo, context, clipRect, paintFlags, *clipRecorder); |
} |
paintLayerByApplyingTransform(context, paintingInfo, paintFlags, fragment.paginationOffset); |