mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	LibWeb: Remove wrappers for gradient painting command recording
These were adding unnecessary indirection, whereas recording painter could be called directly.
This commit is contained in:
		
							parent
							
								
									c6b484a728
								
							
						
					
					
						commit
						ee1d8a534d
					
				
					 5 changed files with 7 additions and 25 deletions
				
			
		|  | @ -210,10 +210,9 @@ bool RadialGradientStyleValue::equals(StyleValue const& other) const | |||
| void RadialGradientStyleValue::paint(PaintContext& context, DevicePixelRect const& dest_rect, CSS::ImageRendering, Vector<Gfx::Path> const& clip_paths) const | ||||
| { | ||||
|     VERIFY(m_resolved.has_value()); | ||||
|     Painting::paint_radial_gradient(context, dest_rect, m_resolved->data, | ||||
|         context.rounded_device_point(m_resolved->center), | ||||
|         context.rounded_device_size(m_resolved->gradient_size), | ||||
|         clip_paths); | ||||
|     auto center = context.rounded_device_point(m_resolved->center).to_type<int>(); | ||||
|     auto size = context.rounded_device_size(m_resolved->gradient_size).to_type<int>(); | ||||
|     context.recording_painter().fill_rect_with_radial_gradient(dest_rect.to_type<int>(), m_resolved->data, center, size, clip_paths); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik