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 35090177a9de1ba15097ae25ccf8d2528674328c..a6a27d700c89c9dde14b17e7621c9add0ef34e47 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEOffset.cpp |
@@ -63,13 +63,10 @@ void FEOffset::setDy(float dy) |
m_dy = dy; |
} |
-FloatRect FEOffset::mapRect(const FloatRect& rect, bool forward) const |
+FloatRect FEOffset::mapEffect(const FloatRect& rect) const |
{ |
FloatRect result = rect; |
- if (forward) |
- result.move(getFilter()->applyHorizontalScale(m_dx), getFilter()->applyVerticalScale(m_dy)); |
- else |
- result.move(-getFilter()->applyHorizontalScale(m_dx), -getFilter()->applyVerticalScale(m_dy)); |
+ result.move(getFilter()->applyHorizontalScale(m_dx), getFilter()->applyVerticalScale(m_dy)); |
return result; |
} |