mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	LibWeb: Only assign block container heights during BFC intrinsic sizing
Before this change, we were always assigning the calculated height to each block container after laying it out in BFC. This should really only happen during intrinsic sizing, since that is how measurements are communicated to the client there.
This commit is contained in:
		
							parent
							
								
									6a662e0d43
								
							
						
					
					
						commit
						b83e41c9b5
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -549,9 +549,8 @@ void BlockFormattingContext::layout_inline_children(BlockContainer const& block_ | |||
|                 used_width_px = min_width_px; | ||||
|         } | ||||
|         block_container_state.set_content_width(used_width_px); | ||||
|     } | ||||
|     if (!block_container_state.has_definite_height()) | ||||
|         block_container_state.set_content_height(context.automatic_content_height()); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| CSSPixels BlockFormattingContext::compute_auto_height_for_block_level_element(Box const& box, AvailableSpace const& available_space) | ||||
|  | @ -774,9 +773,8 @@ void BlockFormattingContext::layout_block_level_children(BlockContainer const& b | |||
|                 } | ||||
|             } | ||||
|             block_container_state.set_content_width(width); | ||||
|         } | ||||
|         if (!block_container_state.has_definite_height()) | ||||
|             block_container_state.set_content_height(bottom_of_lowest_margin_box); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling