(cm, viewport, force)
| 5823 | // DISPLAY DRAWING |
| 5824 | |
| 5825 | var DisplayUpdate = function (cm, viewport, force) { |
| 5826 | var display = cm.display |
| 5827 | |
| 5828 | this.viewport = viewport |
| 5829 | // Store some values that we'll need later (but don't want to force a relayout for) |
| 5830 | this.visible = visibleLines(display, cm.doc, viewport) |
| 5831 | this.editorIsHidden = !display.wrapper.offsetWidth |
| 5832 | this.wrapperHeight = display.wrapper.clientHeight |
| 5833 | this.wrapperWidth = display.wrapper.clientWidth |
| 5834 | this.oldDisplayWidth = displayWidth(cm) |
| 5835 | this.force = force |
| 5836 | this.dims = getDimensions(cm) |
| 5837 | this.events = [] |
| 5838 | } |
| 5839 | |
| 5840 | DisplayUpdate.prototype.signal = function (emitter, type) { |
| 5841 | if (hasHandler(emitter, type)) { |
nothing calls this directly
no test coverage detected