Bug 1473929 - Load tree.css as a document stylesheet. r=dao
authorTim Nguyen <ntim.bugs@gmail.com>
Tue, 02 Oct 2018 11:38:51 +0000
changeset 494853 dc011e3cb11cfe6ec77183ef28a67452bc473a93
parent 494852 260007b95d6791a665a7ce2ba45664182b119609
child 494854 ef315578d7484d702ed83cf4f9d3d3af20515ad7
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1473929
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1473929 - Load tree.css as a document stylesheet. r=dao Differential Revision: https://phabricator.services.mozilla.com/D7411
toolkit/content/widgets.css
toolkit/content/widgets/tree.xml
--- a/toolkit/content/widgets.css
+++ b/toolkit/content/widgets.css
@@ -20,9 +20,10 @@
 @import url("chrome://global/skin/progressmeter.css");
 @import url("chrome://global/skin/radio.css");
 @import url("chrome://global/skin/richlistbox.css");
 @import url("chrome://global/skin/scrollbox.css");
 @import url("chrome://global/skin/splitter.css");
 @import url("chrome://global/skin/tabbox.css");
 @import url("chrome://global/skin/toolbar.css");
 @import url("chrome://global/skin/toolbarbutton.css");
+@import url("chrome://global/skin/tree.css");
 @import url("chrome://global/skin/wizard.css");
--- a/toolkit/content/widgets/tree.xml
+++ b/toolkit/content/widgets/tree.xml
@@ -10,19 +10,16 @@
 ]>
 
 <bindings id="treeBindings"
    xmlns="http://www.mozilla.org/xbl"
    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:xbl="http://www.mozilla.org/xbl">
 
   <binding id="tree-base" extends="chrome://global/content/bindings/general.xml#basecontrol">
-    <resources>
-      <stylesheet src="chrome://global/skin/tree.css"/>
-    </resources>
     <implementation>
       <method name="_isAccelPressed">
         <parameter name="aEvent"/>
         <body><![CDATA[
           return aEvent.getModifierState("Accel");
         ]]></body>
       </method>
     </implementation>
@@ -924,19 +921,16 @@
            event.preventDefault();
          }
          ]]>
       </handler>
     </handlers>
   </binding>
 
   <binding id="treecols">
-    <resources>
-      <stylesheet src="chrome://global/skin/tree.css"/>
-    </resources>
     <content orient="horizontal">
       <xul:hbox class="tree-scrollable-columns" flex="1">
         <children includes="treecol|splitter"/>
       </xul:hbox>
       <xul:treecolpicker class="treecol-image" fixed="true" xbl:inherits="tooltiptext=pickertooltiptext"/>
     </content>
     <implementation>
       <constructor><![CDATA[