mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb/CSS: Move RuleContext type out of Parser.h
This was previously internal to the Parser, but we'd like to pass it in from outside.
This commit is contained in:
parent
9465492edf
commit
763b1b0ee2
Notes:
github-actions[bot]
2025-04-23 10:40:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: 763b1b0ee2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4354
6 changed files with 135 additions and 73 deletions
29
Libraries/LibWeb/CSS/Parser/RuleContext.h
Normal file
29
Libraries/LibWeb/CSS/Parser/RuleContext.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/CSS/CSSRule.h>
|
||||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
enum class RuleContext : u8 {
|
||||
Unknown,
|
||||
Style,
|
||||
AtMedia,
|
||||
AtFontFace,
|
||||
AtKeyframes,
|
||||
Keyframe,
|
||||
AtSupports,
|
||||
SupportsCondition,
|
||||
AtLayer,
|
||||
AtProperty,
|
||||
};
|
||||
RuleContext rule_context_type_for_rule(CSSRule::Type);
|
||||
RuleContext rule_context_type_for_at_rule(FlyString const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue