Commit Graph

8125 Commits

Author SHA1 Message Date
Markus Stange
979634bacb Bug 1565717 - Remove all dynamic loading of IOSurface functions. r=mattwoodrow
These functions were made public in 10.6. The oldest version we support is 10.9.

Differential Revision: https://phabricator.services.mozilla.com/D41813

--HG--
extra : moz-landing-system : lando
2019-08-14 11:06:22 +00:00
Jeff Muizelaar
d637067186 Bug 1573645. Set the force-warp user pref before the others to avoid assertions. r=lsalzman
The user pref already takes precedent over the environment so there's no need
to run the code later. Further, we assert that environment values haven't been
set.

Differential Revision: https://phabricator.services.mozilla.com/D41836

--HG--
extra : moz-landing-system : lando
2019-08-13 21:21:22 +00:00
sotaro
8ea107367c Bug 1569881 - Short term workaround for Intel GPU r=jrmuizel
When Windows version is mort than 1903 and GPU is intel GPU, it could cause flickering with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL. See Bug 1556634. As a short term workaround, use DXGI_ALPHA_MODE_PREMULTIPLIED instead of DXGI_ALPHA_MODE_IGNORE at SwapChain.

Differential Revision: https://phabricator.services.mozilla.com/D41713

--HG--
extra : moz-landing-system : lando
2019-08-13 22:17:47 +00:00
Jeff Muizelaar
2f622224e3 Bug 1573616. Stop using null desc for WARP device. r=lsalzman
This makes us use the actual adapter description instead of a null one.
This fixes the problem of a mismatch being detected in ContentAdapterIsParentAdapter which
is using D3D11Checks::GetDxgiDesc to determine the adapter.

Differential Revision: https://phabricator.services.mozilla.com/D41804

--HG--
extra : moz-landing-system : lando
2019-08-13 20:09:34 +00:00
Sylvestre Ledru
645f2d5773 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D41559

--HG--
extra : moz-landing-system : lando
2019-08-13 07:15:25 +00:00
Jonathan Kew
5d233316c7 Bug 1565966 - part 3 - On Windows, make the shared font-list family lookup aware of how DWrite may have stripped a trailing component from the font-family name it exposes. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D41244

--HG--
extra : moz-landing-system : lando
2019-08-12 17:49:42 +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
Alexis Beingessner
22dbda5b64 Bug 1571738 - Fallback as late as possible for svg/color fonts. r=jrmuizel
Also includes some documentation gardening for TextDrawTarget on what we don't support.

Differential Revision: https://phabricator.services.mozilla.com/D41272

--HG--
extra : moz-landing-system : lando
2019-08-12 15:40:26 +00:00
Dzmitry Malyshau
005edf80aa Bug 1570736 - Force disable WR swizzling on Intel 4000 on Mac r=aosmond
Investigation showed that on this platform the texture unit state becomes
corrupted whenever we set the non-identity swizzling (getting garbage from textureSize()).
Given no easy workaround, we disable swizzling for this GPU family on Mac, for now.

Differential Revision: https://phabricator.services.mozilla.com/D41274

--HG--
extra : moz-landing-system : lando
2019-08-09 18:57:35 +00:00
Nika Layzell
143941e2d4 Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-08-08 16:07:12 +00:00
L. David Baron
85cac89c70 Bug 1561792 - Rename the pref gfx.font_ahem_antialias_none to gfx.font_rendering.ahem_antialias_none to avoid the additional pref observer added in the previous patch. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41068

--HG--
extra : moz-landing-system : lando
2019-08-07 20:46:04 +00:00
L. David Baron
7f14d882ae Bug 1561792 - Handle dynamic changes of gfx.font_ahem_antialias_none (and make FlushFontAndWordCaches stronger for other callers) and fix a few test failures/intermittents using it. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41067

--HG--
extra : moz-landing-system : lando
2019-08-07 20:44:35 +00:00
Tom Schuster
0e913c22c4 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 19:49:40 +00:00
Charlie Marlow
f8d1049107 Bug 1411922: Part 1: Add rendering support for text-decoration-skip-ink r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D39377

