mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	LibWeb: Rename HTMLScriptElement::m_script_source => m_source_text
This commit is contained in:
		
							parent
							
								
									e1fb8bef09
								
							
						
					
					
						commit
						bc12921d43
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-18 04:22:13 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: bc12921d43
			
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -45,7 +45,7 @@ void HTMLScriptElement::execute_script() | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     if (m_script_source.is_null()) { | ||||
|     if (m_source_text.is_null()) { | ||||
|         dbgln("HTMLScriptElement: Refusing to run script because the script source is null."); | ||||
|         dispatch_event(DOM::Event::create(HTML::EventNames::error)); | ||||
|         return; | ||||
|  | @ -70,7 +70,7 @@ void HTMLScriptElement::execute_script() | |||
|         else | ||||
|             dbgln_if(HTML_SCRIPT_DEBUG, "HTMLScriptElement: Running inline script"); | ||||
| 
 | ||||
|         document().run_javascript(m_script_source, m_script_filename); | ||||
|         document().run_javascript(m_source_text, m_script_filename); | ||||
| 
 | ||||
|         document().set_current_script({}, old_current_script); | ||||
|     } else { | ||||
|  | @ -280,7 +280,7 @@ void HTMLScriptElement::prepare_script() | |||
|                         dbgln("HTMLScriptElement: Failed to load {}", url); | ||||
|                         return; | ||||
|                     } | ||||
|                     m_script_source = String::copy(data); | ||||
|                     m_source_text = String::copy(data); | ||||
|                     script_became_ready(); | ||||
|                 }, | ||||
|                 [this](auto&, auto) { | ||||
|  | @ -300,7 +300,7 @@ void HTMLScriptElement::prepare_script() | |||
|             // -> "classic"
 | ||||
|             // FIXME: 1. Let script be the result of creating a classic script using source text, settings object, base URL, and options.
 | ||||
|             // FIXME: 2. Set the script's script to script.
 | ||||
|             m_script_source = source_text; | ||||
|             m_source_text = source_text; | ||||
| 
 | ||||
|             // 3. The script is ready.
 | ||||
|             script_became_ready(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling