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

Unified Diff: Source/core/platform/graphics/filters/FEOffset.cpp

Issue 14652016: Implement filter primitive subregion for reference CSS filters. This required refactoring determin… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test failures: ReferenceFilterOperation should ref the Filter which owns its FilterEffects Created 7 years, 7 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/platform/graphics/filters/FEOffset.h ('k') | Source/core/platform/graphics/filters/FETile.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/filters/FEOffset.cpp
diff --git a/Source/core/platform/graphics/filters/FEOffset.cpp b/Source/core/platform/graphics/filters/FEOffset.cpp
index a64c858c608e0209e99e88925bd1206cccf748ba..5080e1c986525f2449d01158b6cc4df392e70652 100644
--- a/Source/core/platform/graphics/filters/FEOffset.cpp
+++ b/Source/core/platform/graphics/filters/FEOffset.cpp
@@ -80,6 +80,16 @@ void FEOffset::determineAbsolutePaintRect()
setAbsolutePaintRect(enclosingIntRect(paintRect));
}
+FloatRect FEOffset::mapRect(const FloatRect& rect, bool forward)
+{
+ FloatRect result = rect;
+ if (forward)
+ result.move(filter()->applyHorizontalScale(m_dx), filter()->applyHorizontalScale(m_dy));
+ else
+ result.move(-filter()->applyHorizontalScale(m_dx), -filter()->applyHorizontalScale(m_dy));
+ return result;
+}
+
void FEOffset::applySoftware()
{
FilterEffect* in = inputEffect(0);
« no previous file with comments | « Source/core/platform/graphics/filters/FEOffset.h ('k') | Source/core/platform/graphics/filters/FETile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698