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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 return style()->borderEnd(); | 215 return style()->borderEnd(); |
216 } | 216 } |
217 | 217 |
218 #if ENABLE(ASSERT) | 218 #if ENABLE(ASSERT) |
219 bool isFirstOrLastCellInRow() const | 219 bool isFirstOrLastCellInRow() const |
220 { | 220 { |
221 return !table()->cellAfter(this) || !table()->cellBefore(this); | 221 return !table()->cellAfter(this) || !table()->cellBefore(this); |
222 } | 222 } |
223 #endif | 223 #endif |
224 | 224 |
225 virtual const char* name() const override { return isAnonymous() ? "LayoutTa
bleCell (anonymous)" : "LayoutTableCell"; } | 225 virtual const char* name() const override { return "LayoutTableCell"; } |
226 | 226 |
227 protected: | 227 protected: |
228 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle)
override; | 228 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle)
override; |
229 virtual void computePreferredLogicalWidths() override; | 229 virtual void computePreferredLogicalWidths() override; |
230 | 230 |
231 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect&
containerRect) const override; | 231 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect&
containerRect) const override; |
232 | 232 |
233 private: | 233 private: |
234 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectTableCell || LayoutBlockFlow::isOfType(type); } | 234 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectTableCell || LayoutBlockFlow::isOfType(type); } |
235 | 235 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 307 |
308 inline LayoutTableCell* LayoutTableRow::lastCell() const | 308 inline LayoutTableCell* LayoutTableRow::lastCell() const |
309 { | 309 { |
310 ASSERT(children() == virtualChildren()); | 310 ASSERT(children() == virtualChildren()); |
311 return toLayoutTableCell(children()->lastChild()); | 311 return toLayoutTableCell(children()->lastChild()); |
312 } | 312 } |
313 | 313 |
314 } // namespace blink | 314 } // namespace blink |
315 | 315 |
316 #endif // LayoutTableCell_h | 316 #endif // LayoutTableCell_h |
OLD | NEW |