mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-28 07:12:07 +00:00 
			
		
		
		
	 e107c83a57
			
		
	
	
		e107c83a57
		
	
	
	
	
		
			
			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;
 | |
| 
 | |
| }
 |