Skip to content

Commit

Permalink
LibWeb: Move StyleValue::absolutized() back where it belongs
Browse files Browse the repository at this point in the history
I accidentally moved this when moving the CalculatedStyleValue methods,
and didn't notice because it was hidden in the middle. Oops!
  • Loading branch information
AtkinsSJ authored and awesomekling committed Apr 13, 2023
1 parent cc301f9 commit bab9688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Userland/Libraries/LibWeb/CSS/StyleValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,9 @@ StyleValueList const& StyleValue::as_value_list() const
return static_cast<StyleValueList const&>(*this);
}

ValueComparingNonnullRefPtr<StyleValue const> StyleValue::absolutized(CSSPixelRect const&, Gfx::FontPixelMetrics const&, CSSPixels, CSSPixels, CSSPixels, CSSPixels) const
{
return *this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,6 @@ CalculatedStyleValue::CalculationResult CalculatedStyleValue::CalcNumberSumPartW
return value->resolve(layout_node, percentage_basis);
}

ValueComparingNonnullRefPtr<StyleValue const> StyleValue::absolutized(CSSPixelRect const&, Gfx::FontPixelMetrics const&, CSSPixels, CSSPixels, CSSPixels, CSSPixels) const
{
return *this;
}

bool CalculatedStyleValue::contains_percentage() const
{
return m_expression->contains_percentage();
Expand Down

0 comments on commit bab9688

Please sign in to comment.