Bug 1449497: Use Component instead of PureComponent. r=gl

This commit is contained in:
Daisuke Akatsuka 2018-04-03 09:12:53 +09:00
Родитель b4fc01f3cb
Коммит fb33aab183
7 изменённых файлов: 14 добавлений и 15 удалений

Просмотреть файл

@ -4,13 +4,13 @@
"use strict";
const { createFactory, PureComponent } = require("devtools/client/shared/vendor/react");
const { Component, createFactory } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const AnimatedPropertyItem = createFactory(require("./AnimatedPropertyItem"));
class AnimatedPropertyList extends PureComponent {
class AnimatedPropertyList extends Component {
static get propTypes() {
return {
animation: PropTypes.object.isRequired,

Просмотреть файл

@ -5,14 +5,14 @@
"use strict";
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { createFactory, PureComponent } = require("devtools/client/shared/vendor/react");
const { Component, createFactory } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const AnimationTarget = createFactory(require("./AnimationTarget"));
const SummaryGraph = createFactory(require("./graph/SummaryGraph"));
class AnimationItem extends PureComponent {
class AnimationItem extends Component {
static get propTypes() {
return {
animation: PropTypes.object.isRequired,

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { PureComponent } = require("devtools/client/shared/vendor/react");
const { Component } = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const { translateNodeFrontToGrip } = require("devtools/client/inspector/shared/utils");
@ -13,7 +13,7 @@ const { REPS, MODE } = require("devtools/client/shared/components/reps/reps");
const { Rep } = REPS;
const ElementNode = REPS.ElementNode;
class AnimationTarget extends PureComponent {
class AnimationTarget extends Component {
static get propTypes() {
return {
animation: PropTypes.object.isRequired,

Просмотреть файл

@ -4,8 +4,7 @@
"use strict";
const { createFactory, PureComponent } =
require("devtools/client/shared/vendor/react");
const { Component, createFactory } = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const { connect } = require("devtools/client/shared/vendor/react-redux");
@ -18,7 +17,7 @@ const { findOptimalTimeInterval } = require("../utils/utils");
// The minimum spacing between 2 time graduation headers in the timeline (px).
const TIME_GRADUATION_MIN_SPACING = 40;
class AnimationTimelineTickList extends PureComponent {
class AnimationTimelineTickList extends Component {
static get propTypes() {
return {
sidebarWidth: PropTypes.number.isRequired,

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { createFactory, PureComponent } = require("devtools/client/shared/vendor/react");
const { Component, createFactory } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
@ -15,7 +15,7 @@ const AnimationToolbar = createFactory(require("./AnimationToolbar"));
const NoAnimationPanel = createFactory(require("./NoAnimationPanel"));
const SplitBox = createFactory(require("devtools/client/shared/components/splitter/SplitBox"));
class App extends PureComponent {
class App extends Component {
static get propTypes() {
return {
addAnimationsCurrentTimeListener: PropTypes.func.isRequired,

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { PureComponent } = require("devtools/client/shared/vendor/react");
const { Component } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
@ -13,7 +13,7 @@ const { LocalizationHelper } = require("devtools/shared/l10n");
const L10N =
new LocalizationHelper("devtools/client/locales/animationinspector.properties");
class NoAnimationPanel extends PureComponent {
class NoAnimationPanel extends Component {
static get propTypes() {
return {
elementPickerEnabled: PropTypes.bool.isRequired,

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { createFactory, PureComponent } = require("devtools/client/shared/vendor/react");
const { Component, createFactory } = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const ReactDOM = require("devtools/client/shared/vendor/react-dom");
@ -18,7 +18,7 @@ const { DEFAULT_GRAPH_HEIGHT } = require("../../utils/graph-helper");
// Minimum opacity for semitransparent fill color for keyframes's easing graph.
const MIN_KEYFRAMES_EASING_OPACITY = 0.5;
class SummaryGraphPath extends PureComponent {
class SummaryGraphPath extends Component {
static get propTypes() {
return {
animation: PropTypes.object.isRequired,