(line, height)
| 1014 | // Update the height of a line, propagating the height change |
| 1015 | // upwards to parent nodes. |
| 1016 | function updateLineHeight(line, height) { |
| 1017 | var diff = height - line.height |
| 1018 | if (diff) { |
| 1019 | for (var n = line; n; n = n.parent) { |
| 1020 | n.height += diff |
| 1021 | } |
| 1022 | } |
| 1023 | } |
| 1024 | |
| 1025 | // Given a line object, find its line number by walking up through |
| 1026 | // its parent links. |
no outgoing calls
no test coverage detected