mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix up the virtual method unsoundness.
This commit is contained in:
parent
895e9ee37f
commit
46a33b4b38
4 changed files with 26 additions and 24 deletions
|
@ -65,8 +65,8 @@ impl Attr {
|
|||
}
|
||||
|
||||
pub fn set_value(&mut self, set_type: AttrSettingType, value: DOMString) {
|
||||
let owner = self.owner.root();
|
||||
let node: &JSRef<Node> = NodeCast::from_ref(&*owner);
|
||||
let mut owner = self.owner.root();
|
||||
let node: &mut JSRef<Node> = NodeCast::from_mut_ref(&mut *owner);
|
||||
let namespace_is_null = self.namespace == namespace::Null;
|
||||
|
||||
match set_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue