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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.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/modules/csspaint/CSSPaintDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
index d17802e7c81b15a5722fe68ab309af318895ff03..7a6adbb497619999f9a7fc5cf5d095b1d48ca753 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -69,10 +69,10 @@ CSSPaintDefinition::~CSSPaintDefinition() {}
PassRefPtr<Image> CSSPaintDefinition::Paint(
const LayoutObject& layout_object,
const IntSize& size,
- float zoom,
const CSSStyleValueVector* paint_arguments) {
DCHECK(paint_arguments);
+ float zoom = layout_object.StyleRef().EffectiveZoom();
const IntSize specified_size = GetSpecifiedSize(size, zoom);
ScriptState::Scope scope(script_state_.Get());

Powered by Google App Engine
This is Rietveld 408576698