mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	 65ad6c35f0
			
		
	
	
		65ad6c35f0
		
	
	
	
	
		
			
			Also add some special variants for the table classes, to make it a bit more pleasant to write table code. :^)
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <LibHTML/DOM/Element.h>
 | |
| #include <LibHTML/Layout/LayoutTable.h>
 | |
| #include <LibHTML/Layout/LayoutTableRow.h>
 | |
| 
 | |
| LayoutTable::LayoutTable(const Element& element, NonnullRefPtr<StyleProperties> style)
 | |
|     : LayoutBlock(&element, move(style))
 | |
| {
 | |
| }
 | |
| 
 | |
| LayoutTable::~LayoutTable()
 | |
| {
 | |
| }
 | |
| 
 | |
| void LayoutTable::layout()
 | |
| {
 | |
| 
 | |
|     LayoutBlock::layout();
 | |
| }
 | |
| 
 | |
| LayoutTableRow* LayoutTable::first_row()
 | |
| {
 | |
|     return first_child_of_type<LayoutTableRow>();
 | |
| }
 | |
| 
 | |
| const LayoutTableRow* LayoutTable::first_row() const
 | |
| {
 | |
|     return first_child_of_type<LayoutTableRow>();
 | |
| }
 |