(cm)
| 550 | } |
| 551 | |
| 552 | function getDimensions(cm) { |
| 553 | var d = cm.display, left = {}, width = {}; |
| 554 | for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) { |
| 555 | left[cm.options.gutters[i]] = n.offsetLeft; |
| 556 | width[cm.options.gutters[i]] = n.offsetWidth; |
| 557 | } |
| 558 | return {fixedPos: compensateForHScroll(d), |
| 559 | gutterTotalWidth: d.gutters.offsetWidth, |
| 560 | gutterLeft: left, |
| 561 | gutterWidth: width, |
| 562 | wrapperWidth: d.wrapper.clientWidth}; |
| 563 | } |
| 564 | |
| 565 | function patchDisplay(cm, from, to, intact, updateNumbersFrom) { |
| 566 | var dims = getDimensions(cm); |
no test coverage detected