Commit ed26b5d0 authored by Fredrik Söderqvist's avatar Fredrik Söderqvist Committed by Chromium LUCI CQ

Remove unused SVGLength::ValueAsPercentage100

Change-Id: I0393aa5c9c25525bfa9da1302dcd5fe6f655b8fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2624649
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842731}
parent 5e9209c8
......@@ -179,15 +179,6 @@ float SVGLength::ValueAsPercentage() const {
return value_->GetFloatValue();
}
float SVGLength::ValueAsPercentage100() const {
// LengthTypePercentage is represented with 100% = 100.0. Good for accuracy
// but could eventually be changed.
if (value_->IsPercentage())
return value_->GetFloatValue();
return value_->GetFloatValue() * 100;
}
float SVGLength::ScaleByPercentage(float input) const {
float result = input * value_->GetFloatValue();
if (value_->IsPercentage()) {
......
......@@ -92,9 +92,6 @@ class CORE_EXPORT SVGLength final : public SVGListablePropertyBase {
// value is 1.0).
float ValueAsPercentage() const;
// Returns a number to be used as percentage (so full value is 100)
float ValueAsPercentage100() const;
// Scale the input value by this SVGLength. Higher precision than input *
// valueAsPercentage().
float ScaleByPercentage(float) const;
......
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