2021-03-09 17:36:21 +01:00
|
|
|
/*
|
2021-04-28 22:46:44 +02:00
|
|
|
* Copyright (c) 2020-2021, the SerenityOS developers.
|
2021-03-09 17:36:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-03-09 17:36:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
#include <AK/Vector.h>
|
2022-02-12 14:53:59 +00:00
|
|
|
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
2021-03-09 17:36:21 +01:00
|
|
|
#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
class StyleDeclarationRule {
|
|
|
|
friend class Parser;
|
|
|
|
|
|
|
|
public:
|
|
|
|
StyleDeclarationRule();
|
|
|
|
~StyleDeclarationRule();
|
|
|
|
|
|
|
|
String to_string() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
String m_name;
|
|
|
|
Vector<StyleComponentValueRule> m_values;
|
2022-02-12 14:53:59 +00:00
|
|
|
Important m_important { Important::No };
|
2021-03-09 17:36:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|