mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	 04b9dc2d30
			
		
	
	
		04b9dc2d30
		
	
	
	
	
		
			
			Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/NonnullRefPtrVector.h>
 | |
| #include <LibHTML/CSS/StyleRule.h>
 | |
| 
 | |
| class StyleSheet : public RefCounted<StyleSheet> {
 | |
| public:
 | |
|     static NonnullRefPtr<StyleSheet> create(NonnullRefPtrVector<StyleRule>&& rules)
 | |
|     {
 | |
|         return adopt(*new StyleSheet(move(rules)));
 | |
|     }
 | |
| 
 | |
|     ~StyleSheet();
 | |
| 
 | |
|     const NonnullRefPtrVector<StyleRule>& rules() const { return m_rules; }
 | |
| 
 | |
| private:
 | |
|     explicit StyleSheet(NonnullRefPtrVector<StyleRule>&&);
 | |
| 
 | |
|     NonnullRefPtrVector<StyleRule> m_rules;
 | |
| };
 |