diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2017-03-07 18:33:02 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2017-03-07 18:33:02 +0100 |
commit | 9a5268d757b4812fc111f933dc0ac12aeb16a952 (patch) | |
tree | 4f9fb16506e6be7ce06287241874518f0c374fb7 /components/script/dom/htmliframeelement.rs | |
parent | c62973b77b6ac74c0daf11b1f4c18b9dd64ae400 (diff) | |
download | servo-9a5268d757b4812fc111f933dc0ac12aeb16a952.tar.gz servo-9a5268d757b4812fc111f933dc0ac12aeb16a952.zip |
s/IframeLoadEventSteps/IFrameLoadEventSteps/g
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index b01edf0c4ed..dd8c13de449 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -196,7 +196,7 @@ impl HTMLIFrameElement { if mode == ProcessingMode::FirstTime && !self.upcast::<Element>().has_attribute(&local_name!("src")) { let window = window_from_node(self); let event_loop = window.dom_manipulation_task_source(); - let _ = event_loop.queue(box IframeLoadEventSteps::new(self), + let _ = event_loop.queue(box IFrameLoadEventSteps::new(self), window.upcast()); return; } @@ -740,22 +740,22 @@ impl VirtualMethods for HTMLIFrameElement { } } -struct IframeLoadEventSteps { +struct IFrameLoadEventSteps { frame_element: Trusted<HTMLIFrameElement>, pipeline_id: PipelineId, } -impl IframeLoadEventSteps { - fn new(frame_element: &HTMLIFrameElement) -> IframeLoadEventSteps { - IframeLoadEventSteps { +impl IFrameLoadEventSteps { + fn new(frame_element: &HTMLIFrameElement) -> IFrameLoadEventSteps { + IFrameLoadEventSteps { frame_element: Trusted::new(frame_element), pipeline_id: frame_element.pipeline_id().unwrap(), } } } -impl Runnable for IframeLoadEventSteps { - fn handler(self: Box<IframeLoadEventSteps>) { +impl Runnable for IFrameLoadEventSteps { + fn handler(self: Box<IFrameLoadEventSteps>) { let this = self.frame_element.root(); this.iframe_load_event_steps(self.pipeline_id); } |