OLD | NEW |
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 Loading... |
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 |
OLD | NEW |