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

Side by Side Diff: Source/core/svg/SVGFEGaussianBlurElement.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/SVGFEGaussianBlurElement.h ('k') | Source/core/svg/SVGFEImageElement.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 24 matching lines...) Expand all
35 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std DeviationAttr, stdDeviationXIdentifier(), StdDeviationX, stdDeviationX) 35 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std DeviationAttr, stdDeviationXIdentifier(), StdDeviationX, stdDeviationX)
36 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std DeviationAttr, stdDeviationYIdentifier(), StdDeviationY, stdDeviationY) 36 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::std DeviationAttr, stdDeviationYIdentifier(), StdDeviationY, stdDeviationY)
37 37
38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEGaussianBlurElement) 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEGaussianBlurElement)
39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) 39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1)
40 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) 40 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX)
41 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) 41 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY)
42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) 42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
43 END_REGISTER_ANIMATED_PROPERTIES 43 END_REGISTER_ANIMATED_PROPERTIES
44 44
45 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& t agName, Document& document) 45 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(Document& document)
46 : SVGFilterPrimitiveStandardAttributes(tagName, document) 46 : SVGFilterPrimitiveStandardAttributes(SVGNames::feGaussianBlurTag, document )
47 { 47 {
48 ASSERT(hasTagName(SVGNames::feGaussianBlurTag));
49 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
50 registerAnimatedPropertiesForSVGFEGaussianBlurElement(); 49 registerAnimatedPropertiesForSVGFEGaussianBlurElement();
51 } 50 }
52 51
53 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(const Qual ifiedName& tagName, Document& document) 52 PassRefPtr<SVGFEGaussianBlurElement> SVGFEGaussianBlurElement::create(Document& document)
54 { 53 {
55 return adoptRef(new SVGFEGaussianBlurElement(tagName, document)); 54 return adoptRef(new SVGFEGaussianBlurElement(document));
56 } 55 }
57 56
58 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier() 57 const AtomicString& SVGFEGaussianBlurElement::stdDeviationXIdentifier()
59 { 58 {
60 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral)); 59 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral));
61 return s_identifier; 60 return s_identifier;
62 } 61 }
63 62
64 const AtomicString& SVGFEGaussianBlurElement::stdDeviationYIdentifier() 63 const AtomicString& SVGFEGaussianBlurElement::stdDeviationYIdentifier()
65 { 64 {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 133
135 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) 134 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0)
136 return 0; 135 return 0;
137 136
138 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationXCu rrentValue(), stdDeviationYCurrentValue()); 137 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationXCu rrentValue(), stdDeviationYCurrentValue());
139 effect->inputEffects().append(input1); 138 effect->inputEffects().append(input1);
140 return effect.release(); 139 return effect.release();
141 } 140 }
142 141
143 } 142 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.h ('k') | Source/core/svg/SVGFEImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698