(left, top, width, bottom)
| 1278 | var padding = paddingH(cm.display), leftSide = padding.left, rightSide = display.lineSpace.offsetWidth - padding.right; |
| 1279 | |
| 1280 | function add(left, top, width, bottom) { |
| 1281 | if (top < 0) top = 0; |
| 1282 | top = Math.round(top); |
| 1283 | bottom = Math.round(bottom); |
| 1284 | fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left + |
| 1285 | "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) + |
| 1286 | "px; height: " + (bottom - top) + "px")); |
| 1287 | } |
| 1288 | |
| 1289 | function drawForLine(line, fromArg, toArg) { |
| 1290 | var lineObj = getLine(doc, line); |
no test coverage detected