--HG--
extra : moz-landing-system : lando
2019-08-07 17:41:13 +00:00
Cosmin Sabou
c3430326e6 Backed out changeset ca88862d6b63 (bug 1558915) for causing build bustages on StartupCacheUtils. CLOSED TREE 2019-08-07 13:20:32 +03:00
Tom Schuster
8bc1f5ada8 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 09:36:56 +00:00
Razvan Maries
eedbf1137f Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
Tom Schuster
03c7998ef2 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-06 20:19:41 +00:00
Lee Salzman
9a69d270c0 Bug 1569174 - disable embedded bitmaps if ClearType rendering mode is forced. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D39749

--HG--
extra : moz-landing-system : lando
2019-07-30 02:55:48 +00:00
Lee Salzman
16b17ace8c Bug 1568841 - force GDI parameters for GDI render mode. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D39529

--HG--
extra : moz-landing-system : lando
2019-07-26 16:49:14 +00:00
Lee Salzman
08eecf9eae Bug 1568858 - always stretch box shadows except for Cairo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D39412

--HG--
extra : moz-landing-system : lando
2019-07-26 16:31:21 +00:00
Nicholas Nethercote
18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

Differential Revision: https://phabricator.services.mozilla.com/D39138

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Lee Salzman
2f6fdacb61 Bug 1568841 - Don't use enhanced contrast on GDI fonts. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D39366

--HG--
extra : moz-landing-system : lando
2019-07-25 15:33:56 +00:00
Nicholas Nethercote
d8d32dfe97 Bug 1563139 - Update comments mentioning StaticPrefs.h. r=glandium
StaticPrefs.h will be removed two commits from now, so update these comments.

The patch removes the comment above SetUsesContainerScrolling() because it's
wrong -- it did use static prefs when introduced by bug 1181832 but then
stopped using static prefs in bug 1470504 -- and makes it inlinable.

Differential Revision: https://phabricator.services.mozilla.com/D39133

--HG--
extra : moz-landing-system : lando
2019-07-25 04:08:23 +00:00
Nicholas Nethercote
cbaaacf6ae Bug 1563139 - Remove StaticPref{s,List}_accessibility.h. r=glandium
These files exist because they were the proof-of-concept first step for
splitting the static prefs header files. Now that those header files can be
generated from a script, we need to move the `accessibility.*` prefs into the
YAML file.

Differential Revision: https://phabricator.services.mozilla.com/D39132

--HG--
extra : moz-landing-system : lando
2019-07-25 04:08:14 +00:00
Lee Salzman
5169a21347 Bug 1553818 - use GDI ClearType contrast for GDI font gamma. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D39101

--HG--
extra : moz-landing-system : lando
2019-07-24 18:51:28 +00:00
sotaro
4153c76630 Bug 1568136 - Call gfxUtils::RemoveShaderCacheFromDiskIfNecessary() in gfxPlatform::InitWebRenderConfig() r=nical
The RemoveShaderCacheFromDiskIfNecessary() needs to be called after WebRenderConfig initialization.

Differential Revision: https://phabricator.services.mozilla.com/D38978

--HG--
extra : moz-landing-system : lando
2019-07-23 12:22:41 +00:00
Ciure Andrei
c0756f3389 Backed out 10 changesets (bug 1523638) for causing high frequency Android 7.0 mochitests failures CLOSED TREE
Backed out changeset 644ceb2fe568 (bug 1523638)
Backed out changeset 27647ee7a927 (bug 1523638)
Backed out changeset 96f1ccb95570 (bug 1523638)
Backed out changeset b60a17ea716a (bug 1523638)
Backed out changeset 507e63186c5f (bug 1523638)
Backed out changeset 33255408ca61 (bug 1523638)
Backed out changeset d97b2d223616 (bug 1523638)
Backed out changeset eba2a0514cde (bug 1523638)
Backed out changeset d7065174c5c4 (bug 1523638)
Backed out changeset c21b361e175d (bug 1523638)
2019-07-23 05:13:32 +03:00
Nika Layzell
83236ff0f4 Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:22 +00:00
Jonathan Kew
da7e8a06b8 Bug 1566333 - Don't try to send InitializeFamily IPC message from a stylo thread, delegate it to a main-thread runnable instead. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D38369

