mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibWeb: Don't include CSS/CSSStyleDeclaration.h from DOM/Element.h
This required splitting out CSS::StyleProperty into its own file and out-of-lining Element::layout_node().
This commit is contained in:
parent
5b5fbecb38
commit
4399ca2d82
4 changed files with 37 additions and 15 deletions
|
@ -9,22 +9,11 @@
|
|||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
#include <LibWeb/CSS/StyleValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
enum class Important {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
struct StyleProperty {
|
||||
Important important { Important::No };
|
||||
CSS::PropertyID property_id;
|
||||
NonnullRefPtr<StyleValue const> value;
|
||||
DeprecatedString custom_name {};
|
||||
};
|
||||
|
||||
class CSSStyleDeclaration : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(CSSStyleDeclaration, Bindings::PlatformObject);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue