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

Side by Side Diff: Source/core/rendering/RenderTableCell.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
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | Source/core/rendering/RenderTableRow.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 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPaddi ng) / 2; 1244 LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPaddi ng) / 2;
1245 LayoutUnit newAfterPadding = totalHeight - heightWithoutIntrinsicPadding - newBeforePadding; 1245 LayoutUnit newAfterPadding = totalHeight - heightWithoutIntrinsicPadding - newBeforePadding;
1246 setIntrinsicPaddingBefore(newBeforePadding); 1246 setIntrinsicPaddingBefore(newBeforePadding);
1247 setIntrinsicPaddingAfter(newAfterPadding); 1247 setIntrinsicPaddingAfter(newAfterPadding);
1248 } else 1248 } else
1249 setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight); 1249 setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight);
1250 } 1250 }
1251 1251
1252 RenderTableCell* RenderTableCell::createAnonymous(Document* document) 1252 RenderTableCell* RenderTableCell::createAnonymous(Document* document)
1253 { 1253 {
1254 RenderTableCell* renderer = new (document->renderArena()) RenderTableCell(0) ; 1254 RenderTableCell* renderer = new RenderTableCell(0);
1255 renderer->setDocumentForAnonymous(document); 1255 renderer->setDocumentForAnonymous(document);
1256 return renderer; 1256 return renderer;
1257 } 1257 }
1258 1258
1259 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render Object* parent) 1259 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render Object* parent)
1260 { 1260 {
1261 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document ()); 1261 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document ());
1262 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_CELL); 1262 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay( parent->style(), TABLE_CELL);
1263 newCell->setStyle(newStyle.release()); 1263 newCell->setStyle(newStyle.release());
1264 return newCell; 1264 return newCell;
1265 } 1265 }
1266 1266
1267 } // namespace WebCore 1267 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | Source/core/rendering/RenderTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698