--HG--
extra : moz-landing-system : lando
2019-07-22 20:08:57 +00:00
Nicholas Nethercote
7974362afd Bug 1567329 - Append _AtStartup to once static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

Differential Revision: https://phabricator.services.mozilla.com/D38604

--HG--
extra : moz-landing-system : lando
2019-07-22 02:10:14 +00:00
Nicholas Nethercote
77d69c5853 Bug 1567329 - Change _do_not_use_directly suffixes to _DoNotUseDirectly. r=erahm
This better distinguishes it from the pref name part of the getter, which uses
snake case.

Differential Revision: https://phabricator.services.mozilla.com/D38603

--HG--
extra : moz-landing-system : lando
2019-07-22 02:09:55 +00:00
David Walsh
5b1625c2cb Bug 1561723 - Add debugger to whitelist for import-pr usage r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D36082

--HG--
rename : gfx/thebes/mach_commands.py => tools/vcs/mach_commands.py
extra : moz-landing-system : lando
2019-07-19 14:18:56 +00:00
sotaro
8f7c96a032 Bug 1567347 - Add option of using DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL without DirectComposition r=nical
Differential Revision: https://phabricator.services.mozilla.com/D38588

--HG--
extra : moz-landing-system : lando
2019-07-19 09:26:03 +00:00
Lee Salzman
e4e9e844a0 Bug 1565158 - allow forcing DWrite symmetric rendering mode. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D38569

--HG--
extra : moz-landing-system : lando
2019-07-19 03:56:50 +00:00
Lee Salzman
8002be2a0d Bug 1563133 - limit GlyphBuffer capacity. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38214

--HG--
extra : moz-landing-system : lando
2019-07-18 21:44:57 +00:00
Jonathan Kew
91ee22332b Bug 1513423 - Measure text by always laying out glyphs LTR. r=heycam
Depends on D38298

Differential Revision: https://phabricator.services.mozilla.com/D38299

--HG--
extra : moz-landing-system : lando
2019-07-18 04:55:05 +00:00
Lee Salzman
fcb5ce241f Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 16:20:25 +00:00
Daniel Varga
68d2d44e0e Backed out changeset d0c32e17c69f (bug 1566449) for wpt failure at /css/css-text/shaping/shaping_lig-000.html. On a CLOSED TREE 2019-07-17 13:48:59 +03:00
Lee Salzman
1492fa84f0 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 07:14:07 +00:00
Bogdan Tara
848c0f8b71 Backed out changeset 0948829b33b0 (bug 1566449) for boundary-shaping-010.html failures CLOSED TREE 2019-07-17 05:16:29 +03:00
Bogdan Tara
ca45889546 Backed out 9 changesets (bug 1523638) for browser_contextmenu.js failures CLOSED TREE
Backed out changeset 0a584a07b696 (bug 1523638)
Backed out changeset 8c5af2289900 (bug 1523638)
Backed out changeset 40ed1bd64b09 (bug 1523638)
Backed out changeset 9a99a0391979 (bug 1523638)
Backed out changeset 07fb4748b91a (bug 1523638)
Backed out changeset 49047c3ebae9 (bug 1523638)
Backed out changeset d606d072126c (bug 1523638)
Backed out changeset 76dc1937fc77 (bug 1523638)
Backed out changeset c784c14b5d5d (bug 1523638)
2019-07-16 23:40:47 +03:00
Lee Salzman
81469e4765 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-16 19:23:40 +00:00
Bogdan Tara
05d1beaf67 Backed out changeset f69f242281a4 (bug 1566449) for regtests failing because of reftest.list CLOSED TREE 2019-07-16 22:06:42 +03:00
Nika Layzell
89d26ca7eb Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-07-16 18:47:56 +00:00
Lee Salzman
8e0e393dc3 Bug 1566528 - clamp the amount of synthetic bold extra strikes. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38212

