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

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

Issue 834653003: [Slimming paint] [New Multicolumn] Repaint column rules when they change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make the test useful. Created 5 years, 11 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
Index: Source/core/paint/MultiColumnSetPainter.cpp
diff --git a/Source/core/paint/MultiColumnSetPainter.cpp b/Source/core/paint/MultiColumnSetPainter.cpp
index 5ece07a06bc5ce93023e81aa5e5544dbbb572625..fb15dfa580a4bc8b107fd239f17307eca96734c6 100644
--- a/Source/core/paint/MultiColumnSetPainter.cpp
+++ b/Source/core/paint/MultiColumnSetPainter.cpp
@@ -52,6 +52,9 @@ void MultiColumnSetPainter::paintColumnRules(const PaintInfo& paintInfo, const L
return;
DrawingRecorder drawingRecorder(paintInfo.context, m_renderMultiColumnSet.displayItemClient(), DisplayItem::ColumnRules, m_renderMultiColumnSet.visualOverflowRect());
+ if (drawingRecorder.canUseCachedDrawing())
+ return;
+
bool antialias = BoxPainter::shouldAntialiasLines(paintInfo.context);
bool leftToRight = m_renderMultiColumnSet.style()->isLeftToRightDirection();
LayoutUnit currLogicalLeftOffset = leftToRight ? LayoutUnit() : m_renderMultiColumnSet.contentLogicalWidth();
« no previous file with comments | « LayoutTests/fast/multicol/change-column-rule-expected.html ('k') | Source/core/rendering/RenderBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698