mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +01:00
Use internal mutability for CharacterData::data.
This commit is contained in:
parent
d230077f9f
commit
288e0bc877
6 changed files with 46 additions and 45 deletions
|
@ -567,7 +567,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
for child in title_elem.children() {
|
||||
if child.is_text() {
|
||||
let text: &JSRef<Text> = TextCast::to_ref(&child).unwrap();
|
||||
title.push_str(text.deref().characterdata.data.as_slice());
|
||||
title.push_str(text.deref().characterdata.data.deref().borrow().as_slice());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue