Index: third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp |
index 616fe646fefd2db3c3d9e4babd5ddb0f5b0752ea..900e2b3469f5dafabf05bfd298b27ee6d8d860cf 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp |
@@ -48,8 +48,8 @@ PassRefPtrWillBeRawPtr<FEDisplacementMap> FEDisplacementMap::create(Filter* filt |
FloatRect FEDisplacementMap::mapPaintRect(const FloatRect& rect, bool) |
{ |
FloatRect result = rect; |
- result.inflateX(filter()->applyHorizontalScale(m_scale / 2)); |
- result.inflateY(filter()->applyVerticalScale(m_scale / 2)); |
+ result.inflateX(getFilter()->applyHorizontalScale(m_scale / 2)); |
+ result.inflateY(getFilter()->applyVerticalScale(m_scale / 2)); |
return result; |
} |
@@ -118,7 +118,7 @@ PassRefPtr<SkImageFilter> FEDisplacementMap::createImageFilter(SkiaImageFilterBu |
SkImageFilter::CropRect cropRect = getCropRect(); |
// FIXME : Only applyHorizontalScale is used and applyVerticalScale is ignored |
// This can be fixed by adding a 2nd scale parameter to SkDisplacementMapEffect |
- return adoptRef(SkDisplacementMapEffect::Create(typeX, typeY, SkFloatToScalar(filter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), &cropRect)); |
+ return adoptRef(SkDisplacementMapEffect::Create(typeX, typeY, SkFloatToScalar(getFilter()->applyHorizontalScale(m_scale)), displ.get(), color.get(), &cropRect)); |
} |
static TextStream& operator<<(TextStream& ts, const ChannelSelectorType& type) |