diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-18 14:48:01 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-18 19:04:37 +0100 |
commit | 699b48ccc8b2e43e49021616969792eff34016a2 (patch) | |
tree | f82cc42af61662237e1c450d27497f7655ac2d1f | |
parent | 2df8d9c60951cda5ed63c74cae2247c46ea75eee (diff) | |
download | serenity-699b48ccc8b2e43e49021616969792eff34016a2.zip |
LibWeb: VERIFY when getting a length from an invalid StyleValue
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 4782ec8d22..88f320c8c2 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -406,7 +406,7 @@ public: virtual Color to_color(Layout::NodeWithStyle const&) const { return {}; } virtual CSS::ValueID to_identifier() const { return ValueID::Invalid; } - virtual Length to_length() const { return {}; } + virtual Length to_length() const { VERIFY_NOT_REACHED(); } virtual float to_number() const { return 0; } virtual float to_integer() const { return 0; } virtual String to_string() const = 0; |