LibWeb/CSS: Mark CSSStyleValue classes final where possible

This commit is contained in:
Sam Atkins 2025-09-11 11:24:15 +01:00 committed by Jelle Raaijmakers
parent 3099459504
commit 59c4076066
10 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#csskeywordvalue
class CSSKeywordValue : public CSSStyleValue {
class CSSKeywordValue final : public CSSStyleValue {
WEB_PLATFORM_OBJECT(CSSKeywordValue, CSSStyleValue);
GC_DECLARE_ALLOCATOR(CSSKeywordValue);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathclamp
class CSSMathClamp : public CSSMathValue {
class CSSMathClamp final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathClamp, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathClamp);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathinvert
class CSSMathInvert : public CSSMathValue {
class CSSMathInvert final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathInvert, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathInvert);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathmax
class CSSMathMax : public CSSMathValue {
class CSSMathMax final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathMax, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathMax);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathmin
class CSSMathMin : public CSSMathValue {
class CSSMathMin final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathMin, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathMin);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathnegate
class CSSMathNegate : public CSSMathValue {
class CSSMathNegate final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathNegate, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathNegate);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathproduct
class CSSMathProduct : public CSSMathValue {
class CSSMathProduct final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathProduct, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathProduct);

View File

@ -11,7 +11,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathsum
class CSSMathSum : public CSSMathValue {
class CSSMathSum final : public CSSMathValue {
WEB_PLATFORM_OBJECT(CSSMathSum, CSSMathValue);
GC_DECLARE_ALLOCATOR(CSSMathSum);

View File

@ -12,7 +12,7 @@
namespace Web::CSS {
// https://drafts.css-houdini.org/css-typed-om-1/#cssunitvalue
class CSSUnitValue : public CSSNumericValue {
class CSSUnitValue final : public CSSNumericValue {
WEB_PLATFORM_OBJECT(CSSUnitValue, CSSNumericValue);
GC_DECLARE_ALLOCATOR(CSSUnitValue);

View File

@ -15,7 +15,7 @@ using CSSUnparsedSegment = Variant<String, GC::Ref<CSSVariableReferenceValue>>;
using GCRootCSSUnparsedSegment = Variant<String, GC::Root<CSSVariableReferenceValue>>;
// https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue
class CSSUnparsedValue : public CSSStyleValue {
class CSSUnparsedValue final : public CSSStyleValue {
WEB_PLATFORM_OBJECT(CSSUnparsedValue, CSSStyleValue);
GC_DECLARE_ALLOCATOR(CSSUnparsedValue);