Jonathan Watt
156c4af1ec
Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
...
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>
MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Jonathan Kew
4b2b2d4c9f
Bug 1455569 - Handle variation settings of system-installed variation fonts when creating CTFont from CGFont on High Sierra. r=lsalzman
2018-04-20 17:18:03 +01:00
Jonathan Kew
8cc9d24a4f
Bug 1454094 - Explicitly copy font variation settings from CGFont when creating a CTFont only on macOS Sierra; on HighSierra, rely on Core Text to automatically propagate the required settings. r=lsalzman
2018-04-18 22:08:41 +01:00
Markus Stange
d649a6d091
Bug 1403989 - Automatically treat black menu icons as templates, so that they get drawn inverted in hovered menuitems. r=jrmuizel,spohl
...
MozReview-Commit-ID: Bn69Ij0BfRa
--HG--
extra : rebase_source : 9d2d7d0797d89d0b7cf6685d29e458795f518e9d
extra : source : 7b389e4f44679c086a4a510da264f2f0531267ec
2018-04-16 15:23:23 -04:00
Dale Harvey
5aeada7d94
Bug 1363168 - Add support for OSX Share feature. r=Gijs,mstange
...
MozReview-Commit-ID: sJXl2If9Ou
--HG--
extra : rebase_source : b88ff89e1d28bab28c3575c2f7f30c91bd584aea
2018-03-12 09:16:51 +00: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
Markus Stange
a2bb203dde
Bug 1421088
- Create DrawMultilineTextField. r=spohl
...
MozReview-Commit-ID: CyAhfGVmfzs
--HG--
extra : rebase_source : 2ee20f5002009fb8877196fb70922a730c4f7ab1
2017-12-01 18:35:45 -05:00
Markus Stange
797692f34e
Bug 1421088
- Don't pass an nsIFrame* to DrawResizer. r=spohl
...
MozReview-Commit-ID: hQbnCke2zN
--HG--
extra : rebase_source : 0b2ff8b2985f36dd9a171e29ba141d1ed6b84603
2017-12-01 18:31:18 -05:00
Markus Stange
23249fd625
Bug 1421088
- Don't pass an nsIFrame* to DrawStatusBar. r=spohl
...
MozReview-Commit-ID: 6KU2OyZb9BS
--HG--
extra : rebase_source : adbcf1d3a51ed814a4d7055f7a8f8516946022f9
2017-12-01 18:08:35 -05:00
Markus Stange
3b4bd55c63
Bug 1421088
- Remove unused parameters from DrawFocusOutline. r=spohl
...
MozReview-Commit-ID: Kd6Rxl58Xwh
--HG--
extra : rebase_source : f2e8d2966ae16350bfa076aa818bac57a08bbb1e
2017-12-01 18:07:24 -05:00
Markus Stange
416548794d
Bug 1421088
- Don't pass an nsIFrame* to DrawTabPanel. r=spohl
...
MozReview-Commit-ID: JeWt76t7rRQ
--HG--
extra : rebase_source : 0beb552cf3d4713e6f73c32d7abbd6a0e1e0aaa7
2017-12-01 18:03:12 -05:00
Markus Stange
1c8b5e6c53
Bug 1421088
- Don't pass an nsIFrame* to DrawScale, and create DrawScrollbarTrack and DrawScrollbarThumb. r=spohl
...
MozReview-Commit-ID: 8MPG7ZlBvVD
--HG--
extra : rebase_source : b10d52492b0264e1b01795647f72f3e01889e2ff
2018-04-14 23:06:29 -04:00
Markus Stange
62c8f8f488
Bug 1421088
- Don't pass an nsIFrame* to DrawMeter. r=spohl
...
MozReview-Commit-ID: 63ZuRb6VRSY
--HG--
extra : rebase_source : 4a2c47cf025069ed4fecb0d71befed283ed1436c
2017-11-30 18:59:27 -05:00
Markus Stange
ceea95633b
Bug 1421088
- Don't pass an nsIFrame* to DrawProgress. r=spohl
...
MozReview-Commit-ID: 7fxBzCyp239
--HG--
extra : rebase_source : 5ba40ddcb96125eb62f19213aa4b76544e475926
2018-04-14 22:43:04 -04:00
Markus Stange
02199fdb2b
Bug 1421088
- Don't pass an nsIFrame* to DrawSearchField. r=spohl
...
MozReview-Commit-ID: 3hlBThgIDt5
--HG--
extra : rebase_source : ed658a76d75c9daca09230413ccd0639c29ccf4d
2017-11-30 18:51:24 -05:00
Markus Stange
4fb1684324
Bug 1421088
- Rename DrawFrame to DrawTextBox and stop passing an nsIFrame* to it. r=spohl
...
MozReview-Commit-ID: 1hGVXNhbomJ
--HG--
extra : rebase_source : 37f57d72538b35db012a8238faa13274050119bc
2018-04-14 22:29:57 -04:00
Markus Stange
efe7856118
Bug 1421088
- Don't pass an NSWindow* to DrawUnifiedToolbar. r=spohl
...
MozReview-Commit-ID: 52uB5QeVsVw
--HG--
extra : rebase_source : d0ddfa0065dac20acdfd988c62f656e9a4d805f2
2017-11-30 18:46:37 -05:00
Markus Stange
2c79d13c9c
Bug 1421088
- Don't pass an nsIFrame* to DrawSegment. r=spohl
...
MozReview-Commit-ID: 7qe0V7agqzs
--HG--
extra : rebase_source : 4c33e23abd17213c35d27b24d2733583a4bed6a9
2018-04-14 22:26:24 -04:00
Markus Stange
30328b9a50
Bug 1421088
- Don't pass an nsIFrame* to DrawSpinButton / DrawSpinButtons. r=spohl
...
MozReview-Commit-ID: AtY1eoiXcCa
--HG--
extra : rebase_source : 2673f804a31b9621f897dde37affc30b112a3063
2018-04-14 22:14:19 -04:00
Markus Stange
25cd320969
Bug 1421088
- Don't pass an nsIFrame* to DrawDropdown. r=spohl
...
MozReview-Commit-ID: IdkoAb1rOjE
--HG--
extra : rebase_source : ae11f27aab9d45aed251e37a914e6bb38efd221b
2018-04-14 22:07:23 -04:00
Markus Stange
b60fe986d0
Bug 1421088
- Don't pass an nsIFrame* to DrawCheckboxOrRadio. r=spohl
...
MozReview-Commit-ID: 6LGIVGJAQ6W
--HG--
extra : rebase_source : f46586ed89b11e32dc841e7916c09a0884190f88
2017-11-30 17:50:33 -05:00
Markus Stange
42fa6e0ed7
Bug 1421088
- Change the API of DrawMenuIcon and add DrawMenuItem. r=spohl
...
MozReview-Commit-ID: 3JedJfgx9pZ
--HG--
extra : rebase_source : a8c25c36eb5653280e47213b4490b7f0c99c37ec
2018-04-14 22:00:18 -04:00
Markus Stange
987089caed
Bug 1421088
- Move menu background drawing into a separate method. r=spohl
...
MozReview-Commit-ID: CSa4zlI8juN
--HG--
extra : rebase_source : 5821c0996d6b5f7afe6c97d22882220d0bbde224
2018-04-14 21:56:23 -04:00
Markus Stange
d2d427a0cb
Bug 1421088
- Route more button types through DrawButton. r=spohl
...
MozReview-Commit-ID: 8AhEnEi5UCZ
--HG--
extra : rebase_source : 764543f9104e1a8866e24b7aa50df8688b7c7336
2017-11-30 16:47:59 -05:00
Markus Stange
e3f903540e
Bug 1421088
- Give nsNativeThemeCocoa::DrawButton a different API. r=spohl
...
MozReview-Commit-ID: DjMurwHZD5K
--HG--
extra : rebase_source : bec85c26a729b5d44aac3bb59fe38d70534f8970
2018-04-14 21:48:09 -04:00
Markus Stange
e31e82186d
Bug 1421088
- Create a separate method for drawing tree header cells. r=spohl
...
MozReview-Commit-ID: 23CJfyrDoIN
--HG--
extra : rebase_source : 36fdf3c991e7a8377bebc37e88440229fd2a681e
2018-04-14 21:22:08 -04:00
Markus Stange
8d4a7edc62
Bug 1421088
- Split DrawPushButton into four functions and group the frame-dependent information into a struct. r=spohl
...
MozReview-Commit-ID: COs3yaGTqMv
--HG--
extra : rebase_source : 5085081b5de790ceedba5136095be4065de0def3
2018-04-14 21:13:10 -04:00
Markus Stange
e99d3a5307
Bug 1421088
- Simplify search field cell management and make the "is-within-toolbar" computation eager instead of lazy. r=spohl
...
MozReview-Commit-ID: GkMSvimeuaf
--HG--
extra : rebase_source : 878f44b8d22ee60f2e97a9166f7fb7475c2cfd3b
2018-04-13 18:19:32 -04:00
Jonathan Watt
1e7f76576a
Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
...
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Zhang Junzhi
fe2d79f73f
Bug 1358017 - Part 4: Implements the auto-dir scrolling feature(without the "honour root" functionality) in APZ r=kats
...
This commit implements the auto-dir scrolling functionality in APZ, based on
part 1 to part 3. However, the functionality of mousewheel.autodir.honourroot
will be implemented in a future.
MozReview-Commit-ID: 9xai99x71gh
--HG--
extra : rebase_source : 118d188f730e3fb91d147b076a053cb04e622e55
2018-03-16 19:23:53 +08:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Ciure Andrei
873d562bc3
Backed out 8 changesets (bug 1451169) on request from njn a=backout
...
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)
--HG--
extra : histedit_source : 94de6631919f895dec422bc0e564f5baf885ba4a%2C18f52c6c11d3064d3137a6847575effb7d407894
2018-04-11 11:22:05 +03:00
Markus Stange
cf7fd3319a
Bug 1444373 - Don't crash when trying to draw an empty RectTextureImage. r=mattwoodrow
...
MozReview-Commit-ID: EsnxswIaABQ
--HG--
extra : rebase_source : 44e2fce7502a0bf9f8097cbb98d0a1ace36d51f1
2018-04-09 17:07:58 -04:00
Markus Stange
ffbedcffe2
Bug 1444373 - Update mBounds on mPopupContentView every time mBounds on the containing window changes. r=spohl
...
MozReview-Commit-ID: GpwXVOQNgIj
--HG--
extra : rebase_source : 867ecfc5422d8b5d98cd7d3797a46360f1dca260
2018-04-09 17:31:49 -04:00
Markus Stange
99a7e50644
Bug 1445787 - Correctly set the initial size of the ChildView we create for the popup contents. r=spohl
...
Remote WebExtension panels can cause us to recreate the widget for a view that
already has a size. In the past, popup widgets were always created with an
initial size of 0x0, so setting the initial size of the ChildView to 0x0
resulted in correct behavior because the window would be resized to the correct
size shortly afterwards, and resize the ChildView along with it via its auto
resizing mask.
When we recreate a widget which already has a known size, setting the initial
size to 0x0 is wrong. We need to set the ChildView's size so that it fills the
contentView of the popup window completely.
MozReview-Commit-ID: 53d3AX3z5h2
--HG--
extra : rebase_source : 7720a6dd12ad7f8efc102cd1430a9e1ed2f5ee0f
2018-04-09 16:25:14 -04:00
Tooru Fujisawa
b7888d2d94
Bug 1448132 - Do not call CGSSetWindowTransform if the window is not visible. r=mstange
2018-04-06 13:10:16 +09:00
Boris Zbarsky
4292bca4ee
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Nicholas Nethercote
a560608963
Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h. r=baku
...
And then fix up everything else that needs to change as well.
MozReview-Commit-ID: GDMfERqdQAc
--HG--
extra : rebase_source : 01fe06c3182245a409099a53383d92bf4fa0155c
2018-04-03 13:21:06 +10:00
Emilio Cobos Álvarez
f946c7af85
Bug 1450654: Remove ResolveTag usage in cocoa code. r=mstange
...
We don't have any binding in the tree that extends="xul:menupopup", which is the
only thing that would change the result. Also, I constrained it to the XUL
namespace instead of just checking the node name.
But again, we don't have non-XUL menupopups.
MozReview-Commit-ID: 7M0beoJI86Y
--HG--
extra : rebase_source : f50a186d5e78ca808d6c8873ec982663f4bbbde5
2018-04-02 13:29:58 +02:00
Johann Hofmann
3e22c51351
Bug 1434584 - Make icon in MacOS nsStandaloneNativeMenu a template image. r=mstange
...
MozReview-Commit-ID: G0s0rUyiKMx
--HG--
extra : rebase_source : 80b1dc28641b30a75e6419d335ba089c0e747119
2018-03-30 20:33:42 +02:00
Jeff Muizelaar
7bd5060424
Bug 1450134. Replace ToRelativeLayoutRect() with ToRoundedLayoutRect(). r=kats
...
This function doesn't use any StackingContextHelper state anymore.
We should make what it does clearer and move it to a better place.
--HG--
extra : rebase_source : 1727be9657169547d842ec9b6887837abedbefdf
2018-03-29 17:57:43 -04:00
Markus Stange
a52e472ae7
Bug 1449271 - Add a pref called gfx.compositor.glcontext.opaque that defaults to false and can be set to true in order to force the use of an opaque OpenGL context for the window on Mac. r=jrmuizel
...
MozReview-Commit-ID: InOKiLXGL7o
--HG--
extra : rebase_source : f21566cfb6c084ceb726e9a0331f430b6a72e4c6
2018-03-27 14:43:38 -04:00
Margareta Eliza Balazs
adebb06ac1
Merge inbound to mozilla-central. a=merge
2018-03-28 00:48:11 +03:00