1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibWeb: Move/rename StyleFunctionRule to Parser::Function

This commit is contained in:
Sam Atkins 2022-04-12 13:35:55 +01:00 committed by Andreas Kling
parent 084780a0a2
commit e0b2ebcc7b
11 changed files with 59 additions and 58 deletions

View file

@ -0,0 +1,35 @@
/*
* Copyright (c) 2020-2021, the SerenityOS developers.
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefCounted.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
#include <LibWeb/Forward.h>
namespace Web::CSS::Parser {
class Function : public RefCounted<Function> {
friend class Parser;
public:
explicit Function(String name);
Function(String name, Vector<ComponentValue>&& values);
~Function();
String const& name() const { return m_name; }
Vector<ComponentValue> const& values() const { return m_values; }
String to_string() const;
private:
String m_name;
Vector<ComponentValue> m_values;
};
}