mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibWeb: Convert some CSS parser *Rule classes to using pointers
Previously these were all passed around by value, but some of them (StyleComponentValueRule and StyleBlockRule) want to include each other as fields, so this had to change.
This commit is contained in:
parent
a558916e1f
commit
89bfde29dc
7 changed files with 47 additions and 29 deletions
|
@ -78,8 +78,8 @@ private:
|
|||
Optional<StyleDeclarationRule> consume_a_declaration(Vector<StyleComponentValueRule>);
|
||||
Optional<StyleDeclarationRule> consume_a_declaration();
|
||||
StyleComponentValueRule consume_a_component_value();
|
||||
StyleBlockRule consume_a_simple_block();
|
||||
StyleFunctionRule consume_a_function();
|
||||
NonnullRefPtr<StyleBlockRule> consume_a_simple_block();
|
||||
NonnullRefPtr<StyleFunctionRule> consume_a_function();
|
||||
|
||||
Tokenizer m_tokenizer;
|
||||
Vector<Token> m_tokens;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue