mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Store ShadowStyleValue's color as a StyleValue
Colors can be specified in a way that `Gfx::Color` can't represent, such as named system colors, `currentColor`, or functions involving `calc()`.
This commit is contained in:
parent
581d00293c
commit
4e48afd9a7
Notes:
github-actions[bot]
2024-08-21 09:53:11 +00:00
Author: https://github.com/AtkinsSJ
Commit: 4e48afd9a7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1091
6 changed files with 20 additions and 21 deletions
|
@ -175,7 +175,7 @@ static RefPtr<CSSStyleValue const> style_value_for_shadow(Vector<ShadowData> con
|
|||
|
||||
auto make_shadow_style_value = [](ShadowData const& shadow) {
|
||||
return ShadowStyleValue::create(
|
||||
shadow.color,
|
||||
CSSColorValue::create(shadow.color),
|
||||
style_value_for_length_percentage(shadow.offset_x),
|
||||
style_value_for_length_percentage(shadow.offset_y),
|
||||
style_value_for_length_percentage(shadow.blur_radius),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue