diff options
Diffstat (limited to 'devtools/client/memory/components')
6 files changed, 10 insertions, 11 deletions
diff --git a/devtools/client/memory/components/CensusTreeItem.js b/devtools/client/memory/components/CensusTreeItem.js index 39fdbeb052..b3dd5545de 100644 --- a/devtools/client/memory/components/CensusTreeItem.js +++ b/devtools/client/memory/components/CensusTreeItem.js @@ -45,7 +45,7 @@ class CensusTreeItem extends Component { this.toLabel = this.toLabel.bind(this); } - shouldComponentUpdate(nextProps, nextState) { + shouldComponentUpdate(nextProps) { return ( this.props.item != nextProps.item || this.props.depth != nextProps.depth || diff --git a/devtools/client/memory/components/DominatorTree.js b/devtools/client/memory/components/DominatorTree.js index 9c767cece7..3cb1f89856 100644 --- a/devtools/client/memory/components/DominatorTree.js +++ b/devtools/client/memory/components/DominatorTree.js @@ -44,7 +44,7 @@ class DominatorTreeSubtreeFetchingClass extends Component { }; } - shouldComponentUpdate(nextProps, nextState) { + shouldComponentUpdate(nextProps) { return ( this.props.depth !== nextProps.depth || this.props.focused !== nextProps.focused @@ -84,7 +84,7 @@ class DominatorTreeSiblingLinkClass extends Component { }; } - shouldComponentUpdate(nextProps, nextState) { + shouldComponentUpdate(nextProps) { return ( this.props.depth !== nextProps.depth || this.props.focused !== nextProps.focused @@ -129,7 +129,7 @@ class DominatorTree extends Component { }; } - shouldComponentUpdate(nextProps, nextState) { + shouldComponentUpdate(nextProps) { // Safe to use referential equality here because all of our mutations on // dominator tree models use immutableUpdate in a persistent manner. The // exception to the rule are mutations of the expanded set, however we take diff --git a/devtools/client/memory/components/DominatorTreeItem.js b/devtools/client/memory/components/DominatorTreeItem.js index 59cb542a3a..88dddf0563 100644 --- a/devtools/client/memory/components/DominatorTreeItem.js +++ b/devtools/client/memory/components/DominatorTreeItem.js @@ -47,7 +47,7 @@ class DominatorTreeItem extends Component { }; } - shouldComponentUpdate(nextProps, nextState) { + shouldComponentUpdate(nextProps) { return ( this.props.item != nextProps.item || this.props.depth != nextProps.depth || diff --git a/devtools/client/memory/components/Individuals.js b/devtools/client/memory/components/Individuals.js index dd0e9acc81..ed48232c68 100644 --- a/devtools/client/memory/components/Individuals.js +++ b/devtools/client/memory/components/Individuals.js @@ -42,9 +42,9 @@ class Individuals extends Component { autoExpandDepth: 0, preventNavigationOnArrowRight: false, focused: individuals.focused, - getParent: node => null, - getChildren: node => [], - isExpanded: node => false, + getParent: () => null, + getChildren: () => [], + isExpanded: () => false, onExpand: () => {}, onCollapse: () => {}, onFocus, diff --git a/devtools/client/memory/components/TreeMap.js b/devtools/client/memory/components/TreeMap.js index b9a3c39495..6dd404d3e9 100644 --- a/devtools/client/memory/components/TreeMap.js +++ b/devtools/client/memory/components/TreeMap.js @@ -38,7 +38,7 @@ class TreeMap extends Component { return oldTreeMap !== newTreeMap; } - componentDidUpdate(prevProps) { + componentDidUpdate() { this._stopVisualization(); if (this.props.treeMap && this.props.treeMap.report) { diff --git a/devtools/client/memory/components/tree-map/drag-zoom.js b/devtools/client/memory/components/tree-map/drag-zoom.js index 034017e086..f0f94a926a 100644 --- a/devtools/client/memory/components/tree-map/drag-zoom.js +++ b/devtools/client/memory/components/tree-map/drag-zoom.js @@ -295,10 +295,9 @@ function setScrollHandlers(container, dragZoom, emitChanged, update) { * Account for the various mouse wheel event types, per pixel or per line * * @param {WheelEvent} event - * @param {Window} window * @return {Number} The scroll size in pixels */ -function getScrollDelta(event, window) { +function getScrollDelta(event) { if (event.deltaMode === LINE_SCROLL_MODE) { // Update by a fixed arbitrary value to normalize scroll types return event.deltaY * SCROLL_LINE_SIZE; |