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

Side by Side Diff: Source/core/svg/SVGFEDropShadowElement.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/SVGFEDropShadowElement.h ('k') | Source/core/svg/SVGFEFloodElement.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) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 28 matching lines...) Expand all
39 39
40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDropShadowElement) 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDropShadowElement)
41 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) 41 REGISTER_LOCAL_ANIMATED_PROPERTY(in1)
42 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) 42 REGISTER_LOCAL_ANIMATED_PROPERTY(dx)
43 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(dy)
44 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX) 44 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationX)
45 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY) 45 REGISTER_LOCAL_ANIMATED_PROPERTY(stdDeviationY)
46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) 46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
47 END_REGISTER_ANIMATED_PROPERTIES 47 END_REGISTER_ANIMATED_PROPERTIES
48 48
49 inline SVGFEDropShadowElement::SVGFEDropShadowElement(const QualifiedName& tagNa me, Document& document) 49 inline SVGFEDropShadowElement::SVGFEDropShadowElement(Document& document)
50 : SVGFilterPrimitiveStandardAttributes(tagName, document) 50 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDropShadowTag, document)
51 , m_dx(2) 51 , m_dx(2)
52 , m_dy(2) 52 , m_dy(2)
53 , m_stdDeviationX(2) 53 , m_stdDeviationX(2)
54 , m_stdDeviationY(2) 54 , m_stdDeviationY(2)
55 { 55 {
56 ASSERT(hasTagName(SVGNames::feDropShadowTag));
57 ScriptWrappable::init(this); 56 ScriptWrappable::init(this);
58 registerAnimatedPropertiesForSVGFEDropShadowElement(); 57 registerAnimatedPropertiesForSVGFEDropShadowElement();
59 } 58 }
60 59
61 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(const Qualifie dName& tagName, Document& document) 60 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(Document& docu ment)
62 { 61 {
63 return adoptRef(new SVGFEDropShadowElement(tagName, document)); 62 return adoptRef(new SVGFEDropShadowElement(document));
64 } 63 }
65 64
66 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier() 65 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier()
67 { 66 {
68 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral)); 67 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral));
69 return s_identifier; 68 return s_identifier;
70 } 69 }
71 70
72 const AtomicString& SVGFEDropShadowElement::stdDeviationYIdentifier() 71 const AtomicString& SVGFEDropShadowElement::stdDeviationYIdentifier()
73 { 72 {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); 165 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue());
167 if (!input1) 166 if (!input1)
168 return 0; 167 return 0;
169 168
170 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col or, opacity); 169 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col or, opacity);
171 effect->inputEffects().append(input1); 170 effect->inputEffects().append(input1);
172 return effect.release(); 171 return effect.release();
173 } 172 }
174 173
175 } 174 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDropShadowElement.h ('k') | Source/core/svg/SVGFEFloodElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698