refresh browser-kde.xul firefox29
authorWolfgang Rosenauer <wr@rosenauer.org>
Sat, 26 Apr 2014 14:26:27 +0200
branchfirefox29
changeset 721 6f30563d969e
parent 720 f372890e9681
child 722 71fc8d74b596
refresh browser-kde.xul
firefox-kde.patch
--- a/firefox-kde.patch	Sat Apr 26 14:26:07 2014 +0200
+++ b/firefox-kde.patch	Sat Apr 26 14:26:27 2014 +0200
@@ -2,7 +2,7 @@
 new file mode 100644
 --- /dev/null
 +++ b/browser/base/content/browser-kde.xul
-@@ -0,0 +1,1213 @@
+@@ -0,0 +1,1217 @@
 +#filter substitution
 +<?xml version="1.0"?>
 +# -*- Mode: HTML -*-
@@ -508,7 +508,12 @@
 +      </hbox>
 +    </hbox>
 +#ifdef XP_MACOSX
-+    <hbox id="titlebar-fullscreen-button"/>
++    <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
++         buttonbox from reversing order in RTL by forcing an LTR direction. -->
++    <hbox id="titlebar-secondary-buttonbox" dir="ltr">
++      <hbox class="private-browsing-indicator"/>
++      <hbox id="titlebar-fullscreen-button"/>
++    </hbox>
 +#endif
 +  </hbox>
 +</vbox>
@@ -612,8 +617,8 @@
 +                     cui-areatype="toolbar"
 +                     tooltiptext="&closeTab.label;"/>
 +
-+#ifdef XP_WIN
-+      <hbox class="private-browsing-indicator" skipintoolbarset="true" ordinal="1000"/>
++#if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
++      <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
 +#endif
 +#ifdef CAN_DRAW_IN_TITLEBAR
 +      <hbox class="titlebar-placeholder" type="caption-buttons"
@@ -1191,15 +1196,14 @@
 +  <svg:svg height="0">
 +#include tab-shape.inc.svg
 +
-+#ifndef XP_UNIX
-+    <svg:clipPath id="windows-keyhole-forward-clip-path" clipPathUnits="userSpaceOnUse">
-+      <svg:path d="M 0,0 a 16 16 0 0 1 0,24 l 10000,0 l 0,-24 l -10000,0 z"/>
++#ifndef XP_MACOSX
++    <svg:clipPath id="keyhole-forward-clip-path" clipPathUnits="objectBoundingBox">
++      <svg:path d="m 0,0 c .3,.25 .3,.75, 0,1 l 1,0 0,-1 z"/>
 +    </svg:clipPath>
-+    <svg:clipPath id="windows-urlbar-back-button-clip-path" clipPathUnits="userSpaceOnUse">
-+      <svg:path d="M -1,1 a 16 16 0 0 1 0,24 l 10000,0 l 0,-24 l -10000,0 z"/>
++    <svg:clipPath id="urlbar-back-button-clip-path" clipPathUnits="userSpaceOnUse">
++      <svg:path d="m 0,-5 l 0,7.8 c 2.5,3.2 4,6.2 4,10.2 c 0,4 -1.5,7 -4,10 l 0,22l10000,0 l 0,-50 l -10000,0 z"/>
 +    </svg:clipPath>
-+#endif
-+#ifdef XP_MACOSX
++#else
 +    <svg:clipPath id="osx-keyhole-forward-clip-path" clipPathUnits="userSpaceOnUse">
 +      <svg:path d="M 0,0 a 16 16 0 0 1 0,24 l 10000,0 l 0,-24 l -10000,0 z"/>
 +    </svg:clipPath>