diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-07-21 14:38:58 -0600 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-08-09 14:36:20 -0600 |
commit | e700006fb218f04cdfdfab0d6c4e07d6901ab94d (patch) | |
tree | ee6639d49b34a0722e110858af27c7a2c2eb0429 /components/script/script_thread.rs | |
parent | 6d9d4add617e4e5ad08a65d563e9842b3cde0c7b (diff) | |
download | servo-e700006fb218f04cdfdfab0d6c4e07d6901ab94d.tar.gz servo-e700006fb218f04cdfdfab0d6c4e07d6901ab94d.zip |
Handle exceptions during upgrades
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 49c09787ecc..4a4657e28a5 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -774,11 +774,13 @@ impl ScriptThread { }) } - pub fn enqueue_callback_reaction(element: &Element, reaction: CallbackReaction) { + pub fn enqueue_callback_reaction(element: &Element, + reaction: CallbackReaction, + definition: Option<Rc<CustomElementDefinition>>) { SCRIPT_THREAD_ROOT.with(|root| { if let Some(script_thread) = root.get() { let script_thread = unsafe { &*script_thread }; - script_thread.custom_element_reaction_stack.enqueue_callback_reaction(element, reaction); + script_thread.custom_element_reaction_stack.enqueue_callback_reaction(element, reaction, definition); } }) } |