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/.
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/OwnPtr.h>
 | |
| #include <AK/NonnullRefPtrVector.h>
 | |
| 
 | |
| class Document;
 | |
| class Element;
 | |
| class ParentNode;
 | |
| class StyleRule;
 | |
| class StyleSheet;
 | |
| class StyledNode;
 | |
| 
 | |
| class StyleResolver {
 | |
| public:
 | |
|     explicit StyleResolver(Document&);
 | |
|     ~StyleResolver();
 | |
| 
 | |
|     Document& document() { return m_document; }
 | |
|     const Document& document() const { return m_document; }
 | |
| 
 | |
|     NonnullRefPtr<StyledNode> create_styled_node(const Element&);
 | |
|     NonnullRefPtr<StyledNode> create_styled_node(const Document&);
 | |
| 
 | |
|     NonnullRefPtrVector<StyleRule> collect_matching_rules(const Element&) const;
 | |
| 
 | |
| 
 | |
| private:
 | |
|     Document& m_document;
 | |
| };
 |