()
| 917 | } |
| 918 | |
| 919 | function visibleLines() { |
| 920 | var lh = textHeight(), top = scroller.scrollTop - paddingTop(); |
| 921 | var fromHeight = Math.max(0, Math.floor(top / lh)); |
| 922 | var toHeight = Math.ceil((top + scroller.clientHeight) / lh); |
| 923 | return {from: lineAtHeight(doc, fromHeight), |
| 924 | to: lineAtHeight(doc, toHeight)}; |
| 925 | } |
| 926 | // Uses a set of changes plus the current scroll position to |
| 927 | // determine which DOM updates have to be made, and makes the |
| 928 | // updates. |
no test coverage detected