(cm, lineView)
| 2129 | // Wrapper around buildLineContent which will reuse the structure |
| 2130 | // in display.externalMeasured when possible. |
| 2131 | function getLineContent(cm, lineView) { |
| 2132 | var ext = cm.display.externalMeasured; |
| 2133 | if (ext && ext.line == lineView.line) { |
| 2134 | cm.display.externalMeasured = null; |
| 2135 | lineView.measure = ext.measure; |
| 2136 | return ext.built |
| 2137 | } |
| 2138 | return buildLineContent(cm, lineView) |
| 2139 | } |
| 2140 | |
| 2141 | // Redraw the line's text. Interacts with the background and text |
| 2142 | // classes because the mode may output tokens that influence these |
no test coverage detected