(line, text, markedSpans, estimateHeight)
| 5546 | // invalidates cached information and tries to re-estimate the |
| 5547 | // line's height. |
| 5548 | function updateLine(line, text, markedSpans, estimateHeight) { |
| 5549 | line.text = text; |
| 5550 | if (line.stateAfter) line.stateAfter = null; |
| 5551 | if (line.styles) line.styles = null; |
| 5552 | if (line.order != null) line.order = null; |
| 5553 | detachMarkedSpans(line); |
| 5554 | attachMarkedSpans(line, markedSpans); |
| 5555 | var estHeight = estimateHeight ? estimateHeight(line) : 1; |
| 5556 | if (estHeight != line.height) updateLineHeight(line, estHeight); |
| 5557 | } |
| 5558 | |
| 5559 | // Detach a line from the document tree and its markers. |
| 5560 | function cleanUpLine(line) { |
no test coverage detected
searching dependent graphs…