mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	LibWeb: Use doubles for CSS dimension types
Avoid unintentionally converting between float and double multiple times by just using double everywhere. Also, remove the unused `int` versions of their constructors.
This commit is contained in:
		
							parent
							
								
									95f80bc65b
								
							
						
					
					
						commit
						1feacd4b52
					
				
					 16 changed files with 34 additions and 73 deletions
				
			
		|  | @ -30,11 +30,6 @@ Length::FontMetrics::FontMetrics(CSSPixels font_size, Gfx::FontPixelMetrics cons | |||
| { | ||||
| } | ||||
| 
 | ||||
| Length::Length(int value, Type type) | ||||
|     : m_type(type) | ||||
|     , m_value(value) | ||||
| { | ||||
| } | ||||
| Length::Length(double value, Type type) | ||||
|     : m_type(type) | ||||
|     , m_value(value) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins