aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorbenshu <benshu@benshu.de>2015-08-23 21:02:40 +0200
committerbenshu <benshu@benshu.de>2015-08-28 00:52:41 +0200
commit1e6a2f08fc825c0179f44129485e6ef332ef8c33 (patch)
tree307811c06dc664ada5e711e050189009e12b834e /components/script/dom/htmlimageelement.rs
parent71b277d5675556e61a82ae9dbf3105449c3a8275 (diff)
downloadservo-1e6a2f08fc825c0179f44129485e6ef332ef8c33.tar.gz
servo-1e6a2f08fc825c0179f44129485e6ef332ef8c33.zip
Time distribution across script event categories.
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 147bbc3e19c..da3b68cb1ca 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -21,6 +21,7 @@ use dom::eventtarget::{EventTarget, EventTargetTypeId};
use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
use dom::node::{document_from_node, Node, NodeTypeId, NodeDamage, window_from_node};
use dom::virtualmethods::VirtualMethods;
+use script_task::ScriptTaskEventCategory::UpdateReplacedElement;
use script_task::{Runnable, ScriptChan, CommonScriptMsg};
use string_cache::Atom;
use util::str::DOMString;
@@ -131,7 +132,7 @@ impl HTMLImageElement {
// Return the image via a message to the script task, which marks the element
// as dirty and triggers a reflow.
let image_response = message.to().unwrap();
- script_chan.send(CommonScriptMsg::RunnableMsg(
+ script_chan.send(CommonScriptMsg::RunnableMsg(UpdateReplacedElement,
box ImageResponseHandlerRunnable::new(
trusted_node.clone(), image_response))).unwrap();
});