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

Unified Diff: Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 1235293003: Implement filter effects region for reference filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes per review comments Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/FilterEffectBuilder.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/Source/core/svg/graphics/filters/SVGFEImage.cpp b/Source/core/svg/graphics/filters/SVGFEImage.cpp
index cd732c75010b8b72cf34d7fcedf4eff85d2824ff..ef2b564e75ac9468d85c795fa5b4ceb6d9ec0bef 100644
--- a/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -197,11 +197,6 @@ PassRefPtr<SkImageFilter> FEImage::createImageFilter(SkiaImageFilterBuilder* bui
FloatRect srcRect = FloatRect(FloatPoint(), m_image->size());
FloatRect dstRect = filterPrimitiveSubregion();
- // FIXME: CSS image filters currently do not seem to set filter primitive
- // subregion correctly if unspecified. So default to srcRect size if so.
- if (dstRect.isEmpty())
- dstRect = srcRect;
-
m_preserveAspectRatio->transformRect(dstRect, srcRect);
SkBitmap bitmap;
« no previous file with comments | « Source/core/paint/FilterEffectBuilder.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698