diff options
author | Tobias Christiansen <tobi@tobyase.de> | 2021-07-23 21:22:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-24 22:16:48 +0200 |
commit | f1bdaafcf6554ade403552da9e7ec3f832248d52 (patch) | |
tree | eea7f1650860a3914178e7da8effa313bdbafffb /Userland/Libraries/LibWeb/CSS/StyleProperties.h | |
parent | 36e6f559c5098918b83f421fb3228971fc2a227a (diff) | |
download | serenity-f1bdaafcf6554ade403552da9e7ec3f832248d52.zip |
LibWeb: Make box-shadow known throughout the CSS subsystem
This patch spreads box-shadows around:
- The Values important to box-shadows are stored in a BoxShadowData
struct
- StyleProperties knows how to construct such a struct from a
BoxShadowStyleValue and a Node knows how to ask for it
- CalculatedValues contain BoxShadowData and expose them
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h index df289849dd..40da2b77dc 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h @@ -62,6 +62,7 @@ public: Optional<CSS::Overflow> overflow_y() const; Optional<CSS::Repeat> background_repeat_x() const; Optional<CSS::Repeat> background_repeat_y() const; + Optional<CSS::BoxShadowData> box_shadow() const; const Gfx::Font& font() const { |