--HG--
extra : moz-landing-system : lando
2019-07-16 17:59:35 +00:00
Lee Salzman
e979d8d858 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-16 17:24:10 +00:00
Thomas Nguyen
fc05893051 Bug 1546334 - Use referrerInfo in style system. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D36478

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:56 +00:00
Kartikaya Gupta
6f390ed77d Bug 1564456 - Turn on WR for Nvidia small-screen Windows 10 battery populations on Nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37899

--HG--
extra : moz-landing-system : lando
2019-07-16 15:11:03 +00:00
Lee Salzman
ac4f9f002c Bug 1553228 - Don't free result of FcPatternGetString. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38157

--HG--
extra : moz-landing-system : lando
2019-07-16 13:52:19 +00:00
Sylvestre Ledru
ddf2513ea7 Bug 1519636 - Ride along: Move to the unix CR type r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D38059

--HG--
extra : moz-landing-system : lando
2019-07-16 07:34:18 +00:00
Sylvestre Ledru
e77bfc655d Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D38057

--HG--
extra : moz-landing-system : lando
2019-07-16 07:33:44 +00:00
Jan Andre Ikenmeyer
c4f6b66520 Bug 1563859 - Enable WebRender on Linux with Nvidia hardware and Mesa drivers. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37924

--HG--
extra : moz-landing-system : lando
2019-07-12 20:46:03 +00:00
Jonathan Kew
54cbb9d57b Bug 1554208 - patch 6 - Add PSName and FullName support to gfxFT2FontList shared font-list initialization, so that src:local() lookups will work. r=jwatt
Also ensure we consistently use the original-case family name in FontNameCache entries,
and only lowercase it to a "key" for lookup/insertion into the font list. This avoids
failures in test_font_whitelist.html due to inconsistency in whether family names have
been lowercased.

Differential Revision: https://phabricator.services.mozilla.com/D36112

--HG--
extra : moz-landing-system : lando
2019-07-12 15:34:30 +00:00
Jonathan Kew
f91a1d3b2a Bug 1554208 - patch 5 - Implement shared-fontlist support in the gfxFT2FontList backend. r=jwatt
This is the main part of the implementation, except that it doesn't handle populating the
local names table (for @font-face src:local() lookups) with Full and PostScript names;
that follows in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D36110

--HG--
extra : moz-landing-system : lando
2019-07-12 15:34:04 +00:00
Jonathan Kew
9f9125a4d0 Bug 1554208 - patch 4 - Make the FontNameCache that we use to store the font list in the startupCache use a more robust and extensible serialization. r=jwatt
I'll need to add a couple of extra fields to the cache records, and realized that the current format
looks really fragile; in theory, it'd break if a font name ever contained a comma or semicolon
(unlikely though that may be). So let's fix it to be a bit more robust before we add to it further.
Using control characters from the C0 range to delimit fields/records, instead of ASCII punctuation,
removes the (tiny) risk of conflict with characters that actually occur in a name, and using
distinct field and record separators means that we can better check that the records we're loading
from the cache actually match the expected format.

(Given that the startup cache gets re-created when the build ID is updated, a change in the format
between versions wasn't going to cause problems for users; their old cache just gets blown away
when upgrading. Still, a little more robustness seems like a good thing.)

Differential Revision: https://phabricator.services.mozilla.com/D36109

--HG--
extra : moz-landing-system : lando
2019-07-12 15:33:35 +00:00
Jonathan Kew
01e8403527 Bug 1554208 - patch 3 - Rearrange gfxFT2Fonts code so that FindFonts() does just what it says, and other work is handled by the caller. r=jwatt
This makes the functional structure a bit cleaner, so that it'll be easier to slip in the alternative
codepath for the shared font-list.

