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

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

Issue 799563002: Use DrawingRecorder::canUseCachedDrawing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years 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/TableCellPainter.cpp ('k') | Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TablePainter.cpp
diff --git a/Source/core/paint/TablePainter.cpp b/Source/core/paint/TablePainter.cpp
index f94649e4a7e6ee96729843cc2951884ec7693eb1..130803c992bff8035518a366672b6f457def272b 100644
--- a/Source/core/paint/TablePainter.cpp
+++ b/Source/core/paint/TablePainter.cpp
@@ -87,8 +87,9 @@ void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
LayoutRect rect(paintOffset, m_renderTable.size());
m_renderTable.subtractCaptionRect(rect);
- RenderDrawingRecorder recorder(paintInfo.context, &m_renderTable, paintInfo.phase, pixelSnappedIntRect(rect));
- BoxPainter(m_renderTable).paintMaskImages(paintInfo, rect);
+ RenderDrawingRecorder recorder(paintInfo.context, m_renderTable, paintInfo.phase, pixelSnappedIntRect(rect));
+ if (!recorder.canUseCachedDrawing())
+ BoxPainter(m_renderTable).paintMaskImages(paintInfo, rect);
}
} // namespace blink
« no previous file with comments | « Source/core/paint/TableCellPainter.cpp ('k') | Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698