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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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/SVGFEOffsetElement.cpp ('k') | Source/core/svg/SVGFETileElement.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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // The light element has different attribute names so attrName can identify the requested attribute. 178 // The light element has different attribute names so attrName can identify the requested attribute.
179 primitiveAttributeChanged(attrName); 179 primitiveAttributeChanged(attrName);
180 } 180 }
181 181
182 PassRefPtr<FilterEffect> SVGFESpecularLightingElement::build(SVGFilterBuilder* f ilterBuilder, Filter* filter) 182 PassRefPtr<FilterEffect> SVGFESpecularLightingElement::build(SVGFilterBuilder* f ilterBuilder, Filter* filter)
183 { 183 {
184 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 184 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
185 185
186 if (!input1) 186 if (!input1)
187 return 0; 187 return nullptr;
188 188
189 RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(this); 189 RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(this);
190 if (!lightSource) 190 if (!lightSource)
191 return 0; 191 return nullptr;
192 192
193 RenderObject* renderer = this->renderer(); 193 RenderObject* renderer = this->renderer();
194 if (!renderer) 194 if (!renderer)
195 return 0; 195 return nullptr;
196 196
197 ASSERT(renderer->style()); 197 ASSERT(renderer->style());
198 Color color = renderer->style()->svgStyle()->lightingColor(); 198 Color color = renderer->style()->svgStyle()->lightingColor();
199 199
200 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value() , 200 RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, m_su rfaceScale->currentValue()->value(), m_specularConstant->currentValue()->value() ,
201 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel ease()); 201 m_specularExponent->currentValue()->value(), kernelUnitLengthX()->curren tValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.rel ease());
202 effect->inputEffects().append(input1); 202 effect->inputEffects().append(input1);
203 return effect.release(); 203 return effect.release();
204 } 204 }
205 205
206 } 206 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEOffsetElement.cpp ('k') | Source/core/svg/SVGFETileElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698