/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. <bindings id="resizerBindings"
  3. xmlns="http://www.mozilla.org/xbl">
  4. <binding id="resizer">
  5. <resources>
  6. <stylesheet src="chrome://global/skin/resizer.css"/>
  7. </resources>
  8. <implementation>
  9. <constructor>
  10. <![CDATA[
  11. // don't do this for viewport resizers; causes a crash related to
  12. // bugs 563665 and 581536 otherwise
  13. if (this.parentNode == this.ownerDocument.documentElement)
  14. return;
  15. // if the direction is rtl, set the rtl attribute so that the
  16. // stylesheet can use this to make the cursor appear properly
  17. var direction = window.getComputedStyle(this, "").direction;
  18. if (direction == "rtl") {
  19. this.setAttribute("rtl", "true");
  20. }
  21. ]]>
  22. </constructor>
  23. </implementation>
  24. </binding>
  25. </bindings>