mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +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:
parent
c6309bce0b
commit
41d518669e
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/41d518669e Pull-request: https://github.com/SerenityOS/serenity/pull/18684
|
@ -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) {
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue