Rename editor option to useHardwareAcceleration

This commit is contained in:
Nathan Sobo
2014-07-01 12:06:52 -06:00
parent 512d4da587
commit 0edfbaebeb
6 changed files with 25 additions and 25 deletions

View File

@@ -25,12 +25,12 @@ GutterComponent = React.createClass
WebkitTransform: @getTransform()
getTransform: ->
{scrollTop, gpuDisabled} = @props
{scrollTop, useHardwareAcceleration} = @props
if gpuDisabled
"translate(0px, #{-scrollTop}px)"
else
if useHardwareAcceleration
"translate3d(0px, #{-scrollTop}px, 0px)"
else
"translate(0px, #{-scrollTop}px)"
componentWillMount: ->
@lineNumberNodesById = {}
@@ -47,7 +47,7 @@ GutterComponent = React.createClass
shouldComponentUpdate: (newProps) ->
return true unless isEqualForProperties(newProps, @props,
'renderedRowRange', 'scrollTop', 'lineHeightInPixels', 'mouseWheelScreenRow', 'lineDecorations',
'scrollViewHeight', 'gpuDisabled'
'scrollViewHeight', 'useHardwareAcceleration'
)
{renderedRowRange, pendingChanges, lineDecorations} = newProps