PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/toolkit/content/widgets/resizer.xml

http://github.com/zpao/v8monkey
XML | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | 8a84c13c666f60d134c099964dcb913a MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<bindings id="resizerBindings"
 4   xmlns="http://www.mozilla.org/xbl">
 5
 6  <binding id="resizer">
 7    <resources>
 8      <stylesheet src="chrome://global/skin/resizer.css"/>
 9    </resources>
10    <implementation>
11      <constructor>
12      <![CDATA[
13        // don't do this for viewport resizers; causes a crash related to
14        // bugs 563665 and 581536 otherwise
15        if (this.parentNode == this.ownerDocument.documentElement)
16          return;
17
18        // if the direction is rtl, set the rtl attribute so that the
19        // stylesheet can use this to make the cursor appear properly
20        var direction = window.getComputedStyle(this, "").direction;
21        if (direction == "rtl") {
22          this.setAttribute("rtl", "true");
23        }
24      ]]>
25      </constructor>
26    </implementation>
27  </binding>
28
29</bindings>