(node)
| 214 | let container = display.lineDiv, cur = container.firstChild |
| 215 | |
| 216 | function rm(node) { |
| 217 | let next = node.nextSibling |
| 218 | // Works around a throw-scroll bug in OS X Webkit |
| 219 | if (webkit && mac && cm.display.currentWheelTarget == node) |
| 220 | node.style.display = "none" |
| 221 | else |
| 222 | node.parentNode.removeChild(node) |
| 223 | return next |
| 224 | } |
| 225 | |
| 226 | let view = display.view, lineN = display.viewFrom |
| 227 | // Loop over the elements in the view, syncing cur (the DOM nodes |