mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	LibWeb: Move the offset, margin and padding boxes into LayoutStyle
This commit is contained in:
		
							parent
							
								
									6b334e02e6
								
							
						
					
					
						commit
						4b2ac34725
					
				
					 9 changed files with 66 additions and 79 deletions
				
			
		|  | @ -73,6 +73,11 @@ public: | |||
|         return resolved(make_auto(), layout_node, reference_for_percent); | ||||
|     } | ||||
| 
 | ||||
|     Length resolved_or_zero(const LayoutNode& layout_node, float reference_for_percent) const | ||||
|     { | ||||
|         return resolved(make_px(0), layout_node, reference_for_percent); | ||||
|     } | ||||
| 
 | ||||
|     bool is_undefined() const { return m_type == Type::Undefined; } | ||||
|     bool is_percentage() const { return m_type == Type::Percentage; } | ||||
|     bool is_auto() const { return m_type == Type::Auto; } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling