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

Unified Diff: third_party/WebKit/Source/core/css/CSSPaintValue.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/css/CSSPaintValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPaintValue.cpp b/third_party/WebKit/Source/core/css/CSSPaintValue.cpp
index 3c75256c56180556c9bf2bce4e68fa050649f4bf..ca143023288a93ca2647ff5ff3d306f01c02f76f 100644
--- a/third_party/WebKit/Source/core/css/CSSPaintValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPaintValue.cpp
@@ -43,8 +43,7 @@ String CSSPaintValue::GetName() const {
}
PassRefPtr<Image> CSSPaintValue::GetImage(const LayoutObject& layout_object,
- const IntSize& size,
- float zoom) {
+ const IntSize& size) {
if (!generator_)
generator_ =
CSSPaintImageGenerator::Create(GetName(), layout_object.GetDocument(),
@@ -53,7 +52,7 @@ PassRefPtr<Image> CSSPaintValue::GetImage(const LayoutObject& layout_object,
if (!ParseInputArguments())
return nullptr;
- return generator_->Paint(layout_object, size, zoom, parsed_input_arguments_);
+ return generator_->Paint(layout_object, size, parsed_input_arguments_);
}
bool CSSPaintValue::ParseInputArguments() {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintValue.h ('k') | third_party/WebKit/Source/core/layout/LayoutImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698