(lineView)
| 21 | // Lines with gutter elements, widgets or a background class need to |
| 22 | // be wrapped, and have the extra elements added to the wrapper div |
| 23 | function ensureLineWrapped(lineView) { |
| 24 | if (lineView.node == lineView.text) { |
| 25 | lineView.node = elt("div", null, null, "position: relative") |
| 26 | if (lineView.text.parentNode) |
| 27 | lineView.text.parentNode.replaceChild(lineView.node, lineView.text) |
| 28 | lineView.node.appendChild(lineView.text) |
| 29 | if (ie && ie_version < 8) lineView.node.style.zIndex = 2 |
| 30 | } |
| 31 | return lineView.node |
| 32 | } |
| 33 | |
| 34 | function updateLineBackground(cm, lineView) { |
| 35 | let cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass |
no test coverage detected