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

Side by Side Diff: Source/core/svg/SVGFEImageElement.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
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFELightElement.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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 reportAttributeParsingError(parseError, name, value); 140 reportAttributeParsingError(parseError, name, value);
141 } 141 }
142 142
143 void SVGFEImageElement::svgAttributeChanged(const QualifiedName& attrName) 143 void SVGFEImageElement::svgAttributeChanged(const QualifiedName& attrName)
144 { 144 {
145 if (!isSupportedAttribute(attrName)) { 145 if (!isSupportedAttribute(attrName)) {
146 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 146 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
147 return; 147 return;
148 } 148 }
149 149
150 SVGElementInstance::InvalidationGuard invalidationGuard(this); 150 SVGElement::InvalidationGuard invalidationGuard(this);
151 151
152 if (attrName == SVGNames::preserveAspectRatioAttr) { 152 if (attrName == SVGNames::preserveAspectRatioAttr) {
153 invalidate(); 153 invalidate();
154 return; 154 return;
155 } 155 }
156 156
157 if (SVGURIReference::isKnownAttribute(attrName)) { 157 if (SVGURIReference::isKnownAttribute(attrName)) {
158 buildPendingResource(); 158 buildPendingResource();
159 return; 159 return;
160 } 160 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 193
194 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil ter) 194 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil ter)
195 { 195 {
196 if (m_cachedImage) 196 if (m_cachedImage)
197 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer( renderer()), m_preserveAspectRatio->currentValue()); 197 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer( renderer()), m_preserveAspectRatio->currentValue());
198 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue()); 198 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue());
199 } 199 }
200 200
201 } 201 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFELightElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698