mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	LibWeb+WebContent: Convert BrowsingContext to new pixel units
This fixes a few glitches. We no longer give the page double the width it should have, and we mark the correct area of the page as needing repainting.
This commit is contained in:
		
							parent
							
								
									8fb7c32ec3
								
							
						
					
					
						commit
						affc8a22ca
					
				
					 23 changed files with 68 additions and 70 deletions
				
			
		|  | @ -31,9 +31,8 @@ Box::~Box() | |||
| 
 | ||||
| void Box::set_needs_display() | ||||
| { | ||||
|     // FIXME: Make `set_needs_display` take CSSPixels
 | ||||
|     if (paint_box()) | ||||
|         browsing_context().set_needs_display(enclosing_int_rect(paint_box()->absolute_rect().to_type<float>())); | ||||
|         browsing_context().set_needs_display(paint_box()->absolute_rect()); | ||||
| } | ||||
| 
 | ||||
| bool Box::is_body() const | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins