aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-12 17:17:22 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-09-13 23:40:24 +0200
commit650afc9d3e0d351df493e11831b1c072f79e8889 (patch)
tree5331507cce86913a1f77d331a45e515ae85ca58d /components/script/dom/element.rs
parentd5ee58caf269779e86b2efc50ddf37d3e4eba9b9 (diff)
downloadservo-650afc9d3e0d351df493e11831b1c072f79e8889.tar.gz
servo-650afc9d3e0d351df493e11831b1c072f79e8889.zip
Fix cloning of Element's attributes
No virtual method was invoked when copies of attributes were appended to newly-cloned elements.
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r--components/script/dom/element.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index bd522dccf0a..87804d373fd 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -83,7 +83,7 @@ use url::UrlParser;
use std::ascii::AsciiExt;
use std::borrow::{Cow, ToOwned};
-use std::cell::{Ref, RefMut};
+use std::cell::Ref;
use std::default::Default;
use std::mem;
use std::sync::Arc;
@@ -597,10 +597,6 @@ impl Element {
self.attrs.borrow()
}
- pub fn attrs_mut(&self) -> RefMut<Vec<JS<Attr>>> {
- self.attrs.borrow_mut()
- }
-
pub fn style_attribute(&self) -> &DOMRefCell<Option<PropertyDeclarationBlock>> {
&self.style_attribute
}