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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 45136fe15bf8b8d9fb45f77725ffad25afa412f6..0c8f3b706f7f302e0c77e0ec124c71d7995443fc 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -121,7 +121,7 @@ FloatRect FEImage::determineAbsolutePaintRect(const FloatRect& originalRequested
}
destRect.intersect(srcRect);
} else {
- srcRect = FloatRect(FloatPoint(), m_image->size());
+ srcRect = FloatRect(FloatPoint(), FloatSize(m_image->size()));
m_preserveAspectRatio->transformRect(destRect, srcRect);
}
@@ -199,7 +199,7 @@ PassRefPtr<SkImageFilter> FEImage::createImageFilter(SkiaImageFilterBuilder& bui
return createTransparentBlack(builder);
}
- FloatRect srcRect = FloatRect(FloatPoint(), m_image->size());
+ FloatRect srcRect = FloatRect(FloatPoint(), FloatSize(m_image->size()));
FloatRect dstRect = filterPrimitiveSubregion();
m_preserveAspectRatio->transformRect(dstRect, srcRect);
« no previous file with comments | « third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698