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

Side by Side Diff: Source/core/svg/SVGForeignObjectElement.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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 if (isLengthAttribute) 118 if (isLengthAttribute)
119 updateRelativeLengthsInformation(); 119 updateRelativeLengthsInformation();
120 120
121 if (RenderObject* renderer = this->renderer()) 121 if (RenderObject* renderer = this->renderer())
122 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); 122 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer);
123 } 123 }
124 124
125 RenderObject* SVGForeignObjectElement::createRenderer(RenderStyle*) 125 RenderObject* SVGForeignObjectElement::createRenderer(RenderStyle*)
126 { 126 {
127 return new (document()->renderArena()) RenderSVGForeignObject(this); 127 return new RenderSVGForeignObject(this);
128 } 128 }
129 129
130 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte xt& childContext) const 130 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte xt& childContext) const
131 { 131 {
132 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd ocuments. 132 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd ocuments.
133 if (childContext.node()->isSVGElement()) 133 if (childContext.node()->isSVGElement())
134 return childContext.node()->hasTagName(SVGNames::svgTag); 134 return childContext.node()->hasTagName(SVGNames::svgTag);
135 135
136 // Skip over SVG rules which disallow non-SVG kids 136 // Skip over SVG rules which disallow non-SVG kids
137 return Element::childShouldCreateRenderer(childContext); 137 return Element::childShouldCreateRenderer(childContext);
(...skipping 19 matching lines...) Expand all
157 157
158 bool SVGForeignObjectElement::selfHasRelativeLengths() const 158 bool SVGForeignObjectElement::selfHasRelativeLengths() const
159 { 159 {
160 return xCurrentValue().isRelative() 160 return xCurrentValue().isRelative()
161 || yCurrentValue().isRelative() 161 || yCurrentValue().isRelative()
162 || widthCurrentValue().isRelative() 162 || widthCurrentValue().isRelative()
163 || heightCurrentValue().isRelative(); 163 || heightCurrentValue().isRelative();
164 } 164 }
165 165
166 } 166 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp ('k') | Source/core/svg/SVGGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698