(cm, lineView)
| 806 | // Wrapper around buildLineContent which will reuse the structure |
| 807 | // in display.externalMeasured when possible. |
| 808 | function getLineContent(cm, lineView) { |
| 809 | var ext = cm.display.externalMeasured; |
| 810 | if (ext && ext.line == lineView.line) { |
| 811 | cm.display.externalMeasured = null; |
| 812 | lineView.measure = ext.measure; |
| 813 | return ext.built; |
| 814 | } |
| 815 | return buildLineContent(cm, lineView); |
| 816 | } |
| 817 | |
| 818 | // Redraw the line's text. Interacts with the background and text |
| 819 | // classes because the mode may output tokens that influence these |
no test coverage detected
searching dependent graphs…