diff options
author | Arpad Borsos <arpad.borsos@googlemail.com> | 2016-03-07 16:10:42 +0100 |
---|---|---|
committer | Arpad Borsos <arpad.borsos@googlemail.com> | 2016-03-07 16:14:04 +0100 |
commit | c880c97b1ba4914722e1e329f02fbc99a7c1b35f (patch) | |
tree | f0bca5e2c77e95edf7a23e99b2a5b79cb7fcb5cd /components/script/dom/characterdata.rs | |
parent | 743e0c9c878a78da873fed4edaa9c8284b2fd12d (diff) | |
download | servo-c880c97b1ba4914722e1e329f02fbc99a7c1b35f.tar.gz servo-c880c97b1ba4914722e1e329f02fbc99a7c1b35f.zip |
rename deprecated utf16_units to encode_utf16
Diffstat (limited to 'components/script/dom/characterdata.rs')
-rw-r--r-- | components/script/dom/characterdata.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/characterdata.rs b/components/script/dom/characterdata.rs index d9798f76a11..bffd52831e9 100644 --- a/components/script/dom/characterdata.rs +++ b/components/script/dom/characterdata.rs @@ -78,7 +78,7 @@ impl CharacterDataMethods for CharacterData { // https://dom.spec.whatwg.org/#dom-characterdata-data fn SetData(&self, data: DOMString) { let old_length = self.Length(); - let new_length = data.utf16_units().count() as u32; + let new_length = data.encode_utf16().count() as u32; *self.data.borrow_mut() = data; self.content_changed(); let node = self.upcast::<Node>(); @@ -87,7 +87,7 @@ impl CharacterDataMethods for CharacterData { // https://dom.spec.whatwg.org/#dom-characterdata-length fn Length(&self) -> u32 { - self.data.borrow().utf16_units().count() as u32 + self.data.borrow().encode_utf16().count() as u32 } // https://dom.spec.whatwg.org/#dom-characterdata-substringdata @@ -151,7 +151,7 @@ impl CharacterDataMethods for CharacterData { // Steps 8-11. let node = self.upcast::<Node>(); node.ranges().replace_code_units( - node, offset, count, arg.utf16_units().count() as u32); + node, offset, count, arg.encode_utf16().count() as u32); Ok(()) } |