| Index: Source/core/paint/InlineFlowBoxPainter.cpp
|
| diff --git a/Source/core/paint/InlineFlowBoxPainter.cpp b/Source/core/paint/InlineFlowBoxPainter.cpp
|
| index 6f8698bbf2fc1f7e7cb37f0028580cbecd19f1fc..f4df4227e06de9f99b3ff2ef7d9121dae768208e 100644
|
| --- a/Source/core/paint/InlineFlowBoxPainter.cpp
|
| +++ b/Source/core/paint/InlineFlowBoxPainter.cpp
|
| @@ -67,7 +67,7 @@ void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
|
| return;
|
| } else if (paintInfo.phase == PaintPhaseForeground) {
|
| // Paint our background, border and box-shadow.
|
| - paintBoxDecorationBackground(paintInfo, paintOffset);
|
| + paintBoxDecorationBackground(paintInfo, paintOffset, overflowRect);
|
| }
|
|
|
| // Paint our children.
|
| @@ -210,7 +210,7 @@ InlineFlowBoxPainter::BorderPaintingType InlineFlowBoxPainter::getBorderPaintTyp
|
| return DontPaintBorders;
|
| }
|
|
|
| -void InlineFlowBoxPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| +void InlineFlowBoxPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const LayoutRect& cullRect)
|
| {
|
| ASSERT(paintInfo.phase == PaintPhaseForeground);
|
| if (!paintInfo.shouldPaintWithinRoot(&m_inlineFlowBox.layoutObject()) || m_inlineFlowBox.layoutObject().style()->visibility() != VISIBLE)
|
| @@ -240,7 +240,7 @@ void InlineFlowBoxPainter::paintBoxDecorationBackground(const PaintInfo& paintIn
|
| LayoutRect adjustedClipRect;
|
| BorderPaintingType borderPaintingType = getBorderPaintType(adjustedFrameRect, adjustedClipRect);
|
|
|
| - DrawingRecorder recorder(*paintInfo.context, m_inlineFlowBox, DisplayItem::BoxDecorationBackground, pixelSnappedIntRect(adjustedClipRect));
|
| + DrawingRecorder recorder(*paintInfo.context, m_inlineFlowBox, DisplayItem::BoxDecorationBackground, pixelSnappedIntRect(cullRect));
|
| if (recorder.canUseCachedDrawing())
|
| return;
|
|
|
|
|