mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s
				
					
				
			This commit is contained in:
		
							parent
							
								
									f01d90aa63
								
							
						
					
					
						commit
						acfb546048
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-17 17:40:13 +09:00 
				
			
			Author: https://github.com/linusg
Commit: acfb546048
Pull-request: https://github.com/SerenityOS/serenity/pull/15862
			
					 38 changed files with 153 additions and 149 deletions
				
			
		|  | @ -120,7 +120,7 @@ unsigned HTMLImageElement::width() const | |||
| 
 | ||||
| void HTMLImageElement::set_width(unsigned width) | ||||
| { | ||||
|     set_attribute(HTML::AttributeNames::width, String::number(width)); | ||||
|     MUST(set_attribute(HTML::AttributeNames::width, String::number(width))); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-height
 | ||||
|  | @ -148,7 +148,7 @@ unsigned HTMLImageElement::height() const | |||
| 
 | ||||
| void HTMLImageElement::set_height(unsigned height) | ||||
| { | ||||
|     set_attribute(HTML::AttributeNames::height, String::number(height)); | ||||
|     MUST(set_attribute(HTML::AttributeNames::height, String::number(height))); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-naturalwidth
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh