(cm, lineView)
| 3351 | // Wrapper around buildLineContent which will reuse the structure |
| 3352 | // in display.externalMeasured when possible. |
| 3353 | function getLineContent(cm, lineView) { |
| 3354 | var ext = cm.display.externalMeasured |
| 3355 | if (ext && ext.line == lineView.line) { |
| 3356 | cm.display.externalMeasured = null |
| 3357 | lineView.measure = ext.measure |
| 3358 | return ext.built |
| 3359 | } |
| 3360 | return buildLineContent(cm, lineView) |
| 3361 | } |
| 3362 | |
| 3363 | // Redraw the line's text. Interacts with the background and text |
| 3364 | // classes because the mode may output tokens that influence these |
no test coverage detected