Commit 5a719a24 authored by Anders Hartvoll Ruud's avatar Anders Hartvoll Ruud Committed by Commit Bot

Generate ComputedStyle::SetZoom.

The return value is useless, so might as well use the generated function.

R=futhark@chromium.org

Bug: 807503
Change-Id: I402edb2b2a70e5ec14e06c3be0fcf5836b46c083
Reviewed-on: https://chromium-review.googlesource.com/1057710Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558684}
parent 43d0900a
......@@ -741,7 +741,6 @@
field_template: "primitive",
default_value: "1.0",
type_name: "float",
computed_style_custom_functions: ["setter"],
custom_apply_functions_all: true,
priority: "High",
},
......
......@@ -795,8 +795,6 @@ class ComputedStyle : public ComputedStyleBase,
SetZIndexInternal(0);
}
// zoom
bool SetZoom(float);
bool SetEffectiveZoom(float);
// -webkit-clip-path
......@@ -2543,13 +2541,6 @@ class ComputedStyle : public ComputedStyleBase,
UpdatePropertySpecificDifferencesCompositingReasonsUsedStylePreserve3D);
};
inline bool ComputedStyle::SetZoom(float f) {
if (Zoom() == f)
return false;
SetZoomInternal(f);
return true;
}
inline bool ComputedStyle::SetEffectiveZoom(float f) {
// Clamp the effective zoom value to a smaller (but hopeful still large
// enough) range, to avoid overflow in derived computations.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment