summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-23 16:55:22 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-24 18:08:34 +0100
commit1094654adc76385d6b763f2d3d8a2f79cf612188 (patch)
treef0e77263329bcb992ffa788c5c92a617415a2466 /Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
parentf9367a5fdbc530791f01132ad03b0dfe118e4d66 (diff)
downloadserenity-1094654adc76385d6b763f2d3d8a2f79cf612188.zip
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. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/PaintableBox.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Painting/PaintableBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
index 9684c1aa8f..a11a555bd3 100644
--- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
+++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
@@ -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);
}