1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/styleinspector/cssruleview.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.6 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.8 + 1.9 +<!DOCTYPE window [ 1.10 + <!ENTITY % inspectorDTD SYSTEM "chrome://browser/locale/devtools/styleinspector.dtd"> 1.11 + %inspectorDTD; 1.12 +]> 1.13 + 1.14 + 1.15 +<html xmlns="http://www.w3.org/1999/xhtml" 1.16 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.17 + class="theme-sidebar"> 1.18 + 1.19 + <head> 1.20 + <title>&ruleViewTitle;</title> 1.21 + <link rel="stylesheet" href="chrome://global/skin/global.css" type="text/css"/> 1.22 + <link rel="stylesheet" href="chrome://browser/skin/devtools/common.css" type="text/css"/> 1.23 + <link rel="stylesheet" href="chrome://browser/content/devtools/ruleview.css" type="text/css"/> 1.24 + <link rel="stylesheet" href="chrome://browser/skin/devtools/ruleview.css" type="text/css"/> 1.25 + 1.26 + <script type="application/javascript;version=1.8" src="theme-switching.js"/> 1.27 + 1.28 + <script type="application/javascript;version=1.8"> 1.29 + window.setPanel = function(panel, iframe) { 1.30 + let {devtools} = Components.utils.import("resource://gre/modules/devtools/Loader.jsm", {}); 1.31 + let inspector = devtools.require("devtools/styleinspector/style-inspector"); 1.32 + this.ruleview = new inspector.RuleViewTool(panel, window, iframe); 1.33 + } 1.34 + window.onunload = function() { 1.35 + if (this.ruleview) { 1.36 + this.ruleview.destroy(); 1.37 + } 1.38 + } 1.39 + </script> 1.40 + </head> 1.41 +</html>