mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	 c4826eae4f
			
		
	
	
		c4826eae4f
		
	
	
	
	
		
			
			There's a subtle difference here. A "block box" in the spec is a block-level box, while a "block container" is a box whose children are either all inline-level boxes in an IFC, or all block-level boxes participating in a BFC. Notably, an "inline-block" box is a "block container" but not a "block box" since it is itself inline-level.
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			733 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/DOM/Element.h>
 | |
| #include <LibWeb/Layout/BlockContainer.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| class ListItemMarkerBox;
 | |
| 
 | |
| class ListItemBox final : public BlockContainer {
 | |
| public:
 | |
|     ListItemBox(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>);
 | |
|     virtual ~ListItemBox() override;
 | |
| 
 | |
|     void layout_marker();
 | |
| 
 | |
|     DOM::Element& dom_node() { return static_cast<DOM::Element&>(*BlockContainer::dom_node()); }
 | |
|     DOM::Element const& dom_node() const { return static_cast<DOM::Element const&>(*BlockContainer::dom_node()); }
 | |
| 
 | |
| private:
 | |
|     RefPtr<ListItemMarkerBox> m_marker;
 | |
| };
 | |
| 
 | |
| }
 |