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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.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/FEGaussianBlur.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp
index 8f81d740b2e2bc45da13c9d791f72e32ab94cf97..0f2c446470975aba4303d1d3bcc246db1051173a 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp
@@ -87,7 +87,7 @@ FloatRect FEGaussianBlur::mapRect(const FloatRect& rect, bool) const
return result;
}
-FloatRect FEGaussianBlur::determineAbsolutePaintRect(const FloatRect& originalRequestedRect)
+FloatRect FEGaussianBlur::determineAbsolutePaintRect(const FloatRect& originalRequestedRect) const
{
FloatRect requestedRect = originalRequestedRect;
if (clipsToBounds())
@@ -97,13 +97,11 @@ FloatRect FEGaussianBlur::determineAbsolutePaintRect(const FloatRect& originalRe
FloatRect inputRect = input->determineAbsolutePaintRect(mapRect(requestedRect, false));
FloatRect outputRect = mapRect(inputRect, true);
outputRect.intersect(requestedRect);
- addAbsolutePaintRect(outputRect);
// Blur needs space for both input and output pixels in the paint area.
// Input is also clipped to subregion.
if (clipsToBounds())
inputRect.intersect(absoluteBounds());
- addAbsolutePaintRect(inputRect);
return outputRect;
}

Powered by Google App Engine
This is Rietveld 408576698