mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	LibWeb: Change DOM::Position to be GC-allocated
This commit is contained in:
		
							parent
							
								
									35623ad52e
								
							
						
					
					
						commit
						46254101f7
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-16 22:14:49 +09:00 
				
			
			Author: https://github.com/kalenikaliaksandr
Commit: 46254101f7
Pull-request: https://github.com/SerenityOS/serenity/pull/21235
			
					 10 changed files with 72 additions and 62 deletions
				
			
		|  | @ -56,7 +56,7 @@ void HTMLTextAreaElement::did_receive_focus() | |||
|         return; | ||||
|     if (!m_text_node) | ||||
|         return; | ||||
|     browsing_context->set_cursor_position(DOM::Position { *m_text_node, 0 }); | ||||
|     browsing_context->set_cursor_position(DOM::Position::create(*vm().current_realm(), *m_text_node, 0)); | ||||
| } | ||||
| 
 | ||||
| void HTMLTextAreaElement::did_lose_focus() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik