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

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

Issue 15015007: Fix FEImage support for CSS reference filters (raster path). This change causes invalidations on im… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/css3/filters/effect-reference-image-expected.html ('k') | no next file » | 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 { 192 {
193 if (!inDocument()) 193 if (!inDocument())
194 return; 194 return;
195 195
196 Element* parent = parentElement(); 196 Element* parent = parentElement();
197 ASSERT(parent); 197 ASSERT(parent);
198 198
199 if (!parent->hasTagName(SVGNames::filterTag) || !parent->renderer()) 199 if (!parent->hasTagName(SVGNames::filterTag) || !parent->renderer())
200 return; 200 return;
201 201
202 RenderSVGResource::markForLayoutAndParentResourceInvalidation(parent->render er()); 202 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer());
203 } 203 }
204 204
205 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil ter) 205 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil ter)
206 { 206 {
207 if (m_cachedImage) 207 if (m_cachedImage)
208 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer( renderer()), preserveAspectRatio()); 208 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer( renderer()), preserveAspectRatio());
209 return FEImage::createWithIRIReference(filter, document(), href(), preserveA spectRatio()); 209 return FEImage::createWithIRIReference(filter, document(), href(), preserveA spectRatio());
210 } 210 }
211 211
212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st 212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st
213 { 213 {
214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); 214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls);
215 215
216 addSubresourceURL(urls, document()->completeURL(href())); 216 addSubresourceURL(urls, document()->completeURL(href()));
217 } 217 }
218 218
219 } 219 }
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/effect-reference-image-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698