mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	LibWeb: Propagate errors from parse_css_value and property_initial_value
This commit is contained in:
		
							parent
							
								
									294f5b109f
								
							
						
					
					
						commit
						f4d8a24fe4
					
				
					 12 changed files with 68 additions and 66 deletions
				
			
		|  | @ -94,8 +94,8 @@ WebIDL::ExceptionOr<void> PropertyOwningCSSStyleDeclaration::set_property(Proper | |||
| 
 | ||||
|     // 5. Let component value list be the result of parsing value for property property.
 | ||||
|     auto component_value_list = is<ElementInlineCSSStyleDeclaration>(this) | ||||
|         ? parse_css_value(CSS::Parser::ParsingContext { static_cast<ElementInlineCSSStyleDeclaration&>(*this).element()->document() }, value, property_id) | ||||
|         : parse_css_value(CSS::Parser::ParsingContext { realm() }, value, property_id); | ||||
|         ? MUST(parse_css_value(CSS::Parser::ParsingContext { static_cast<ElementInlineCSSStyleDeclaration&>(*this).element()->document() }, value, property_id)) | ||||
|         : MUST(parse_css_value(CSS::Parser::ParsingContext { realm() }, value, property_id)); | ||||
| 
 | ||||
|     // 6. If component value list is null, then return.
 | ||||
|     if (!component_value_list) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins