Remove virtual call and unconditionally dirty node on set_focus_state

This commit is contained in:
Manish Goregaokar 2016-01-07 12:04:27 +05:30
parent 539ee18cf0
commit f67e208630
4 changed files with 3 additions and 19 deletions

View file

@ -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 {