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

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

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 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 14 matching lines...) Expand all
25 #include "core/rendering/style/RenderStyle.h" 25 #include "core/rendering/style/RenderStyle.h"
26 #include "core/rendering/style/SVGRenderStyle.h" 26 #include "core/rendering/style/SVGRenderStyle.h"
27 #include "core/svg/SVGElementInstance.h" 27 #include "core/svg/SVGElementInstance.h"
28 #include "core/svg/SVGParserUtilities.h" 28 #include "core/svg/SVGParserUtilities.h"
29 #include "core/svg/graphics/filters/SVGFilterBuilder.h" 29 #include "core/svg/graphics/filters/SVGFilterBuilder.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 // Animated property definitions 33 // Animated property definitions
34 34
35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDropShadowElement)
36 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
37 END_REGISTER_ANIMATED_PROPERTIES
38 35
39 inline SVGFEDropShadowElement::SVGFEDropShadowElement(Document& document) 36 inline SVGFEDropShadowElement::SVGFEDropShadowElement(Document& document)
40 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDropShadowTag, document) 37 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDropShadowTag, document)
41 , m_dx(SVGAnimatedNumber::create(this, SVGNames::dxAttr, SVGNumber::create(2 ))) 38 , m_dx(SVGAnimatedNumber::create(this, SVGNames::dxAttr, SVGNumber::create(2 )))
42 , m_dy(SVGAnimatedNumber::create(this, SVGNames::dyAttr, SVGNumber::create(2 ))) 39 , m_dy(SVGAnimatedNumber::create(this, SVGNames::dyAttr, SVGNumber::create(2 )))
43 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std DeviationAttr, 2, 2)) 40 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std DeviationAttr, 2, 2))
44 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( ))) 41 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( )))
45 { 42 {
46 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
47 44
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 133 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
137 if (!input1) 134 if (!input1)
138 return nullptr; 135 return nullptr;
139 136
140 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()-> currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current Value()->value(), m_dy->currentValue()->value(), color, opacity); 137 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()-> currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current Value()->value(), m_dy->currentValue()->value(), color, opacity);
141 effect->inputEffects().append(input1); 138 effect->inputEffects().append(input1);
142 return effect.release(); 139 return effect.release();
143 } 140 }
144 141
145 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698