mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Use an enum class for the "top-level flag"
This commit is contained in:
parent
87b125dcb9
commit
fc3d51c59e
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/AtkinsSJ
Commit: fc3d51c59e
Pull-request: https://github.com/SerenityOS/serenity/pull/13361
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