mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibHTML: Make the CSS parser return RefPtr's
It should be possible for the CSS parser to fail, and we'll know it failed if it returns nullptr. Returning RefPtr's makes it actually possible to return nullptr. :^)
This commit is contained in:
parent
6a8695e759
commit
b88ff97537
3 changed files with 7 additions and 7 deletions
|
@ -3,6 +3,6 @@
|
|||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibHTML/CSS/StyleSheet.h>
|
||||
|
||||
NonnullRefPtr<StyleSheet> parse_css(const StringView&);
|
||||
NonnullRefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
|
||||
RefPtr<StyleSheet> parse_css(const StringView&);
|
||||
RefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue