mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Use an enum class for the "top-level flag"
This commit is contained in:
parent
87b125dcb9
commit
fc3d51c59e
2 changed files with 11 additions and 7 deletions
|
@ -169,8 +169,12 @@ private:
|
|||
};
|
||||
Optional<Selector::SimpleSelector::ANPlusBPattern> parse_a_n_plus_b_pattern(TokenStream<StyleComponentValueRule>&, AllowTrailingTokens = AllowTrailingTokens::No);
|
||||
|
||||
enum class TopLevel {
|
||||
No,
|
||||
Yes
|
||||
};
|
||||
template<typename T>
|
||||
[[nodiscard]] NonnullRefPtrVector<StyleRule> consume_a_list_of_rules(TokenStream<T>&, bool top_level);
|
||||
[[nodiscard]] NonnullRefPtrVector<StyleRule> consume_a_list_of_rules(TokenStream<T>&, TopLevel);
|
||||
template<typename T>
|
||||
[[nodiscard]] NonnullRefPtr<StyleRule> consume_an_at_rule(TokenStream<T>&);
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue