mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			624 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			624 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <LibGUI/GPainter.h>
 | |
| #include <LibHTML/Layout/LayoutListItemMarker.h>
 | |
| 
 | |
| LayoutListItemMarker::LayoutListItemMarker()
 | |
|     : LayoutBox(nullptr, StyleProperties::create())
 | |
| {
 | |
| }
 | |
| 
 | |
| LayoutListItemMarker::~LayoutListItemMarker()
 | |
| {
 | |
| }
 | |
| 
 | |
| void LayoutListItemMarker::render(RenderingContext& context)
 | |
| {
 | |
|     Rect bullet_rect { 0, 0, 4, 4 };
 | |
|     bullet_rect.center_within(enclosing_int_rect(rect()));
 | |
|     // FIXME: It would be nicer to not have to go via the parent here to get our inherited style.
 | |
|     context.painter().fill_rect(bullet_rect, parent()->style().color_or_fallback(CSS::PropertyID::Color, document(), Color::Black));
 | |
| }
 | 
