2025-07-10 12:59:44 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/OwnPtr.h>
|
|
|
|
#include <AK/Vector.h>
|
2025-07-11 12:17:36 +01:00
|
|
|
#include <LibWeb/DOM/AbstractElement.h>
|
2025-07-19 19:35:33 -07:00
|
|
|
#include <LibWeb/Export.h>
|
2025-07-10 12:59:44 +01:00
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
namespace Web::CSS::Parser {
|
|
|
|
|
2025-07-19 19:35:33 -07:00
|
|
|
WEB_API OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
|
2025-07-10 12:59:44 +01:00
|
|
|
|
2025-08-08 10:11:51 +01:00
|
|
|
NonnullRefPtr<StyleValue const> parse_with_a_syntax(ParsingParams const&, Vector<ComponentValue> const& input, SyntaxNode const& syntax, Optional<DOM::AbstractElement> const& element = {});
|
2025-07-11 12:17:36 +01:00
|
|
|
|
2025-07-10 12:59:44 +01:00
|
|
|
}
|