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

Side by Side Diff: Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 m_width->setDefaultValueAsString("100%"); 46 m_width->setDefaultValueAsString("100%");
47 m_height->setDefaultValueAsString("100%"); 47 m_height->setDefaultValueAsString("100%");
48 48
49 addToPropertyMap(m_x); 49 addToPropertyMap(m_x);
50 addToPropertyMap(m_y); 50 addToPropertyMap(m_y);
51 addToPropertyMap(m_width); 51 addToPropertyMap(m_width);
52 addToPropertyMap(m_height); 52 addToPropertyMap(m_height);
53 addToPropertyMap(m_result); 53 addToPropertyMap(m_result);
54 } 54 }
55 55
56 void SVGFilterPrimitiveStandardAttributes::trace(Visitor* visitor)
57 {
58 visitor->trace(m_x);
59 visitor->trace(m_y);
60 visitor->trace(m_width);
61 visitor->trace(m_height);
62 visitor->trace(m_result);
63 SVGElement::trace(visitor);
64 }
65
56 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN ame& attrName) 66 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN ame& attrName)
57 { 67 {
58 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 68 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
59 if (supportedAttributes.isEmpty()) { 69 if (supportedAttributes.isEmpty()) {
60 supportedAttributes.add(SVGNames::xAttr); 70 supportedAttributes.add(SVGNames::xAttr);
61 supportedAttributes.add(SVGNames::yAttr); 71 supportedAttributes.add(SVGNames::yAttr);
62 supportedAttributes.add(SVGNames::widthAttr); 72 supportedAttributes.add(SVGNames::widthAttr);
63 supportedAttributes.add(SVGNames::heightAttr); 73 supportedAttributes.add(SVGNames::heightAttr);
64 supportedAttributes.add(SVGNames::resultAttr); 74 supportedAttributes.add(SVGNames::resultAttr);
65 } 75 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return; 159 return;
150 160
151 RenderObject* renderer = parent->renderer(); 161 RenderObject* renderer = parent->renderer();
152 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) 162 if (!renderer || !renderer->isSVGResourceFilterPrimitive())
153 return; 163 return;
154 164
155 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende rer, false); 165 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende rer, false);
156 } 166 }
157 167
158 } 168 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.h ('k') | Source/core/svg/SVGFitToViewBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698