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

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

Issue 1220583004: Refactor DrawingRecorders to check for cached drawings earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 5 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 | « Source/core/paint/ListMarkerPainter.cpp ('k') | Source/core/paint/ObjectPainter.cpp » ('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 ad32ee3feab2784f68e20851b112d214c839011b..759ef1335876a10ff27d90b370ae12980de5741f 100644
--- a/Source/core/paint/MultiColumnSetPainter.cpp
+++ b/Source/core/paint/MultiColumnSetPainter.cpp
@@ -51,11 +51,12 @@ void MultiColumnSetPainter::paintColumnRules(const PaintInfo& paintInfo, const L
if (colCount <= 1)
return;
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutMultiColumnSet, DisplayItem::ColumnRules))
+ return;
+
LayoutRect paintRect = m_layoutMultiColumnSet.visualOverflowRect();
paintRect.moveBy(paintOffset);
LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutMultiColumnSet, DisplayItem::ColumnRules, paintRect);
- if (drawingRecorder.canUseCachedDrawing())
- return;
bool antialias = BoxPainter::shouldAntialiasLines(paintInfo.context);
bool leftToRight = m_layoutMultiColumnSet.style()->isLeftToRightDirection();
« no previous file with comments | « Source/core/paint/ListMarkerPainter.cpp ('k') | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698