Bug 1336198 - Part 5: Remove initialization of the deprecated box model. r=jdescottes

This commit is contained in:
Gabriel Luong 2017-02-16 16:07:18 -05:00
Родитель b1476550d5
Коммит 707413a8d4
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -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;
} }
}; };