toolkit/content/widgets/resizer.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/content/widgets/resizer.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     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 +
    1.10 +<bindings id="resizerBindings"
    1.11 +   xmlns="http://www.mozilla.org/xbl">
    1.12 +
    1.13 +  <binding id="resizer">
    1.14 +    <resources>
    1.15 +      <stylesheet src="chrome://global/skin/resizer.css"/>
    1.16 +    </resources>
    1.17 +    <implementation>
    1.18 +      <constructor>
    1.19 +      <![CDATA[
    1.20 +        // don't do this for viewport resizers; causes a crash related to
    1.21 +        // bugs 563665 and 581536 otherwise
    1.22 +        if (this.parentNode == this.ownerDocument.documentElement)
    1.23 +          return;
    1.24 +
    1.25 +        // if the direction is rtl, set the rtl attribute so that the
    1.26 +        // stylesheet can use this to make the cursor appear properly
    1.27 +        var direction = window.getComputedStyle(this, "").direction;
    1.28 +        if (direction == "rtl") {
    1.29 +          this.setAttribute("rtl", "true");
    1.30 +        }
    1.31 +      ]]>
    1.32 +      </constructor>
    1.33 +    </implementation>
    1.34 +  </binding>
    1.35 +
    1.36 +</bindings>

mercurial