Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Unified Diff: Source/core/paint/MultiColumnSetPainter.cpp

Issue 963873002: [Slimming Paint] Adjust the paint rect for paintOffset when painting column rules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/paint/RenderDrawingRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/MultiColumnSetPainter.cpp
diff --git a/Source/core/paint/MultiColumnSetPainter.cpp b/Source/core/paint/MultiColumnSetPainter.cpp
index 75ab03962acbda51659682867106b24077b772b7..a326c1f82511c3bd001f56c916491f589d6080b9 100644
--- a/Source/core/paint/MultiColumnSetPainter.cpp
+++ b/Source/core/paint/MultiColumnSetPainter.cpp
@@ -51,7 +51,9 @@ void MultiColumnSetPainter::paintColumnRules(const PaintInfo& paintInfo, const L
if (colCount <= 1)
return;
- RenderDrawingRecorder drawingRecorder(paintInfo.context, m_renderMultiColumnSet, DisplayItem::ColumnRules, m_renderMultiColumnSet.visualOverflowRect());
+ LayoutRect paintRect = m_renderMultiColumnSet.visualOverflowRect();
+ paintRect.moveBy(paintOffset);
+ RenderDrawingRecorder drawingRecorder(paintInfo.context, m_renderMultiColumnSet, DisplayItem::ColumnRules, paintRect);
if (drawingRecorder.canUseCachedDrawing())
return;
« no previous file with comments | « no previous file | Source/core/paint/RenderDrawingRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698