mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
	
		
			513 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
	
		
			513 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								/*
							 | 
						||
| 
								 | 
							
								 * Copyright (c) 2024, Sam Atkins <sam@ladybird.org>
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * SPDX-License-Identifier: BSD-2-Clause
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#pragma once
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <LibWeb/PixelUnits.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Web::CSS {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// https://drafts.csswg.org/css-images/#default-sizing
							 | 
						||
| 
								 | 
							
								CSSPixelSize run_default_sizing_algorithm(
							 | 
						||
| 
								 | 
							
								    Optional<CSSPixels> specified_width, Optional<CSSPixels> specified_height,
							 | 
						||
| 
								 | 
							
								    Optional<CSSPixels> natural_width, Optional<CSSPixels> natural_height,
							 | 
						||
| 
								 | 
							
								    Optional<CSSPixelFraction> natural_aspect_ratio,
							 | 
						||
| 
								 | 
							
								    CSSPixelSize default_size);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |