mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:42:43 +00:00 
			
		
		
		
	 f4f5ede10a
			
		
	
	
		f4f5ede10a
		
	
	
	
	
		
			
			There's no need to pass the StyleResolver to this function. Nodes that need it can just get it from the document.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/HTMLElement.h>
 | |
| 
 | |
| class HTMLBRElement final : public HTMLElement {
 | |
| public:
 | |
|     HTMLBRElement(Document&, const String& tag_name);
 | |
|     virtual ~HTMLBRElement() override;
 | |
| 
 | |
|     virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
 | |
| };
 | |
| 
 | |
| template<>
 | |
| inline bool is<HTMLBRElement>(const Node& node)
 | |
| {
 | |
|     return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "br";
 | |
| }
 |