LibWeb/CSS: Delete CSSNumericValue

This will need to be re-added later as a proper typed-om type, but right
now it's useless.
This commit is contained in:
Sam Atkins 2025-08-08 10:33:27 +01:00 committed by Tim Ledbetter
commit 51a657ca47
Notes: github-actions[bot] 2025-08-08 14:20:42 +00:00
2 changed files with 3 additions and 28 deletions

View file

@ -1,25 +0,0 @@
/*
* Copyright (c) 2024, Sam Atkins <sam@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/CSS/StyleValues/StyleValue.h>
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue
class CSSNumericValue : public StyleValue {
public:
virtual ~CSSNumericValue() override = default;
protected:
explicit CSSNumericValue(Type type)
: StyleValue(type)
{
}
};
}

View file

@ -9,12 +9,12 @@
#include <AK/FlyString.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
#include <LibWeb/CSS/Parser/Token.h>
#include <LibWeb/CSS/StyleValues/CSSNumericValue.h>
#include <LibWeb/CSS/StyleValues/StyleValue.h>
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssunitvalue
class CSSUnitValue : public CSSNumericValue {
class CSSUnitValue : public StyleValue {
public:
virtual ~CSSUnitValue() override = default;
@ -27,7 +27,7 @@ public:
protected:
explicit CSSUnitValue(Type type)
: CSSNumericValue(type)
: StyleValue(type)
{
}
};