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

Side by Side Diff: Source/core/rendering/RenderTableRow.cpp

Issue 23521004: Remove StackStats. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows compile. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderTableCell.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('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 Apple Inc. All r ights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 ASSERT(!beforeChild || beforeChild->isTableCell()); 150 ASSERT(!beforeChild || beforeChild->isTableCell());
151 RenderBox::addChild(cell, beforeChild); 151 RenderBox::addChild(cell, beforeChild);
152 152
153 if (beforeChild || nextSibling()) 153 if (beforeChild || nextSibling())
154 section()->setNeedsCellRecalc(); 154 section()->setNeedsCellRecalc();
155 } 155 }
156 156
157 void RenderTableRow::layout() 157 void RenderTableRow::layout()
158 { 158 {
159 StackStats::LayoutCheckPoint layoutCheckPoint;
160 ASSERT(needsLayout()); 159 ASSERT(needsLayout());
161 160
162 // Table rows do not add translation. 161 // Table rows do not add translation.
163 LayoutStateMaintainer statePusher(view(), this, LayoutSize(), style()->isFli ppedBlocksWritingMode()); 162 LayoutStateMaintainer statePusher(view(), this, LayoutSize(), style()->isFli ppedBlocksWritingMode());
164 163
165 bool paginated = view()->layoutState()->isPaginated(); 164 bool paginated = view()->layoutState()->isPaginated();
166 165
167 for (RenderObject* child = firstChild(); child; child = child->nextSibling() ) { 166 for (RenderObject* child = firstChild(); child; child = child->nextSibling() ) {
168 if (child->isTableCell()) { 167 if (child->isTableCell()) {
169 SubtreeLayoutScope layouter(child); 168 SubtreeLayoutScope layouter(child);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 275
277 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb ject* parent) 276 RenderTableRow* RenderTableRow::createAnonymousWithParentRenderer(const RenderOb ject* parent)
278 { 277 {
279 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document()) ; 278 RenderTableRow* newRow = RenderTableRow::createAnonymous(parent->document()) ;
280 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW); 279 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW);
281 newRow->setStyle(newStyle.release()); 280 newRow->setStyle(newStyle.release());
282 return newRow; 281 return newRow;
283 } 282 }
284 283
285 } // namespace WebCore 284 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCell.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698