mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:32:45 +00:00 
			
		
		
		
	 b88ff97537
			
		
	
	
		b88ff97537
		
	
	
	
	
		
			
			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&);
 | |
| 
 |