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

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

Issue 121173004: Make calls to AtomicString(const String&) explicit in svg/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take feedback into consideration Created 6 years, 11 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) 156 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0)
157 return 0; 157 return 0;
158 158
159 ASSERT(renderer->style()); 159 ASSERT(renderer->style());
160 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle(); 160 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle();
161 161
162 Color color = svgStyle->floodColor(); 162 Color color = svgStyle->floodColor();
163 float opacity = svgStyle->floodOpacity(); 163 float opacity = svgStyle->floodOpacity();
164 164
165 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); 165 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(in1CurrentV alue()));
166 if (!input1) 166 if (!input1)
167 return 0; 167 return 0;
168 168
169 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);
170 effect->inputEffects().append(input1); 170 effect->inputEffects().append(input1);
171 return effect.release(); 171 return effect.release();
172 } 172 }
173 173
174 } 174 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDisplacementMapElement.cpp ('k') | Source/core/svg/SVGFEGaussianBlurElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698