mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:22:45 +00:00 
			
		
		
		
	LibWeb: Make intrinsic width/height/ratio a Box concept and simplify it
Apparently it's not only replaced elements that can have intrinsic sizes, so let's move this concept from ReplacedBox to Box. To avoid bloating Box, we make the accessors virtual.
This commit is contained in:
		
							parent
							
								
									1b1bf5c321
								
							
						
					
					
						commit
						81590b1804
					
				
					 9 changed files with 21 additions and 40 deletions
				
			
		|  | @ -20,8 +20,6 @@ CanvasBox::~CanvasBox() | |||
| 
 | ||||
| void CanvasBox::prepare_for_replaced_layout() | ||||
| { | ||||
|     set_has_intrinsic_width(true); | ||||
|     set_has_intrinsic_height(true); | ||||
|     set_intrinsic_width(dom_node().width()); | ||||
|     set_intrinsic_height(dom_node().height()); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling