(left, top, width, bottom)
| 4497 | var docLTR = doc.direction == "ltr" |
| 4498 | |
| 4499 | function add(left, top, width, bottom) { |
| 4500 | if (top < 0) { |
| 4501 | top = 0 |
| 4502 | } |
| 4503 | top = Math.round(top) |
| 4504 | bottom = Math.round(bottom) |
| 4505 | fragment.appendChild( |
| 4506 | elt( |
| 4507 | "div", |
| 4508 | null, |
| 4509 | "CodeMirror-selected", |
| 4510 | "position: absolute; left: " + left + "px;\n top: " + top + "px; width: " + (width == null ? rightSide - left : width) + "px;\n height: " + (bottom - top) + "px" |
| 4511 | ) |
| 4512 | ) |
| 4513 | } |
| 4514 | |
| 4515 | function drawForLine(line, fromArg, toArg) { |
| 4516 | var lineObj = getLine(doc, line) |
no test coverage detected