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

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

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 { 1409 {
1410 ASSERT(table()->collapseBorders()); 1410 ASSERT(table()->collapseBorders());
1411 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue>::iterator i t = m_cellsCollapsedBorders.find(make_pair(cell, side)); 1411 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue>::iterator i t = m_cellsCollapsedBorders.find(make_pair(cell, side));
1412 ASSERT(it != m_cellsCollapsedBorders.end()); 1412 ASSERT(it != m_cellsCollapsedBorders.end());
1413 return it->value; 1413 return it->value;
1414 } 1414 }
1415 1415
1416 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const RenderObject* parent) 1416 RenderTableSection* RenderTableSection::createAnonymousWithParentRenderer(const RenderObject* parent)
1417 { 1417 {
1418 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW_GROUP); 1418 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_ROW_GROUP);
1419 RenderTableSection* newSection = new (parent->renderArena()) RenderTableSect ion(0); 1419 RenderTableSection* newSection = new RenderTableSection(0);
1420 newSection->setDocumentForAnonymous(parent->document()); 1420 newSection->setDocumentForAnonymous(parent->document());
1421 newSection->setStyle(newStyle.release()); 1421 newSection->setStyle(newStyle.release());
1422 return newSection; 1422 return newSection;
1423 } 1423 }
1424 1424
1425 void RenderTableSection::setLogicalPositionForCell(RenderTableCell* cell, unsign ed effectiveColumn) const 1425 void RenderTableSection::setLogicalPositionForCell(RenderTableCell* cell, unsign ed effectiveColumn) const
1426 { 1426 {
1427 LayoutPoint oldCellLocation = cell->location(); 1427 LayoutPoint oldCellLocation = cell->location();
1428 1428
1429 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]); 1429 LayoutPoint cellLocation(0, m_rowPos[cell->rowIndex()]);
(...skipping 28 matching lines...) Expand all
1458 info.addMember(logicalHeight, "logicalHeight"); 1458 info.addMember(logicalHeight, "logicalHeight");
1459 } 1459 }
1460 1460
1461 void RenderTableSection::CellStruct::reportMemoryUsage(MemoryObjectInfo* memoryO bjectInfo) const 1461 void RenderTableSection::CellStruct::reportMemoryUsage(MemoryObjectInfo* memoryO bjectInfo) const
1462 { 1462 {
1463 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering) ; 1463 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering) ;
1464 info.addMember(cells, "cells"); 1464 info.addMember(cells, "cells");
1465 } 1465 }
1466 1466
1467 } // namespace WebCore 1467 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698