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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz>
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 void SVGFEDiffuseLightingElement::lightElementAttributeChanged(const SVGFELightE lement* lightElement, const QualifiedName& attrName) 112 void SVGFEDiffuseLightingElement::lightElementAttributeChanged(const SVGFELightE lement* lightElement, const QualifiedName& attrName)
113 { 113 {
114 if (SVGFELightElement::findLightElement(*this) != lightElement) 114 if (SVGFELightElement::findLightElement(*this) != lightElement)
115 return; 115 return;
116 116
117 // The light element has different attribute names. 117 // The light element has different attribute names.
118 primitiveAttributeChanged(attrName); 118 primitiveAttributeChanged(attrName);
119 } 119 }
120 120
121 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilte rBuilder* filterBuilder, Filter* filter) 121 RawPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilterBuilder* filter Builder, Filter* filter)
122 { 122 {
123 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 123 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
124 ASSERT(input1); 124 ASSERT(input1);
125 125
126 LayoutObject* layoutObject = this->layoutObject(); 126 LayoutObject* layoutObject = this->layoutObject();
127 if (!layoutObject) 127 if (!layoutObject)
128 return nullptr; 128 return nullptr;
129 129
130 ASSERT(layoutObject->style()); 130 ASSERT(layoutObject->style());
131 Color color = layoutObject->style()->svgStyle().lightingColor(); 131 Color color = layoutObject->style()->svgStyle().lightingColor();
132 132
133 const SVGFELightElement* lightNode = SVGFELightElement::findLightElement(*th is); 133 const SVGFELightElement* lightNode = SVGFELightElement::findLightElement(*th is);
134 RefPtr<LightSource> lightSource = lightNode ? lightNode->lightSource(filter) : nullptr; 134 RefPtr<LightSource> lightSource = lightNode ? lightNode->lightSource(filter) : nullptr;
135 135
136 RefPtrWillBeRawPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, 136 RawPtr<FilterEffect> effect = FEDiffuseLighting::create(filter,
137 color, 137 color,
138 m_surfaceScale->currentValue()->value(), 138 m_surfaceScale->currentValue()->value(),
139 m_diffuseConstant->currentValue()->value(), 139 m_diffuseConstant->currentValue()->value(),
140 lightSource.release()); 140 lightSource.release());
141 effect->inputEffects().append(input1); 141 effect->inputEffects().append(input1);
142 return effect.release(); 142 return effect.release();
143 } 143 }
144 144
145 } // namespace blink 145 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698