mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +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
				
			
		|  | @ -112,7 +112,7 @@ void LinearGradientStyleValue::resolve_for_size(Layout::NodeWithStyleAndBoxModel | |||
| void LinearGradientStyleValue::paint(PaintContext& context, DevicePixelRect const& dest_rect, CSS::ImageRendering, Vector<Gfx::Path> const& clip_paths) const | ||||
| { | ||||
|     VERIFY(m_resolved.has_value()); | ||||
|     Painting::paint_linear_gradient(context, dest_rect, m_resolved->data, clip_paths); | ||||
|     context.recording_painter().fill_rect_with_linear_gradient(dest_rect.to_type<int>(), m_resolved->data, clip_paths); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik