| 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/TableCellPainter.h" | 5 #include "core/paint/TableCellPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutTableCell.h" | 7 #include "core/layout/LayoutTableCell.h" |
| 8 #include "core/paint/BlockPainter.h" | 8 #include "core/paint/BlockPainter.h" |
| 9 #include "core/paint/BoxPainter.h" | 9 #include "core/paint/BoxPainter.h" |
| 10 #include "core/paint/LayoutObjectDrawingRecorder.h" | 10 #include "core/paint/LayoutObjectDrawingRecorder.h" |
| 11 #include "core/paint/ObjectPainter.h" |
| 11 #include "core/paint/PaintInfo.h" | 12 #include "core/paint/PaintInfo.h" |
| 12 #include "platform/graphics/GraphicsContextStateSaver.h" | 13 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 static const CollapsedBorderValue& collapsedLeftBorder(const ComputedStyle& styl
eForCellFlow, const LayoutTableCell::CollapsedBorderValues& values) | 17 static const CollapsedBorderValue& collapsedLeftBorder(const ComputedStyle& styl
eForCellFlow, const LayoutTableCell::CollapsedBorderValues& values) |
| 17 { | 18 { |
| 18 if (styleForCellFlow.isHorizontalWritingMode()) | 19 if (styleForCellFlow.isHorizontalWritingMode()) |
| 19 return styleForCellFlow.isLeftToRightDirection() ? values.startBorder :
values.endBorder; | 20 return styleForCellFlow.isLeftToRightDirection() ? values.startBorder :
values.endBorder; |
| 20 return styleForCellFlow.isFlippedBlocksWritingMode() ? values.afterBorder :
values.beforeBorder; | 21 return styleForCellFlow.isFlippedBlocksWritingMode() ? values.afterBorder :
values.beforeBorder; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 BoxPainter(m_layoutTableCell).paintMaskImages(paintInfo, paintRect); | 209 BoxPainter(m_layoutTableCell).paintMaskImages(paintInfo, paintRect); |
| 209 } | 210 } |
| 210 | 211 |
| 211 LayoutRect TableCellPainter::paintRectNotIncludingVisualOverflow(const LayoutPoi
nt& paintOffset) | 212 LayoutRect TableCellPainter::paintRectNotIncludingVisualOverflow(const LayoutPoi
nt& paintOffset) |
| 212 { | 213 { |
| 213 return LayoutRect(paintOffset, LayoutSize(m_layoutTableCell.pixelSnappedSize
())); | 214 return LayoutRect(paintOffset, LayoutSize(m_layoutTableCell.pixelSnappedSize
())); |
| 214 } | 215 } |
| 215 | 216 |
| 216 } // namespace blink | 217 } // namespace blink |
| 217 | 218 |
| OLD | NEW |