Remove obsolete step from Text::SplitText

https://github.com/whatwg/dom/pull/419
This commit is contained in:
Anthony Ramine 2017-03-07 13:31:22 +01:00
parent b66839367c
commit 57291e5609
2 changed files with 3 additions and 12 deletions

View file

@ -1214,12 +1214,6 @@ impl WeakRangeVec {
}
}
/// Used for steps 9.1-2. when splitting a text node.
/// https://dom.spec.whatwg.org/#concept-text-split
pub fn clamp_above(&self, node: &Node, offset: u32) {
self.map_offset_above(node, offset, |_| offset);
}
fn map_offset_above<F: FnMut(u32) -> u32>(&self, node: &Node, offset: u32, mut f: F) {
unsafe {
(*self.cell.get()).update(|entry| {