LibWeb: Remove weird CSS::Length::resolved() API

This API is no longer used by anyone so let's remove it.
This commit is contained in:
Andreas Kling 2023-05-06 18:46:26 +02:00
parent c6309bce0b
commit 41d518669e
Notes: sideshowbarker 2024-07-17 07:06:47 +09:00
2 changed files with 0 additions and 11 deletions

View file

@ -61,15 +61,6 @@ Length Length::percentage_of(Percentage const& percentage) const
return Length { percentage.as_fraction() * raw_value(), m_type };
}
Length Length::resolved(Layout::Node const& layout_node) const
{
if (is_relative())
return make_px(to_px(layout_node));
if (!isfinite(m_value))
return make_auto();
return *this;
}
CSSPixels Length::font_relative_length_to_px(Length::FontMetrics const& font_metrics, Length::FontMetrics const& root_font_metrics) const
{
switch (m_type) {

View file

@ -90,8 +90,6 @@ public:
static Length make_px(CSSPixels value);
Length percentage_of(Percentage const&) const;
Length resolved(Layout::Node const& layout_node) const;
bool is_auto() const { return m_type == Type::Auto; }
bool is_px() const { return m_type == Type::Px; }