diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs index 7f2a03c96d22..9485b07f5ae0 100644 --- a/components/script/dom/htmlheadelement.rs +++ b/components/script/dom/htmlheadelement.rs @@ -2,7 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::bindings::codegen::Bindings::ElementBinding::ElementMethods; use dom::bindings::codegen::Bindings::HTMLHeadElementBinding; use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods; use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods; @@ -51,7 +50,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLHeadElement> { let htmlelement: &JSRef = HTMLElementCast::from_borrowed_ref(self); Some(htmlelement as &VirtualMethods) } - fn bind_to_tree(&self, tree_in_doc: bool) { + fn bind_to_tree(&self, _tree_in_doc: bool) { if !opts::get().userscripts { return; } diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index ec117ad2e38e..46e841e79f82 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -259,6 +259,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> { fn SetValue(self, value: DOMString) { self.textinput.borrow_mut().set_content(value); self.value_changed.set(true); + self.force_relayout(); } // https://html.spec.whatwg.org/multipage/forms.html#dom-input-defaultvalue @@ -427,6 +428,7 @@ impl<'a> HTMLInputElementHelpers for JSRef<'a, HTMLInputElement> { self.SetValue(self.DefaultValue()); self.value_changed.set(false); + self.force_relayout(); } } diff --git a/components/script/lib.rs b/components/script/lib.rs index b4603a931b0f..e9a62bd5e567 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -8,6 +8,7 @@ #![feature(core)] #![feature(int_uint)] #![feature(old_io)] +#![feature(path)] #![feature(plugin)] #![feature(rustc_private)] #![feature(std_misc)]