Bug 879147 - Don't move OS X titlebar placeholders in RTL mode. r=dao,mconley

This commit is contained in:
Matthew Noorenberghe 2013-06-04 00:24:29 -07:00
parent 98c16dd89f
commit 95646b10b0
2 changed files with 14 additions and 9 deletions

View File

@ -485,15 +485,13 @@
#ifdef CAN_DRAW_IN_TITLEBAR
<hbox class="titlebar-placeholder" type="caption-buttons"
#ifdef XP_MACOSX
ordinal="0"
#else
#ifndef XP_MACOSX
ordinal="1000"
#endif
/>
#ifdef XP_MACOSX
<hbox class="titlebar-placeholder" type="fullscreen-button" ordinal="1000"/>
<hbox class="titlebar-placeholder" type="fullscreen-button"/>
#endif
#endif
</toolbar>
@ -856,16 +854,13 @@
#ifdef CAN_DRAW_IN_TITLEBAR
<hbox class="titlebar-placeholder" type="caption-buttons"
#ifdef XP_MACOSX
ordinal="0"
#else
#ifndef XP_MACOSX
ordinal="1000"
#endif
/>
#ifdef XP_MACOSX
<hbox class="titlebar-placeholder" type="fullscreen-button"
ordinal="1000"/>
<hbox class="titlebar-placeholder" type="fullscreen-button"/>
#endif
#endif
</toolbar>

View File

@ -48,6 +48,16 @@
display: none;
}
/* Fullscreen and caption buttons don't move with RTL on OS X so override the automatic ordering. */
.titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(ltr),
.titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(rtl) {
-moz-box-ordinal-group: 1000;
}
.titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(ltr),
.titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(rtl) {
-moz-box-ordinal-group: 0;
}
#titlebar {
padding-top: 9px;
}