| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 const char* name() const override { return "LayoutTableCell"; } | 286 const char* name() const override { return "LayoutTableCell"; } |
| 287 | 287 |
| 288 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; | 288 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; |
| 289 void invalidateDisplayItemClients(PaintInvalidationReason) const override; | 289 void invalidateDisplayItemClients(PaintInvalidationReason) const override; |
| 290 | 290 |
| 291 // TODO(wkorman): Consider renaming to more clearly differentiate from | 291 // TODO(wkorman): Consider renaming to more clearly differentiate from |
| 292 // CollapsedBorderValue. | 292 // CollapsedBorderValue. |
| 293 class CollapsedBorderValues : public DisplayItemClient { | 293 class CollapsedBorderValues : public DisplayItemClient { |
| 294 public: | 294 public: |
| 295 CollapsedBorderValues(const LayoutTable&, | 295 CollapsedBorderValues(const LayoutTableCell&, |
| 296 const CollapsedBorderValue& startBorder, | 296 const CollapsedBorderValue& startBorder, |
| 297 const CollapsedBorderValue& endBorder, | 297 const CollapsedBorderValue& endBorder, |
| 298 const CollapsedBorderValue& beforeBorder, | 298 const CollapsedBorderValue& beforeBorder, |
| 299 const CollapsedBorderValue& afterBorder); | 299 const CollapsedBorderValue& afterBorder); |
| 300 | 300 |
| 301 const CollapsedBorderValue& startBorder() const { return m_startBorder; } | 301 const CollapsedBorderValue& startBorder() const { return m_startBorder; } |
| 302 const CollapsedBorderValue& endBorder() const { return m_endBorder; } | 302 const CollapsedBorderValue& endBorder() const { return m_endBorder; } |
| 303 const CollapsedBorderValue& beforeBorder() const { return m_beforeBorder; } | 303 const CollapsedBorderValue& beforeBorder() const { return m_beforeBorder; } |
| 304 const CollapsedBorderValue& afterBorder() const { return m_afterBorder; } | 304 const CollapsedBorderValue& afterBorder() const { return m_afterBorder; } |
| 305 | 305 |
| 306 void setCollapsedBorderValues(const CollapsedBorderValues& other); | 306 void setCollapsedBorderValues(const CollapsedBorderValues& other); |
| 307 | 307 |
| 308 // DisplayItemClient methods. | 308 // DisplayItemClient methods. |
| 309 String debugName() const; | 309 String debugName() const; |
| 310 LayoutRect visualRect() const; | 310 LayoutRect visualRect() const; |
| 311 | 311 |
| 312 private: | 312 private: |
| 313 const LayoutTable& m_layoutTable; | 313 const LayoutTableCell& m_layoutTableCell; |
| 314 CollapsedBorderValue m_startBorder; | 314 CollapsedBorderValue m_startBorder; |
| 315 CollapsedBorderValue m_endBorder; | 315 CollapsedBorderValue m_endBorder; |
| 316 CollapsedBorderValue m_beforeBorder; | 316 CollapsedBorderValue m_beforeBorder; |
| 317 CollapsedBorderValue m_afterBorder; | 317 CollapsedBorderValue m_afterBorder; |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 class RowBackgroundDisplayItemClient : public DisplayItemClient { | 320 class RowBackgroundDisplayItemClient : public DisplayItemClient { |
| 321 public: | 321 public: |
| 322 RowBackgroundDisplayItemClient(const LayoutTableCell&); | 322 RowBackgroundDisplayItemClient(const LayoutTableCell&); |
| 323 | 323 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 return toLayoutTableCell(firstChild()); | 466 return toLayoutTableCell(firstChild()); |
| 467 } | 467 } |
| 468 | 468 |
| 469 inline LayoutTableCell* LayoutTableRow::lastCell() const { | 469 inline LayoutTableCell* LayoutTableRow::lastCell() const { |
| 470 return toLayoutTableCell(lastChild()); | 470 return toLayoutTableCell(lastChild()); |
| 471 } | 471 } |
| 472 | 472 |
| 473 } // namespace blink | 473 } // namespace blink |
| 474 | 474 |
| 475 #endif // LayoutTableCell_h | 475 #endif // LayoutTableCell_h |
| OLD | NEW |