1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibWeb: Move CSS::EdgeRect into its own files

Also remove the unused StyleValue::to_rect() because an EdgeRect is only
ever held by a RectStyleValue.
This commit is contained in:
Sam Atkins 2023-03-30 14:22:39 +01:00 committed by Andreas Kling
parent b3a7a00ccf
commit bcebca62d3
9 changed files with 69 additions and 38 deletions

View file

@ -9,6 +9,7 @@
#pragma once
#include <LibWeb/CSS/EdgeRect.h>
#include <LibWeb/CSS/StyleValue.h>
namespace Web::CSS {
@ -21,7 +22,6 @@ public:
EdgeRect rect() const { return m_rect; }
virtual ErrorOr<String> to_string() const override;
virtual bool has_rect() const override { return true; }
virtual EdgeRect to_rect() const override { return m_rect; }
bool properties_equal(RectStyleValue const& other) const { return m_rect == other.m_rect; }