mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:02:43 +00:00 
			
		
		
		
	 f5bf8f6380
			
		
	
	
		f5bf8f6380
		
	
	
	
	
		
			
			This patch removes the hard-coded hack for "display: list-item" from LayoutBlock and adds LayoutListItem and LayoutListItemMarker. Elements with "display: list-item" now generate a LayoutListItem, which may then also generate a LayoutListItemMarker if appropriate. :^)
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/Element.h>
 | |
| #include <LibHTML/Layout/LayoutBlock.h>
 | |
| 
 | |
| class LayoutListItemMarker;
 | |
| 
 | |
| class LayoutListItem final : public LayoutBlock {
 | |
| public:
 | |
|     LayoutListItem(const Element&, NonnullRefPtr<StyleProperties>);
 | |
|     virtual ~LayoutListItem() override;
 | |
| 
 | |
|     virtual void layout() override;
 | |
| 
 | |
| private:
 | |
|     virtual const char* class_name() const override { return "LayoutListItem"; }
 | |
| 
 | |
|     RefPtr<LayoutListItemMarker> m_marker;
 | |
| };
 |