mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb/CSS: Implement "parse with a <syntax>
"
Uses the SyntaxNode tree to parse a list of ComponentValues into some kind of StyleValue.
This commit is contained in:
parent
ded2207762
commit
0a5e8c2865
Notes:
github-actions[bot]
2025-07-16 13:49:04 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0a5e8c2865
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5400
Reviewed-by: https://github.com/tcl3 ✅
6 changed files with 140 additions and 7 deletions
|
@ -8,10 +8,13 @@
|
|||
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/DOM/AbstractElement.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
|
||||
|
||||
NonnullRefPtr<CSSStyleValue const> parse_with_a_syntax(ParsingParams const&, Vector<ComponentValue> const& input, SyntaxNode const& syntax, Optional<DOM::AbstractElement> const& element = {});
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue