| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |