(line, text, markedSpans, estimateHeight)
| 4390 | Line.prototype.lineNo = function() { return lineNo(this); }; |
| 4391 | |
| 4392 | function updateLine(line, text, markedSpans, estimateHeight) { |
| 4393 | line.text = text; |
| 4394 | if (line.stateAfter) line.stateAfter = null; |
| 4395 | if (line.styles) line.styles = null; |
| 4396 | if (line.order != null) line.order = null; |
| 4397 | detachMarkedSpans(line); |
| 4398 | attachMarkedSpans(line, markedSpans); |
| 4399 | var estHeight = estimateHeight ? estimateHeight(line) : 1; |
| 4400 | if (estHeight != line.height) updateLineHeight(line, estHeight); |
| 4401 | } |
| 4402 | |
| 4403 | function cleanUpLine(line) { |
| 4404 | line.parent = null; |
no test coverage detected