   onStylesheetsChanged: (stylesheet) ->
     @refreshScrollbars() if @containsScrollbarSelector(stylesheet)
     @remeasureCharacterWidthsIfVisibleAfterNextUpdate = true
-    @requestUpdate() if @state.visible
+    @requestUpdate() if @visible
 
   onScreenLinesChanged: (change) ->
     {editor} = @props

      hiddenInputStyle.WebkitTransform = 'translateZ(0)' if @useHardwareAcceleration
      if @mouseWheelScreenRow? and not (renderedStartRow <= @mouseWheelScreenRow < renderedEndRow)
        mouseWheelScreenRow = @mouseWheelScreenRow
      style.height = scrollViewHeight if @autoHeight

    className = 'editor-contents editor-colors'

      @props.parentView.trigger 'selection:changed' if selectionChanged
      @props.parentView.trigger 'editor:display-updated'

    @visible = @isVisible()
    @measureScrollbars() if @measuringScrollbars
    @measureLineHeightAndDefaultCharWidthIfNeeded(prevState)
    @remeasureCharacterWidthsIfNeeded(prevState)

  requestUpdate: ->
