mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
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()`.
This commit is contained in:
parent
5b2482a939
commit
67066c5140
11 changed files with 106 additions and 120 deletions
|
@ -107,10 +107,10 @@ void Box::paint_box_shadow(PaintContext& context)
|
|||
for (auto const& layer : box_shadow_data) {
|
||||
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_border_box_rect()), resolved_box_shadow_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue