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

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

Issue 1315993004: Implement a paint offset cache for slimming paint v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix bugs caught by unittest failures Created 5 years, 4 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/TablePainter.cpp
diff --git a/Source/core/paint/TablePainter.cpp b/Source/core/paint/TablePainter.cpp
index a4a01ff20352d04229c3947afa2949ae68ec6386..b6766705070af7ed8a84e55bd5c434a34bbb7579 100644
--- a/Source/core/paint/TablePainter.cpp
+++ b/Source/core/paint/TablePainter.cpp
@@ -84,13 +84,14 @@ void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
if (m_layoutTable.style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask)
return;
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutTable, paintInfo.phase))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutTable, paintInfo.phase, paintOffset))
return;
LayoutRect rect(paintOffset, m_layoutTable.size());
m_layoutTable.subtractCaptionRect(rect);
+
// TODO(chrishtr): the pixel-snapping here is likely wrong.
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTable, paintInfo.phase, rect);
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTable, paintInfo.phase, rect, paintOffset);
BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect);
}

Powered by Google App Engine
This is Rietveld 408576698