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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 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) 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 Color color = layoutObject->style()->svgStyle().lightingColor(); 167 Color color = layoutObject->style()->svgStyle().lightingColor();
168 168
169 const SVGFELightElement* lightNode = 169 const SVGFELightElement* lightNode =
170 SVGFELightElement::findLightElement(*this); 170 SVGFELightElement::findLightElement(*this);
171 RefPtr<LightSource> lightSource = 171 RefPtr<LightSource> lightSource =
172 lightNode ? lightNode->lightSource(filter) : nullptr; 172 lightNode ? lightNode->lightSource(filter) : nullptr;
173 173
174 FilterEffect* effect = FESpecularLighting::create( 174 FilterEffect* effect = FESpecularLighting::create(
175 filter, color, m_surfaceScale->currentValue()->value(), 175 filter, color, m_surfaceScale->currentValue()->value(),
176 m_specularConstant->currentValue()->value(), 176 m_specularConstant->currentValue()->value(),
177 m_specularExponent->currentValue()->value(), lightSource.release()); 177 m_specularExponent->currentValue()->value(), std::move(lightSource));
178 effect->inputEffects().push_back(input1); 178 effect->inputEffects().push_back(input1);
179 return effect; 179 return effect;
180 } 180 }
181 181
182 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698