diff options
Diffstat (limited to 'components/script/dom/htmltextareaelement.rs')
-rwxr-xr-x | components/script/dom/htmltextareaelement.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/script/dom/htmltextareaelement.rs b/components/script/dom/htmltextareaelement.rs index a6cfde252e5..dc1158775ba 100755 --- a/components/script/dom/htmltextareaelement.rs +++ b/components/script/dom/htmltextareaelement.rs @@ -42,6 +42,7 @@ use crate::dom::textcontrol::{TextControlElement, TextControlSelection}; use crate::dom::validation::{is_barred_by_datalist_ancestor, Validatable}; use crate::dom::validitystate::{ValidationFlags, ValidityState}; use crate::dom::virtualmethods::VirtualMethods; +use crate::script_runtime::CanGc; use crate::textinput::{ Direction, KeyReaction, Lines, SelectionDirection, TextInput, UTF16CodeUnits, UTF8Bytes, }; @@ -428,8 +429,8 @@ impl HTMLTextAreaElementMethods for HTMLTextAreaElement { } // https://html.spec.whatwg.org/multipage/#dom-cva-reportvalidity - fn ReportValidity(&self) -> bool { - self.report_validity() + fn ReportValidity(&self, can_gc: CanGc) -> bool { + self.report_validity(can_gc) } // https://html.spec.whatwg.org/multipage/#dom-cva-validationmessage @@ -484,7 +485,7 @@ impl VirtualMethods for HTMLTextAreaElement { } }, } - el.update_sequentially_focusable_status(); + el.update_sequentially_focusable_status(CanGc::note()); }, local_name!("maxlength") => match *attr.value() { AttrValue::Int(_, value) => { |