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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect)) 1414 if (!result.addNodeToRectBasedTestResult(node(), request, locationInCont ainer, boundsRect))
1415 return true; 1415 return true;
1416 } 1416 }
1417 1417
1418 return false; 1418 return false;
1419 } 1419 }
1420 1420
1421 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent) 1421 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent)
1422 { 1422 {
1423 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE); 1423 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE);
1424 RenderTable* newTable = new (parent->renderArena()) RenderTable(0); 1424 RenderTable* newTable = new RenderTable(0);
1425 newTable->setDocumentForAnonymous(parent->document()); 1425 newTable->setDocumentForAnonymous(parent->document());
1426 newTable->setStyle(newStyle.release()); 1426 newTable->setStyle(newStyle.release());
1427 return newTable; 1427 return newTable;
1428 } 1428 }
1429 1429
1430 const BorderValue& RenderTable::tableStartBorderAdjoiningCell(const RenderTableC ell* cell) const 1430 const BorderValue& RenderTable::tableStartBorderAdjoiningCell(const RenderTableC ell* cell) const
1431 { 1431 {
1432 ASSERT(cell->isFirstOrLastCellInRow()); 1432 ASSERT(cell->isFirstOrLastCellInRow());
1433 if (hasSameDirectionAs(cell->row())) 1433 if (hasSameDirectionAs(cell->row()))
1434 return style()->borderStart(); 1434 return style()->borderStart();
1435 1435
1436 return style()->borderEnd(); 1436 return style()->borderEnd();
1437 } 1437 }
1438 1438
1439 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const 1439 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel l* cell) const
1440 { 1440 {
1441 ASSERT(cell->isFirstOrLastCellInRow()); 1441 ASSERT(cell->isFirstOrLastCellInRow());
1442 if (hasSameDirectionAs(cell->row())) 1442 if (hasSameDirectionAs(cell->row()))
1443 return style()->borderEnd(); 1443 return style()->borderEnd();
1444 1444
1445 return style()->borderStart(); 1445 return style()->borderStart();
1446 } 1446 }
1447 1447
1448 } 1448 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderScrollbarPart.cpp ('k') | Source/core/rendering/RenderTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698