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

Side by Side Diff: Source/core/svg/SVGFilterPrimitiveStandardAttributes.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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 if (hasAttribute(SVGNames::xAttr)) 130 if (hasAttribute(SVGNames::xAttr))
131 filterEffect->setHasX(true); 131 filterEffect->setHasX(true);
132 if (hasAttribute(SVGNames::yAttr)) 132 if (hasAttribute(SVGNames::yAttr))
133 filterEffect->setHasY(true); 133 filterEffect->setHasY(true);
134 if (hasAttribute(SVGNames::widthAttr)) 134 if (hasAttribute(SVGNames::widthAttr))
135 filterEffect->setHasWidth(true); 135 filterEffect->setHasWidth(true);
136 if (hasAttribute(SVGNames::heightAttr)) 136 if (hasAttribute(SVGNames::heightAttr))
137 filterEffect->setHasHeight(true); 137 filterEffect->setHasHeight(true);
138 } 138 }
139 139
140 RenderObject* SVGFilterPrimitiveStandardAttributes::createRenderer(RenderArena* arena, RenderStyle*) 140 RenderObject* SVGFilterPrimitiveStandardAttributes::createRenderer(RenderStyle*)
141 { 141 {
142 return new (arena) RenderSVGResourceFilterPrimitive(this); 142 return new RenderSVGResourceFilterPrimitive(this);
143 } 143 }
144 144
145 bool SVGFilterPrimitiveStandardAttributes::rendererIsNeeded(const NodeRenderingC ontext& context) 145 bool SVGFilterPrimitiveStandardAttributes::rendererIsNeeded(const NodeRenderingC ontext& context)
146 { 146 {
147 if (parentNode() && (parentNode()->hasTagName(SVGNames::filterTag))) 147 if (parentNode() && (parentNode()->hasTagName(SVGNames::filterTag)))
148 return SVGStyledElement::rendererIsNeeded(context); 148 return SVGStyledElement::rendererIsNeeded(context);
149 149
150 return false; 150 return false;
151 } 151 }
152 152
153 void invalidateFilterPrimitiveParent(SVGElement* element) 153 void invalidateFilterPrimitiveParent(SVGElement* element)
154 { 154 {
155 if (!element) 155 if (!element)
156 return; 156 return;
157 157
158 ContainerNode* parent = element->parentNode(); 158 ContainerNode* parent = element->parentNode();
159 159
160 if (!parent) 160 if (!parent)
161 return; 161 return;
162 162
163 RenderObject* renderer = parent->renderer(); 163 RenderObject* renderer = parent->renderer();
164 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) 164 if (!renderer || !renderer->isSVGResourceFilterPrimitive())
165 return; 165 return;
166 166
167 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e); 167 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e);
168 } 168 }
169 169
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698