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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTableElement.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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, 2008, 2010, 2011 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 return SolidBordersColsOnly; 436 return SolidBordersColsOnly;
437 case RowsRules: 437 case RowsRules:
438 return SolidBordersRowsOnly; 438 return SolidBordersRowsOnly;
439 case UnsetRules: 439 case UnsetRules:
440 if (!m_borderAttr) 440 if (!m_borderAttr)
441 return NoBorders; 441 return NoBorders;
442 if (m_borderColorAttr) 442 if (m_borderColorAttr)
443 return SolidBorders; 443 return SolidBorders;
444 return InsetBorders; 444 return InsetBorders;
445 } 445 }
446 ASSERT_NOT_REACHED(); 446 NOTREACHED();
447 return NoBorders; 447 return NoBorders;
448 } 448 }
449 449
450 StylePropertySet* HTMLTableElement::createSharedCellStyle() 450 StylePropertySet* HTMLTableElement::createSharedCellStyle()
451 { 451 {
452 MutableStylePropertySet* style = MutableStylePropertySet::create(HTMLQuirksM ode); 452 MutableStylePropertySet* style = MutableStylePropertySet::create(HTMLQuirksM ode);
453 453
454 switch (getCellBorders()) { 454 switch (getCellBorders()) {
455 case SolidBordersColsOnly: 455 case SolidBordersColsOnly:
456 style->setProperty(CSSPropertyBorderLeftWidth, CSSValueThin); 456 style->setProperty(CSSPropertyBorderLeftWidth, CSSValueThin);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 return getAttribute(summaryAttr); 559 return getAttribute(summaryAttr);
560 } 560 }
561 561
562 DEFINE_TRACE(HTMLTableElement) 562 DEFINE_TRACE(HTMLTableElement)
563 { 563 {
564 visitor->trace(m_sharedCellStyle); 564 visitor->trace(m_sharedCellStyle);
565 HTMLElement::trace(visitor); 565 HTMLElement::trace(visitor);
566 } 566 }
567 567
568 } // namespace blink 568 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698