mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	LibWeb/DOM: Rename Node::{paint => paintable}_box()
It returns a PaintableBox, not a 'PaintBox'.
This commit is contained in:
		
							parent
							
								
									754e458d0a
								
							
						
					
					
						commit
						d58b671ff6
					
				
					 8 changed files with 25 additions and 25 deletions
				
			
		|  | @ -47,7 +47,7 @@ Optional<Gfx::AffineTransform> SVGGeometryBox::layout_transform() const | |||
|         auto scaled_height = paintable_box()->content_height().value(); | ||||
|         scaling = min(scaled_width / original_bounding_box.width(), scaled_height / original_bounding_box.height()); | ||||
|         auto scaled_bounding_box = original_bounding_box.scaled(scaling, scaling); | ||||
|         paint_offset = (paintable_box()->absolute_rect().location() - svg_box->paint_box()->absolute_rect().location()).to_type<float>() - scaled_bounding_box.location(); | ||||
|         paint_offset = (paintable_box()->absolute_rect().location() - svg_box->paintable_box()->absolute_rect().location()).to_type<float>() - scaled_bounding_box.location(); | ||||
|     } | ||||
|     return Gfx::AffineTransform {}.translate(paint_offset).scale(scaling, scaling).translate(-origin).multiply(transform); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh