| Index: third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
|
| index fa8cc091ff35ed302a5b19805520e444ccd96fb2..b43da659dc0dfd6ed58c9ce5d46f39eb6ffae461 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp
|
| @@ -67,16 +67,16 @@ FloatRect FEOffset::mapRect(const FloatRect& rect, bool forward)
|
| {
|
| FloatRect result = rect;
|
| if (forward)
|
| - result.move(filter()->applyHorizontalScale(m_dx), filter()->applyVerticalScale(m_dy));
|
| + result.move(getFilter()->applyHorizontalScale(m_dx), getFilter()->applyVerticalScale(m_dy));
|
| else
|
| - result.move(-filter()->applyHorizontalScale(m_dx), -filter()->applyVerticalScale(m_dy));
|
| + result.move(-getFilter()->applyHorizontalScale(m_dx), -getFilter()->applyVerticalScale(m_dy));
|
| return result;
|
| }
|
|
|
| PassRefPtr<SkImageFilter> FEOffset::createImageFilter(SkiaImageFilterBuilder& builder)
|
| {
|
| RefPtr<SkImageFilter> input(builder.build(inputEffect(0), operatingColorSpace()));
|
| - Filter* filter = this->filter();
|
| + Filter* filter = this->getFilter();
|
| SkImageFilter::CropRect cropRect = getCropRect();
|
| return adoptRef(SkOffsetImageFilter::Create(SkFloatToScalar(filter->applyHorizontalScale(m_dx)), SkFloatToScalar(filter->applyVerticalScale(m_dy)), input.get(), &cropRect));
|
| }
|
|
|