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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/StyleFetchedImageSet.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
index 4a63e6c31d68fba79b3b36469ea567e4532b7609..37b4c7cb830672eb8c92cf4ba97f52582f1a1a02 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
@@ -115,14 +115,15 @@ void StyleFetchedImageSet::RemoveClient(LayoutObject* layout_object) {
best_fit_image_->RemoveObserver(layout_object);
}
-PassRefPtr<Image> StyleFetchedImageSet::GetImage(const LayoutObject&,
- const IntSize& container_size,
- float zoom) const {
+PassRefPtr<Image> StyleFetchedImageSet::GetImage(
+ const LayoutObject& obj,
+ const IntSize& container_size) const {
if (!best_fit_image_->GetImage()->IsSVGImage())
return best_fit_image_->GetImage();
return SVGImageForContainer::Create(ToSVGImage(best_fit_image_->GetImage()),
- container_size, zoom, url_);
+ container_size,
+ obj.StyleRef().EffectiveZoom(), url_);
}
bool StyleFetchedImageSet::KnownToBeOpaque(

Powered by Google App Engine
This is Rietveld 408576698