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