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

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

Issue 2329803002: Drop FilterEffect::m_absolutePaintRect (Closed)
Patch Set: Add comment 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/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 feab27f0cf53099fa024ae087ec258ef068e7040..9420df0f97d80f48544df061a8c522b53dc5f82e 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.cpp
@@ -156,21 +156,16 @@ TextStream& FEDisplacementMap::externalRepresentation(TextStream& ts, int indent
return ts;
}
-FloatRect FEDisplacementMap::determineAbsolutePaintRect(const FloatRect& requestedRect)
+FloatRect FEDisplacementMap::determineAbsolutePaintRect(const FloatRect& requestedRect) const
{
FloatRect rect = requestedRect;
if (clipsToBounds())
rect.intersect(absoluteBounds());
- if (absolutePaintRect().contains(enclosingIntRect(rect)))
- return rect;
-
rect = mapPaintRect(rect, false);
rect = inputEffect(0)->determineAbsolutePaintRect(rect);
rect = mapPaintRect(rect, true);
rect.intersect(requestedRect);
-
- addAbsolutePaintRect(rect);
return rect;
}

Powered by Google App Engine
This is Rietveld 408576698