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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 LayoutState state(*this, LayoutSize()); 165 LayoutState state(*this, LayoutSize());
166 166
167 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) { 167 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) {
168 SubtreeLayoutScope layouter(*cell); 168 SubtreeLayoutScope layouter(*cell);
169 if (!cell->needsLayout()) 169 if (!cell->needsLayout())
170 cell->markForPaginationRelayoutIfNeeded(layouter); 170 cell->markForPaginationRelayoutIfNeeded(layouter);
171 if (cell->needsLayout()) 171 if (cell->needsLayout())
172 cell->layout(); 172 cell->layout();
173 } 173 }
174 174
175 m_overflow.clear(); 175 m_overflow.reset();
176 addVisualEffectOverflow(); 176 addVisualEffectOverflow();
177 // We do not call addOverflowFromCell here. The cell are laid out to be 177 // We do not call addOverflowFromCell here. The cell are laid out to be
178 // measured above and will be sized correctly in a follow-up phase. 178 // measured above and will be sized correctly in a follow-up phase.
179 179
180 // We only ever need to issue paint invalidations if our cells didn't, which means that they didn't need 180 // We only ever need to issue paint invalidations if our cells didn't, which means that they didn't need
181 // layout, so we know that our bounds didn't change. This code is just makin g up for 181 // layout, so we know that our bounds didn't change. This code is just makin g up for
182 // the fact that we did not invalidate paints in setStyle() because we had a layout hint. 182 // the fact that we did not invalidate paints in setStyle() because we had a layout hint.
183 if (selfNeedsLayout()) { 183 if (selfNeedsLayout()) {
184 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) { 184 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) {
185 // FIXME: Is this needed when issuing paint invalidations after layo ut? 185 // FIXME: Is this needed when issuing paint invalidations after layo ut?
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // The cell and the row share the section's coordinate system. However 254 // The cell and the row share the section's coordinate system. However
255 // the visual overflow should be determined in the coordinate system of 255 // the visual overflow should be determined in the coordinate system of
256 // the row, that's why we shift it below. 256 // the row, that's why we shift it below.
257 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location( ).y(); 257 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location( ).y();
258 cellVisualOverflowRect.move(LayoutUnit(), cellOffsetLogicalTopDifference); 258 cellVisualOverflowRect.move(LayoutUnit(), cellOffsetLogicalTopDifference);
259 259
260 addContentsVisualOverflow(cellVisualOverflowRect); 260 addContentsVisualOverflow(cellVisualOverflowRect);
261 } 261 }
262 262
263 } // namespace blink 263 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutReplaced.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698