зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #15855 - s/IframeLoadEventSteps/IFrameLoadEventSteps/g (from ferjm:IframeLoadEventSteps); r=Ms2ger
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. Source-Repo: https://github.com/servo/servo Source-Revision: f85c8ef744c9f57649621eea6ba057f2fbb797b2 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : efd1ecfddb6b83c9283fa28e9eba65b2777b1197
This commit is contained in:
Родитель
c57a486e18
Коммит
4f3188ffee
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче