| 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 "core/paint/TablePainter.h" | 5 #include "core/paint/TablePainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutTable.h" | 7 #include "core/layout/LayoutTable.h" |
| 8 #include "core/layout/LayoutTableSection.h" | 8 #include "core/layout/LayoutTableSection.h" |
| 9 #include "core/style/CollapsedBorderValue.h" | 9 #include "core/style/CollapsedBorderValue.h" |
| 10 #include "core/paint/BoxClipper.h" | 10 #include "core/paint/BoxClipper.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 LayoutRect rect(paintOffset, m_layoutTable.size()); | 68 LayoutRect rect(paintOffset, m_layoutTable.size()); |
| 69 m_layoutTable.subtractCaptionRect(rect); | 69 m_layoutTable.subtractCaptionRect(rect); |
| 70 BoxPainter(m_layoutTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa
intOffset, rect); | 70 BoxPainter(m_layoutTable).paintBoxDecorationBackgroundWithRect(paintInfo, pa
intOffset, rect); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
tOffset) | 73 void TablePainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pain
tOffset) |
| 74 { | 74 { |
| 75 if (m_layoutTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai
ntPhaseMask) | 75 if (m_layoutTable.style()->visibility() != VISIBLE || paintInfo.phase != Pai
ntPhaseMask) |
| 76 return; | 76 return; |
| 77 | 77 |
| 78 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.contex
t, m_layoutTable, paintInfo.phase, paintOffset)) | 78 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.contex
t, m_layoutTable, paintInfo.phase)) |
| 79 return; | 79 return; |
| 80 | 80 |
| 81 LayoutRect rect(paintOffset, m_layoutTable.size()); | 81 LayoutRect rect(paintOffset, m_layoutTable.size()); |
| 82 m_layoutTable.subtractCaptionRect(rect); | 82 m_layoutTable.subtractCaptionRect(rect); |
| 83 | 83 |
| 84 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, paint
Info.phase, rect, paintOffset); | 84 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, paint
Info.phase, rect); |
| 85 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); | 85 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| OLD | NEW |