(cm, viewport, force)
| 4003 | // DISPLAY DRAWING |
| 4004 | |
| 4005 | var DisplayUpdate = function(cm, viewport, force) { |
| 4006 | var display = cm.display; |
| 4007 | |
| 4008 | this.viewport = viewport; |
| 4009 | // Store some values that we'll need later (but don't want to force a relayout for) |
| 4010 | this.visible = visibleLines(display, cm.doc, viewport); |
| 4011 | this.editorIsHidden = !display.wrapper.offsetWidth; |
| 4012 | this.wrapperHeight = display.wrapper.clientHeight; |
| 4013 | this.wrapperWidth = display.wrapper.clientWidth; |
| 4014 | this.oldDisplayWidth = displayWidth(cm); |
| 4015 | this.force = force; |
| 4016 | this.dims = getDimensions(cm); |
| 4017 | this.events = []; |
| 4018 | }; |
| 4019 | |
| 4020 | DisplayUpdate.prototype.signal = function (emitter, type) { |
| 4021 | if (hasHandler(emitter, type)) |
nothing calls this directly
no test coverage detected