diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderReplica.cpp')
| -rw-r--r-- | Source/WebCore/rendering/RenderReplica.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/rendering/RenderReplica.cpp b/Source/WebCore/rendering/RenderReplica.cpp index ad3acf0ba..c10bdcaf3 100644 --- a/Source/WebCore/rendering/RenderReplica.cpp +++ b/Source/WebCore/rendering/RenderReplica.cpp @@ -68,14 +68,14 @@ void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) LayoutPoint adjustedPaintOffset = paintOffset + location(); - if (paintInfo.phase == PaintPhaseForeground) + if (paintInfo.phase == PaintPhaseForeground) { // Turn around and paint the parent layer. Use temporary clipRects, so that the layer doesn't end up caching clip rects // computing using the wrong rootLayer - layer()->parent()->paintLayer(layer()->transform() ? layer()->parent() : layer()->enclosingTransformedAncestor(), - paintInfo.context, paintInfo.rect, LayoutSize(), - PaintBehaviorNormal, 0, paintInfo.renderRegion, 0, - RenderLayer::PaintLayerHaveTransparency | RenderLayer::PaintLayerAppliedTransform | RenderLayer::PaintLayerTemporaryClipRects | RenderLayer::PaintLayerPaintingReflection); - else if (paintInfo.phase == PaintPhaseMask) + RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent() : layer()->enclosingTransformedAncestor(); + RenderLayer::LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintBehaviorNormal, LayoutSize(), 0, paintInfo.renderRegion); + RenderLayer::PaintLayerFlags flags = RenderLayer::PaintLayerHaveTransparency | RenderLayer::PaintLayerAppliedTransform | RenderLayer::PaintLayerTemporaryClipRects | RenderLayer::PaintLayerPaintingReflection; + layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); + } else if (paintInfo.phase == PaintPhaseMask) paintMask(paintInfo, adjustedPaintOffset); } |
