2011-11-05 12:31:00 -07:00
|
|
|
<?xml version="1.0"?>
|
2012-05-21 04:12:37 -07:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2011-11-07 04:52:06 -08:00
|
|
|
|
2011-11-05 12:31:00 -07:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css"?>
|
2012-03-11 13:36:46 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/devtools/styleinspector.css" type="text/css"?>
|
2011-11-05 12:31:00 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/csshtmltree.css" type="text/css"?>
|
2011-11-07 04:52:06 -08:00
|
|
|
|
2011-11-05 12:31:00 -07:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % inspectorDTD SYSTEM "chrome://browser/locale/devtools/styleinspector.dtd">
|
|
|
|
%inspectorDTD;
|
|
|
|
<!ELEMENT loop ANY>
|
|
|
|
<!ATTLIST li foreach CDATA #IMPLIED>
|
|
|
|
<!ATTLIST div foreach CDATA #IMPLIED>
|
|
|
|
<!ATTLIST loop foreach CDATA #IMPLIED>
|
|
|
|
<!ATTLIST a target CDATA #IMPLIED>
|
|
|
|
<!ATTLIST a __pathElement CDATA #IMPLIED>
|
|
|
|
<!ATTLIST div _id CDATA #IMPLIED>
|
|
|
|
<!ATTLIST div save CDATA #IMPLIED>
|
|
|
|
<!ATTLIST table save CDATA #IMPLIED>
|
|
|
|
<!ATTLIST loop if CDATA #IMPLIED>
|
|
|
|
<!ATTLIST tr if CDATA #IMPLIED>
|
|
|
|
]>
|
2011-11-07 04:52:06 -08:00
|
|
|
|
2011-11-05 12:31:00 -07:00
|
|
|
<xul:window xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
2011-08-30 05:12:02 -07:00
|
|
|
|
|
|
|
<!-- The output from #templateRoot (below) is inserted here. -->
|
2011-11-04 10:12:58 -07:00
|
|
|
<div id="root"></div>
|
2011-08-30 05:12:02 -07:00
|
|
|
|
2011-11-06 02:36:38 -08:00
|
|
|
<!-- When no properties are found the following block is displayed. -->
|
|
|
|
<div id="noResults" hidden="">
|
|
|
|
&noPropertiesFound;
|
|
|
|
</div>
|
|
|
|
|
2011-08-30 09:40:29 -07:00
|
|
|
<!-- The output from #templateProperty (below) is appended here. -->
|
2011-12-19 05:16:43 -08:00
|
|
|
<table id="propertyContainer">
|
|
|
|
</table>
|
2011-08-30 09:40:29 -07:00
|
|
|
|
2011-11-04 10:12:58 -07:00
|
|
|
<xul:hbox id="footer">
|
|
|
|
<xul:label class="legendKey bestmatch">&bestMatch;</xul:label>
|
|
|
|
<xul:label class="legendKey matched">&matched;</xul:label>
|
|
|
|
<xul:label class="legendKey parentmatch">&parentMatch;</xul:label>
|
|
|
|
</xul:hbox>
|
2011-08-30 05:12:02 -07:00
|
|
|
<!--
|
|
|
|
To visually debug the templates without running firefox, alter the display:none
|
|
|
|
-->
|
|
|
|
<div style="display:none;">
|
|
|
|
<!--
|
2011-09-20 02:35:01 -07:00
|
|
|
templateRoot sits at the top of the window and contains the "include default
|
|
|
|
styles" checkbox. For data it needs an instance of CssHtmlTree.
|
2011-08-30 05:12:02 -07:00
|
|
|
-->
|
|
|
|
<div id="templateRoot">
|
2011-11-07 07:25:08 -08:00
|
|
|
<xul:hbox class="headerControls" flex="1" align="center">
|
|
|
|
<xul:checkbox class="onlyuserstyles" save="${onlyUserStylesCheckbox}"
|
|
|
|
oncommand="${onlyUserStylesChanged}" checked="true"
|
|
|
|
label="&userStylesLabel;"/>
|
2011-11-04 10:12:58 -07:00
|
|
|
<xul:textbox class="searchfield" type="search" save="${searchField}"
|
2011-11-07 07:25:08 -08:00
|
|
|
placeholder="&userStylesSearch;" flex="1"
|
2011-11-07 04:52:06 -08:00
|
|
|
oncommand="${filterChanged}"/>
|
2011-11-04 10:12:58 -07:00
|
|
|
</xul:hbox>
|
2011-09-20 02:35:01 -07:00
|
|
|
</div>
|
|
|
|
|
2011-08-30 05:12:02 -07:00
|
|
|
|
|
|
|
<!--
|
2011-09-15 03:30:00 -07:00
|
|
|
A templateMatchedSelectors sits inside each templateProperties showing the
|
|
|
|
list of selectors that affect that property. Each needs data like this:
|
2011-08-30 05:12:02 -07:00
|
|
|
{
|
2011-09-15 03:30:00 -07:00
|
|
|
matchedSelectorViews: ..., // from cssHtmlTree.propertyViews[name].matchedSelectorViews
|
2011-08-30 05:12:02 -07:00
|
|
|
}
|
|
|
|
This is a template so the parent does not need to be a table, except that
|
|
|
|
using a div as the parent causes the DOM to muck with the tr elements
|
|
|
|
-->
|
2011-09-15 03:30:00 -07:00
|
|
|
<div id="templateMatchedSelectors">
|
|
|
|
<table>
|
|
|
|
<loop foreach="selector in ${matchedSelectorViews}">
|
|
|
|
<tr>
|
|
|
|
<td dir="ltr" class="rule-text ${selector.statusClass}">
|
|
|
|
${selector.humanReadableText(__element)}
|
|
|
|
</td>
|
|
|
|
<td class="rule-link">
|
2012-03-11 07:01:38 -07:00
|
|
|
<a target="_blank" class="link"
|
|
|
|
onclick="${selector.openStyleEditor}"
|
|
|
|
onkeydown="${selector.maybeOpenStyleEditor}"
|
|
|
|
title="${selector.selectorInfo.href}"
|
|
|
|
tabindex="0">${selector.selectorInfo.source}</a>
|
2011-09-15 03:30:00 -07:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</loop>
|
|
|
|
</table>
|
|
|
|
</div>
|
2011-08-30 05:12:02 -07:00
|
|
|
</div>
|
2011-11-05 15:19:02 -07:00
|
|
|
|
2011-11-05 12:31:00 -07:00
|
|
|
</xul:window>
|