diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-18 16:17:27 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-18 19:04:37 +0100 |
commit | 67066c5140b1a2f026f099cec3fe90525cdf41ec (patch) | |
tree | 31635800dbde6d7a4fc7c9a017527643e279c773 /Userland/Libraries/LibWeb/Layout/InlineNode.cpp | |
parent | 5b2482a9396dc5f7044647f9132f55785fabffdd (diff) | |
download | serenity-67066c5140b1a2f026f099cec3fe90525cdf41ec.zip |
LibWeb: Remove fallback value from Length::resolved()
Nobody makes undefined Lengths now, (although actually removing
Undefined will come in a later commit) so we can remove this parameter,
and `resolved_or_auto()`/`resolved_or_zero()`.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineNode.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineNode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp index 3f4300f830..5996cc2556 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp @@ -61,10 +61,10 @@ void InlineNode::paint(PaintContext& context, PaintPhase phase) for (auto const& layer : computed_box_shadow) { resolved_box_shadow_data.empend( layer.color, - static_cast<int>(layer.offset_x.resolved_or_zero(*this).to_px(*this)), - static_cast<int>(layer.offset_y.resolved_or_zero(*this).to_px(*this)), - static_cast<int>(layer.blur_radius.resolved_or_zero(*this).to_px(*this)), - static_cast<int>(layer.spread_distance.resolved_or_zero(*this).to_px(*this)), + static_cast<int>(layer.offset_x.resolved(*this).to_px(*this)), + static_cast<int>(layer.offset_y.resolved(*this).to_px(*this)), + static_cast<int>(layer.blur_radius.resolved(*this).to_px(*this)), + static_cast<int>(layer.spread_distance.resolved(*this).to_px(*this)), layer.placement == CSS::BoxShadowPlacement::Outer ? Painting::BoxShadowPlacement::Outer : Painting::BoxShadowPlacement::Inner); } Painting::paint_box_shadow(context, enclosing_int_rect(absolute_fragment_rect), resolved_box_shadow_data); |