| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
| 4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
| 5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void paint(const PaintInfo&, const LayoutPoint&) const override; | 193 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 194 | 194 |
| 195 int cellBaselinePosition() const; | 195 int cellBaselinePosition() const; |
| 196 bool isBaselineAligned() const { | 196 bool isBaselineAligned() const { |
| 197 EVerticalAlign va = style()->verticalAlign(); | 197 EVerticalAlign va = style()->verticalAlign(); |
| 198 return va == VerticalAlignBaseline || va == VerticalAlignTextBottom || | 198 return va == VerticalAlignBaseline || va == VerticalAlignTextBottom || |
| 199 va == VerticalAlignTextTop || va == VerticalAlignSuper || | 199 va == VerticalAlignTextTop || va == VerticalAlignSuper || |
| 200 va == VerticalAlignSub || va == VerticalAlignLength; | 200 va == VerticalAlignSub || va == VerticalAlignLength; |
| 201 } | 201 } |
| 202 | 202 |
| 203 void computeIntrinsicPadding(int rowHeight, SubtreeLayoutScope&); | 203 // Align the cell in the block direction. This is done by calculating an |
| 204 // intrinsic padding before and after the cell contents, so that all cells in |
| 205 // the row get the same logical height. |
| 206 void computeIntrinsicPadding(int rowHeight, |
| 207 EVerticalAlign, |
| 208 SubtreeLayoutScope&); |
| 209 |
| 204 void clearIntrinsicPadding() { setIntrinsicPadding(0, 0); } | 210 void clearIntrinsicPadding() { setIntrinsicPadding(0, 0); } |
| 205 | 211 |
| 206 int intrinsicPaddingBefore() const { return m_intrinsicPaddingBefore; } | 212 int intrinsicPaddingBefore() const { return m_intrinsicPaddingBefore; } |
| 207 int intrinsicPaddingAfter() const { return m_intrinsicPaddingAfter; } | 213 int intrinsicPaddingAfter() const { return m_intrinsicPaddingAfter; } |
| 208 | 214 |
| 209 LayoutUnit paddingTop() const override; | 215 LayoutUnit paddingTop() const override; |
| 210 LayoutUnit paddingBottom() const override; | 216 LayoutUnit paddingBottom() const override; |
| 211 LayoutUnit paddingLeft() const override; | 217 LayoutUnit paddingLeft() const override; |
| 212 LayoutUnit paddingRight() const override; | 218 LayoutUnit paddingRight() const override; |
| 213 | 219 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 return toLayoutTableCell(firstChild()); | 423 return toLayoutTableCell(firstChild()); |
| 418 } | 424 } |
| 419 | 425 |
| 420 inline LayoutTableCell* LayoutTableRow::lastCell() const { | 426 inline LayoutTableCell* LayoutTableRow::lastCell() const { |
| 421 return toLayoutTableCell(lastChild()); | 427 return toLayoutTableCell(lastChild()); |
| 422 } | 428 } |
| 423 | 429 |
| 424 } // namespace blink | 430 } // namespace blink |
| 425 | 431 |
| 426 #endif // LayoutTableCell_h | 432 #endif // LayoutTableCell_h |
| OLD | NEW |