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

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

Issue 68643007: Remove QualifiedName argument from SVGElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 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
« no previous file with comments | « Source/core/svg/SVGFECompositeElement.h ('k') | Source/core/svg/SVGFEConvolveMatrixElement.h » ('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 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 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 * 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) 42 REGISTER_LOCAL_ANIMATED_PROPERTY(in1)
43 REGISTER_LOCAL_ANIMATED_PROPERTY(in2) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(in2)
44 REGISTER_LOCAL_ANIMATED_PROPERTY(svgOperator) 44 REGISTER_LOCAL_ANIMATED_PROPERTY(svgOperator)
45 REGISTER_LOCAL_ANIMATED_PROPERTY(k1) 45 REGISTER_LOCAL_ANIMATED_PROPERTY(k1)
46 REGISTER_LOCAL_ANIMATED_PROPERTY(k2) 46 REGISTER_LOCAL_ANIMATED_PROPERTY(k2)
47 REGISTER_LOCAL_ANIMATED_PROPERTY(k3) 47 REGISTER_LOCAL_ANIMATED_PROPERTY(k3)
48 REGISTER_LOCAL_ANIMATED_PROPERTY(k4) 48 REGISTER_LOCAL_ANIMATED_PROPERTY(k4)
49 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) 49 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
50 END_REGISTER_ANIMATED_PROPERTIES 50 END_REGISTER_ANIMATED_PROPERTIES
51 51
52 inline SVGFECompositeElement::SVGFECompositeElement(const QualifiedName& tagName , Document& document) 52 inline SVGFECompositeElement::SVGFECompositeElement(Document& document)
53 : SVGFilterPrimitiveStandardAttributes(tagName, document) 53 : SVGFilterPrimitiveStandardAttributes(SVGNames::feCompositeTag, document)
54 , m_svgOperator(FECOMPOSITE_OPERATOR_OVER) 54 , m_svgOperator(FECOMPOSITE_OPERATOR_OVER)
55 { 55 {
56 ASSERT(hasTagName(SVGNames::feCompositeTag));
57 ScriptWrappable::init(this); 56 ScriptWrappable::init(this);
58 registerAnimatedPropertiesForSVGFECompositeElement(); 57 registerAnimatedPropertiesForSVGFECompositeElement();
59 } 58 }
60 59
61 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(const QualifiedN ame& tagName, Document& document) 60 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(Document& docume nt)
62 { 61 {
63 return adoptRef(new SVGFECompositeElement(tagName, document)); 62 return adoptRef(new SVGFECompositeElement(document));
64 } 63 }
65 64
66 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) 65 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName)
67 { 66 {
68 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 67 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
69 if (supportedAttributes.isEmpty()) { 68 if (supportedAttributes.isEmpty()) {
70 supportedAttributes.add(SVGNames::inAttr); 69 supportedAttributes.add(SVGNames::inAttr);
71 supportedAttributes.add(SVGNames::in2Attr); 70 supportedAttributes.add(SVGNames::in2Attr);
72 supportedAttributes.add(SVGNames::operatorAttr); 71 supportedAttributes.add(SVGNames::operatorAttr);
73 supportedAttributes.add(SVGNames::k1Attr); 72 supportedAttributes.add(SVGNames::k1Attr);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 179
181 RefPtr<FilterEffect> effect = FEComposite::create(filter, svgOperatorCurrent Value(), k1CurrentValue(), k2CurrentValue(), k3CurrentValue(), k4CurrentValue()) ; 180 RefPtr<FilterEffect> effect = FEComposite::create(filter, svgOperatorCurrent Value(), k1CurrentValue(), k2CurrentValue(), k3CurrentValue(), k4CurrentValue()) ;
182 FilterEffectVector& inputEffects = effect->inputEffects(); 181 FilterEffectVector& inputEffects = effect->inputEffects();
183 inputEffects.reserveCapacity(2); 182 inputEffects.reserveCapacity(2);
184 inputEffects.append(input1); 183 inputEffects.append(input1);
185 inputEffects.append(input2); 184 inputEffects.append(input2);
186 return effect.release(); 185 return effect.release();
187 } 186 }
188 187
189 } 188 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFECompositeElement.h ('k') | Source/core/svg/SVGFEConvolveMatrixElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698