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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 LayoutUnit BorderLeft() const override; | 181 LayoutUnit BorderLeft() const override; |
182 LayoutUnit BorderRight() const override; | 182 LayoutUnit BorderRight() const override; |
183 LayoutUnit BorderTop() const override; | 183 LayoutUnit BorderTop() const override; |
184 LayoutUnit BorderBottom() const override; | 184 LayoutUnit BorderBottom() const override; |
185 LayoutUnit BorderStart() const override; | 185 LayoutUnit BorderStart() const override; |
186 LayoutUnit BorderEnd() const override; | 186 LayoutUnit BorderEnd() const override; |
187 LayoutUnit BorderBefore() const override; | 187 LayoutUnit BorderBefore() const override; |
188 LayoutUnit BorderAfter() const override; | 188 LayoutUnit BorderAfter() const override; |
189 | 189 |
190 void CollectBorderValues(LayoutTable::CollapsedBorderValues&); | 190 void CollectCollapsedBorderValues(LayoutTable::CollapsedBorderValues&); |
191 static void SortBorderValues(LayoutTable::CollapsedBorderValues&); | 191 static void SortCollapsedBorderValues(LayoutTable::CollapsedBorderValues&); |
192 | 192 |
193 void UpdateLayout() override; | 193 void UpdateLayout() override; |
194 | 194 |
195 void Paint(const PaintInfo&, const LayoutPoint&) const override; | 195 void Paint(const PaintInfo&, const LayoutPoint&) const override; |
196 | 196 |
197 int CellBaselinePosition() const; | 197 int CellBaselinePosition() const; |
198 bool IsBaselineAligned() const { | 198 bool IsBaselineAligned() const { |
199 EVerticalAlign va = Style()->VerticalAlign(); | 199 EVerticalAlign va = Style()->VerticalAlign(); |
200 return va == EVerticalAlign::kBaseline || | 200 return va == EVerticalAlign::kBaseline || |
201 va == EVerticalAlign::kTextBottom || | 201 va == EVerticalAlign::kTextBottom || |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 359 |
360 void UpdateLogicalWidth() override; | 360 void UpdateLogicalWidth() override; |
361 | 361 |
362 void PaintBoxDecorationBackground(const PaintInfo&, | 362 void PaintBoxDecorationBackground(const PaintInfo&, |
363 const LayoutPoint&) const override; | 363 const LayoutPoint&) const override; |
364 void PaintMask(const PaintInfo&, const LayoutPoint&) const override; | 364 void PaintMask(const PaintInfo&, const LayoutPoint&) const override; |
365 | 365 |
366 LayoutSize OffsetFromContainer(const LayoutObject*) const override; | 366 LayoutSize OffsetFromContainer(const LayoutObject*) const override; |
367 LayoutRect LocalVisualRect() const override; | 367 LayoutRect LocalVisualRect() const override; |
368 | 368 |
369 LayoutUnit BorderHalfLeft(bool outer) const; | 369 LayoutUnit CollapsedBorderHalfLeft(bool outer) const; |
370 LayoutUnit BorderHalfRight(bool outer) const; | 370 LayoutUnit CollapsedBorderHalfRight(bool outer) const; |
371 LayoutUnit BorderHalfTop(bool outer) const; | 371 LayoutUnit CollapsedBorderHalfTop(bool outer) const; |
372 LayoutUnit BorderHalfBottom(bool outer) const; | 372 LayoutUnit CollapsedBorderHalfBottom(bool outer) const; |
373 | 373 |
374 LayoutUnit BorderHalfStart(bool outer) const; | 374 LayoutUnit CollapsedBorderHalfStart(bool outer) const; |
375 LayoutUnit BorderHalfEnd(bool outer) const; | 375 LayoutUnit CollapsedBorderHalfEnd(bool outer) const; |
376 LayoutUnit BorderHalfBefore(bool outer) const; | 376 LayoutUnit CollapsedBorderHalfBefore(bool outer) const; |
377 LayoutUnit BorderHalfAfter(bool outer) const; | 377 LayoutUnit CollapsedBorderHalfAfter(bool outer) const; |
378 | 378 |
379 void SetIntrinsicPaddingBefore(int p) { intrinsic_padding_before_ = p; } | 379 void SetIntrinsicPaddingBefore(int p) { intrinsic_padding_before_ = p; } |
380 void SetIntrinsicPaddingAfter(int p) { intrinsic_padding_after_ = p; } | 380 void SetIntrinsicPaddingAfter(int p) { intrinsic_padding_after_ = p; } |
381 void SetIntrinsicPadding(int before, int after) { | 381 void SetIntrinsicPadding(int before, int after) { |
382 SetIntrinsicPaddingBefore(before); | 382 SetIntrinsicPaddingBefore(before); |
383 SetIntrinsicPaddingAfter(after); | 383 SetIntrinsicPaddingAfter(after); |
384 } | 384 } |
385 | 385 |
386 inline bool IsInStartColumn() const; | 386 inline bool IsInStartColumn() const; |
387 inline bool IsInEndColumn() const; | 387 inline bool IsInEndColumn() const; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 return ToLayoutTableCell(FirstChild()); | 458 return ToLayoutTableCell(FirstChild()); |
459 } | 459 } |
460 | 460 |
461 inline LayoutTableCell* LayoutTableRow::LastCell() const { | 461 inline LayoutTableCell* LayoutTableRow::LastCell() const { |
462 return ToLayoutTableCell(LastChild()); | 462 return ToLayoutTableCell(LastChild()); |
463 } | 463 } |
464 | 464 |
465 } // namespace blink | 465 } // namespace blink |
466 | 466 |
467 #endif // LayoutTableCell_h | 467 #endif // LayoutTableCell_h |
OLD | NEW |