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

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

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform the renames Created 6 years, 7 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) 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return false; 155 return false;
156 } 156 }
157 157
158 void SVGFEConvolveMatrixElement::svgAttributeChanged(const QualifiedName& attrNa me) 158 void SVGFEConvolveMatrixElement::svgAttributeChanged(const QualifiedName& attrNa me)
159 { 159 {
160 if (!isSupportedAttribute(attrName)) { 160 if (!isSupportedAttribute(attrName)) {
161 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 161 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
162 return; 162 return;
163 } 163 }
164 164
165 SVGElementInstance::InvalidationGuard invalidationGuard(this); 165 SVGElement::InvalidationGuard invalidationGuard(this);
166 166
167 if (attrName == SVGNames::edgeModeAttr 167 if (attrName == SVGNames::edgeModeAttr
168 || attrName == SVGNames::divisorAttr 168 || attrName == SVGNames::divisorAttr
169 || attrName == SVGNames::biasAttr 169 || attrName == SVGNames::biasAttr
170 || attrName == SVGNames::targetXAttr 170 || attrName == SVGNames::targetXAttr
171 || attrName == SVGNames::targetYAttr 171 || attrName == SVGNames::targetYAttr
172 || attrName == SVGNames::kernelUnitLengthAttr 172 || attrName == SVGNames::kernelUnitLengthAttr
173 || attrName == SVGNames::preserveAlphaAttr) { 173 || attrName == SVGNames::preserveAlphaAttr) {
174 primitiveAttributeChanged(attrName); 174 primitiveAttributeChanged(attrName);
175 return; 175 return;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, 244 RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter,
245 IntSize(orderXValue, orderYValue), divisorValue, 245 IntSize(orderXValue, orderYValue), divisorValue,
246 m_bias->currentValue()->value(), IntPoint(targetXValue, targ etYValue), m_edgeMode->currentValue()->enumValue(), 246 m_bias->currentValue()->value(), IntPoint(targetXValue, targ etYValue), m_edgeMode->currentValue()->enumValue(),
247 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue), m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa tVector()); 247 FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue), m_preserveAlpha->currentValue()->value(), m_kernelMatrix->currentValue()->toFloa tVector());
248 effect->inputEffects().append(input1); 248 effect->inputEffects().append(input1);
249 return effect.release(); 249 return effect.release();
250 } 250 }
251 251
252 } // namespace WebCore 252 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFECompositeElement.cpp ('k') | Source/core/svg/SVGFEDiffuseLightingElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698