mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +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
2 changed files with 0 additions and 11 deletions
|
@ -61,15 +61,6 @@ Length Length::percentage_of(Percentage const& percentage) const
|
||||||
return Length { percentage.as_fraction() * raw_value(), m_type };
|
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
|
CSSPixels Length::font_relative_length_to_px(Length::FontMetrics const& font_metrics, Length::FontMetrics const& root_font_metrics) const
|
||||||
{
|
{
|
||||||
switch (m_type) {
|
switch (m_type) {
|
||||||
|
|
|
@ -90,8 +90,6 @@ public:
|
||||||
static Length make_px(CSSPixels value);
|
static Length make_px(CSSPixels value);
|
||||||
Length percentage_of(Percentage const&) const;
|
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_auto() const { return m_type == Type::Auto; }
|
||||||
bool is_px() const { return m_type == Type::Px; }
|
bool is_px() const { return m_type == Type::Px; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue