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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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
« 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(const QualifiedName& tagNa me, Document& document)
50 : SVGFilterPrimitiveStandardAttributes(tagName, document) 50 : SVGFilterPrimitiveStandardAttributes(tagName, 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)); 56 ASSERT(hasTagName(SVGNames::feDropShadowTag));
57 ScriptWrappable::init(this); 57 ScriptWrappable::init(this);
58 registerAnimatedPropertiesForSVGFEDropShadowElement(); 58 registerAnimatedPropertiesForSVGFEDropShadowElement();
59 } 59 }
60 60
61 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(const Qualifie dName& tagName, Document* document) 61 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(const Qualifie dName& tagName, Document& document)
62 { 62 {
63 return adoptRef(new SVGFEDropShadowElement(tagName, document)); 63 return adoptRef(new SVGFEDropShadowElement(tagName, document));
64 } 64 }
65 65
66 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier() 66 const AtomicString& SVGFEDropShadowElement::stdDeviationXIdentifier()
67 { 67 {
68 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral)); 68 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGStdDeviationX", AtomicS tring::ConstructFromLiteral));
69 return s_identifier; 69 return s_identifier;
70 } 70 }
71 71
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); 166 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue());
167 if (!input1) 167 if (!input1)
168 return 0; 168 return 0;
169 169
170 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col or, opacity); 170 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col or, opacity);
171 effect->inputEffects().append(input1); 171 effect->inputEffects().append(input1);
172 return effect.release(); 172 return effect.release();
173 } 173 }
174 174
175 } 175 }
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