mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	This will be used to differentiate between serialization for resolved style (i.e window.getComputedStyle()) and serialization for all other purposes.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include "GridAutoFlowStyleValue.h"
 | 
						|
 | 
						|
namespace Web::CSS {
 | 
						|
 | 
						|
ValueComparingNonnullRefPtr<GridAutoFlowStyleValue> GridAutoFlowStyleValue::create(Axis axis, Dense dense)
 | 
						|
{
 | 
						|
    return adopt_ref(*new GridAutoFlowStyleValue(axis, dense));
 | 
						|
}
 | 
						|
 | 
						|
String GridAutoFlowStyleValue::to_string(SerializationMode) const
 | 
						|
{
 | 
						|
    StringBuilder builder;
 | 
						|
    if (m_row)
 | 
						|
        builder.append("row"sv);
 | 
						|
    else
 | 
						|
        builder.append("column"sv);
 | 
						|
    if (m_dense)
 | 
						|
        builder.append(" dense"sv);
 | 
						|
    return MUST(builder.to_string());
 | 
						|
}
 | 
						|
 | 
						|
}
 |