mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	 09dccb3224
			
		
	
	
		09dccb3224
		
	
	
	
	
		
			
			This patch adds parsing of <img> into HTMLImageElement objects. It also adds LayoutImage and its parent class LayoutReplaced, which is going to represent CSS "replaced elements."
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <LibHTML/Layout/LayoutImage.h>
 | |
| 
 | |
| LayoutImage::LayoutImage(const HTMLImageElement& element, NonnullRefPtr<StyleProperties> style)
 | |
|     : LayoutReplaced(element, move(style))
 | |
| {
 | |
| }
 | |
| 
 | |
| LayoutImage::~LayoutImage()
 | |
| {
 | |
| }
 | |
| 
 | |
| void LayoutImage::layout()
 | |
| {
 | |
|     LayoutReplaced::layout();
 | |
| }
 | |
| 
 | |
| void LayoutImage::render(RenderingContext& context)
 | |
| {
 | |
|     LayoutReplaced::render(context);
 | |
| }
 |