summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-04-24 14:56:14 +0100
committerAndreas Kling <kling@serenityos.org>2023-04-29 16:23:50 +0200
commit2c5f72b4f0d3960f05a894b2d35a44ca58a1bca0 (patch)
tree88f2b278cd00e76af805718ce011bdbf421e93cd
parent6ea84a7c877a747626467f5a460b4241dfac5b3a (diff)
downloadserenity-2c5f72b4f0d3960f05a894b2d35a44ca58a1bca0.zip
LibWeb: Remove outdated comment
I missed this when removing calc() from Length. Oops!
-rw-r--r--Userland/Libraries/LibWeb/CSS/Length.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h
index bfe36f00ce..41524c9c51 100644
--- a/Userland/Libraries/LibWeb/CSS/Length.h
+++ b/Userland/Libraries/LibWeb/CSS/Length.h
@@ -46,8 +46,6 @@ public:
static Optional<Type> unit_from_name(StringView);
- // We have a RefPtr<CalculatedStyleValue> member, but can't include the header StyleValue.h as it includes
- // this file already. To break the cyclic dependency, we must move all method definitions out.
Length(int value, Type type);
Length(float value, Type type);
~Length();
@@ -64,26 +62,26 @@ public:
bool is_absolute() const
{
return m_type == Type::Cm
- || m_type == Type::In
|| m_type == Type::Mm
- || m_type == Type::Px
+ || m_type == Type::Q
+ || m_type == Type::In
|| m_type == Type::Pt
|| m_type == Type::Pc
- || m_type == Type::Q;
+ || m_type == Type::Px;
}
bool is_relative() const
{
- return m_type == Type::Ex
- || m_type == Type::Em
- || m_type == Type::Ch
+ return m_type == Type::Em
|| m_type == Type::Rem
- || m_type == Type::Vh
+ || m_type == Type::Ex
+ || m_type == Type::Ch
+ || m_type == Type::Lh
+ || m_type == Type::Rlh
|| m_type == Type::Vw
- || m_type == Type::Vmax
+ || m_type == Type::Vh
|| m_type == Type::Vmin
- || m_type == Type::Lh
- || m_type == Type::Rlh;
+ || m_type == Type::Vmax;
}
Type type() const { return m_type; }