mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:22:45 +00:00 
			
		
		
		
	LibWeb: Make factory method of CSS::CSSStyleSheet fallible
This commit is contained in:
		
							parent
							
								
									4f4a908e5f
								
							
						
					
					
						commit
						a49ea467ad
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		|  | @ -14,9 +14,9 @@ | |||
| 
 | ||||
| namespace Web::CSS { | ||||
| 
 | ||||
| CSSStyleSheet* CSSStyleSheet::create(JS::Realm& realm, CSSRuleList& rules, MediaList& media, Optional<AK::URL> location) | ||||
| WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSStyleSheet>> CSSStyleSheet::create(JS::Realm& realm, CSSRuleList& rules, MediaList& media, Optional<AK::URL> location) | ||||
| { | ||||
|     return realm.heap().allocate<CSSStyleSheet>(realm, realm, rules, media, move(location)).release_allocated_value_but_fixme_should_propagate_errors(); | ||||
|     return MUST_OR_THROW_OOM(realm.heap().allocate<CSSStyleSheet>(realm, realm, rules, media, move(location))); | ||||
| } | ||||
| 
 | ||||
| CSSStyleSheet::CSSStyleSheet(JS::Realm& realm, CSSRuleList& rules, MediaList& media, Optional<AK::URL> location) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kenneth Myhra
						Kenneth Myhra