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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (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
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 return style()->borderStart(); 271 return style()->borderStart();
272 } 272 }
273 273
274 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell* cell) { 274 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell* cell) {
275 DCHECK_EQ(table()->cellBefore(cell), this); 275 DCHECK_EQ(table()->cellBefore(cell), this);
276 // FIXME: https://webkit.org/b/79272 - Add support for mixed directionality 276 // FIXME: https://webkit.org/b/79272 - Add support for mixed directionality
277 // at the cell level. 277 // at the cell level.
278 return style()->borderEnd(); 278 return style()->borderEnd();
279 } 279 }
280 280
281 #if ENABLE(ASSERT) 281 #if DCHECK_IS_ON()
282 bool isFirstOrLastCellInRow() const { 282 bool isFirstOrLastCellInRow() const {
283 return !table()->cellAfter(this) || !table()->cellBefore(this); 283 return !table()->cellAfter(this) || !table()->cellBefore(this);
284 } 284 }
285 #endif 285 #endif
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
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698