mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
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:
parent
4e92ab52e3
commit
51a657ca47
Notes:
github-actions[bot]
2025-08-08 14:20:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: 51a657ca47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5775
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 3 additions and 28 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
}
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue