mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 01:22:11 +00:00
LibWeb: Move/rename StyleBlockRule to Parser::Block
This commit is contained in:
parent
624df40e20
commit
3e49036edf
11 changed files with 36 additions and 39 deletions
|
@ -5,9 +5,9 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/CSS/Parser/Block.h>
|
||||
#include <LibWeb/CSS/Parser/ComponentValue.h>
|
||||
#include <LibWeb/CSS/Parser/Function.h>
|
||||
#include <LibWeb/CSS/Parser/StyleBlockRule.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
|
@ -19,7 +19,7 @@ ComponentValue::ComponentValue(NonnullRefPtr<Function> function)
|
|||
: m_value(function)
|
||||
{
|
||||
}
|
||||
ComponentValue::ComponentValue(NonnullRefPtr<StyleBlockRule> block)
|
||||
ComponentValue::ComponentValue(NonnullRefPtr<Block> block)
|
||||
: m_value(block)
|
||||
{
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ String ComponentValue::to_string() const
|
|||
{
|
||||
return m_value.visit(
|
||||
[](Token const& token) { return token.to_string(); },
|
||||
[](NonnullRefPtr<StyleBlockRule> const& block) { return block->to_string(); },
|
||||
[](NonnullRefPtr<Block> const& block) { return block->to_string(); },
|
||||
[](NonnullRefPtr<Function> const& function) { return function->to_string(); });
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ String ComponentValue::to_debug_string() const
|
|||
[](Token const& token) {
|
||||
return String::formatted("Token: {}", token.to_debug_string());
|
||||
},
|
||||
[](NonnullRefPtr<StyleBlockRule> const& block) {
|
||||
[](NonnullRefPtr<Block> const& block) {
|
||||
return String::formatted("Function: {}", block->to_string());
|
||||
},
|
||||
[](NonnullRefPtr<Function> const& function) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue