diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-16 19:20:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-17 23:06:45 +0200 |
commit | 86f78bff2a8d88ce5aa92f4146542cb482e8c1a5 (patch) | |
tree | d6cab6f90708a720278dfc69cf602d9ba135340a /Userland/Libraries/LibWeb/CSS/StyleValue.h | |
parent | 86571481946ce3a60a354d0072a204ed958651cd (diff) | |
download | serenity-86f78bff2a8d88ce5aa92f4146542cb482e8c1a5.zip |
LibWeb: Make StyleValue::to_color() take a Node instead of the Document
This is in preparation for the `currentcolor` value, which needs to know
what Node it's on so it can check the `color`.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 9d17b400d1..ac02a17d94 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -286,7 +286,7 @@ public: virtual String to_string() const = 0; virtual Length to_length() const { return {}; } - virtual Color to_color(const DOM::Document&) const { return {}; } + virtual Color to_color(Layout::NodeWithStyle const&) const { return {}; } CSS::ValueID to_identifier() const; @@ -607,7 +607,7 @@ public: Color color() const { return m_color; } String to_string() const override { return m_color.to_string(); } - Color to_color(const DOM::Document&) const override { return m_color; } + Color to_color(Layout::NodeWithStyle const&) const override { return m_color; } virtual bool equals(const StyleValue& other) const override { @@ -637,7 +637,7 @@ public: CSS::ValueID id() const { return m_id; } virtual String to_string() const override; - virtual Color to_color(const DOM::Document&) const override; + virtual Color to_color(Layout::NodeWithStyle const& node) const override; virtual bool equals(const StyleValue& other) const override { |