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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/TableCellPainter.cpp ('k') | Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/paint/TablePainter.h" 6 #include "core/paint/TablePainter.h"
7 7
8 #include "core/paint/BoxClipper.h" 8 #include "core/paint/BoxClipper.h"
9 #include "core/paint/BoxPainter.h" 9 #include "core/paint/BoxPainter.h"
10 #include "core/paint/ObjectPainter.h" 10 #include "core/paint/ObjectPainter.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 BoxPainter(m_renderTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa intOffset, rect); 80 BoxPainter(m_renderTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa intOffset, rect);
81 } 81 }
82 82
83 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain tOffset) 83 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain tOffset)
84 { 84 {
85 if (m_renderTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai ntPhaseMask) 85 if (m_renderTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai ntPhaseMask)
86 return; 86 return;
87 87
88 LayoutRect rect(paintOffset, m_renderTable.size()); 88 LayoutRect rect(paintOffset, m_renderTable.size());
89 m_renderTable.subtractCaptionRect(rect); 89 m_renderTable.subtractCaptionRect(rect);
90 RenderDrawingRecorder recorder(paintInfo.context, &m_renderTable, paintInfo. phase, pixelSnappedIntRect(rect)); 90 RenderDrawingRecorder recorder(paintInfo.context, m_renderTable, paintInfo.p hase, pixelSnappedIntRect(rect));
91 BoxPainter(m_renderTable).paintMaskImages(paintInfo, rect); 91 if (!recorder.canUseCachedDrawing())
92 BoxPainter(m_renderTable).paintMaskImages(paintInfo, rect);
92 } 93 }
93 94
94 } // namespace blink 95 } // namespace blink
OLDNEW
« 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