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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp

Issue 2847303002: Remove unnecessary zoom argument from GetImage() as its value is always available through the Layou… (Closed)
Patch Set: (rebased) Created 3 years, 7 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/style/StyleFetchedImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
index ba4ade78b4f5780c0128301f1d101229d74bf573..814dfe176b5263e7350657afab576dc28531c777 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
@@ -117,14 +117,15 @@ void StyleFetchedImage::ImageNotifyFinished(ImageResourceContent*) {
document_.Clear();
}
-PassRefPtr<Image> StyleFetchedImage::GetImage(const LayoutObject&,
- const IntSize& container_size,
- float zoom) const {
+PassRefPtr<Image> StyleFetchedImage::GetImage(
+ const LayoutObject& obj,
+ const IntSize& container_size) const {
if (!image_->GetImage()->IsSVGImage())
return image_->GetImage();
return SVGImageForContainer::Create(ToSVGImage(image_->GetImage()),
- container_size, zoom, url_);
+ container_size,
+ obj.StyleRef().EffectiveZoom(), url_);
}
bool StyleFetchedImage::KnownToBeOpaque(
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImage.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImageSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698