| Index: sky/engine/core/rendering/RenderLayer.cpp
|
| diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
|
| index 47495eca070f9aad7ed801871ebb6cbe95ce5b46..4c3996eb57a2e78c19f067b9faf993ceb64aeb94 100644
|
| --- a/sky/engine/core/rendering/RenderLayer.cpp
|
| +++ b/sky/engine/core/rendering/RenderLayer.cpp
|
| @@ -1019,22 +1019,14 @@ void RenderLayer::paintForeground(GraphicsContext* context, GraphicsContext* tra
|
| // TODO(ojan): We probably should early return at the beginning of this function
|
| // if the rect is empty.
|
| if (!foregroundRectIsEmpty) {
|
| - paintForegroundWithPhase(PaintPhaseForeground,
|
| - context, localPaintingInfo,
|
| - layerLocation, layerForegroundRect);
|
| + PaintInfo paintInfo(context, pixelSnappedIntRect(layerForegroundRect.rect()), PaintPhaseForeground, localPaintingInfo.rootLayer->renderer());
|
| + renderer()->paint(paintInfo, layerLocation);
|
| }
|
|
|
| if (shouldClip)
|
| restoreClip(context, localPaintingInfo.paintDirtyRect, layerForegroundRect);
|
| }
|
|
|
| -void RenderLayer::paintForegroundWithPhase(PaintPhase phase, GraphicsContext* context,
|
| - const LayerPaintingInfo& localPaintingInfo, LayoutPoint& layerLocation, ClipRect& layerForegroundRect)
|
| -{
|
| - PaintInfo paintInfo(context, pixelSnappedIntRect(layerForegroundRect.rect()), phase, localPaintingInfo.rootLayer->renderer());
|
| - renderer()->paint(paintInfo, layerLocation);
|
| -}
|
| -
|
| void RenderLayer::paintMask(GraphicsContext* context, const LayerPaintingInfo& localPaintingInfo,
|
| LayoutPoint& layerLocation, ClipRect& layerBackgroundRect)
|
| {
|
|
|