mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Remove CalculatedStyleValue from Length
This commit is contained in:
parent
62a8cf2bb8
commit
53a4a31af2
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/AtkinsSJ
Commit: 53a4a31af2
Pull-request: https://github.com/SerenityOS/serenity/pull/18104
8 changed files with 25 additions and 70 deletions
|
@ -603,7 +603,7 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
auto resolve_border_width = [&]() {
|
||||
auto value = computed_style.property(width_property);
|
||||
if (value->is_calculated())
|
||||
return CSS::Length::make_calculated(const_cast<CSS::CalculatedStyleValue&>(value->as_calculated())).to_px(*this).value();
|
||||
return value->as_calculated().resolve_length(*this)->to_px(*this).value();
|
||||
if (value->has_length())
|
||||
return value->to_length().to_px(*this).value();
|
||||
if (value->is_identifier()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue