Index: third_party/WebKit/Source/platform/graphics/filters/FETile.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp b/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp |
index b777eb13ea2dd0d977600bf0d07bcf1977c76771..8677ed991cbdee191da940562afbad4b0941fbc9 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FETile.cpp |
@@ -46,12 +46,8 @@ |
sk_sp<SkImageFilter> FETile::createImageFilter() |
{ |
sk_sp<SkImageFilter> input(SkiaImageFilterBuilder::build(inputEffect(0), operatingColorSpace())); |
- FloatRect srcRect; |
- if (inputEffect(0)->getFilterEffectType() == FilterEffectTypeSourceInput) |
- srcRect = getFilter()->filterRegion(); |
- else |
- srcRect = inputEffect(0)->filterPrimitiveSubregion(); |
- FloatRect dstRect = filterPrimitiveSubregion(); |
+ FloatRect srcRect = inputEffect(0)->filterPrimitiveSubregion(); |
+ FloatRect dstRect = applyEffectBoundaries(getFilter()->filterRegion()); |
return SkTileImageFilter::Make(srcRect, dstRect, std::move(input)); |
} |