Differential Revision: https://phabricator.services.mozilla.com/D36108

--HG--
extra : moz-landing-system : lando
2019-07-12 15:33:03 +00:00
Jonathan Kew
2469dbfb9d Bug 1554208 - patch 2 - Remove redundant member-reset code from gfxFT2FontList::FindFonts (already handled by gfxPlatformFontList before this is called). r=jwatt
A bit of cleanup of the existing code, before we start actually implementing new stuff.

Differential Revision: https://phabricator.services.mozilla.com/D36107

--HG--
extra : moz-landing-system : lando
2019-07-12 15:32:35 +00:00
Jonathan Kew
21b4c1cf5a Bug 1554208 - patch 1 - Add missing checks for shared charmap. r=jwatt
This isn't really specific to the FT2 fontlist, it's a general fixup that I noticed while
working on this. (The missing checks aren't crucial, but mean that we might re-read a cmap
when we shouldn't need to.)

Differential Revision: https://phabricator.services.mozilla.com/D36106

--HG--
extra : moz-landing-system : lando
2019-07-12 15:32:05 +00:00
Jonathan Kew
83fc5b8ada Bug 1565234 - Remove redundant override that exactly matches the base class implementation, and make GetFontFamilyList non-virtual. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D37731

--HG--
extra : moz-landing-system : lando
2019-07-11 15:28:22 +00:00
Kartikaya Gupta
b12ed5e8f3 Bug 1559389 - Clean up renderroot-finding methods. r=Gankro
Only the parent process ever respects the renderroot attribute, so we can
add some extra early-exit checks for this. This also adds a bit of safety
for the next patch, to avoid inadvertently exposing renderroot stuff to
web content.

Also, the GetRenderRootForElement function is only ever called by the
GetRenderRootForFrame function, so let's scope it down to avoid doing
unnecessary work.

Differential Revision: https://phabricator.services.mozilla.com/D37504

--HG--
extra : moz-landing-system : lando
2019-07-10 16:54:11 +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
Jeff Muizelaar
11eb687f56 Bug 1564907. Add AMD Navi GPUs to WebRender qualified device list. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D37569

--HG--
extra : moz-landing-system : lando
2019-07-10 15:02:40 +00:00
Kartikaya Gupta
c518bac110 Bug 1550023 - Don't allow the qualified pref to disable WR for already released populations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37085

--HG--
extra : moz-landing-system : lando
2019-07-10 11:27:02 +00:00
Kartikaya Gupta
346c65b29c Bug 1550023 - Qualify whitelisted Intel cards up to WUXGA screen size for Windows in release 69. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37428

--HG--
extra : moz-landing-system : lando
2019-07-10 11:26:50 +00:00
Kartikaya Gupta
1ed20be5bc Bug 1550023 - Move variable into function. r=jrmuizel
It doesn't need to be an argument since it's not used by the caller.

Differential Revision: https://phabricator.services.mozilla.com/D37084

--HG--
extra : moz-landing-system : lando
2019-07-10 11:26:43 +00:00
Kartikaya Gupta
7273c8f048 Bug 1564460 - Tweak commit message editing when importing PR from github. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D37434

--HG--
extra : moz-landing-system : lando
2019-07-09 16:35:32 +00:00
sotaro
1d84883e80 Bug 1562847 - Disable double buffering with compositor when device reset happens r=nical,bas
When double buffering is enable with compositor, DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is used without DirectComposition. There are some devices that swap chain with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL does not work well. In this case, device reset happens very often. To avoid the situation, the double buffering needs to be disabled when device reset happens.

Differential Revision: https://phabricator.services.mozilla.com/D36579

--HG--
extra : moz-landing-system : lando
2019-07-09 06:37:45 +00:00
Nicholas Nethercote
abf15f999d Bug 1560530 - Split StaticPrefs_accessibility.h from StaticPrefs.h. r=froydnj
This implements the machinery for the splitting of static prefs headers, and
uses it for a single header. #includes are used in such a way that the amount
of boilerplate for each static prefs header file is minimal.

Future patches will split the remaining prefs into more header files.

Differential Revision: https://phabricator.services.mozilla.com/D36154

--HG--
rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h
rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h
extra : moz-landing-system : lando
2019-07-08 23:40:39 +00:00
Brindusan Cristian
094a24980d Backed out 6 changesets (bug 1554208) for reftest failures at font-sans-serif.html and geckoview failures at AccessibilityTest.testMoveByLine. CLOSED TREE
Backed out changeset 14b2c3daeaf0 (bug 1554208)
Backed out changeset 7bd8be02631a (bug 1554208)
Backed out changeset 3e6c11ef906c (bug 1554208)
Backed out changeset f72e750ec20d (bug 1554208)
Backed out changeset 3e824f3e3c9c (bug 1554208)
Backed out changeset b610a6988076 (bug 1554208)
2019-07-09 01:07:08 +03:00
Jonathan Kew
da0f34be06 Bug 1554208 - patch 6 - Add PSName and FullName support to gfxFT2FontList shared font-list initialization, so that src:local() lookups will work. r=jwatt
And with this, all tests pass on tryserver when the shared list is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D36112

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:17 +00:00
Jonathan Kew
d45e85e785 Bug 1554208 - patch 5 - Implement shared-fontlist support in the gfxFT2FontList backend. r=jwatt
This is the main part of the implementation, except that it doesn't handle populating the
local names table (for @font-face src:local() lookups) with Full and PostScript names;
that follows in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D36110

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:03 +00:00
Jonathan Kew
7a6bb0577c Bug 1554208 - patch 4 - Make the FontNameCache that we use to store the font list in the startupCache use a more robust and extensible serialization. r=jwatt
I'll need to add a couple of extra fields to the cache records, and realized that the current format
looks really fragile; in theory, it'd break if a font name ever contained a comma or semicolon
(unlikely though that may be). So let's fix it to be a bit more robust before we add to it further.
Using control characters from the C0 range to delimit fields/records, instead of ASCII punctuation,
removes the (tiny) risk of conflict with characters that actually occur in a name, and using
distinct field and record separators means that we can better check that the records we're loading
from the cache actually match the expected format.

(Given that the startup cache gets re-created when the build ID is updated, a change in the format
between versions wasn't going to cause problems for users; their old cache just gets blown away
when upgrading. Still, a little more robustness seems like a good thing.)

Differential Revision: https://phabricator.services.mozilla.com/D36109

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:44 +00:00
Jonathan Kew
920998b64e Bug 1554208 - patch 3 - Rearrange gfxFT2Fonts code so that FindFonts() does just what it says, and other work is handled by the caller. r=jwatt
This makes the functional structure a bit cleaner, so that it'll be easier to slip in the alternative
codepath for the shared font-list.

Differential Revision: https://phabricator.services.mozilla.com/D36108

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:30 +00:00
Jonathan Kew
8b058ab5a1 Bug 1554208 - patch 2 - Remove redundant member-reset code from gfxFT2FontList::FindFonts (already handled by gfxPlatformFontList before this is called). r=jwatt
A bit of cleanup of the existing code, before we start actually implementing new stuff.

Differential Revision: https://phabricator.services.mozilla.com/D36107

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:16 +00:00
Jonathan Kew
192c1d4cb4 Bug 1554208 - patch 1 - Add missing checks for shared charmap. r=jwatt
This isn't really specific to the FT2 fontlist, it's a general fixup that I noticed while
working on this. (The missing checks aren't crucial, but mean that we might re-read a cmap
when we shouldn't need to.)

Differential Revision: https://phabricator.services.mozilla.com/D36106

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:01 +00:00
Jonathan Kew
1e08aef182 Bug 1560437 - Ignore font.system.whitelist if no whitelisted fonts are found. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D35499

--HG--
extra : moz-landing-system : lando
2019-06-30 01:35:29 +00:00
Jonathan Kew
4650cbd942 Bug 1559044 - Improve criteria for deciding whether to kick off download of a @font-face resource, so that we don't defer resources that will actually be needed. r=heycam
The original patch in bug 1422530 checked whether we're currently hiding a given piece of text
because we're waiting for a resource to download, and used this as a signal that we should not
initiate another download.

However, that's not really a good criterion to use when we're doing font selection for a given
character, both because it's an indirect signal -- whether painting the text is suppressed will
depend on timing and the font-display property -- and because it doesn't consider whether any
resource that's already being downloaded will actually be relevant for the specific character
we're trying to display.

So this patch instead checks for a relevant in-progress load earlier in the font list during
the specific FindFontForChar call, so that when unicode-range is used to split a font across
multiple subsets, an in-progress load for one subset won't make us defer the downloads of other
subsets if they are also needed for the characters present in the text.

With this, the repeated blinking no longer happens on the site here, as loading of all the
required font subsets is initiated early.

Differential Revision: https://phabricator.services.mozilla.com/D35634

--HG--
extra : moz-landing-system : lando
2019-07-03 15:14:24 +00:00
Kartikaya Gupta
1d2cb8902f Bug 1550023 - Allow WR on a subset of Intel to ride into early beta on Windows. r=jrmuizel
This uses positive-but-empty #if conditions with else clauses rather than
inverted conditions for better readability and documentation.

Differential Revision: https://phabricator.services.mozilla.com/D37083

--HG--
extra : moz-landing-system : lando
2019-07-05 22:08:13 +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
Chris AtLee
a0d3d64841 Bug 1559975: Fix python2/3 compat in gfx/ r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35337

--HG--
extra : moz-landing-system : lando
2019-07-05 14:28:55 +00:00
Kartikaya Gupta
c8cff9effe Bug 1563311 - Remove uses of MOZ_BUILD_WEBRENDER. r=aosmond
This removes support for building Firefox/Gecko without WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D36819

--HG--
extra : moz-landing-system : lando
2019-07-05 11:05:17 +00:00
Kartikaya Gupta
61ff199d59 Bug 1563264 - More early-exits to reduce nesting and maybe increase clarity. r=jrmuizel
Depends on D36779

Differential Revision: https://phabricator.services.mozilla.com/D36780

--HG--
extra : moz-landing-system : lando
2019-07-04 18:54:44 +00:00
Kartikaya Gupta
a93c3f45a0 Bug 1563264 - Extract conditions for each graphics vendor; no functional change. r=jrmuizel
Depends on D36778

Differential Revision: https://phabricator.services.mozilla.com/D36779

--HG--
extra : moz-landing-system : lando
2019-07-04 18:48:39 +00:00
Kartikaya Gupta
bc8b223993 Bug 1563264 - Add early-exit conditions to reduce nesting; no functional change. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D36778

--HG--
extra : moz-landing-system : lando
2019-07-03 18:32:35 +00:00
Jonathan Kew
947857981c Bug 1562733 - Properly transform DetailedGlyph offsets when rendering vertical (rotated) text through webrender. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D36795

--HG--
extra : moz-landing-system : lando
2019-07-04 11:58:35 +00:00
Nicholas Nethercote
510b8223fb Bug 1562810 - Rename some static pref functions. r=KrisWright
Now that all static pref getters use snake_case, these renamings make sense:
- Getfoo_bar_bazPrefName() -> GetPrefName_foo_bar_baz()
- Getfoo_bar_bazPrefDefault() -> GetPrefDefault_foo_bar_baz()

Differential Revision: https://phabricator.services.mozilla.com/D36563

--HG--
extra : moz-landing-system : lando
2019-07-02 22:32:09 +00:00
Jeff Gilbert
406b3a60f1 Bug 1562812 - For powerPreference:Default, only keep dGPU active for consistently active contexts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D36565

--HG--
extra : moz-landing-system : lando
2019-07-02 16:45:22 +00:00
Nicholas Nethercote
76f416f162 Bug 1562331 - Make webgl.* static prefs follow the naming convention. r=KrisWright
Also converts webgl.pref-16bpp from a VarCache pref to a normal pref, because
it doesn't need to be a VarCache pref.

Differential Revision: https://phabricator.services.mozilla.com/D36397

--HG--
extra : rebase_source : 5aa1d251b751c41ec525fef7d0467ffebe401d9a
2019-06-29 07:56:43 +10:00
Nicholas Nethercote
d839ef58db Bug 1562331 - Make media.* static prefs follow the naming convention. r=KrisWright
This also removes the following prefs, because they're unused:
- media.autoplay.allow-muted pref
- media.autoplay.blackList-override-default

Differential Revision: https://phabricator.services.mozilla.com/D36396

--HG--
extra : rebase_source : 0570540496302b3efedadf4d5115ee5422d5c279
2019-06-28 14:09:05 +10:00
Kartikaya Gupta
6a9aec8195 Bug 1562390 - Ignore MOZ_WEBRENDER=0 for the WR rollout marionette test. r=me
This is a temporary fix for the tests in test_pref_rollout_workaround. The
tests are permafailing because they are now always running with MOZ_WEBRENDER=0
which breaks assumptions inside the test.
2019-06-29 17:02:04 +03:00
shindli
67c134b492 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-06-29 02:23:28 +03:00
Narcis Beleuzu
a89b67e772 Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for toolchain bustages on UniquePtrExtensions.h . CLOSED TREE
Backed out changeset a8518ea4b594 (bug 1479960)
Backed out changeset 7172762c4b87 (bug 1536697)
Backed out changeset 2ea5ccb8f3a1 (bug 1426526)
Backed out changeset d892a888fe9c (bug 1426526)
Backed out changeset 2c4d12bdfec3 (bug 1479960)
Backed out changeset 8a322064cf6d (bug 1479960)
Backed out changeset 47d387b6cd4a (bug 1479960)
Backed out changeset 8332565a6943 (bug 1479960)
Backed out changeset 9d7f1835f96f (bug 1479960)
Backed out changeset 0aa8af4965c5 (bug 1479960)
Backed out changeset 036809330a51 (bug 1479960)
Backed out changeset 39e18373e3d3 (bug 1479960)
Backed out changeset 6c2b995a9d30 (bug 1479960)
Backed out changeset 3c2b31744645 (bug 1534780)
Backed out changeset 26bb00a94d5d (bug 1534780)
2019-06-28 22:42:00 +03:00
Kartikaya Gupta
a0c31965e9 Bug 1561261 - Don't import requests at the top level. r=ahal
For some reason this causes some sort of failure in the doc upload
process. No other mach_commands.py files do this so this patch moves
the import into the functions that use it, which bypasses the problem.

Differential Revision: https://phabricator.services.mozilla.com/D36333

--HG--
extra : moz-landing-system : lando
2019-06-28 14:51:20 +00:00
Coroiu Cristina
f91bd38732 Merge inbound to mozilla-central a=merge 2019-06-27 12:36:00 +03:00
Nicholas Nethercote
ca8e78069d Bug 1561491 - Make gfx.* static prefs follow the naming convention. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D35975

--HG--
extra : rebase_source : 9090ac828f1da9582510975047d5ad59a228dda5
2019-06-26 10:38:09 +10: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
Nicholas Nethercote
9f0b35cc2a Bug 1560837 - Make APZ static prefs follow the naming convention. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D35633

--HG--
extra : rebase_source : e71193756486b148d479e90b324f73dc35756429
2019-06-24 13:57:06 +10:00
Lee Salzman
acf891925e Bug 1559957 - reset Cairo data in WillShutdown before gfxPlatform destructor is called. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D35820

--HG--
extra : moz-landing-system : lando
2019-06-25 17:35:55 +00:00