summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
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/ShadowPainting.h
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/ShadowPainting.h')
-rw-r--r--Userland/Libraries/LibWeb/Painting/ShadowPainting.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/ShadowPainting.h b/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
index 9c46f56679..2e6738b75e 100644
--- a/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
+++ b/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
@@ -11,20 +11,20 @@
namespace Web::Painting {
-enum class BoxShadowPlacement {
+enum class ShadowPlacement {
Outer,
Inner,
};
-struct BoxShadowData {
+struct ShadowData {
Gfx::Color color;
int offset_x;
int offset_y;
int blur_radius;
int spread_distance;
- BoxShadowPlacement placement;
+ ShadowPlacement placement;
};
-void paint_box_shadow(PaintContext&, Gfx::IntRect const&, Vector<BoxShadowData> const&);
+void paint_box_shadow(PaintContext&, Gfx::IntRect const&, Vector<ShadowData> const&);
}