| Index: sky/engine/core/rendering/RenderLayer.cpp
|
| diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
|
| index b842fba65ac1d35ca4c937c55c5e95a52e931cae..baf60898b5597ba2a9ac2127c3359798db264fa1 100644
|
| --- a/sky/engine/core/rendering/RenderLayer.cpp
|
| +++ b/sky/engine/core/rendering/RenderLayer.cpp
|
| @@ -991,6 +991,7 @@ void RenderLayer::paintLayerContents(GraphicsContext* context, const LayerPainti
|
| FilterEffectRendererHelper filterPainter(filterRenderer() && paintsWithFilters());
|
|
|
| LayoutRect layerBounds;
|
| + // FIXME(sky): Remove foregroundRect. It's unused.
|
| ClipRect backgroundRect, foregroundRect, outlineRect;
|
| ClipRectsContext clipRectsContext(localPaintingInfo.rootLayer, PaintingClipRects, localPaintingInfo.subPixelAccumulation);
|
| clipper().calculateRects(clipRectsContext, localPaintingInfo.paintDirtyRect,
|
| @@ -1045,7 +1046,7 @@ void RenderLayer::paintLayerContents(GraphicsContext* context, const LayerPainti
|
|
|
| if (shouldPaintContent) {
|
| paintForeground(context, transparencyLayerContext, paintingInfo.paintDirtyRect, haveTransparency,
|
| - localPaintingInfo, paintingRootForRenderer, layerLocation, foregroundRect);
|
| + localPaintingInfo, paintingRootForRenderer, layerLocation, backgroundRect);
|
| }
|
|
|
| paintOutline(context, localPaintingInfo, paintingRootForRenderer, layerLocation, outlineRect);
|
|
|