Make LinesComponent a normal object instead of a React component

Also, remove ability to disable hardware acceleration since there’s
no longer a need for it and it complicated this conversion.
This commit is contained in:
Nathan Sobo
2015-02-10 17:33:48 -07:00
parent da793e834a
commit c06e100fae
8 changed files with 54 additions and 106 deletions

View File

@@ -7,7 +7,7 @@ ScrollbarComponent = React.createClass
displayName: 'ScrollbarComponent'
render: ->
{presenter, orientation, className, useHardwareAcceleration} = @props
{presenter, orientation, className} = @props
switch orientation
when 'vertical'
@@ -18,7 +18,7 @@ ScrollbarComponent = React.createClass
style = {}
style.display = 'none' unless @newState.visible
style.transform = 'translateZ(0)' if useHardwareAcceleration # See atom/atom#3559
style.transform = 'translateZ(0)' # See atom/atom#3559
switch orientation
when 'vertical'
style.width = @newState.width