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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp

Issue 1477213003: More switching to standard type traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Excluded WTF::IsSubclass from the patch Created 4 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, 2008, 2009, 2010, 2013 Apple Inc. All r ights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r ights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 row.logicalHeight = logicalHeight; 73 row.logicalHeight = logicalHeight;
74 break; 74 break;
75 default: 75 default:
76 break; 76 break;
77 } 77 }
78 } 78 }
79 } 79 }
80 80
81 void CellSpan::ensureConsistency(const unsigned maximumSpanSize) 81 void CellSpan::ensureConsistency(const unsigned maximumSpanSize)
82 { 82 {
83 static_assert(WTF::IsSameType<decltype(m_start), unsigned>::value, "Asserts below assume m_start is unsigned"); 83 static_assert(std::is_same<decltype(m_start), unsigned>::value, "Asserts bel ow assume m_start is unsigned");
84 static_assert(WTF::IsSameType<decltype(m_end), unsigned>::value, "Asserts be low assume m_end is unsigned"); 84 static_assert(std::is_same<decltype(m_end), unsigned>::value, "Asserts below assume m_end is unsigned");
85 RELEASE_ASSERT(m_start <= maximumSpanSize); 85 RELEASE_ASSERT(m_start <= maximumSpanSize);
86 RELEASE_ASSERT(m_end <= maximumSpanSize); 86 RELEASE_ASSERT(m_end <= maximumSpanSize);
87 RELEASE_ASSERT(m_start <= m_end); 87 RELEASE_ASSERT(m_start <= m_end);
88 } 88 }
89 89
90 LayoutTableSection::LayoutTableSection(Element* element) 90 LayoutTableSection::LayoutTableSection(Element* element)
91 : LayoutBox(element) 91 : LayoutBox(element)
92 , m_cCol(0) 92 , m_cCol(0)
93 , m_cRow(0) 93 , m_cRow(0)
94 , m_outerBorderStart(0) 94 , m_outerBorderStart(0)
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 // FIXME: The table's direction should determine our row's direction, not th e section's (see bug 96691). 1671 // FIXME: The table's direction should determine our row's direction, not th e section's (see bug 96691).
1672 if (!style()->isLeftToRightDirection()) 1672 if (!style()->isLeftToRightDirection())
1673 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] + horizontalBorderSpacing); 1673 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] + horizontalBorderSpacing);
1674 else 1674 else
1675 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing); 1675 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing);
1676 1676
1677 cell->setLogicalLocation(cellLocation); 1677 cell->setLogicalLocation(cellLocation);
1678 } 1678 }
1679 1679
1680 } // namespace blink 1680 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.h ('k') | third_party/WebKit/Source/platform/CrossThreadCopier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698