mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	Fixup rule that table roots need to be wrapped in anonymous block boxes need to be implemeted instead of having `TableBox` inherited from `BlockContainer`.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include <LibWeb/DOM/Element.h>
 | 
						|
#include <LibWeb/Layout/TableBox.h>
 | 
						|
 | 
						|
namespace Web::Layout {
 | 
						|
 | 
						|
TableBox::TableBox(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style)
 | 
						|
    : Layout::Box(document, element, move(style))
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
TableBox::TableBox(DOM::Document& document, DOM::Element* element, CSS::ComputedValues computed_values)
 | 
						|
    : Layout::Box(document, element, move(computed_values))
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
TableBox::~TableBox() = default;
 | 
						|
 | 
						|
}
 |