mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	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;
 | 
						|
};
 |