mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Further changes required by Servo
This commit is contained in:
parent
69fc5ca9fd
commit
373d22119f
3 changed files with 4 additions and 4 deletions
|
@ -3525,11 +3525,11 @@ impl Element {
|
|||
}
|
||||
|
||||
pub fn read_write_state(&self) -> bool {
|
||||
self.state.get().contains(ElementState::IN_READ_WRITE_STATE)
|
||||
self.state.get().contains(ElementState::IN_READWRITE_STATE)
|
||||
}
|
||||
|
||||
pub fn set_read_write_state(&self, value: bool) {
|
||||
self.set_state(ElementState::IN_READ_WRITE_STATE, value)
|
||||
self.set_state(ElementState::IN_READWRITE_STATE, value)
|
||||
}
|
||||
|
||||
pub fn placeholder_shown_state(&self) -> bool {
|
||||
|
|
|
@ -297,7 +297,7 @@ impl HTMLInputElement {
|
|||
.clone();
|
||||
HTMLInputElement {
|
||||
htmlelement: HTMLElement::new_inherited_with_state(
|
||||
ElementState::IN_ENABLED_STATE | ElementState::IN_READ_WRITE_STATE,
|
||||
ElementState::IN_ENABLED_STATE | ElementState::IN_READWRITE_STATE,
|
||||
local_name,
|
||||
prefix,
|
||||
document,
|
||||
|
|
|
@ -148,7 +148,7 @@ impl HTMLTextAreaElement {
|
|||
.clone();
|
||||
HTMLTextAreaElement {
|
||||
htmlelement: HTMLElement::new_inherited_with_state(
|
||||
ElementState::IN_ENABLED_STATE | ElementState::IN_READ_WRITE_STATE,
|
||||
ElementState::IN_ENABLED_STATE | ElementState::IN_READWRITE_STATE,
|
||||
local_name,
|
||||
prefix,
|
||||
document,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue