mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Wrap ValidityState eagerly.
This commit is contained in:
parent
f3f6e62f7f
commit
66a76961cc
6 changed files with 26 additions and 13 deletions
|
@ -113,7 +113,7 @@ impl HTMLSelectElement {
|
|||
pub fn SetValue(&mut self, _value: &DOMString) {
|
||||
}
|
||||
|
||||
pub fn WillValidate(&self) -> bool {
|
||||
pub fn WillValidate(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,8 @@ impl HTMLSelectElement {
|
|||
}
|
||||
|
||||
pub fn Validity(&self) -> @mut ValidityState {
|
||||
@mut ValidityState::valid()
|
||||
let global = self.htmlelement.element.node.owner_doc().document().window;
|
||||
ValidityState::new(global)
|
||||
}
|
||||
|
||||
pub fn SetValidity(&mut self, _validity: @mut ValidityState) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue