Sylvestre Ledru
b61d90492b
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Depends on D17388
Differential Revision: https://phabricator.services.mozilla.com/D17389
--HG--
extra : moz-landing-system : lando
2019-01-24 08:11:00 +00:00
Sylvestre Ledru
0662df7a60
Bug 1521460 - Ride along: remove useless ';' r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D17140
--HG--
extra : histedit_source : 782210d18f2acd8134436afc70cecaf6c7d92bd2
2019-01-21 18:46:21 +01:00
Sylvestre Ledru
0b4021fcad
Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D17139
--HG--
extra : histedit_source : 084f340503d2e1a2d9e1753c38b2c4ee9c7819f3
2019-01-21 18:18:16 +01:00
Doug Thayer
a848222b53
Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel
...
Per our discussion, this patch splits out the state management bits of
WebRenderLayerManager, allowing for them to be maintained per-document.
Differential Revision: https://phabricator.services.mozilla.com/D13577
--HG--
extra : moz-landing-system : lando
2019-01-07 21:33:10 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Xidorn Quan
bf74bc4e18
Bug 1506447 - Check overlay before checking custom scrollbar style in nsNativeThemeCocoa::GetWidgetTransparency. r=spohl
...
Differential Revision: https://phabricator.services.mozilla.com/D12856
--HG--
extra : source : feb9637fc2605e094e9e4fc558dacdb6ac62db43
extra : amend_source : 051ad3ae9fe44b1269480776814fa96fc54112b9
2018-11-25 22:31:53 +11:00
Kristen Wright
f22175b197
Bug 1460439 - Conversion from NS_STYLE_BORDER_STYLE_* macro to StyleBorderStyle::* enum class r=emilio
...
Converted NS_STYLE_BORDER_STYLE_* consts to enum class. Updated corresponding values to enum class. reduced BCCornerInfo struct values to fit StyleBorderStyle values inside struct. Added defaults to switches that do not fully cover all instances of StyleBorderStyle.
2018-11-07 11:56:17 -08:00
Mats Palmgren
91372ff9f3
Bug 1507905 - Add -webkit-appearance:textarea and make that the default for <textarea> for compatibility with other UAs. r=jwatt
2018-11-21 22:05:20 +01:00
Mats Palmgren
505d7f9d3c
Bug 1317870 - Make intrinsic sizing for <input type=range> work properly and make its default margin/padding compatible with Chrome/Safari. r=jwatt
2018-11-15 20:47:33 +01:00
Mats Palmgren
754a89bb89
Bug 1501506 - Add -webkit-appearance:progress-bar and make that the default for <progress> for compatibility with other UAs. r=jwatt
...
Keep our old 'progressbar' as an alias for now, but unship
'progresschunk' by restricting it to UA/chrome sheets only.
Unship 'progresschunk-vertical' by removing it since it's
not used internally for anything.
2018-11-09 04:25:56 +01:00
Mats Palmgren
2882783137
Bug 1501483 - Add -webkit-appearance:meter and make that the default for <meter> for compatibility with other UAs. r=jwatt
...
Keep our old value 'meterbar' as an alias for now, but unship 'meterchunk'
by restricting it to UA/chrome sheets only.
2018-11-09 04:25:56 +01:00
Jonathan Watt
b5bfd3a7ea
Bug 1505316 p2. Rename aWidgetType to aAppearance in widget code. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D11156
--HG--
extra : rebase_source : c908a6d6419c6462453cb8b745effc583d767902
extra : source : 07e12bc71a8d96b52b1a1bbc8dc7545ae4454a4f
2018-10-24 16:24:57 +01:00
Jonathan Watt
587108c41f
Bug 1505316 p1. Use StyleAppearance instead of WidgetType in widget code. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D11155
--HG--
extra : rebase_source : 7cbb8c381adfc49803c1bc0e90f4609f6cc7e6d0
2018-10-24 12:47:20 +01:00
Xidorn Quan
78e208a120
Bug 1501418 - Have scrollbar-color: auto resolved to auto rather than two colors. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D9640
--HG--
extra : moz-landing-system : lando
2018-10-24 11:52:46 +00:00
Xidorn Quan
d4af807d62
Bug 1498216 - Properly support alpha channel on custom scrollbars. r=spohl
...
This also includes implementation of nsNativeThemeCocoa::GetWidgetAutoColor
which should have been done in bug 1464722 actually.
Differential Revision: https://phabricator.services.mozilla.com/D8629
--HG--
extra : moz-landing-system : lando
2018-10-22 16:05:05 +00:00
Jonathan Watt
3922f1cb96
Bug 1500423. Make '-webkit-appearance: menulist-textfield' behave like Chrome. r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D9339
--HG--
extra : rebase_source : afa3c037857838be2e18d4b47eaf64d318747de7
2018-10-19 18:12:15 +01:00
Ehsan Akhgari
8d7c2999dc
Bug 1491594 - Remove the XPCOM registration for the native theme renderer r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D6275
--HG--
extra : moz-landing-system : lando
2018-09-20 01:20:55 +00:00
Jeff Muizelaar
14d863897b
Bug 1491395. Replace BorderWidths with LayoutSideOffsets. on a CLOSED TREE
...
--HG--
extra : source : 432d22af68c825eebd86482c714b3cffcba408c7
extra : amend_source : e38a2ed15ae4a93613244726fbfad2d196876ad8
2018-09-18 09:01:36 -04:00
Ehsan Akhgari
77ce9e051f
Backout changeset b4f8cb6afab6 (bug 1491594) for talos performance regressions
2018-09-18 18:33:56 -04:00
Andreea Pavel
21be148b05
Backed out 2 changesets (bug 1491395) for failing awsy\test_memory_usage.py TestMemoryUsage.test_open_tabs on a CLOSED TREE
...
Backed out changeset 432d22af68c8 (bug 1491395)
Backed out changeset 153d6dc38962 (bug 1491395)
2018-09-18 21:23:03 +03:00
Jeff Muizelaar
58ae2188e5
Bug 1491395. Replace BorderWidths with LayoutSideOffsets.
2018-09-18 09:01:36 -04:00
Ehsan Akhgari
7c90f6f4f5
Bug 1491594 - Remove the XPCOM registration for the native theme renderer; r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D5961
2018-09-16 13:51:21 -04:00
Xidorn Quan
a6778a765c
Bug 1484565 - Implement scrollbar-width: thin support for cocoa widget. r=spohl
...
It also converts nsNativeThemeCocoa::GetParentScrollbarFrame into a
local static function rather than a member function, since it doesn't
seem to be necessary that way.
Differential Revision: https://phabricator.services.mozilla.com/D3737
--HG--
extra : moz-landing-system : lando
2018-08-20 04:57:58 +00:00
Margareta Eliza Balazs
9575863d77
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-08-14 12:35:25 +03:00
Xidorn Quan
33b8a6dacd
Bug 1483090 - Rename StyleUserInterface to StyleUI. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D3276
--HG--
extra : moz-landing-system : lando
2018-08-14 08:37:37 +00:00
Ting-Yu Lin
48d02834a5
Bug 1482665 Part 2 - Remove nsPresContext::AppUnitsPerCSSPixel() and replace it with mozilla::AppUnitsPerCSSPixel(). r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D3155
2018-08-13 14:29:28 -07:00
Jonathan Watt
665c7fd264
Bug 1428676 pt 5. Honor the webkit pref when handling 'menulist-button' on Mac. r=emilio
2018-07-16 14:46:19 +01:00
Jonathan Watt
11e49726b5
Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
...
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value. This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.
2018-06-19 20:12:45 +01:00
shindli
0a48a3cd3c
Backed out 3 changesets (bug 1428676) for bc failures in browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
...
Backed out changeset 6ba5975115fc (bug 1428676)
Backed out changeset 7f1270a9ec3d (bug 1428676)
Backed out changeset 662bfc31a950 (bug 1428676)
2018-07-31 19:30:46 +03:00
Jonathan Watt
e8a416046f
Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
...
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value. This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.
--HG--
extra : rebase_source : b66bf6427db5be2eb12f4e0aa36d22a4da46555a
2018-06-19 20:12:45 +01:00
Emilio Cobos Álvarez
517256e365
Bug 1478391: Autogenerate StyleAppearance. r=jwatt
...
This builds on bug 1428676 and introduces StyleAppearance, which replaces the
NS_THEME_* constants.
Really sorry for the size of the patch.
There's a non-trivial change in the gtk theme, which I submitted separately as
bug 1478385.
Differential Revision: https://phabricator.services.mozilla.com/D2361
MozReview-Commit-ID: DiSmMWK7Krp
2018-07-26 17:06:17 +02:00
Xidorn Quan
7a0d908a3d
Bug 1471866 - Ensure viewport scrollbar uses style from root element. r=spohl
...
MozReview-Commit-ID: 1rIJFJHN0vf
--HG--
extra : rebase_source : 3dd2e0b54030507803b23023c01c2a1cd4949d38
2018-06-28 22:03:33 +10:00
Xidorn Quan
8a7d143341
Bug 1471766
- Ensure scrollcorner is handled for webrender. r=kats
...
MozReview-Commit-ID: JIIuG46WF3f
--HG--
extra : rebase_source : b5914ce3e77d0a3e64918d013e7eaf70611d9b41
2018-06-28 21:28:41 +10:00
Cosmin Sabou
f4b3baf021
Merge mozilla-inbound to mozilla-central. a=merge
2018-06-28 13:04:23 +03:00
Xidorn Quan
bc30486b09
Bug 1464722 part 5 - Paint scrollcorner for custom scrollbars on cocoa. r=spohl
...
MozReview-Commit-ID: EMj8urC6AWX
--HG--
extra : rebase_source : e3c966f0e740a0158078dfe2174c0e8ece1f7906
2018-06-25 09:56:38 +10:00
Xidorn Quan
277ee108e2
Bug 1464722 part 4 - Render custom scrollbars on cocoa widget. r=spohl
...
MozReview-Commit-ID: ITzdevItp1d
--HG--
extra : rebase_source : 64e7b6e215828e281fc0068d231392bdaad506e6
2018-06-22 14:17:22 +10:00
Xidorn Quan
a2a4430e6e
Bug 1464722 part 3 - Fix rtl computation in ComputeScrollbarParams. r=spohl
...
MozReview-Commit-ID: GVAfPYS34a9
--HG--
extra : rebase_source : 13ed01a52cd22d269dbe0f4771b0a7dcf6acdcbc
2018-06-25 09:43:05 +10:00
Stephen A Pohl
1f2e716a79
Bug 1466335: Automatically switch to the appropriate Firefox theme based on the macOS dark mode system preference. r=dao,mstange
2018-06-27 13:59:21 -04:00
Chris Peterson
2afd829d0f
Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
...
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.
MozReview-Commit-ID: 5UQVHElSpCr
--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Mats Palmgren
8f2a5e19c9
Bug 1466330 - Make nsITheme::GetWidgetBorder return the border directly instead of using an out-param (idempotent patch). r=emilio
2018-06-02 19:10:48 +02:00
Markus Stange
a5f551f7c4
Bug 1461635 - Enforce a minimum widget size of 1x1 for toolbar separators. r=spohl
...
MozReview-Commit-ID: Gc5TC5DGUI
--HG--
extra : rebase_source : 185ad305189e47877bf6765f12917f5307b3b329
2018-05-23 11:55:41 -04:00
Mats Palmgren
6e331b1d1d
Bug 1461222 part 2 - Make GetWidgetPadding return LayoutDeviceIntMargin. r=emilio
2018-05-17 17:30:35 +02:00
Mats Palmgren
bae2d6f225
Bug 1461222 part 1 - Make GetWidgetBorder return LayoutDeviceIntMargin. r=emilio
2018-05-17 17:30:35 +02:00
Markus Stange
dc2e7f64fa
Bug 1421088
- Move code out of DrawWidgetBackground into a new method called ComputeWidgetInfo. r=spohl
...
MozReview-Commit-ID: 2XeZHH4lJrj
--HG--
extra : rebase_source : 40c05f8748b8534dbc55a1cea1d44f1fbd4321a1
extra : source : 359f50ab6156dc33aa04dda62816b87fe3883d7d
2018-04-14 23:31:11 -04:00
Markus Stange
74682ab717
Bug 1421088
- Move rendering code out into a separate method. r=spohl
...
MozReview-Commit-ID: 9lxf0VPYaK8
--HG--
extra : rebase_source : 1e63d6b292f39d97fd54156c71199c1af5a1ea49
extra : intermediate-source : bae3b78391709cf3f00301d90bbac6a458d14446
extra : source : 2d2a595a6d150e3435a11c77609a509bbb8d264f
2017-11-18 18:53:54 -05:00
Markus Stange
db34652d0c
Bug 1421088
- Create a WidgetInfo struct and route drawing through it. r=spohl
...
MozReview-Commit-ID: 1pKgNAodbev
--HG--
extra : rebase_source : d3512cd040aa3730d5ba2bbad115838589b2b9c6
2018-04-14 23:19:18 -04:00
Markus Stange
c8c263cd37
Bug 1421088
- Create a DrawNativeTitlebar overload that takes a UnifiedToolbarParams param. r=spohl
...
MozReview-Commit-ID: Gxe4qIZV7HI
--HG--
extra : rebase_source : c9f2b295bf7270f2167641ec27901878f5b362f7
2017-12-01 19:54:29 -05:00
Markus Stange
b1e02d2039
Bug 1421088
- Create DrawSourceList. r=spohl
...
MozReview-Commit-ID: AZoLMcl9YLr
--HG--
extra : rebase_source : e7cceabfe8fd25043fe88227aebf143f7a90ffcf
2017-12-01 18:01:16 -05:00
Markus Stange
988c7e9da6
Bug 1421088
- Create DrawMenuSeparator. r=spohl
...
MozReview-Commit-ID: Lvab4zMrs2D
--HG--
extra : rebase_source : 498341b5c59b0e13f6133253764c375cbf3ea169
2017-12-01 17:58:02 -05:00
Markus Stange
6868ae0bf5
Bug 1421088
- Create DrawToolbar. r=spohl
...
MozReview-Commit-ID: 3NMidcVazQo
--HG--
extra : rebase_source : 18cc2df0dd61a5039b8ce50d634441cf6645e702
2017-12-01 17:55:02 -05:00