mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Resolve cyclic declaration/definitions involving Length
This remained undetected for a long time as HeaderCheck is disabled by default. This commit makes the following file compile again: // file: compile_me.cpp #include <LibWeb/CSS/GridTrackSize.h> // That's it, this was enough to cause a compilation error.
This commit is contained in:
parent
53eb35caba
commit
8deced39a8
Notes:
sideshowbarker
2024-07-17 07:09:04 +09:00
Author: https://github.com/BenWiederhake
Commit: 8deced39a8
Pull-request: https://github.com/SerenityOS/serenity/pull/15236
Reviewed-by: https://github.com/AtkinsSJ ✅
15 changed files with 192 additions and 125 deletions
|
@ -28,6 +28,7 @@ Length::Length(float value, Type type)
|
|||
, m_value(value)
|
||||
{
|
||||
}
|
||||
Length::~Length() = default;
|
||||
|
||||
Length Length::make_auto()
|
||||
{
|
||||
|
@ -204,4 +205,11 @@ NonnullRefPtr<CalculatedStyleValue> Length::calculated_style_value() const
|
|||
return *m_calculated_style;
|
||||
}
|
||||
|
||||
bool Length::operator==(Length const& other) const
|
||||
{
|
||||
if (is_calculated())
|
||||
return m_calculated_style == other.m_calculated_style;
|
||||
return m_type == other.m_type && m_value == other.m_value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue