Bug 1058781 - Fix rtl layout r=eragonj

https://bugzilla.mozilla.org/show_bug.cgi?id=1058781