(line, text, markedSpans, estimateHeight)
| 6746 | // invalidates cached information and tries to re-estimate the |
| 6747 | // line's height. |
| 6748 | function updateLine(line, text, markedSpans, estimateHeight) { |
| 6749 | line.text = text; |
| 6750 | if (line.stateAfter) line.stateAfter = null; |
| 6751 | if (line.styles) line.styles = null; |
| 6752 | if (line.order != null) line.order = null; |
| 6753 | detachMarkedSpans(line); |
| 6754 | attachMarkedSpans(line, markedSpans); |
| 6755 | var estHeight = estimateHeight ? estimateHeight(line) : 1; |
| 6756 | if (estHeight != line.height) updateLineHeight(line, estHeight); |
| 6757 | } |
| 6758 | |
| 6759 | // Detach a line from the document tree and its markers. |
| 6760 | function cleanUpLine(line) { |
no test coverage detected