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

Side by Side Diff: Source/WebCore/rendering/RenderTableSection.cpp

Issue 10459020: Merge 118592 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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/WebCore/rendering/RenderObject.cpp ('k') | no next file » | 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 ASSERT(!needsLayout()); 396 ASSERT(!needsLayout());
397 397
398 statePusher.pop(); 398 statePusher.pop();
399 399
400 return m_rowPos[m_grid.size()]; 400 return m_rowPos[m_grid.size()];
401 } 401 }
402 402
403 void RenderTableSection::layout() 403 void RenderTableSection::layout()
404 { 404 {
405 ASSERT(needsLayout()); 405 ASSERT(needsLayout());
406 ASSERT(!needsCellRecalc());
407 ASSERT(!table()->needsSectionRecalc());
406 408
407 LayoutStateMaintainer statePusher(view(), this, locationOffset(), style()->i sFlippedBlocksWritingMode()); 409 LayoutStateMaintainer statePusher(view(), this, locationOffset(), style()->i sFlippedBlocksWritingMode());
408 for (RenderObject* child = children()->firstChild(); child; child = child->n extSibling()) { 410 for (RenderObject* child = children()->firstChild(); child; child = child->n extSibling()) {
409 if (child->isTableRow()) { 411 if (child->isTableRow()) {
410 child->layoutIfNeeded(); 412 child->layoutIfNeeded();
411 ASSERT(!child->needsLayout()); 413 ASSERT(!child->needsLayout());
412 } 414 }
413 } 415 }
414 statePusher.pop(); 416 statePusher.pop();
415 setNeedsLayout(false); 417 setNeedsLayout(false);
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 1412
1411 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const RenderObject* parent) 1413 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const RenderObject* parent)
1412 { 1414 {
1413 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW_GROUP); 1415 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW_GROUP);
1414 RenderTableSection* newSection = new (parent->renderArena()) RenderTableSect ion(parent->document() /* is anonymous */); 1416 RenderTableSection* newSection = new (parent->renderArena()) RenderTableSect ion(parent->document() /* is anonymous */);
1415 newSection->setStyle(newStyle.release()); 1417 newSection->setStyle(newStyle.release());
1416 return newSection; 1418 return newSection;
1417 } 1419 }
1418 1420
1419 } // namespace WebCore 1421 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698