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

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

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 ASSERT_NOT_REACHED(); 148 ASSERT_NOT_REACHED();
149 } 149 }
150 150
151 PassRefPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuilder* filterB uilder, Filter* filter) 151 PassRefPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuilder* filterB uilder, Filter* filter)
152 { 152 {
153 RenderObject* renderer = this->renderer(); 153 RenderObject* renderer = this->renderer();
154 if (!renderer) 154 if (!renderer)
155 return 0; 155 return 0;
156 156
157 if (stdDeviationX() < 0 || stdDeviationY() < 0) 157 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0)
158 return 0; 158 return 0;
159 159
160 ASSERT(renderer->style()); 160 ASSERT(renderer->style());
161 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle(); 161 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle();
162 162
163 Color color = svgStyle->floodColor(); 163 Color color = svgStyle->floodColor();
164 float opacity = svgStyle->floodOpacity(); 164 float opacity = svgStyle->floodOpacity();
165 165
166 FilterEffect* input1 = filterBuilder->getEffectById(in1()); 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, stdDeviationX(), stdDeviationY(), dx(), dy(), color, 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

Powered by Google App Engine
This is Rietveld 408576698