mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibWeb: Remove reference_for_percent parameter from Length::resolved()
Despite looking like it was still needed, it was only used for passing to other calls to Length::resolved() recursively. This makes the various `foo.resolved().resolved()` calls a lot less awkward. (Though, still quite awkward.) I think we'd need to separate calculated lengths out to properly tidy these calls up, but one yak at a time. :^)
This commit is contained in:
parent
cff44831a8
commit
bfcbab0dcf
11 changed files with 133 additions and 132 deletions
|
@ -103,9 +103,9 @@ void Box::paint_box_shadow(PaintContext& context)
|
|||
return;
|
||||
|
||||
auto resolved_box_shadow_data = Painting::BoxShadowData {
|
||||
.offset_x = (int)box_shadow_data->offset_x.resolved_or_zero(*this, width()).to_px(*this),
|
||||
.offset_y = (int)box_shadow_data->offset_y.resolved_or_zero(*this, width()).to_px(*this),
|
||||
.blur_radius = (int)box_shadow_data->blur_radius.resolved_or_zero(*this, width()).to_px(*this),
|
||||
.offset_x = (int)box_shadow_data->offset_x.resolved_or_zero(*this).to_px(*this),
|
||||
.offset_y = (int)box_shadow_data->offset_y.resolved_or_zero(*this).to_px(*this),
|
||||
.blur_radius = (int)box_shadow_data->blur_radius.resolved_or_zero(*this).to_px(*this),
|
||||
.color = box_shadow_data->color
|
||||
};
|
||||
Painting::paint_box_shadow(context, enclosing_int_rect(bordered_rect()), resolved_box_shadow_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue