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/layout/LayoutTable.h" | 8 #include "core/layout/LayoutTable.h" |
9 #include "core/layout/LayoutTableSection.h" | 9 #include "core/layout/LayoutTableSection.h" |
10 #include "core/style/CollapsedBorderValue.h" | 10 #include "core/style/CollapsedBorderValue.h" |
11 #include "core/paint/BoxClipper.h" | 11 #include "core/paint/BoxClipper.h" |
12 #include "core/paint/BoxPainter.h" | 12 #include "core/paint/BoxPainter.h" |
13 #include "core/paint/GraphicsContextAnnotator.h" | |
14 #include "core/paint/LayoutObjectDrawingRecorder.h" | 13 #include "core/paint/LayoutObjectDrawingRecorder.h" |
15 #include "core/paint/ObjectPainter.h" | 14 #include "core/paint/ObjectPainter.h" |
16 #include "core/paint/PaintInfo.h" | 15 #include "core/paint/PaintInfo.h" |
17 #include "core/paint/ScopeRecorder.h" | 16 #include "core/paint/ScopeRecorder.h" |
18 | 17 |
19 namespace blink { | 18 namespace blink { |
20 | 19 |
21 void TablePainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) | 20 void TablePainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) |
22 { | 21 { |
23 PaintPhase paintPhase = paintInfo.phase; | 22 PaintPhase paintPhase = paintInfo.phase; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 return; | 89 return; |
91 | 90 |
92 LayoutRect rect(paintOffset, m_layoutTable.size()); | 91 LayoutRect rect(paintOffset, m_layoutTable.size()); |
93 m_layoutTable.subtractCaptionRect(rect); | 92 m_layoutTable.subtractCaptionRect(rect); |
94 LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTable, pain
tInfo.phase, pixelSnappedIntRect(rect)); | 93 LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTable, pain
tInfo.phase, pixelSnappedIntRect(rect)); |
95 if (!recorder.canUseCachedDrawing()) | 94 if (!recorder.canUseCachedDrawing()) |
96 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); | 95 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); |
97 } | 96 } |
98 | 97 |
99 } // namespace blink | 98 } // namespace blink |
OLD | NEW |