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

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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 years, 8 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, 2009, 2010 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 void removeCaption(const LayoutTableCaption*); 425 void removeCaption(const LayoutTableCaption*);
426 void addColumn(const LayoutTableCol*); 426 void addColumn(const LayoutTableCol*);
427 void removeColumn(const LayoutTableCol*); 427 void removeColumn(const LayoutTableCol*);
428 428
429 void paintBoxDecorationBackground(const PaintInfo&, 429 void paintBoxDecorationBackground(const PaintInfo&,
430 const LayoutPoint&) const final; 430 const LayoutPoint&) const final;
431 431
432 void paintMask(const PaintInfo&, const LayoutPoint&) const final; 432 void paintMask(const PaintInfo&, const LayoutPoint&) const final;
433 433
434 const CollapsedBorderValues& collapsedBorders() const { 434 const CollapsedBorderValues& collapsedBorders() const {
435 ASSERT(m_collapsedBordersValid); 435 DCHECK(m_collapsedBordersValid);
436 return m_collapsedBorders; 436 return m_collapsedBorders;
437 } 437 }
438 438
439 void subtractCaptionRect(LayoutRect&) const; 439 void subtractCaptionRect(LayoutRect&) const;
440 440
441 bool isLogicalWidthAuto() const; 441 bool isLogicalWidthAuto() const;
442 442
443 // When table headers are repeated, we need to know the offset from the block 443 // When table headers are repeated, we need to know the offset from the block
444 // start of the fragmentation context to the first occurrence of the table 444 // start of the fragmentation context to the first occurrence of the table
445 // header. 445 // header.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 short m_vSpacing; 599 short m_vSpacing;
600 int m_borderStart; 600 int m_borderStart;
601 int m_borderEnd; 601 int m_borderEnd;
602 602
603 LayoutUnit m_blockOffsetToFirstRepeatableHeader; 603 LayoutUnit m_blockOffsetToFirstRepeatableHeader;
604 LayoutUnit m_rowOffsetFromRepeatingHeader; 604 LayoutUnit m_rowOffsetFromRepeatingHeader;
605 LayoutUnit m_oldAvailableLogicalHeight; 605 LayoutUnit m_oldAvailableLogicalHeight;
606 }; 606 };
607 607
608 inline LayoutTableSection* LayoutTable::topSection() const { 608 inline LayoutTableSection* LayoutTable::topSection() const {
609 ASSERT(!needsSectionRecalc()); 609 DCHECK(!needsSectionRecalc());
610 if (m_head) 610 if (m_head)
611 return m_head; 611 return m_head;
612 if (m_firstBody) 612 if (m_firstBody)
613 return m_firstBody; 613 return m_firstBody;
614 return m_foot; 614 return m_foot;
615 } 615 }
616 616
617 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 617 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
618 618
619 } // namespace blink 619 } // namespace blink
620 620
621 #endif // LayoutTable_h 621 #endif // LayoutTable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698