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

Side by Side Diff: Source/core/rendering/RenderFlexibleBox.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 { 130 {
131 setChildrenInline(false); // All of our children must be block-level. 131 setChildrenInline(false); // All of our children must be block-level.
132 } 132 }
133 133
134 RenderFlexibleBox::~RenderFlexibleBox() 134 RenderFlexibleBox::~RenderFlexibleBox()
135 { 135 {
136 } 136 }
137 137
138 RenderFlexibleBox* RenderFlexibleBox::createAnonymous(Document* document) 138 RenderFlexibleBox* RenderFlexibleBox::createAnonymous(Document* document)
139 { 139 {
140 RenderFlexibleBox* renderer = new (document->renderArena()) RenderFlexibleBo x(0); 140 RenderFlexibleBox* renderer = new RenderFlexibleBox(0);
141 renderer->setDocumentForAnonymous(document); 141 renderer->setDocumentForAnonymous(document);
142 return renderer; 142 return renderer;
143 } 143 }
144 144
145 const char* RenderFlexibleBox::renderName() const 145 const char* RenderFlexibleBox::renderName() const
146 { 146 {
147 return "RenderFlexibleBox"; 147 return "RenderFlexibleBox";
148 } 148 }
149 149
150 static LayoutUnit marginLogicalWidthForChild(RenderBox* child, RenderStyle* pare ntStyle) 150 static LayoutUnit marginLogicalWidthForChild(RenderBox* child, RenderStyle* pare ntStyle)
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 ASSERT(child); 1469 ASSERT(child);
1470 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent; 1470 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent;
1471 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge; 1471 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge;
1472 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent; 1472 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent;
1473 adjustAlignmentForChild(child, newOffset - originalOffset); 1473 adjustAlignmentForChild(child, newOffset - originalOffset);
1474 } 1474 }
1475 } 1475 }
1476 } 1476 }
1477 1477
1478 } 1478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698