mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibWeb: Move/rename StyleFunctionRule to Parser::Function
This commit is contained in:
parent
084780a0a2
commit
e0b2ebcc7b
11 changed files with 59 additions and 58 deletions
|
@ -6,8 +6,8 @@
|
|||
*/
|
||||
|
||||
#include <LibWeb/CSS/Parser/ComponentValue.h>
|
||||
#include <LibWeb/CSS/Parser/Function.h>
|
||||
#include <LibWeb/CSS/Parser/StyleBlockRule.h>
|
||||
#include <LibWeb/CSS/Parser/StyleFunctionRule.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
|
@ -15,7 +15,7 @@ ComponentValue::ComponentValue(Token token)
|
|||
: m_value(token)
|
||||
{
|
||||
}
|
||||
ComponentValue::ComponentValue(NonnullRefPtr<StyleFunctionRule> function)
|
||||
ComponentValue::ComponentValue(NonnullRefPtr<Function> function)
|
||||
: m_value(function)
|
||||
{
|
||||
}
|
||||
|
@ -31,7 +31,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<StyleFunctionRule> const& function) { return function->to_string(); });
|
||||
[](NonnullRefPtr<Function> const& function) { return function->to_string(); });
|
||||
}
|
||||
|
||||
String ComponentValue::to_debug_string() const
|
||||
|
@ -43,7 +43,7 @@ String ComponentValue::to_debug_string() const
|
|||
[](NonnullRefPtr<StyleBlockRule> const& block) {
|
||||
return String::formatted("Function: {}", block->to_string());
|
||||
},
|
||||
[](NonnullRefPtr<StyleFunctionRule> const& function) {
|
||||
[](NonnullRefPtr<Function> const& function) {
|
||||
return String::formatted("Block: {}", function->to_string());
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue