| Index: sky/engine/core/rendering/RenderBlock.cpp
|
| diff --git a/sky/engine/core/rendering/RenderBlock.cpp b/sky/engine/core/rendering/RenderBlock.cpp
|
| index 1dee32fe56b37d748e42c2e3c4b8d1152a6e46ef..6fde31e55bef52ba13c799ae54dc1ef746baa392 100644
|
| --- a/sky/engine/core/rendering/RenderBlock.cpp
|
| +++ b/sky/engine/core/rendering/RenderBlock.cpp
|
| @@ -450,8 +450,6 @@ void RenderBlock::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| {
|
| LayoutPoint adjustedPaintOffset = paintOffset + location();
|
|
|
| - PaintPhase phase = paintInfo.phase;
|
| -
|
| LayoutRect overflowBox;
|
| // Check if we need to do anything at all.
|
| // FIXME: Could eliminate the isDocumentElement() check if we fix background painting so that the RenderView
|
| @@ -466,13 +464,13 @@ void RenderBlock::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| // There are some cases where not all clipped visual overflow is accounted for.
|
| // FIXME: reduce the number of such cases.
|
| ContentsClipBehavior contentsClipBehavior = ForceContentsClip;
|
| - if (hasOverflowClip() && !(shouldPaintSelectionGaps() && phase == PaintPhaseForeground) && !hasCaret())
|
| + if (hasOverflowClip() && !shouldPaintSelectionGaps() && !hasCaret())
|
| contentsClipBehavior = SkipContentsClipIfPossible;
|
|
|
| bool pushedClip = pushContentsClip(paintInfo, adjustedPaintOffset, contentsClipBehavior);
|
| paintObject(paintInfo, adjustedPaintOffset);
|
| if (pushedClip)
|
| - popContentsClip(paintInfo, phase, adjustedPaintOffset);
|
| + popContentsClip(paintInfo, adjustedPaintOffset);
|
| }
|
|
|
| void RenderBlock::paintChildren(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
|
|