Auto merge of #15855 - ferjm:IframeLoadEventSteps, r=Ms2ger

s/IframeLoadEventSteps/IFrameLoadEventSteps/g

All the other IFrame* names have the capital "I" and capital "F", so I'm changing this to keep uniformity.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
- [ ] These changes do not require tests because it's just a name change and the code is already tested.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15855)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-03-07 09:38:44 -08:00 committed by GitHub
commit f85c8ef744

View file

@ -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);
}