|
1 <?xml version="1.0"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 |
|
7 <bindings id="resizerBindings" |
|
8 xmlns="http://www.mozilla.org/xbl"> |
|
9 |
|
10 <binding id="resizer"> |
|
11 <resources> |
|
12 <stylesheet src="chrome://global/skin/resizer.css"/> |
|
13 </resources> |
|
14 <implementation> |
|
15 <constructor> |
|
16 <![CDATA[ |
|
17 // don't do this for viewport resizers; causes a crash related to |
|
18 // bugs 563665 and 581536 otherwise |
|
19 if (this.parentNode == this.ownerDocument.documentElement) |
|
20 return; |
|
21 |
|
22 // if the direction is rtl, set the rtl attribute so that the |
|
23 // stylesheet can use this to make the cursor appear properly |
|
24 var direction = window.getComputedStyle(this, "").direction; |
|
25 if (direction == "rtl") { |
|
26 this.setAttribute("rtl", "true"); |
|
27 } |
|
28 ]]> |
|
29 </constructor> |
|
30 </implementation> |
|
31 </binding> |
|
32 |
|
33 </bindings> |