Index: Source/core/rendering/RenderView.cpp |
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp |
index 90e1de47de1e23991b2664d224ea144221f1236d..027eb9501cf6fcd82a1fc21f8179d4eb5a7b0a1b 100644 |
--- a/Source/core/rendering/RenderView.cpp |
+++ b/Source/core/rendering/RenderView.cpp |
@@ -413,7 +413,7 @@ void RenderView::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
// This avoids painting garbage between columns if there is a column gap. |
if (m_frameView && m_frameView->pagination().mode != Pagination::Unpaginated) |
- paintInfo.context->fillRect(paintInfo.rect, m_frameView->baseBackgroundColor()); |
+ paintInfo.context->fillRect(paintInfo.rect(), m_frameView->baseBackgroundColor()); |
paintObject(paintInfo, paintOffset); |
} |
@@ -499,10 +499,11 @@ void RenderView::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint&) |
if (baseColor.alpha()) { |
CompositeOperator previousOperator = paintInfo.context->compositeOperation(); |
paintInfo.context->setCompositeOperation(CompositeCopy); |
- paintInfo.context->fillRect(paintInfo.rect, baseColor); |
+ paintInfo.context->fillRect(paintInfo.rect(), baseColor); |
paintInfo.context->setCompositeOperation(previousOperator); |
- } else |
- paintInfo.context->clearRect(paintInfo.rect); |
+ } else { |
+ paintInfo.context->clearRect(paintInfo.rect()); |
+ } |
} |
} |