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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.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/layout/LayoutImageResourceStyleImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
index b471cc0c57ddb17f6c26a70715e84f252c27f278..8ff2c93f818995b9278ce47d813baa2c72c8fc21 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp
@@ -58,13 +58,13 @@ void LayoutImageResourceStyleImage::Shutdown() {
cached_image_ = nullptr;
}
-PassRefPtr<Image> LayoutImageResourceStyleImage::GetImage(const IntSize& size,
- float zoom) const {
+PassRefPtr<Image> LayoutImageResourceStyleImage::GetImage(
+ const IntSize& size) const {
// Generated content may trigger calls to image() while we're still pending,
// don't assert but gracefully exit.
if (style_image_->IsPendingImage())
return nullptr;
- return style_image_->GetImage(*layout_object_, size, zoom);
+ return style_image_->GetImage(*layout_object_, size);
}
LayoutSize LayoutImageResourceStyleImage::ImageSize(float multiplier) const {

Powered by Google App Engine
This is Rietveld 408576698