1
Fork 0
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:
Andreas Kling 2019-06-27 13:23:22 +02:00
parent 9ab3718266
commit e2b8a2315e
2 changed files with 6 additions and 5 deletions

View file

@ -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;