mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
LbWeb: Rename BoxShadowFoo => ShadowFoo
The `text-shadow` property is almost identical to `box-shadow`: > Values are interpreted as for box-shadow [CSS-BACKGROUNDS-3]. > (But note that the inset keyword are not allowed.) So, let's use the same data structures and parsing code for both. :^)
This commit is contained in:
parent
f9367a5fdb
commit
1094654adc
Notes:
sideshowbarker
2024-07-17 16:49:54 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1094654adc
Pull-request: https://github.com/SerenityOS/serenity/pull/13234
13 changed files with 101 additions and 101 deletions
|
@ -203,7 +203,7 @@ void PaintableBox::paint_box_shadow(PaintContext& context) const
|
|||
if (box_shadow_data.is_empty())
|
||||
return;
|
||||
|
||||
Vector<BoxShadowData> resolved_box_shadow_data;
|
||||
Vector<ShadowData> resolved_box_shadow_data;
|
||||
resolved_box_shadow_data.ensure_capacity(box_shadow_data.size());
|
||||
for (auto const& layer : box_shadow_data) {
|
||||
resolved_box_shadow_data.empend(
|
||||
|
@ -212,7 +212,7 @@ void PaintableBox::paint_box_shadow(PaintContext& context) const
|
|||
static_cast<int>(layer.offset_y.to_px(layout_box())),
|
||||
static_cast<int>(layer.blur_radius.to_px(layout_box())),
|
||||
static_cast<int>(layer.spread_distance.to_px(layout_box())),
|
||||
layer.placement == CSS::BoxShadowPlacement::Outer ? BoxShadowPlacement::Outer : BoxShadowPlacement::Inner);
|
||||
layer.placement == CSS::ShadowPlacement::Outer ? ShadowPlacement::Outer : ShadowPlacement::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