| Index: Source/core/paint/PartPainter.cpp
|
| diff --git a/Source/core/paint/PartPainter.cpp b/Source/core/paint/PartPainter.cpp
|
| index 80d739fd0a7320a876ff50e7bb5e7be34a39346a..3ba07a934db513faaaaa592a8e05d4e08dea53ad 100644
|
| --- a/Source/core/paint/PartPainter.cpp
|
| +++ b/Source/core/paint/PartPainter.cpp
|
| @@ -60,11 +60,11 @@ void PartPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffs
|
| }
|
|
|
| // Paint a partially transparent wash over selected widgets.
|
| - if (m_layoutPart.isSelected() && !paintInfo.isPrinting() && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutPart, paintInfo.phase)) {
|
| + if (m_layoutPart.isSelected() && !paintInfo.isPrinting() && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutPart, paintInfo.phase, adjustedPaintOffset)) {
|
| LayoutRect rect = m_layoutPart.localSelectionRect();
|
| rect.moveBy(adjustedPaintOffset);
|
| IntRect selectionRect = pixelSnappedIntRect(rect);
|
| - LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutPart, paintInfo.phase, selectionRect);
|
| + LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutPart, paintInfo.phase, selectionRect, adjustedPaintOffset);
|
| paintInfo.context->fillRect(selectionRect, m_layoutPart.selectionBackgroundColor());
|
| }
|
|
|
|
|