ladybird/Libraries/LibHTML/Parser/CSSParser.h
Andreas Kling b88ff97537 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. :^)
2019-11-07 17:58:54 +01:00

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&);