     if SPEC_MODE
       @applyStyles @visibleArea,
         width: visibleWidth + 'px'
-        height: @minimap.getTextEditorScaledHeight() + 'px'
+        height: minimap.getTextEditorScaledHeight() + 'px'
         top: visibleAreaTop + 'px'
         left: visibleAreaLeft + 'px'
     else
       @applyStyles @visibleArea,
         width: visibleWidth + 'px'
-        height: @minimap.getTextEditorScaledHeight() + 'px'
+        height: minimap.getTextEditorScaledHeight() + 'px'
         transform: @makeTranslate(visibleAreaLeft, visibleAreaTop)
 
     @applyStyles @controls,
       width: visibleWidth + 'px'
 
-    canvasTop = @minimap.getFirstVisibleScreenRow() * @minimap.getLineHeight() - @minimap.getScrollTop()
+    canvasTop = minimap.getFirstVisibleScreenRow() * minimap.getLineHeight() - minimap.getScrollTop()
 
     canvasTransform = @makeTranslate(0, canvasTop)
     canvasTransform += " " + @makeScale(1 / devicePixelRatio) if devicePixelRatio isnt 1

    else
      @applyStyles @canvas, transform: canvasTransform

    if @minimapScrollIndicator and @minimap.canScroll() and not @scrollIndicator
      @initializeScrollIndicator()

    if @scrollIndicator?
      minimapScreenHeight = @minimap.getScreenHeight()
      indicatorHeight = minimapScreenHeight * (minimapScreenHeight / @minimap.getHeight())
      indicatorScroll = (minimapScreenHeight - indicatorHeight) * @minimap.getCapedTextEditorScrollRatio()

      if SPEC_MODE
        @applyStyles @scrollIndicator,

  # Internal: Performs the actual {MinimapElement} update.
  update: ->
    return unless @attached and @isVisible() and @minimap?
    minimap = @minimap
    minimap.enableCache()

    visibleAreaLeft = minimap.getTextEditorScaledScrollLeft()
    visibleAreaTop = minimap.getTextEditorScaledScrollTop() - minimap.getScrollTop()
    visibleWidth = Math.min(@canvas.width / devicePixelRatio, @width)

    if @adjustToSoftWrap and @flexBasis
