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. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights
reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool isFirstOrLastCellInRow() const | 265 bool isFirstOrLastCellInRow() const |
266 { | 266 { |
267 return !table()->cellAfter(this) || !table()->cellBefore(this); | 267 return !table()->cellAfter(this) || !table()->cellBefore(this); |
268 } | 268 } |
269 #endif | 269 #endif |
270 | 270 |
271 const char* name() const override { return "LayoutTableCell"; } | 271 const char* name() const override { return "LayoutTableCell"; } |
272 | 272 |
273 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; | 273 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; |
274 | 274 |
| 275 LayoutUnit calculatePaginationStrutToFitContent(LayoutUnit offset, LayoutUni
t strutToNextPage, LayoutUnit contentLogicalHeight) const final; |
| 276 |
275 protected: | 277 protected: |
276 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 278 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
277 void computePreferredLogicalWidths() override; | 279 void computePreferredLogicalWidths() override; |
278 | 280 |
279 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 281 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
280 | 282 |
281 private: | 283 private: |
282 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableCell || LayoutBlockFlow::isOfType(type); } | 284 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableCell || LayoutBlockFlow::isOfType(type); } |
283 | 285 |
284 void willBeRemovedFromTree() override; | 286 void willBeRemovedFromTree() override; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 381 |
380 inline LayoutTableCell* LayoutTableRow::lastCell() const | 382 inline LayoutTableCell* LayoutTableRow::lastCell() const |
381 { | 383 { |
382 ASSERT(children() == virtualChildren()); | 384 ASSERT(children() == virtualChildren()); |
383 return toLayoutTableCell(children()->lastChild()); | 385 return toLayoutTableCell(children()->lastChild()); |
384 } | 386 } |
385 | 387 |
386 } // namespace blink | 388 } // namespace blink |
387 | 389 |
388 #endif // LayoutTableCell_h | 390 #endif // LayoutTableCell_h |
OLD | NEW |