mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1336198 - Part 5: Remove initialization of the deprecated box model. r=jdescottes
This commit is contained in:
parent
e101144c5e
commit
ec5aef281c
@ -26,7 +26,6 @@ const {
|
||||
const StyleInspectorMenu = require("devtools/client/inspector/shared/style-inspector-menu");
|
||||
const TooltipsOverlay = require("devtools/client/inspector/shared/tooltips-overlay");
|
||||
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 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.inspector.pageStyle);
|
||||
this.boxModelView = new BoxModelView(this.inspector, this.document);
|
||||
|
||||
this.onSelected = this.onSelected.bind(this);
|
||||
this.refresh = this.refresh.bind(this);
|
||||
@ -1525,9 +1523,8 @@ ComputedViewTool.prototype = {
|
||||
}
|
||||
|
||||
this.computedView.destroy();
|
||||
this.boxModelView.destroy();
|
||||
|
||||
this.computedView = this.boxModelView = this.document = this.inspector = null;
|
||||
this.computedView = this.document = this.inspector = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user