Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.h

Issue 2522923003: Reference table row via the cell for row background display item client. (Closed)
Patch Set: Integrate feedback. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 private: 313 private:
314 const LayoutTable& m_layoutTable; 314 const LayoutTable& m_layoutTable;
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 LayoutTableRow&); 323 RowBackgroundDisplayItemClient(const LayoutTableCell&);
324 324
325 // DisplayItemClient methods. 325 // DisplayItemClient methods.
326 String debugName() const; 326 String debugName() const;
327 LayoutRect visualRect() const; 327 LayoutRect visualRect() const;
328 328
329 private: 329 private:
330 const LayoutTableRow& m_layoutTableRow; 330 const LayoutTableCell& m_layoutTableCell;
331 }; 331 };
332 332
333 bool usesCompositedCellDisplayItemClients() const; 333 bool usesCompositedCellDisplayItemClients() const;
334 const CollapsedBorderValues* collapsedBorderValues() const { 334 const CollapsedBorderValues* collapsedBorderValues() const {
335 return m_collapsedBorderValues.get(); 335 return m_collapsedBorderValues.get();
336 } 336 }
337 const DisplayItemClient& backgroundDisplayItemClient() const { 337 const DisplayItemClient& backgroundDisplayItemClient() const {
338 return m_rowBackgroundDisplayItemClient 338 return m_rowBackgroundDisplayItemClient
339 ? static_cast<const DisplayItemClient&>( 339 ? static_cast<const DisplayItemClient&>(
340 *m_rowBackgroundDisplayItemClient) 340 *m_rowBackgroundDisplayItemClient)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 return toLayoutTableCell(firstChild()); 467 return toLayoutTableCell(firstChild());
468 } 468 }
469 469
470 inline LayoutTableCell* LayoutTableRow::lastCell() const { 470 inline LayoutTableCell* LayoutTableRow::lastCell() const {
471 return toLayoutTableCell(lastChild()); 471 return toLayoutTableCell(lastChild());
472 } 472 }
473 473
474 } // namespace blink 474 } // namespace blink
475 475
476 #endif // LayoutTableCell_h 476 #endif // LayoutTableCell_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698