mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:52:43 +00:00 
			
		
		
		
	 45a47cb32b
			
		
	
	
		45a47cb32b
		
	
	
	
	
		
			
			They currently assume the DOM node is an HTMLImageElement with respect to handling the alt attribute. The HTMLInputElement will require the same behavior.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Layout/ImageBox.h>
 | |
| #include <LibWeb/Layout/ImageProvider.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| void ImageProvider::did_update_alt_text(ImageBox& layout_node)
 | |
| {
 | |
|     layout_node.dom_node_did_update_alt_text({});
 | |
| }
 | |
| 
 | |
| }
 |