Make Attr::value private.

This commit is contained in:
Ms2ger 2014-06-08 14:35:55 +02:00
parent 743dcee0f5
commit efe69f3a82
4 changed files with 6 additions and 6 deletions

View file

@ -173,9 +173,9 @@ impl RawLayoutElementHelpers for Element {
(*attrs).iter().find(|attr: & &JS<Attr>| {
let attr = attr.unsafe_get();
name == (*attr).local_name.as_slice() && (*attr).namespace == *namespace
}).map(|attr| {
}).map(|attr| {
let attr = attr.unsafe_get();
mem::transmute((*attr).value.as_slice())
mem::transmute((*attr).value_ref())
})
}
}