mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibWeb: Parse CSS <general-enclosed>
This commit is contained in:
parent
42176d37fc
commit
e760263728
Notes:
sideshowbarker
2024-07-18 00:42:11 +09:00
Author: https://github.com/AtkinsSJ
Commit: e760263728
Pull-request: https://github.com/SerenityOS/serenity/pull/11060
2 changed files with 21 additions and 7 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <AK/Result.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
||||
#include <LibWeb/CSS/GeneralEnclosed.h>
|
||||
#include <LibWeb/CSS/MediaQuery.h>
|
||||
#include <LibWeb/CSS/Parser/DeclarationOrAtRule.h>
|
||||
#include <LibWeb/CSS/Parser/StyleBlockRule.h>
|
||||
|
@ -170,10 +171,7 @@ private:
|
|||
template<typename T>
|
||||
[[nodiscard]] NonnullRefPtr<StyleFunctionRule> consume_a_function(TokenStream<T>&);
|
||||
|
||||
struct GeneralEnclosed {
|
||||
};
|
||||
template<typename T>
|
||||
[[nodiscard]] Optional<GeneralEnclosed> parse_general_enclosed(TokenStream<T>&);
|
||||
[[nodiscard]] Optional<GeneralEnclosed> parse_general_enclosed(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
[[nodiscard]] RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
|
||||
[[nodiscard]] RefPtr<PropertyOwningCSSStyleDeclaration> convert_to_declaration(NonnullRefPtr<StyleBlockRule>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue