mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			886 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			886 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include <LibWeb/Layout/BlockContainer.h>
 | 
						|
#include <LibWeb/Painting/PaintableBox.h>
 | 
						|
 | 
						|
namespace Web::Layout {
 | 
						|
 | 
						|
BlockContainer::BlockContainer(DOM::Document& document, DOM::Node* node, NonnullRefPtr<CSS::StyleProperties> style)
 | 
						|
    : Box(document, node, move(style))
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
BlockContainer::BlockContainer(DOM::Document& document, DOM::Node* node, CSS::ComputedValues computed_values)
 | 
						|
    : Box(document, node, move(computed_values))
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
BlockContainer::~BlockContainer() = default;
 | 
						|
 | 
						|
Painting::PaintableWithLines const* BlockContainer::paint_box() const
 | 
						|
{
 | 
						|
    return static_cast<Painting::PaintableWithLines const*>(Box::paint_box());
 | 
						|
}
 | 
						|
 | 
						|
JS::GCPtr<Painting::Paintable> BlockContainer::create_paintable() const
 | 
						|
{
 | 
						|
    return Painting::PaintableWithLines::create(*this);
 | 
						|
}
 | 
						|
 | 
						|
}
 |