(text, markedSpans, estimateHeight)
| 3828 | // Line objects. These hold state related to a line, including |
| 3829 | // highlighting info (the styles array). |
| 3830 | function makeLine(text, markedSpans, estimateHeight) { |
| 3831 | var line = {text: text}; |
| 3832 | attachMarkedSpans(line, markedSpans); |
| 3833 | line.height = estimateHeight ? estimateHeight(line) : 1; |
| 3834 | return line; |
| 3835 | } |
| 3836 | |
| 3837 | function updateLine(line, text, markedSpans, estimateHeight) { |
| 3838 | line.text = text; |
no test coverage detected