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

Side by Side Diff: Source/core/rendering/RenderDeprecatedFlexibleBox.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/RenderBox.cpp ('k') | Source/core/rendering/RenderFlexibleBox.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 * This file is part of the render object implementation for KHTML. 2 * This file is part of the render object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebConten t); 135 UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebConten t);
136 } 136 }
137 } 137 }
138 138
139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox() 139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox()
140 { 140 {
141 } 141 }
142 142
143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume nt* document) 143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume nt* document)
144 { 144 {
145 RenderDeprecatedFlexibleBox* renderer = new (document->renderArena()) Render DeprecatedFlexibleBox(0); 145 RenderDeprecatedFlexibleBox* renderer = new RenderDeprecatedFlexibleBox(0);
146 renderer->setDocumentForAnonymous(document); 146 renderer->setDocumentForAnonymous(document);
147 return renderer; 147 return renderer;
148 } 148 }
149 149
150 static LayoutUnit marginWidthForChild(RenderBox* child) 150 static LayoutUnit marginWidthForChild(RenderBox* child)
151 { 151 {
152 // A margin basically has three types: fixed, percentage, and auto (variable ). 152 // A margin basically has three types: fixed, percentage, and auto (variable ).
153 // Auto and percentage margins simply become 0 when computing min/max width. 153 // Auto and percentage margins simply become 0 when computing min/max width.
154 // Fixed margins can be added in as is. 154 // Fixed margins can be added in as is.
155 Length marginLeft = child->style()->marginLeft(); 155 Length marginLeft = child->style()->marginLeft();
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 if (isPseudoElement()) 1099 if (isPseudoElement())
1100 return "RenderDeprecatedFlexibleBox (generated)"; 1100 return "RenderDeprecatedFlexibleBox (generated)";
1101 if (isAnonymous()) 1101 if (isAnonymous())
1102 return "RenderDeprecatedFlexibleBox (generated)"; 1102 return "RenderDeprecatedFlexibleBox (generated)";
1103 if (isRelPositioned()) 1103 if (isRelPositioned())
1104 return "RenderDeprecatedFlexibleBox (relative positioned)"; 1104 return "RenderDeprecatedFlexibleBox (relative positioned)";
1105 return "RenderDeprecatedFlexibleBox"; 1105 return "RenderDeprecatedFlexibleBox";
1106 } 1106 }
1107 1107
1108 } // namespace WebCore 1108 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698