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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 CollapsedBorderValue afterBorder; | 281 CollapsedBorderValue afterBorder; |
282 }; | 282 }; |
283 const CollapsedBorderValues* collapsedBorderValues() const { | 283 const CollapsedBorderValues* collapsedBorderValues() const { |
284 return m_collapsedBorderValues.get(); | 284 return m_collapsedBorderValues.get(); |
285 } | 285 } |
286 | 286 |
287 LayoutRect debugRect() const override; | 287 LayoutRect debugRect() const override; |
288 | 288 |
289 void adjustChildDebugRect(LayoutRect&) const override; | 289 void adjustChildDebugRect(LayoutRect&) const override; |
290 | 290 |
| 291 // A table cell's location is relative to its containing section. |
| 292 LayoutBox* locationContainer() const override { return section(); } |
| 293 |
291 protected: | 294 protected: |
292 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 295 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
293 void computePreferredLogicalWidths() override; | 296 void computePreferredLogicalWidths() override; |
294 | 297 |
295 void addLayerHitTestRects(LayerHitTestRects&, | 298 void addLayerHitTestRects(LayerHitTestRects&, |
296 const PaintLayer* currentCompositedLayer, | 299 const PaintLayer* currentCompositedLayer, |
297 const LayoutPoint& layerOffset, | 300 const LayoutPoint& layerOffset, |
298 const LayoutRect& containerRect) const override; | 301 const LayoutRect& containerRect) const override; |
299 | 302 |
300 private: | 303 private: |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 return toLayoutTableCell(firstChild()); | 409 return toLayoutTableCell(firstChild()); |
407 } | 410 } |
408 | 411 |
409 inline LayoutTableCell* LayoutTableRow::lastCell() const { | 412 inline LayoutTableCell* LayoutTableRow::lastCell() const { |
410 return toLayoutTableCell(lastChild()); | 413 return toLayoutTableCell(lastChild()); |
411 } | 414 } |
412 | 415 |
413 } // namespace blink | 416 } // namespace blink |
414 | 417 |
415 #endif // LayoutTableCell_h | 418 #endif // LayoutTableCell_h |
OLD | NEW |