Sylvestre Ledru
34acbb653a
Bug 1619165 - Reformat recent changes to the Google coding style r=andi
...
First reformat with clang-format 10
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Jonathan Kew
afb04b12e3
Bug 1628419 - Don't keep a live CGFont reference in every macOS font entry; only retain it for fonts actually used. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D70225
--HG--
extra : moz-landing-system : lando
2020-04-08 17:35:30 +00:00
Jonathan Kew
1ab7bd6878
Bug 1619350 - patch 2 - Add lists of standard Mac and Windows fonts, and set font-family visibility attributes accordingly in those platform font lists. r=jwatt
...
These two platforms are the easiest to get started with - as well as accounting for the great majority
of desktop Firefox users.
This patch is based on the OS vendors' lists of fonts shipped with the current version of each OS.
Differential Revision: https://phabricator.services.mozilla.com/D66125
--HG--
extra : moz-landing-system : lando
2020-04-02 01:38:21 +00:00
Jonathan Kew
1e295dc3cc
Bug 1619350 - patch 1 - Add a FontVisibility enumeration to determine whether fonts should be visible by name to CSS, and provide a visibility field in font family records. r=jwatt
...
This replaces and extends the "hidden" flag we currently use on macOS to mark internal system fonts
like .LastResort and .Keyboard that should not be exposed; rather than just a boolean "hidden" flag
we'll have several levels of visibility, some of which the user may opt in to exposing (at the cost
of potentially becoming more fingerprintable).
The current patch assumes three levels besides always-hidden:
Base - fonts that are part of the base OS install and always available
LangPack - fonts that are provided by the OS subject to user's chosen language options
User - user-installed fonts that were not provided by the OS
(This categorization may be subject to revision as we learn more about real-world needs and
configurations.)
Differential Revision: https://phabricator.services.mozilla.com/D66124
--HG--
extra : moz-landing-system : lando
2020-04-02 12:36:24 +00:00
Ciure Andrei
e1cb0f1e21
Backed out 4 changesets (bug 1619349, bug 1619350) for causing test_font_whitelist.html to fail CLOSED TREE
...
Backed out changeset ba16b09b5da0 (bug 1619349)
Backed out changeset f8ca02252dfc (bug 1619349)
Backed out changeset 01a2a527aa1a (bug 1619350)
Backed out changeset 67ee13868a44 (bug 1619350)
2020-04-02 04:34:31 +03:00
Jonathan Kew
2fe7f23db5
Bug 1619350 - patch 2 - Add lists of standard Mac and Windows fonts, and set font-family visibility attributes accordingly in those platform font lists. r=jwatt
...
These two platforms are the easiest to get started with - as well as accounting for the great majority
of desktop Firefox users.
This patch is based on the OS vendors' lists of fonts shipped with the current version of each OS.
Differential Revision: https://phabricator.services.mozilla.com/D66125
--HG--
extra : moz-landing-system : lando
2020-04-01 21:42:11 +00:00
Jonathan Kew
503dffb1e0
Bug 1619350 - patch 1 - Add a FontVisibility enumeration to determine whether fonts should be visible by name to CSS, and provide a visibility field in font family records. r=jwatt
...
This replaces and extends the "hidden" flag we currently use on macOS to mark internal system fonts
like .LastResort and .Keyboard that should not be exposed; rather than just a boolean "hidden" flag
we'll have several levels of visibility, some of which the user may opt in to exposing (at the cost
of potentially becoming more fingerprintable).
The current patch assumes three levels besides always-hidden:
Base - fonts that are part of the base OS install and always available
LangPack - fonts that are provided by the OS subject to user's chosen language options
User - user-installed fonts that were not provided by the OS
(This categorization may be subject to revision as we learn more about real-world needs and
configurations.)
Differential Revision: https://phabricator.services.mozilla.com/D66124
--HG--
extra : moz-landing-system : lando
2020-03-26 18:39:43 +00:00
Jonathan Kew
315b16ea22
Bug 1621248 - Declare various gfxPlatform and font-list subclasses as 'final'. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D66204
--HG--
extra : moz-landing-system : lando
2020-03-10 15:00:56 +00:00
Jonathan Kew
3df4ab8b5e
Bug 1620111 - Eliminate sync-IPC message ReadFontList, instead use SetXPCOMProcessAttributes to pass font list to the child process on Android. r=lsalzman,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D65742
--HG--
extra : moz-landing-system : lando
2020-03-09 12:27:45 +00:00
Jonathan Kew
640dab2a62
Bug 1617602 - Don't allow src:local() to look up hidden system font names. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D63860
--HG--
extra : moz-landing-system : lando
2020-03-01 23:51:46 +00:00
Simon Giesecke
aaf6cb4e75
Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63899
--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Jonathan Kew
f6f390050e
Bug 1617037 - Don't instantiate a CTFont to implement SetupVariationRanges on macOS, just read the font tables directly. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D63763
--HG--
extra : moz-landing-system : lando
2020-02-22 14:35:31 +00:00
Jonathan Kew
13eb9e858a
Bug 1608124 - Skip hidden macOS font families in FontList::FindFamily, except when resolving system fonts. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D59358
--HG--
extra : moz-landing-system : lando
2020-01-10 08:58:47 +00:00
Narcis Beleuzu
1e5d31d0d9
Backed out changeset aea131093cd1 (bug 1608124) for assertion failures on StaticPrefList_gfx.h. CLOSED TREE
2020-01-10 03:19:43 +02:00
Jonathan Kew
976c9365de
Bug 1608124 - Skip hidden macOS font families in FontList::FindFamily, except when resolving system fonts. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D59358
--HG--
extra : moz-landing-system : lando
2020-01-09 19:11:10 +00:00
Dave Townsend
95f03b0781
Bug 1590906: Disable font assertions that fire on every startup on OSX Catalina. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D55697
--HG--
extra : moz-landing-system : lando
2019-12-04 10:09:12 +00:00
Jonathan Kew
135c7c99a8
Bug 1565966 - part 2 - Include Family attributes in mAliasTable when collecting font-name aliases, so that fontEntry instantiation on Windows can work correctly for the Aliases eventually stored in the font-list. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D41243
--HG--
extra : moz-landing-system : lando
2019-08-12 17:49:28 +00:00
Jonathan Kew
f2b7b9146f
Bug 1565966 - part 1 - Normalize font family names to lowercase in mAliasTable, for consistency with eventual font-family lookups. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D41242
--HG--
extra : moz-landing-system : lando
2019-08-12 17:49:09 +00:00
Barret Rennie
06f829cc25
Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/thebes/ r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D36955
--HG--
extra : moz-landing-system : lando
2019-07-10 03:29:40 +00:00
Sylvestre Ledru
131d0c6a02
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35622
--HG--
extra : moz-landing-system : lando
2019-07-06 08:18:28 +00:00
Jonathan Kew
fee6d28be8
Bug 1561600 - Support the special Osaka-mono font (family) for Japanese on macOS, by hooking up the font.single-face-list pref to the shared font-list's alias table. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D36023
--HG--
extra : moz-landing-system : lando
2019-06-26 18:58:48 +00:00
Jonathan Kew
d67f73d9bc
Bug 1557044 - Don't eagerly load cmap of user font in gfxMacPlatformFontList::MakePlatformFont, let it load on first use like other platforms. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D33796
--HG--
extra : moz-landing-system : lando
2019-06-13 17:06:18 +00:00
Jonathan Kew
91826a2e60
Bug 1554193 - Move support for the AAT 'trak' table from platform-specific MacFontEntry/gfxMacFont into the generic gfxFontEntry/gfxFont classes. r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D33068
--HG--
extra : moz-landing-system : lando
2019-05-30 10:28:44 +00:00
Jean-Yves Avenard
022c57caf3
Bug 1550422
- P23. Remove now unused gfxPrefs. r=jrmuizel
...
And with some tidying some comments and removing stray #include "gfxPrefs.h"
Differential Revision: https://phabricator.services.mozilla.com/D31468
--HG--
extra : moz-landing-system : lando
2019-05-26 14:31:53 +00:00
Sylvestre Ledru
d57d4905f1
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
Gurzau Raul
967bc2a754
Backed out 31 changesets (bug 1552643, bug 1550422
) for xpcshell crash on a CLOSED TREE.
...
Backed out changeset e30c1aa75529 (bug 1552643)
Backed out changeset caadcd7e02d3 (bug 1552643)
Backed out changeset aa7086ab09be (bug 1552643)
Backed out changeset 0b4029671710 (bug 1550422
)
Backed out changeset a16295296035 (bug 1550422
)
Backed out changeset 3b70307c0db5 (bug 1550422
)
Backed out changeset 69df7818d4a3 (bug 1550422
)
Backed out changeset d98dfc565927 (bug 1550422
)
Backed out changeset 6f0997976944 (bug 1550422
)
Backed out changeset 0edd264464c2 (bug 1550422
)
Backed out changeset 9ea6da7a74ec (bug 1550422
)
Backed out changeset f855f9309c8b (bug 1550422
)
Backed out changeset 1033546224a7 (bug 1550422
)
Backed out changeset ade7384c6186 (bug 1550422
)
Backed out changeset 75b04de7e99c (bug 1550422
)
Backed out changeset 91c3acdb2454 (bug 1550422
)
Backed out changeset 77d2f80257d1 (bug 1550422
)
Backed out changeset e0cd10d35327 (bug 1550422
)
Backed out changeset 097091082423 (bug 1550422
)
Backed out changeset 2f328853c1ab (bug 1550422
)
Backed out changeset f92f2cc29cb1 (bug 1550422
)
Backed out changeset 6dc82f88333d (bug 1550422
)
Backed out changeset c20f66494d69 (bug 1550422
)
Backed out changeset 2ba22cddeb6f (bug 1550422
)
Backed out changeset 3aa72f89e295 (bug 1550422
)
Backed out changeset ab4c4e806977 (bug 1550422
)
Backed out changeset 72e5de040dda (bug 1550422
)
Backed out changeset 7d3c2d486706 (bug 1550422
)
Backed out changeset 132e0b8d8468 (bug 1550422
)
Backed out changeset 54c85ac75dd0 (bug 1550422
)
Backed out changeset d7ba4a18dd54 (bug 1550422
)
2019-05-25 09:07:49 +03:00
Jean-Yves Avenard
074aea57fe
Bug 1550422
- P23. Remove now unused gfxPrefs. r=jrmuizel
...
And with some tidying some comments and removing stray #include "gfxPrefs.h"
Differential Revision: https://phabricator.services.mozilla.com/D31468
--HG--
extra : moz-landing-system : lando
2019-05-24 11:37:50 +00:00
arthur.iakab
af8e458c5f
Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE
2019-05-24 14:26:01 +03:00
Sylvestre Ledru
c82ea97226
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Gurzau Raul
74c555539e
Backed out 28 changesets (bug 1550422
) for marionette AssertionError and failing browser_policy_hardware_acceleration.js on a CLOSED TREE.
...
Backed out changeset 5dd10a365ba9 (bug 1550422
)
Backed out changeset 529f5be01ab9 (bug 1550422
)
Backed out changeset b6861d3badf8 (bug 1550422
)
Backed out changeset 059cff1a3dde (bug 1550422
)
Backed out changeset 6ada1116b241 (bug 1550422
)
Backed out changeset ca67e8e45262 (bug 1550422
)
Backed out changeset a1961a51ae44 (bug 1550422
)
Backed out changeset 1c90b9cb3ad4 (bug 1550422
)
Backed out changeset 285fa46e4f26 (bug 1550422
)
Backed out changeset e2938a444234 (bug 1550422
)
Backed out changeset 7a930fc51125 (bug 1550422
)
Backed out changeset 898ed02804fe (bug 1550422
)
Backed out changeset e1b7abc99ae9 (bug 1550422
)
Backed out changeset f781d415cef6 (bug 1550422
)
Backed out changeset 2fef10a7cce5 (bug 1550422
)
Backed out changeset ea64b4d8d4ff (bug 1550422
)
Backed out changeset 86a8ba1b755c (bug 1550422
)
Backed out changeset 9c0c9e80f309 (bug 1550422
)
Backed out changeset 10c153ddbaea (bug 1550422
)
Backed out changeset 60fe635ec2c9 (bug 1550422
)
Backed out changeset a38796266b28 (bug 1550422
)
Backed out changeset 2db647dcdf1c (bug 1550422
)
Backed out changeset 952ddac02972 (bug 1550422
)
Backed out changeset ba46b53643ec (bug 1550422
)
Backed out changeset ca47ef6c59f7 (bug 1550422
)
Backed out changeset f45f471a1a40 (bug 1550422
)
Backed out changeset 371b4da5b771 (bug 1550422
)
Backed out changeset 02fc78890032 (bug 1550422
)
2019-05-23 05:59:44 +03:00
Jean-Yves Avenard
d59781ac33
Bug 1550422
- P23. Remove now unused gfxPrefs. r=jrmuizel
...
And with some tidying some comments and removing stray #include "gfxPrefs.h"
Differential Revision: https://phabricator.services.mozilla.com/D31468
--HG--
extra : moz-landing-system : lando
2019-05-22 12:46:30 +00:00
Jonathan Kew
0bd1dd8f7f
Bug 1514869 - patch 7 - Check font families for "simple" set of faces, and mark the Family record appropriately so we can use simplified style-matching. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D23718
--HG--
extra : moz-landing-system : lando
2019-04-27 15:39:27 +00:00
Jonathan Kew
95ce484f4f
Bug 1514869 - patch 3 - Implement macOS backend for the shared font list. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D22939
--HG--
extra : moz-landing-system : lando
2019-04-27 15:38:26 +00:00
Jonathan Kew
300d6b5a42
Bug 1514869 - patch 2 - Adapt platform-font-list code to work with either the existing in-process font list or cross-process shared font list. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D22938
--HG--
extra : moz-landing-system : lando
2019-04-27 15:37:58 +00:00
Jean-Yves Avenard
11ac9e9cf8
Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel
...
* Remove redundant virtual keywords
* Mark all destructors of inheriting classes as virtual for clarity
* Mark all classes without virtual destructor as final (exposed errors)
* Make destructor virtual where it needed to be (some were missing)
* Replace empty ({}) code declaration in header with = default
* Remove virtual unused methods
I probably missed some, it quickly became a rabbit hole.
Differential Revision: https://phabricator.services.mozilla.com/D26060
--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:51 +00:00
Jonathan Kew
9cddae40f3
Bug 1533428 - patch 8 - Move the ReadOtherFamilyNamesForFace helper to gfxFontUtils, for use by shared fontlist code as well as by old gfxFontFamily. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D22935
--HG--
extra : moz-landing-system : lando
2019-04-01 14:33:46 +00:00
Jonathan Kew
d2a3361fa4
Bug 1533428 - patch 7 - Create a FontFamily type that wraps either a gfxFontFamily pointer or a mozilla::fontlist::Family pointer (to be used by the shared font list), and use this in various places where we need to pass families around. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D22934
--HG--
extra : moz-landing-system : lando
2019-04-01 14:33:34 +00:00
Emilio Cobos Álvarez
323b5be77a
Bug 1526294 - Should not need a pres context to get a system font. r=jfkthame
...
The only caller wants CSS pixels, no need to go back and forth.
This is the last dependency on the pres context, I think, from the style system
font code.
Differential Revision: https://phabricator.services.mozilla.com/D19147
2019-02-15 01:35:13 +01:00
Sebastian Hengst
3a9f3f2226
Fix off-by-one issue from merge conflict between bug 1313429 and bug 1521460. CLOSED TREE
2019-01-23 02:50:04 +02:00
Gurzau Raul
136dc5e8bc
Merge mozilla-central to inbound. a=merge CLOSED TREE
2019-01-23 02:05:32 +02: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
Markus Stange
b15bd436e6
Bug 1521622 - Add profiler labels to gfxMacFontFamily::FindStyleVariations and gfxFontFamily::FindFontForChar. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D17163
--HG--
extra : moz-landing-system : lando
2019-01-22 09:40:57 +00:00
Jonathan Kew
23806e75ca
Bug 1500356 - Update gfxFont/gfxFontEntry to use new harfbuzz API in place of deprecated functions. r=jrmuizel
...
--HG--
extra : rebase_source : d5737b581503e45e1d9fb235cbfc21d8fb568ee7
2018-12-08 08:44:55 -05:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Jonathan Kew
fb4f42f9a7
Bug 1507506 - Use a sorted array rather than a hashtable for the short list of bad-underline font families. r=jwatt
2018-11-15 16:11:45 +00:00
Jonathan Kew
aa3e389fe2
Bug 1492220 - Fix encoding-form mismatch in macOS impl of GetVariationAxes. r=lsalzman
2018-09-19 09:25:58 +01:00
Jonathan Kew
ec73ee3318
Bug 1491860 - Use utf-8 rather than utf-16 strings to read/store font family names from preferences, as they're almost entirely ASCII. r=lsalzman
2018-09-18 09:34:24 +01:00
Jonathan Kew
6f42f167fb
Bug 1490402 - Use UTF-8 strings (in place of UTF-16) for font family/face names in the system font list, to reduce memory footprint. r=lsalzman
2018-09-12 20:34:57 +01:00
aceman
77d5a7fd81
Bug 1486311 - convert remaining nsIFile::GetDirectoryEntries() callers to pass in a nsIDirectoryEnumerator. r=kmag
2018-08-26 14:15:00 +03:00
Andi-Bogdan Postelnicu
b2d4c86823
Bug 1453795 - GFX - Initialize member fields in classes/ structures. r=nical
...
--HG--
extra : rebase_source : 56f2cc017632bf27115490ae05254019108c6179
extra : amend_source : 98ea6c3c02a9f7650d2cf65deaf5085cf9a2efa4
2018-06-16 17:42:33 +03:00