
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. :^)
8 lines
198 B
C
8 lines
198 B
C
#pragma once
|
|
|
|
#include <AK/NonnullRefPtr.h>
|
|
#include <LibHTML/CSS/StyleSheet.h>
|
|
|
|
RefPtr<StyleSheet> parse_css(const StringView&);
|
|
RefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
|
|
|