mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove virtual call and unconditionally dirty node on set_focus_state
This commit is contained in:
parent
539ee18cf0
commit
f67e208630
4 changed files with 3 additions and 19 deletions
|
@ -1903,7 +1903,9 @@ impl Element {
|
|||
}
|
||||
|
||||
pub fn set_focus_state(&self, value: bool) {
|
||||
self.set_state(IN_FOCUS_STATE, value)
|
||||
self.set_state(IN_FOCUS_STATE, value);
|
||||
let doc = document_from_node(self);
|
||||
doc.content_changed(self.upcast(), NodeDamage::OtherNodeDamage);
|
||||
}
|
||||
|
||||
pub fn get_hover_state(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue