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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp

Issue 2341923002: Harmonize FilterEffect::mapRect and mapPaintRect (Closed)
Patch Set: Rebase Created 4 years, 3 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
Index: third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp b/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp
index 70d588f4ded39b32140c35e569a66dfb0939c411..2c1c226694039ee3bde077071a58bd73af1d903e 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp
@@ -50,14 +50,6 @@ FELighting::FELighting(Filter* filter, LightingType lightingType, const Color& l
{
}
-FloatRect FELighting::mapPaintRect(const FloatRect& rect, bool) const
-{
- FloatRect result = rect;
- // The areas affected need to be a pixel bigger to accommodate the Sobel kernel.
- result.inflate(1);
- return result;
-}
-
sk_sp<SkImageFilter> FELighting::createImageFilter()
{
if (!m_lightSource)

Powered by Google App Engine
This is Rietveld 408576698