summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-01 16:49:33 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit06cd41877025caddf9154d33a70f8e7b8f63bbc3 (patch)
tree0cda1e454f72f1cb3e02461f8fd8dab2c80e2ade /Userland/Libraries/LibWeb/CSS/Parser/Parser.h
parentf690259a4224d894a0b22aeabcd36ddfb5117b6b (diff)
downloadserenity-06cd41877025caddf9154d33a70f8e7b8f63bbc3.zip
LibWeb: Convert QualifiedStyleRule to a RefPtr type in new Parser
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Parser.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
index 10e7d433ae..6686f22c0f 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
@@ -27,11 +27,11 @@ public:
~Parser();
// The normal parser entry point, for parsing stylesheets.
- Vector<QualifiedStyleRule> parse_as_stylesheet();
+ NonnullRefPtrVector<QualifiedStyleRule> parse_as_stylesheet();
// For the content of at-rules such as @media. It differs from "Parse a stylesheet" in the handling of <CDO-token> and <CDC-token>.
- Vector<QualifiedStyleRule> parse_as_list_of_rules();
+ NonnullRefPtrVector<QualifiedStyleRule> parse_as_list_of_rules();
// For use by the CSSStyleSheet#insertRule method, and similar functions which might exist, which parse text into a single rule.
- Optional<QualifiedStyleRule> parse_as_rule();
+ RefPtr<QualifiedStyleRule> parse_as_rule();
// Used in @supports conditions. [CSS3-CONDITIONAL]
Optional<StyleDeclarationRule> parse_as_declaration();
// For the contents of a style attribute, which parses text into the contents of a single style rule.
@@ -71,9 +71,9 @@ private:
void reconsume_current_input_token();
bool is_combinator(String);
- Vector<QualifiedStyleRule> consume_a_list_of_rules(bool top_level);
- AtStyleRule consume_an_at_rule();
- Optional<QualifiedStyleRule> consume_a_qualified_rule();
+ NonnullRefPtrVector<QualifiedStyleRule> consume_a_list_of_rules(bool top_level);
+ NonnullRefPtr<AtStyleRule> consume_an_at_rule();
+ RefPtr<QualifiedStyleRule> consume_a_qualified_rule();
Vector<DeclarationOrAtRule> consume_a_list_of_declarations();
Optional<StyleDeclarationRule> consume_a_declaration(Vector<StyleComponentValueRule>);
Optional<StyleDeclarationRule> consume_a_declaration();