mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:32:44 +00:00 
			
		
		
		
	 1c6783cd7e
			
		
	
	
		1c6783cd7e
		
	
	
	
	
		
			
			Here I try to address bug where content of table overflows it's width (hacker news is an example of such site) by reimplementing some parts of table formatting context. Now TFC implements first steps of: https://www.w3.org/TR/css-tables-3/#table-layout-algorithm but column width and row height distribution steps are still very incomplete.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			537 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			537 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/DOM/Element.h>
 | |
| #include <LibWeb/Layout/TableCellBox.h>
 | |
| #include <LibWeb/Layout/TableRowBox.h>
 | |
| #include <LibWeb/Layout/TableRowGroupBox.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| TableRowGroupBox::TableRowGroupBox(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style)
 | |
|     : Layout::BlockContainer(document, element, move(style))
 | |
| {
 | |
| }
 | |
| 
 | |
| TableRowGroupBox::~TableRowGroupBox() = default;
 | |
| 
 | |
| }
 |