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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.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/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
index 4b419a9afba4bd4223e0719d2d98d09359be78c7..96ec4b54073cb754f7e905699b47de9ab17c4b73 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -90,16 +90,12 @@ AffineTransform makeMapBetweenRects(const FloatRect& source, const FloatRect& de
return transform;
}
-FloatRect FEImage::determineAbsolutePaintRect(const FloatRect& originalRequestedRect) const
+FloatRect FEImage::mapInputs(const FloatRect&) const
{
LayoutObject* layoutObject = referencedLayoutObject();
if (!m_image && !layoutObject)
return FloatRect();
- FloatRect requestedRect = originalRequestedRect;
- if (clipsToBounds())
- requestedRect.intersect(absoluteBounds());
-
FloatRect destRect = getFilter()->mapLocalRectToAbsoluteRect(filterPrimitiveSubregion());
FloatRect srcRect;
if (layoutObject) {
@@ -122,8 +118,6 @@ FloatRect FEImage::determineAbsolutePaintRect(const FloatRect& originalRequested
srcRect = FloatRect(FloatPoint(), FloatSize(m_image->size()));
m_preserveAspectRatio->transformRect(destRect, srcRect);
}
-
- destRect.intersect(requestedRect);
return destRect;
}

Powered by Google App Engine
This is Rietveld 408576698