aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-14 08:31:30 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-28 13:17:47 +0100
commitbe69f9c3e6a6f5efb5ba1edd50955cb12c111bf8 (patch)
treedb8be2dfee5cff6ef0c42e8d46c623eb87529e5a /components/script/dom/htmliframeelement.rs
parent82fc6d9f49a657e2857da3f1b22140e3b6efdf09 (diff)
downloadservo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.tar.gz
servo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.zip
Rustfmt has changed its default style :/
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs28
1 files changed, 14 insertions, 14 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 2bde8893a29..f9e249ca85a 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -628,20 +628,20 @@ impl VirtualMethods for HTMLIFrameElement {
let iframe = Trusted::new(self);
document_from_node(self).add_delayed_task(task!(IFrameDelayedInitialize: move || {
- let this = iframe.root();
- // https://html.spec.whatwg.org/multipage/#the-iframe-element
- // "When an iframe element is inserted into a document that has
- // a browsing context, the user agent must create a new
- // browsing context, set the element's nested browsing context
- // to the newly-created browsing context, and then process the
- // iframe attributes for the "first time"."
- if this.upcast::<Node>().is_in_doc_with_browsing_context() {
- debug!("iframe bound to browsing context.");
- debug_assert!(tree_in_doc, "is_in_doc_with_bc, but not tree_in_doc");
- this.create_nested_browsing_context();
- this.process_the_iframe_attributes(ProcessingMode::FirstTime);
- }
- }));
+ let this = iframe.root();
+ // https://html.spec.whatwg.org/multipage/#the-iframe-element
+ // "When an iframe element is inserted into a document that has
+ // a browsing context, the user agent must create a new
+ // browsing context, set the element's nested browsing context
+ // to the newly-created browsing context, and then process the
+ // iframe attributes for the "first time"."
+ if this.upcast::<Node>().is_in_doc_with_browsing_context() {
+ debug!("iframe bound to browsing context.");
+ debug_assert!(tree_in_doc, "is_in_doc_with_bc, but not tree_in_doc");
+ this.create_nested_browsing_context();
+ this.process_the_iframe_attributes(ProcessingMode::FirstTime);
+ }
+ }));
}
fn unbind_from_tree(&self, context: &UnbindContext) {