mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +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
13 changed files with 101 additions and 101 deletions
|
@ -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&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue