mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:52:45 +00:00 
			
		
		
		
	 4d401bf796
			
		
	
	
		4d401bf796
		
	
	
	
	
		
			
			This simplifies the ownership model between DOM/layout/paint nodes immensely by deferring to the garbage collector for figuring out what's live and what's not.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Layout/Progress.h>
 | |
| #include <LibWeb/Painting/ProgressPaintable.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| Progress::Progress(DOM::Document& document, HTML::HTMLProgressElement& element, NonnullRefPtr<CSS::StyleProperties> style)
 | |
|     : LabelableNode(document, element, move(style))
 | |
| {
 | |
|     set_intrinsic_height(12);
 | |
| }
 | |
| 
 | |
| Progress::~Progress() = default;
 | |
| 
 | |
| JS::GCPtr<Painting::Paintable> Progress::create_paintable() const
 | |
| {
 | |
|     return Painting::ProgressPaintable::create(*this);
 | |
| }
 | |
| 
 | |
| }
 |