1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

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
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) {