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 void setPaginationStrutPropagatedFromChild(LayoutUnit strut) override { row(
)->setPaginationStrutPropagatedFromCell(strut); }; |
275 protected: | 276 protected: |
276 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 277 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
277 void computePreferredLogicalWidths() override; | 278 void computePreferredLogicalWidths() override; |
278 | 279 |
279 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 280 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
280 | 281 |
281 private: | 282 private: |
282 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableCell || LayoutBlockFlow::isOfType(type); } | 283 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTableCell || LayoutBlockFlow::isOfType(type); } |
283 | 284 |
284 void willBeRemovedFromTree() override; | 285 void willBeRemovedFromTree() override; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 380 |
380 inline LayoutTableCell* LayoutTableRow::lastCell() const | 381 inline LayoutTableCell* LayoutTableRow::lastCell() const |
381 { | 382 { |
382 ASSERT(children() == virtualChildren()); | 383 ASSERT(children() == virtualChildren()); |
383 return toLayoutTableCell(children()->lastChild()); | 384 return toLayoutTableCell(children()->lastChild()); |
384 } | 385 } |
385 | 386 |
386 } // namespace blink | 387 } // namespace blink |
387 | 388 |
388 #endif // LayoutTableCell_h | 389 #endif // LayoutTableCell_h |
OLD | NEW |