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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp

Issue 2104103003: Fix zoom in CSS paint worklets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2nd rebase Created 4 years, 5 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/css/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index d48c61526782464f79d1ec94b5aaf9b7bc40afba..600f0b5dda7178e859daffc0e1e5215a59572b71 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -118,7 +118,7 @@ void CSSImageGeneratorValue::putImage(const IntSize& size, PassRefPtr<Image> ima
m_images.add(size, image);
}
-PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject& layoutObject, const IntSize& size)
+PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject& layoutObject, const IntSize& size, float zoom)
{
switch (getClassType()) {
case CrossfadeClass:
@@ -126,7 +126,7 @@ PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject& layoutObject
case LinearGradientClass:
return toCSSLinearGradientValue(this)->image(layoutObject, size);
case PaintClass:
- return toCSSPaintValue(this)->image(layoutObject, size);
+ return toCSSPaintValue(this)->image(layoutObject, size, zoom);
case RadialGradientClass:
return toCSSRadialGradientValue(this)->image(layoutObject, size);
default:

Powered by Google App Engine
This is Rietveld 408576698