mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	LibHTML+Browser: Add debug option to draw borders around line boxes
This will be very useful when debugging line layout.
This commit is contained in:
		
							parent
							
								
									14f0a5943b
								
							
						
					
					
						commit
						2530378f59
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 11:43:35 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: 2530378f59
			
					 5 changed files with 20 additions and 0 deletions
				
			
		|  | @ -111,6 +111,7 @@ void HtmlView::paint_event(GPaintEvent& event) | |||
|     painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value()); | ||||
| 
 | ||||
|     RenderingContext context { painter }; | ||||
|     context.set_should_show_line_box_borders(m_should_show_line_box_borders); | ||||
|     m_layout_root->render(context); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling