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

Side by Side Diff: Source/core/layout/LayoutTableCol.cpp

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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 | « Source/core/layout/LayoutTableCol.h ('k') | Source/core/layout/LayoutTableRow.h » ('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, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 for (LayoutObject* child = firstChild(); child; child = child->nextSibling() ) 135 for (LayoutObject* child = firstChild(); child; child = child->nextSibling() )
136 child->clearPreferredLogicalWidthsDirty(); 136 child->clearPreferredLogicalWidthsDirty();
137 } 137 }
138 138
139 LayoutTable* LayoutTableCol::table() const 139 LayoutTable* LayoutTableCol::table() const
140 { 140 {
141 LayoutObject* table = parent(); 141 LayoutObject* table = parent();
142 if (table && !table->isTable()) 142 if (table && !table->isTable())
143 table = table->parent(); 143 table = table->parent();
144 return table && table->isTable() ? toLayoutTable(table) : 0; 144 return table && table->isTable() ? toLayoutTable(table) : nullptr;
145 } 145 }
146 146
147 LayoutTableCol* LayoutTableCol::enclosingColumnGroup() const 147 LayoutTableCol* LayoutTableCol::enclosingColumnGroup() const
148 { 148 {
149 if (!parent()->isLayoutTableCol()) 149 if (!parent()->isLayoutTableCol())
150 return 0; 150 return nullptr;
151 151
152 LayoutTableCol* parentColumnGroup = toLayoutTableCol(parent()); 152 LayoutTableCol* parentColumnGroup = toLayoutTableCol(parent());
153 ASSERT(parentColumnGroup->isTableColumnGroup()); 153 ASSERT(parentColumnGroup->isTableColumnGroup());
154 ASSERT(isTableColumn()); 154 ASSERT(isTableColumn());
155 return parentColumnGroup; 155 return parentColumnGroup;
156 } 156 }
157 157
158 LayoutTableCol* LayoutTableCol::nextColumn() const 158 LayoutTableCol* LayoutTableCol::nextColumn() const
159 { 159 {
160 // If |this| is a column-group, the next column is the colgroup's first chil d column. 160 // If |this| is a column-group, the next column is the colgroup's first chil d column.
(...skipping 28 matching lines...) Expand all
189 return style()->borderStart(); 189 return style()->borderStart();
190 } 190 }
191 191
192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const 192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const
193 { 193 {
194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); 194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this);
195 return style()->borderEnd(); 195 return style()->borderEnd();
196 } 196 }
197 197
198 } 198 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTableCol.h ('k') | Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698