mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
45
Libraries/LibWeb/CSS/StyleValues/MathDepthStyleValue.h
Normal file
45
Libraries/LibWeb/CSS/StyleValues/MathDepthStyleValue.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/CSS/CSSStyleValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class MathDepthStyleValue : public StyleValueWithDefaultOperators<MathDepthStyleValue> {
|
||||
public:
|
||||
static ValueComparingNonnullRefPtr<MathDepthStyleValue> create_auto_add();
|
||||
static ValueComparingNonnullRefPtr<MathDepthStyleValue> create_add(ValueComparingNonnullRefPtr<CSSStyleValue const> integer_value);
|
||||
static ValueComparingNonnullRefPtr<MathDepthStyleValue> create_integer(ValueComparingNonnullRefPtr<CSSStyleValue const> integer_value);
|
||||
virtual ~MathDepthStyleValue() override = default;
|
||||
|
||||
bool is_auto_add() const { return m_type == MathDepthType::AutoAdd; }
|
||||
bool is_add() const { return m_type == MathDepthType::Add; }
|
||||
bool is_integer() const { return m_type == MathDepthType::Integer; }
|
||||
auto integer_value() const
|
||||
{
|
||||
VERIFY(!m_integer_value.is_null());
|
||||
return m_integer_value;
|
||||
}
|
||||
virtual String to_string() const override;
|
||||
|
||||
bool properties_equal(MathDepthStyleValue const& other) const;
|
||||
|
||||
private:
|
||||
enum class MathDepthType {
|
||||
AutoAdd,
|
||||
Add,
|
||||
Integer,
|
||||
};
|
||||
|
||||
MathDepthStyleValue(MathDepthType type, ValueComparingRefPtr<CSSStyleValue const> integer_value = nullptr);
|
||||
|
||||
MathDepthType m_type;
|
||||
ValueComparingRefPtr<CSSStyleValue const> m_integer_value;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue