Commit graph

43 commits

Author SHA1 Message Date
Dão Gottwald
7514587643 Bug 1434621 - part 1: vertically center title bar buttons on Linux. r=stransky
MozReview-Commit-ID: 4cpEAyw1a4k
2018-02-21 16:39:59 +01:00
Brian Grinstead
7748a17ff2 Bug 1424095 - Tweak frontend CSS to play nicely in XUL flexbox emulation mode;r=Gijs
There are still known issues with the browser chrome when emulating, but this changeset is
done in service of getting the UI to be close enough to start running Talos tests against
it in Bug 1425330.

MozReview-Commit-ID: B0w1aOmi4FJ

--HG--
extra : rebase_source : e8b13f9203f0e368fb6f36bc9d2059fff7061b54
2018-01-04 10:25:30 -08:00
Dão Gottwald
6bd33a0edd Bug 1430747 - Stop setting unused customization-lwtheme attribute and --toolbox-rect-height, --toolbox-rect-height-with-unit CSS variables. r=mikedeboer
MozReview-Commit-ID: HpdE3I7ZeDY

--HG--
extra : rebase_source : b87cd595bf2002b6fd25883beedac06835a63e0d
2018-01-16 12:38:41 +01:00
Dale Harvey
e625918d42 Bug 1411309 - Remove margin next to chrome controls and drag space. r=johannh
MozReview-Commit-ID: 91JCjkW7mNJ

--HG--
extra : rebase_source : a294e69cef349c69012604fb836ea77d2b5c9132
2017-11-06 14:09:48 +00:00
Martin Stransky
2fcd40438c Bug 1414216 - Disable tabsintitlebar when disabled by -moz-gtk-csd-available media feature, r=dao
MozReview-Commit-ID: G9NHhuFwUEe

--HG--
extra : rebase_source : 28849c2e9b9de5d2e720221c5293e66c3a6b881e
2017-11-03 10:57:00 +01:00
Dão Gottwald
44f575271b Bug 1411642 - Don't let window controls overlap the nav bar. r=johannh
MozReview-Commit-ID: HLZoEaktNau

--HG--
extra : rebase_source : 07e975b423272d3b044c691e061adad4e3a5a33f
2017-10-26 11:46:30 +02:00
Dão Gottwald
8be04e714c Bug 1405542 - Replace nav-bar top border and the tabs toolbar's negative margin with a box-shadow to avoid running into bug 477157. r=nhnt11
MozReview-Commit-ID: KXFj740EXEz

--HG--
extra : rebase_source : 3b9d175ea71d2af967c0dc40aca501ad5461f846
2017-10-24 12:37:43 +02:00
Attila Craciun
ce9fedb636 Backed out 1 changesets (bug 1405542) for failing in OS X (browser chrome test) at browser/base/content/test/performance/browser_windowopen_reflows.js on a CLOSED TREE.
Backed out changeset f4343e201285 (bug 1405542)
2017-10-23 16:26:13 +03:00
Dão Gottwald
e45c6c44d1 Bug 1405542 - Replace nav-bar top border and the tabs toolbar's negative margin with a box-shadow to avoid running into bug 477157. r=nhnt11
MozReview-Commit-ID: HFelefofjYY

--HG--
extra : rebase_source : 0d2d1f220a6a203ba0892b04f581678f258c73d7
2017-10-19 16:50:52 +02:00
Dão Gottwald
b0ded25979 Bug 1399500 - Light and Dark themes should use the same toolbar borders as the default theme. r=johannh
MozReview-Commit-ID: Cs6a7AZiOrV

--HG--
extra : rebase_source : 0b4d91254f145dd35fd566630ca464b87e3cd5dc
2017-10-06 16:41:43 +02:00
Johann Hofmann
1a8efc0e83 Bug 1390885 - Remove code that adjusts the titlebar to drawing lwthemes inside the titlebar. r=nhnt11
We got rid of drawing lwthemes inside the titlebar on OSX in bug 1392219 but
there was still some code that adjusted the titlebar, which we forgot
remove. Incidentally, that code was also causing a bug (even before we
removed the in-titlebar drawing) which we now don't need to worry about
anymore now.

MozReview-Commit-ID: 44HR25Uyp8B

--HG--
extra : rebase_source : 12a9d427a021d00553be8949dd5f9fa7e37eef47
2017-09-28 23:16:04 +02:00
Johann Hofmann
1277f8d21b Bug 1390448 - Restore vertical margin calculation in browser-tabsintitlebar.js, add 1px to window control margin on Windows 10. r=dao
MozReview-Commit-ID: LXR2zrAZS0k

--HG--
extra : rebase_source : 807e7c6da20958261b4da2a79b36a9e710931af1
2017-08-15 14:18:22 +02:00
Johann Hofmann
a1333d851e Bug 1375335 - Fix window control height calculation on Windows 10. r=dao
This commit:

- Makes the window controls have exactly the same height as tabs when the
  menubar is hidden, and have the same height as the menubar when it is shown.
  This requires us to remove the menubar height before flushing layout in
  case it is shown, since we need its original height for the calculation.

- Removes the top margin between the menu bar and the window border
  that was present on Windows 10 and makes it apply on Windows 7 only.
  The border was causing miscalculations of the window control height,
  which could have been handled in browser-tabsintitlebar.js, but since
  it's not part of the Photon spec we decide to remove it entirely.

- Makes window control height calculations ignore vertical tabs toolbar
  margins. The only margin it has right now is -1px and the calculation
  code doesn't work right with negative margins.

MozReview-Commit-ID: HJXxUUJFX8x

--HG--
extra : rebase_source : d5e741cc4ca897ef125ab3e807bc009cd540ade6
2017-08-09 14:36:01 +01:00
Sebastian Hengst
51ddd73782 Backed out changeset 37ba4f932f57 (bug 1375335) for failing browser_windowopen_reflows.js on OS X. r=backout 2017-08-14 15:28:01 +02:00
Johann Hofmann
a2901df84e Bug 1375335 - Fix window control height calculation on Windows 10. r=dao
This commit:

- Makes the window controls have exactly the same height as tabs when the
  menubar is hidden, and have the same height as the menubar when it is shown.
  This requires us to remove the menubar height before flushing layout in
  case it is shown, since we need its original height for the calculation.

- Removes the top margin between the menu bar and the window border
  that was present on Windows 10 and makes it apply on Windows 7 only.
  The border was causing miscalculations of the window control height,
  which could have been handled in browser-tabsintitlebar.js, but since
  it's not part of the Photon spec we decide to remove it entirely.

- Makes window control height calculations ignore vertical tabs toolbar
  margins. The only margin it has right now is -1px and the calculation
  code doesn't work right with negative margins.

MozReview-Commit-ID: HJXxUUJFX8x

--HG--
extra : rebase_source : fdb5db7e5b410cb45cef054d5cbec41048211f75
2017-08-09 14:36:01 +01:00
Wes Kocher
6670ac0114 Backed out changeset 739d6afc27be (bug 1375335) for failures in 739d6afc27be a=backout
MozReview-Commit-ID: CgS230WMXKs

--HG--
extra : amend_source : a01de05a7d2b6f80efc8bc4fe49af32831241543
2017-08-11 12:19:01 -07:00
Johann Hofmann
5249a7320c Bug 1375335 - Fix window control height calculation on Windows 10. r=dao
This commit:

- Makes the window controls have exactly the same height as tabs when the
  menubar is hidden, and have the same height as the menubar when it is shown.
  This requires us to remove the menubar height before flushing layout in
  case it is shown, since we need its original height for the calculation.

- Removes the top margin between the menu bar and the window border
  that was present on Windows 10 and makes it apply on Windows 7 only.
  The border was causing miscalculations of the window control height,
  which could have been handled in browser-tabsintitlebar.js, but since
  it's not part of the Photon spec we decide to remove it entirely.

- Makes window control height calculations ignore vertical tabs toolbar
  margins. The only margin it has right now is -1px and the calculation
  code doesn't work right with negative margins.

MozReview-Commit-ID: HJXxUUJFX8x

--HG--
extra : rebase_source : d3dc3a1c7d21b8ca8304b25fb67b50a58a5e4ce3
2017-08-09 14:36:01 +01:00
Michael Kohler
674e1b96fb Bug 1366555 - Remove MOZ_PHOTON_THEME ifdefs and non-MOZ_PHOTON_THEME code. r=dao
MozReview-Commit-ID: 8w1vfF2yRui

--HG--
extra : rebase_source : 222d8e9d3b9543552ff5b08967375fa46d62b896
2017-08-08 12:09:14 +02:00
Sebastian Hengst
ca40024d84 Backed out changeset 1538b0445eda (bug 1366555) for timing browser_locationBarCommand.js and browser_locationBarExternalLoad.js. r=backout 2017-08-05 23:15:16 +02:00
Michael Kohler
45d5f35624 Bug 1366555 - Remove MOZ_PHOTON_THEME ifdefs and non-MOZ_PHOTON_THEME code r=dao
MozReview-Commit-ID: CoHv9mKpAe

--HG--
extra : rebase_source : 20d6404db9f90cfcb7de03d4c527ad6ed79d49f8
2017-08-05 20:37:40 +02:00
Florian Quèze
9422b19f8d Bug 1381853 - lazy load browser-customization.js into the browser window, r=mconley. 2017-07-23 00:17:57 +02:00
UK992
157e06d64d Bug 1372043 - Set height on titlebar buttons only in miximized window r=dao
MozReview-Commit-ID: 5wMN83E72in

--HG--
extra : rebase_source : b3425f1105c70fd85e057493d33c97eadfcdd2e9
2017-07-15 21:16:56 +02:00
Oriol
c765fc455b Bug 1372289 - Remove 1px gap above tabs in maximzed windows. r=dao
MozReview-Commit-ID: BniFC5O3v7N
2017-06-16 12:01:25 +02:00
UK992
5c9b361d43 Bug 1185482 - Remove gap between titlebar buttons and navigation toolbar r=dao
MozReview-Commit-ID: AD2opbF4Uxn
2017-06-10 18:20:53 +02:00
Sam Foster
1ce685a8c2 Bug 1334642 - Cache luminance values for each toolbar in ToolbarIconColor. r=dao,mconley
* Track window states: active, fullscreen and tabsintitlebar for each window
* Use toolbar.id and window state to store and retrieve values from cache
* Note: As each window has its own ToolbarIconColor object, the cache is not currently shared across windows
* inferFromText callers pass in a reason and associated value, which is used to update the state we track, and potentially clear out the cache
* Create new windows test directory for browser-window-specific tests like this
* Test for the ToolbarIconColor changes to avoid sync style flushes when windows activate/deactivate

MozReview-Commit-ID: JDJ3RtL4Lge

--HG--
extra : rebase_source : f944ccd1c2340a5d2973bf47480a6eb78b2aae3b
2017-04-06 10:50:09 -07:00
Sebastian Hengst
7d471b721c Backed out changeset abaa83873b88 (bug 1334642) for failing browser_toolbariconcolor_restyles.js. r=backout on a CLOSED TREE 2017-04-18 00:54:25 +02:00
Sam Foster
b29b823ee9 Bug 1334642 - Cache luminance values for each toolbar in ToolbarIconColor. r=dao,mconley
* Track window states: active, fullscreen and tabsintitlebar for each window
* Use toolbar.id and window state to store and retrieve values from cache
* Note: As each window has its own ToolbarIconColor object, the cache is not currently shared across windows
* inferFromText callers pass in a reason and associated value, which is used to update the state we track, and potentially clear out the cache
* Create new windows test directory for browser-window-specific tests like this
* Test for the ToolbarIconColor changes to avoid sync style flushes when windows activate/deactivate
* Skip test for windows 8, follow-up filed as bug 1356684

MozReview-Commit-ID: JDJ3RtL4Lge

--HG--
extra : rebase_source : e97bb5c09b2e6d7b264363ccba1b34bf666f31e9
2017-04-06 10:50:09 -07:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Jared Wein
ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher
0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Dave Townsend
8de07a19a0 Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
MozReview-Commit-ID: 2ZvTiZDHchz

--HG--
extra : rebase_source : db6482481b7338df491afd6f6fd376eccec84d7e
2016-11-11 08:10:51 -08:00
Dave Townsend
0a2c8f9b78 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ

--HG--
extra : rebase_source : 78fe71a1d673a1c698520a9c82c6f35959614f8f
2016-11-10 14:48:04 -08:00
Mark Banner
09ab00a94f Bug 1313998 - Turn on no-unused-vars for local variable scopes in browser/base/content. r=mossop
MozReview-Commit-ID: IyFGBotfd11

--HG--
extra : rebase_source : aa43e5aea9e7fd7223fc59e941ecdc067abdb48f
2016-10-31 10:33:38 +00:00
Jared Wein
d3e296107e Bug 1294621 - Enable the no-lonely-if rule for eslint. r=gijs
MozReview-Commit-ID: 8izEqc8IyCu
2016-08-12 11:50:35 -04:00
Gijs Kruitbosch
df7777aa11 Bug 1273094 - only trigger TabsInTitlebar.init() after the tabbrowser has updated the visibility of the tabs toolbar, r=mikedeboer
MozReview-Commit-ID: 2NOPYqbq4Zp

--HG--
extra : rebase_source : fcafa79a232d994ad56e73539134a2f01934a210
extra : amend_source : 42aad7336111e104b44c2286932bbbf409db5914
2016-05-17 17:18:55 +01:00
Gijs Kruitbosch
f2de33cf7d Bug 1269462 - fix race condition in TabsInTitlebar code where it was possible we'd only be called before init(), resulting in never updating the titlebar maths, r=MattN,mconley
MozReview-Commit-ID: KM274gGpiuR

--HG--
extra : rebase_source : 06cfc19ce026cfc033fff0a6b0c6a455c78e0cdf
2016-05-13 18:52:53 +01:00
Jonathan Kew
924d7f9458 Bug 1256731 - patch 3 - Don't pull the elements below the titlebar up so far they'll clash with the buttons, in the secondary lo-dpi case where the window controls are oversized. r=gijs 2016-03-17 16:05:42 +00:00
Jonathan Kew
08fa921c03 Bug 1256731 - patch 2 - Notify front-end code when screen resolution changes on Windows, so that TabsInTitlebar code can refresh its computations. r=gijs,emk 2016-03-17 12:53:31 +00:00
Gijs Kruitbosch
957e08a3bd Bug 1219215 - part 1: remove window-drag bindings and other callers of WindowDraggingUtils, replace with using window-dragging region everywhere, r=dao,felipe
--HG--
extra : commitid : 5eXAZOQmmPY
extra : rebase_source : ff9d7691e203697caddb3a9f2de6cb676a15a6b4
extra : histedit_source : 8c3f2681850b5dd6ee8f26e7b8d9e00f2e4122a8
2016-01-18 15:32:14 +00:00
Felipe Gomes
017ff6db0a Bug 1228655 - Move TabsInTitlebar to its own file to remove ifdefs. r=Gijs
TabsInTitlebar has various ifdefs to avoid shipping code that's not gonna be used on Linux. Instead of complicating the logic with AppConstants checks and shipping this extra code unecessarily on Linux, i've separated the code to a different file that can be replaced by a stub implementation.
2015-12-01 20:05:45 -02:00