mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 05:35:10 +00:00
LibHTML: Use NonnullRefPtrVector in the CSS and HTML parsers.
This commit is contained in:
parent
9ab3718266
commit
e2b8a2315e
2 changed files with 6 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
NonnullRefPtr<StyleSheet> parse_css(const String& css)
|
||||
{
|
||||
Vector<NonnullRefPtr<StyleRule>> rules;
|
||||
NonnullRefPtrVector<StyleRule> rules;
|
||||
|
||||
enum class State {
|
||||
Free,
|
||||
|
@ -16,7 +16,7 @@ NonnullRefPtr<StyleSheet> parse_css(const String& css)
|
|||
|
||||
struct CurrentRule {
|
||||
Vector<Selector> selectors;
|
||||
Vector<NonnullRefPtr<StyleDeclaration>> declarations;
|
||||
NonnullRefPtrVector<StyleDeclaration> declarations;
|
||||
};
|
||||
|
||||
CurrentRule current_rule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue