1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibWeb: Remove BorderRadiusStyleValue::to_length() hack

Layout::Node still treats border radii as having a single value instead
of horizontal and vertical, but one less hack is nice, and helps with
conversion to LengthPercentage. :^)
This commit is contained in:
Sam Atkins 2022-01-14 20:18:19 +00:00 committed by Andreas Kling
parent a26cec3805
commit 2a3abf09ff
2 changed files with 8 additions and 11 deletions

View file

@ -574,9 +574,6 @@ public:
Length const& vertical_radius() const { return m_vertical_radius; }
bool is_elliptical() const { return m_is_elliptical; }
// FIXME: Remove this once we support elliptical border-radius in Layout/Node.
virtual Length to_length() const override { return horizontal_radius(); }
virtual String to_string() const override
{
return String::formatted("{} / {}", m_horizontal_radius.to_string(), m_vertical_radius.to_string());