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

Side by Side Diff: Source/core/layout/LayoutTableRow.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/LayoutTableRow.h ('k') | Source/core/layout/LayoutTableSection.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, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 220 }
221 221
222 void LayoutTableRow::imageChanged(WrappedImagePtr, const IntRect*) 222 void LayoutTableRow::imageChanged(WrappedImagePtr, const IntRect*)
223 { 223 {
224 // FIXME: Examine cells and issue paint invalidations of only the rect the i mage paints in. 224 // FIXME: Examine cells and issue paint invalidations of only the rect the i mage paints in.
225 setShouldDoFullPaintInvalidation(); 225 setShouldDoFullPaintInvalidation();
226 } 226 }
227 227
228 LayoutTableRow* LayoutTableRow::createAnonymous(Document* document) 228 LayoutTableRow* LayoutTableRow::createAnonymous(Document* document)
229 { 229 {
230 LayoutTableRow* layoutObject = new LayoutTableRow(0); 230 LayoutTableRow* layoutObject = new LayoutTableRow(nullptr);
231 layoutObject->setDocumentForAnonymous(document); 231 layoutObject->setDocumentForAnonymous(document);
232 return layoutObject; 232 return layoutObject;
233 } 233 }
234 234
235 LayoutTableRow* LayoutTableRow::createAnonymousWithParent(const LayoutObject* pa rent) 235 LayoutTableRow* LayoutTableRow::createAnonymousWithParent(const LayoutObject* pa rent)
236 { 236 {
237 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document() ); 237 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document() );
238 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp lay(parent->styleRef(), TABLE_ROW); 238 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp lay(parent->styleRef(), TABLE_ROW);
239 newRow->setStyle(newStyle.release()); 239 newRow->setStyle(newStyle.release());
240 return newRow; 240 return newRow;
(...skipping 11 matching lines...) Expand all
252 // The cell and the row share the section's coordinate system. However 252 // The cell and the row share the section's coordinate system. However
253 // the visual overflow should be determined in the coordinate system of 253 // the visual overflow should be determined in the coordinate system of
254 // the row, that's why we shift it below. 254 // the row, that's why we shift it below.
255 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location( ).y(); 255 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location( ).y();
256 cellVisualOverflowRect.move(0, cellOffsetLogicalTopDifference); 256 cellVisualOverflowRect.move(0, cellOffsetLogicalTopDifference);
257 257
258 addVisualOverflow(cellVisualOverflowRect); 258 addVisualOverflow(cellVisualOverflowRect);
259 } 259 }
260 260
261 } // namespace blink 261 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTableRow.h ('k') | Source/core/layout/LayoutTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698