| 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" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 LayoutRect rect(paintOffset, m_layoutTable.size()); | 74 LayoutRect rect(paintOffset, m_layoutTable.size()); |
| 75 m_layoutTable.subtractCaptionRect(rect); | 75 m_layoutTable.subtractCaptionRect(rect); |
| 76 BoxPainter(m_layoutTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa
intOffset, rect); | 76 BoxPainter(m_layoutTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa
intOffset, rect); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
tOffset) | 79 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
tOffset) |
| 80 { | 80 { |
| 81 if (m_layoutTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai
ntPhaseMask) | 81 if (m_layoutTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai
ntPhaseMask) |
| 82 return; | 82 return; |
| 83 | 83 |
| 84 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.conte
xt, m_layoutTable, paintInfo.phase, paintOffset)) | 84 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.contex
t, m_layoutTable, paintInfo.phase, paintOffset)) |
| 85 return; | 85 return; |
| 86 | 86 |
| 87 LayoutRect rect(paintOffset, m_layoutTable.size()); | 87 LayoutRect rect(paintOffset, m_layoutTable.size()); |
| 88 m_layoutTable.subtractCaptionRect(rect); | 88 m_layoutTable.subtractCaptionRect(rect); |
| 89 | 89 |
| 90 LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTable, pain
tInfo.phase, rect, paintOffset); | 90 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, paint
Info.phase, rect, paintOffset); |
| 91 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); | 91 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |