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

Side by Side Diff: Source/core/svg/SVGFEMorphologyElement.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
« no previous file with comments | « Source/core/svg/SVGFEMergeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('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) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 if (attrName == SVGNames::inAttr) { 150 if (attrName == SVGNames::inAttr) {
151 invalidate(); 151 invalidate();
152 return; 152 return;
153 } 153 }
154 154
155 ASSERT_NOT_REACHED(); 155 ASSERT_NOT_REACHED();
156 } 156 }
157 157
158 PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB uilder, Filter* filter) 158 PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB uilder, Filter* filter)
159 { 159 {
160 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); 160 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(in1CurrentV alue()));
161 float xRadius = radiusXCurrentValue(); 161 float xRadius = radiusXCurrentValue();
162 float yRadius = radiusYCurrentValue(); 162 float yRadius = radiusYCurrentValue();
163 163
164 if (!input1) 164 if (!input1)
165 return 0; 165 return 0;
166 166
167 if (xRadius < 0 || yRadius < 0) 167 if (xRadius < 0 || yRadius < 0)
168 return 0; 168 return 0;
169 169
170 RefPtr<FilterEffect> effect = FEMorphology::create(filter, svgOperatorCurren tValue(), xRadius, yRadius); 170 RefPtr<FilterEffect> effect = FEMorphology::create(filter, svgOperatorCurren tValue(), xRadius, yRadius);
171 effect->inputEffects().append(input1); 171 effect->inputEffects().append(input1);
172 return effect.release(); 172 return effect.release();
173 } 173 }
174 174
175 } // namespace WebCore 175 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEMergeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698