|
1 <?xml version="1.0"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 <!DOCTYPE window [ |
|
7 <!ENTITY % inspectorDTD SYSTEM "chrome://browser/locale/devtools/styleinspector.dtd"> |
|
8 %inspectorDTD; |
|
9 ]> |
|
10 |
|
11 |
|
12 <html xmlns="http://www.w3.org/1999/xhtml" |
|
13 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
14 class="theme-sidebar"> |
|
15 |
|
16 <head> |
|
17 <title>&ruleViewTitle;</title> |
|
18 <link rel="stylesheet" href="chrome://global/skin/global.css" type="text/css"/> |
|
19 <link rel="stylesheet" href="chrome://browser/skin/devtools/common.css" type="text/css"/> |
|
20 <link rel="stylesheet" href="chrome://browser/content/devtools/ruleview.css" type="text/css"/> |
|
21 <link rel="stylesheet" href="chrome://browser/skin/devtools/ruleview.css" type="text/css"/> |
|
22 |
|
23 <script type="application/javascript;version=1.8" src="theme-switching.js"/> |
|
24 |
|
25 <script type="application/javascript;version=1.8"> |
|
26 window.setPanel = function(panel, iframe) { |
|
27 let {devtools} = Components.utils.import("resource://gre/modules/devtools/Loader.jsm", {}); |
|
28 let inspector = devtools.require("devtools/styleinspector/style-inspector"); |
|
29 this.ruleview = new inspector.RuleViewTool(panel, window, iframe); |
|
30 } |
|
31 window.onunload = function() { |
|
32 if (this.ruleview) { |
|
33 this.ruleview.destroy(); |
|
34 } |
|
35 } |
|
36 </script> |
|
37 </head> |
|
38 </html> |