mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	LibHTML: Don't bother updating layout in frameless documents
Before/after the document is attached to a frame, there's no point in doing any kind of layout, since we can't display the results anywhere.
This commit is contained in:
		
							parent
							
								
									4104f53a94
								
							
						
					
					
						commit
						039fc0f2d1
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -187,6 +187,9 @@ void Document::update_style() | |||
| 
 | ||||
| void Document::update_layout() | ||||
| { | ||||
|     if (!frame()) | ||||
|         return; | ||||
| 
 | ||||
|     layout(); | ||||
|     if (on_layout_updated) | ||||
|         on_layout_updated(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling