mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove CharacterData::set_data()
This commit is contained in:
parent
14cd682210
commit
c8f41b473c
2 changed files with 1 additions and 6 deletions
|
@ -56,11 +56,6 @@ impl CharacterData {
|
||||||
self.data.borrow()
|
self.data.borrow()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn set_data(&self, data: DOMString) {
|
|
||||||
*self.data.borrow_mut() = data;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub unsafe fn data_for_layout<'a>(&'a self) -> &'a str {
|
pub unsafe fn data_for_layout<'a>(&'a self) -> &'a str {
|
||||||
|
|
|
@ -1880,7 +1880,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
|
||||||
NodeTypeId::Text |
|
NodeTypeId::Text |
|
||||||
NodeTypeId::ProcessingInstruction => {
|
NodeTypeId::ProcessingInstruction => {
|
||||||
let characterdata: JSRef<CharacterData> = CharacterDataCast::to_ref(self).unwrap();
|
let characterdata: JSRef<CharacterData> = CharacterDataCast::to_ref(self).unwrap();
|
||||||
characterdata.set_data(value);
|
characterdata.SetData(value);
|
||||||
|
|
||||||
// Notify the document that the content of this node is different
|
// Notify the document that the content of this node is different
|
||||||
let document = self.owner_doc().root();
|
let document = self.owner_doc().root();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue