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

Unified Diff: Source/core/layout/TableLayoutAlgorithmAuto.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/OrderIterator.cpp ('k') | Source/core/layout/TextAutosizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/TableLayoutAlgorithmAuto.cpp
diff --git a/Source/core/layout/TableLayoutAlgorithmAuto.cpp b/Source/core/layout/TableLayoutAlgorithmAuto.cpp
index 32c91db962a4a6f443e89cad7ec2495726b4d041..b5e824c41e190ade6ef7935bfe08b77e1d7198d1 100644
--- a/Source/core/layout/TableLayoutAlgorithmAuto.cpp
+++ b/Source/core/layout/TableLayoutAlgorithmAuto.cpp
@@ -45,8 +45,8 @@ void TableLayoutAlgorithmAuto::recalcColumn(unsigned effCol)
{
Layout& columnLayout = m_layoutStruct[effCol];
- LayoutTableCell* fixedContributor = 0;
- LayoutTableCell* maxContributor = 0;
+ LayoutTableCell* fixedContributor = nullptr;
+ LayoutTableCell* maxContributor = nullptr;
for (LayoutObject* child = m_table->children()->firstChild(); child; child = child->nextSibling()) {
if (child->isLayoutTableCol()) {
@@ -131,7 +131,7 @@ void TableLayoutAlgorithmAuto::recalcColumn(unsigned effCol)
if (columnLayout.logicalWidth.isFixed()) {
if (m_table->document().inQuirksMode() && columnLayout.maxLogicalWidth > columnLayout.logicalWidth.value() && fixedContributor != maxContributor) {
columnLayout.logicalWidth = Length();
- fixedContributor = 0;
+ fixedContributor = nullptr;
}
}
« no previous file with comments | « Source/core/layout/OrderIterator.cpp ('k') | Source/core/layout/TextAutosizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698