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

Side by Side Diff: Source/core/rendering/RenderTable.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, 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 * 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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect)) 1413 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect))
1414 return true; 1414 return true;
1415 } 1415 }
1416 1416
1417 return false; 1417 return false;
1418 } 1418 }
1419 1419
1420 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent) 1420 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent)
1421 { 1421 {
1422 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE); 1422 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE);
1423 RenderTable* newTable = new (parent->renderArena()) RenderTable(0); 1423 RenderTable* newTable = new RenderTable(0);
1424 newTable->setDocumentForAnonymous(parent->document()); 1424 newTable->setDocumentForAnonymous(parent->document());
1425 newTable->setStyle(newStyle.release()); 1425 newTable->setStyle(newStyle.release());
1426 return newTable; 1426 return newTable;
1427 } 1427 }
1428 1428
1429 const BorderValue& RenderTable::tableStartBorderAdjoiningCell(const RenderTableC ell* cell) const 1429 const BorderValue& RenderTable::tableStartBorderAdjoiningCell(const RenderTableC ell* cell) const
1430 { 1430 {
1431 ASSERT(cell->isFirstOrLastCellInRow()); 1431 ASSERT(cell->isFirstOrLastCellInRow());
1432 if (hasSameDirectionAs(cell->row())) 1432 if (hasSameDirectionAs(cell->row()))
1433 return style()->borderStart(); 1433 return style()->borderStart();
1434 1434
1435 return style()->borderEnd(); 1435 return style()->borderEnd();
1436 } 1436 }
1437 1437
1438 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1438 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1439 { 1439 {
1440 ASSERT(cell->isFirstOrLastCellInRow()); 1440 ASSERT(cell->isFirstOrLastCellInRow());
1441 if (hasSameDirectionAs(cell->row())) 1441 if (hasSameDirectionAs(cell->row()))
1442 return style()->borderEnd(); 1442 return style()->borderEnd();
1443 1443
1444 return style()->borderStart(); 1444 return style()->borderStart();
1445 } 1445 }
1446 1446
1447 } 1447 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698