зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336198 - Part 5: Remove initialization of the deprecated box model. r=jdescottes
This commit is contained in:
Родитель
b1476550d5
Коммит
707413a8d4
|
@ -26,7 +26,6 @@ const {
|
||||||
const StyleInspectorMenu = require("devtools/client/inspector/shared/style-inspector-menu");
|
const StyleInspectorMenu = require("devtools/client/inspector/shared/style-inspector-menu");
|
||||||
const TooltipsOverlay = require("devtools/client/inspector/shared/tooltips-overlay");
|
const TooltipsOverlay = require("devtools/client/inspector/shared/tooltips-overlay");
|
||||||
const KeyShortcuts = require("devtools/client/shared/key-shortcuts");
|
const KeyShortcuts = require("devtools/client/shared/key-shortcuts");
|
||||||
const BoxModelView = require("devtools/client/inspector/components/deprecated-box-model");
|
|
||||||
const clipboardHelper = require("devtools/shared/platform/clipboard");
|
const clipboardHelper = require("devtools/shared/platform/clipboard");
|
||||||
|
|
||||||
const STYLE_INSPECTOR_PROPERTIES = "devtools/shared/locales/styleinspector.properties";
|
const STYLE_INSPECTOR_PROPERTIES = "devtools/shared/locales/styleinspector.properties";
|
||||||
|
@ -1416,7 +1415,6 @@ function ComputedViewTool(inspector, window) {
|
||||||
|
|
||||||
this.computedView = new CssComputedView(this.inspector, this.document,
|
this.computedView = new CssComputedView(this.inspector, this.document,
|
||||||
this.inspector.pageStyle);
|
this.inspector.pageStyle);
|
||||||
this.boxModelView = new BoxModelView(this.inspector, this.document);
|
|
||||||
|
|
||||||
this.onSelected = this.onSelected.bind(this);
|
this.onSelected = this.onSelected.bind(this);
|
||||||
this.refresh = this.refresh.bind(this);
|
this.refresh = this.refresh.bind(this);
|
||||||
|
@ -1525,9 +1523,8 @@ ComputedViewTool.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.computedView.destroy();
|
this.computedView.destroy();
|
||||||
this.boxModelView.destroy();
|
|
||||||
|
|
||||||
this.computedView = this.boxModelView = this.document = this.inspector = null;
|
this.computedView = this.document = this.inspector = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче