1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibWeb: Don't include Layout/Node.h from DOM/Element.h

This required moving the CSS::StyleProperty destruct out of line.
This commit is contained in:
Andreas Kling 2023-05-08 07:51:03 +02:00 committed by Jelle Raaijmakers
parent e43027091d
commit 70db40c9b0
25 changed files with 49 additions and 2 deletions

View file

@ -15,6 +15,7 @@
#include <LibWeb/DOM/Document.h>
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/HTML/HTMLHtmlElement.h>
#include <LibWeb/Layout/Node.h>
namespace Web::CSS {

View file

@ -54,6 +54,7 @@
#include <LibWeb/DOM/Element.h>
#include <LibWeb/FontCache.h>
#include <LibWeb/HTML/HTMLHtmlElement.h>
#include <LibWeb/Layout/Node.h>
#include <LibWeb/Loader/ResourceLoader.h>
#include <LibWeb/Platform/FontPlugin.h>
#include <stdio.h>

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/CSS/StyleProperty.h>
#include <LibWeb/CSS/StyleValue.h>
namespace Web::CSS {
StyleProperty::~StyleProperty() = default;
}

View file

@ -6,6 +6,9 @@
#pragma once
#include <AK/DeprecatedString.h>
#include <LibWeb/CSS/PropertyID.h>
namespace Web::CSS {
enum class Important {
@ -14,6 +17,8 @@ enum class Important {
};
struct StyleProperty {
~StyleProperty();
Important important { Important::No };
CSS::PropertyID property_id;
NonnullRefPtr<StyleValue const> value;

View file

@ -8,9 +8,11 @@
*/
#include "ImageStyleValue.h"
#include <LibWeb/CSS/ComputedValues.h>
#include <LibWeb/CSS/Serialize.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/Loader/ResourceLoader.h>
#include <LibWeb/Painting/PaintContext.h>
#include <LibWeb/Platform/Timer.h>
namespace Web::CSS {