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

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

Issue 2615613006: Reference table via the cell for collapsed border display item client (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698