mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:02:44 +00:00 
			
		
		
		
	LibWeb: Fix a few const-ness issues
This commit is contained in:
		
							parent
							
								
									70a2ca7fc0
								
							
						
					
					
						commit
						c0b2fa74ac
					
				
					 36 changed files with 123 additions and 121 deletions
				
			
		|  | @ -616,7 +616,7 @@ HTMLParser::AdjustedInsertionLocation HTMLParser::find_appropriate_place_for_ins | |||
|     return adjusted_insertion_location; | ||||
| } | ||||
| 
 | ||||
| JS::NonnullGCPtr<DOM::Element> HTMLParser::create_element_for(HTMLToken const& token, DeprecatedFlyString const& namespace_, DOM::Node const& intended_parent) | ||||
| JS::NonnullGCPtr<DOM::Element> HTMLParser::create_element_for(HTMLToken const& token, DeprecatedFlyString const& namespace_, DOM::Node& intended_parent) | ||||
| { | ||||
|     // FIXME: 1. If the active speculative HTML parser is not null, then return the result of creating a speculative mock element given given namespace, the tag name of the given token, and the attributes of the given token.
 | ||||
|     // FIXME: 2. Otherwise, optionally create a speculative mock element given given namespace, the tag name of the given token, and the attributes of the given token.
 | ||||
|  | @ -3562,7 +3562,7 @@ DeprecatedString HTMLParser::serialize_html_fragment(DOM::Node const& node) | |||
| { | ||||
|     // The algorithm takes as input a DOM Element, Document, or DocumentFragment referred to as the node.
 | ||||
|     VERIFY(node.is_element() || node.is_document() || node.is_document_fragment()); | ||||
|     JS::NonnullGCPtr<DOM::Node> actual_node = node; | ||||
|     JS::NonnullGCPtr<DOM::Node const> actual_node = node; | ||||
| 
 | ||||
|     if (is<DOM::Element>(node)) { | ||||
|         auto& element = verify_cast<DOM::Element>(node); | ||||
|  |  | |||
|  | @ -119,7 +119,7 @@ private: | |||
| 
 | ||||
|     void generate_implied_end_tags(DeprecatedFlyString const& exception = {}); | ||||
|     void generate_all_implied_end_tags_thoroughly(); | ||||
|     JS::NonnullGCPtr<DOM::Element> create_element_for(HTMLToken const&, DeprecatedFlyString const& namespace_, DOM::Node const& intended_parent); | ||||
|     JS::NonnullGCPtr<DOM::Element> create_element_for(HTMLToken const&, DeprecatedFlyString const& namespace_, DOM::Node& intended_parent); | ||||
| 
 | ||||
|     struct AdjustedInsertionLocation { | ||||
|         JS::GCPtr<DOM::Node> parent; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Matthew Olsson
						Matthew Olsson