mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			621 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			621 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/NonnullRefPtrVector.h>
 | |
| #include <AK/OwnPtr.h>
 | |
| #include <LibHTML/CSS/StyleProperties.h>
 | |
| 
 | |
| class Document;
 | |
| class Element;
 | |
| class ParentNode;
 | |
| class StyleRule;
 | |
| class StyleSheet;
 | |
| 
 | |
| class StyleResolver {
 | |
| public:
 | |
|     explicit StyleResolver(Document&);
 | |
|     ~StyleResolver();
 | |
| 
 | |
|     Document& document() { return m_document; }
 | |
|     const Document& document() const { return m_document; }
 | |
| 
 | |
|     StyleProperties resolve_style(const Element&, const StyleProperties* parent_properties) const;
 | |
| 
 | |
|     NonnullRefPtrVector<StyleRule> collect_matching_rules(const Element&) const;
 | |
| 
 | |
| private:
 | |
|     Document& m_document;
 | |
| };
 | 
