(cm, viewport, force)
| 637 | // DISPLAY DRAWING |
| 638 | |
| 639 | function DisplayUpdate(cm, viewport, force) { |
| 640 | var display = cm.display; |
| 641 | |
| 642 | this.viewport = viewport; |
| 643 | // Store some values that we'll need later (but don't want to force a relayout for) |
| 644 | this.visible = visibleLines(display, cm.doc, viewport); |
| 645 | this.editorIsHidden = !display.wrapper.offsetWidth; |
| 646 | this.wrapperHeight = display.wrapper.clientHeight; |
| 647 | this.wrapperWidth = display.wrapper.clientWidth; |
| 648 | this.oldDisplayWidth = displayWidth(cm); |
| 649 | this.force = force; |
| 650 | this.dims = getDimensions(cm); |
| 651 | this.events = []; |
| 652 | } |
| 653 | |
| 654 | DisplayUpdate.prototype.signal = function(emitter, type) { |
| 655 | if (hasHandler(emitter, type)) |
nothing calls this directly
no test coverage detected