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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp b/third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp
index 2cc974d6e754159c77860a9d820afddb199e7753..6708600d2437a0a0765265691b1fb681753ba0bf 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp
@@ -40,9 +40,9 @@ SourceGraphic* SourceGraphic::create(Filter* filter)
return new SourceGraphic(filter);
}
-FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRect) const
+FloatRect SourceGraphic::mapInputs(const FloatRect& rect) const
{
- return intersection(m_sourceRect, requestedRect);
+ return !m_sourceRect.isEmpty() ? m_sourceRect : rect;
}
void SourceGraphic::setSourceRect(const IntRect& sourceRect)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698