mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove obsolete step from Text::SplitText
https://github.com/whatwg/dom/pull/419
This commit is contained in:
parent
b66839367c
commit
57291e5609
2 changed files with 3 additions and 12 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue