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:
parent
e43027091d
commit
70db40c9b0
25 changed files with 49 additions and 2 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
14
Userland/Libraries/LibWeb/CSS/StyleProperty.cpp
Normal file
14
Userland/Libraries/LibWeb/CSS/StyleProperty.cpp
Normal 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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue