mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:17:34 +00:00
LibWeb: Convert shadow painting to new pixel units
This commit is contained in:
parent
9d1f30b533
commit
fb43a71981
4 changed files with 110 additions and 100 deletions
|
@ -19,14 +19,14 @@ enum class ShadowPlacement {
|
|||
|
||||
struct ShadowData {
|
||||
Gfx::Color color;
|
||||
int offset_x;
|
||||
int offset_y;
|
||||
int blur_radius;
|
||||
int spread_distance;
|
||||
CSSPixels offset_x;
|
||||
CSSPixels offset_y;
|
||||
CSSPixels blur_radius;
|
||||
CSSPixels spread_distance;
|
||||
ShadowPlacement placement;
|
||||
};
|
||||
|
||||
void paint_box_shadow(PaintContext&, Gfx::IntRect const&, BorderRadiiData const&, Vector<ShadowData> const&);
|
||||
void paint_box_shadow(PaintContext&, CSSPixelRect const&, BorderRadiiData const&, Vector<ShadowData> const&);
|
||||
void paint_text_shadow(PaintContext&, Layout::LineBoxFragment const&, Vector<ShadowData> const&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue