Граф коммитов

9988 Коммитов

Автор SHA1 Сообщение Дата
Tom Ritter 073f56f67a Bug 1852541: Do not randomize the canvas if it is one uniform pattern r=timhuang,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D188133
2023-10-11 14:56:45 +00:00
Cristian Tuns 5293640c25 Backed out 3 changesets (bug 1852541) for causing build bustages in nsRFPService.cpp CLOSED TREE
Backed out changeset 21d022246ce0 (bug 1852541)
Backed out changeset 4e369c26c1f6 (bug 1852541)
Backed out changeset 8832d7e6c0dc (bug 1852541)
2023-10-10 12:07:55 -04:00
Tom Ritter 511c8ac27c Bug 1852541: Do not randomize the canvas if it is one uniform pattern r=timhuang,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D188133
2023-10-10 15:03:52 +00:00
Jonathan Kew 39f2d60247 Bug 1856035 - Merge implementations of CreateCTFontFromCGFontWithVariations from gfxMacFont.cpp and 2d/ScaledFontMac.cpp (no change in behavior). r=gfx-reviewers,lsalzman
This should not change behavior, it just merges the two versions of
CreateCTFontFromCGFontWithVariations to simplify maintenance.

Depends on D190500

Differential Revision: https://phabricator.services.mozilla.com/D190501
2023-10-10 08:21:42 +00:00
Jonathan Kew 21e094be9a Bug 1856035 - Backed out changeset 57fec34232bd for regression behavior on macOS 11 and 12.
Not sure why the new implementation doesn't work on older OS versions,
but these APIs are inadequately documented and liable to change behavior
between releases. So just go with what works, as shown by testing.

Differential Revision: https://phabricator.services.mozilla.com/D190500
2023-10-09 18:53:01 +00:00
Emilio Cobos Álvarez 893dfc633c Bug 1857285 - Free sanitized font data on early-out. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D190409
2023-10-09 07:28:25 +00:00
Jonathan Kew ff399246f1 Bug 1856035 - Rework the management of font variation settings across CoreGraphics and CoreText font instances. r=gfx-reviewers,lsalzman
It appears that when a Core Text font is instantiated from a CGFont or from a font descriptor,
its optical-size setting now always gets assigned according to the font size being created,
overriding any 'opsz' variation that was already specified on the CGFont or the CTFontDescriptor.
(This seems to be a behavior change compared to older macOS versions.)

To get the desired 'opsz' setting on the Core Text font, it seems to be necessary to use
CTFontCreateCopyWithAttributes to get a modified copy of an already-existing CTFont.

Differential Revision: https://phabricator.services.mozilla.com/D190389
2023-10-08 11:56:49 +00:00
Emilio Cobos Álvarez 8a3a7a9bcb Bug 1856917 - Tweak font loading priority. r=smaug
I'm hesitant to use RenderBlocking in the sense that... well, we know we
are not going to get to fetch it between rendering. Maybe this?

Differential Revision: https://phabricator.services.mozilla.com/D190107
2023-10-05 13:32:27 +00:00
Jonathan Kew cf58f732be Bug 1856637 - Ignore gfxDWriteFont::UpdateSystemTextVars() call if the gfxVars are not yet initialized. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D190151
2023-10-05 10:53:52 +00:00
Mike Hommey adc20cf2a0 Bug 1856465 - Remove CoreTextFontList::LookupSystemFont. r=jfkthame
It's leftover from bug 1170986.

Differential Revision: https://phabricator.services.mozilla.com/D189860
2023-10-04 21:30:02 +00:00
stransky 0dcdcf1967 Bug 1856582 [Linux] Handle gtk_init failure better and explicitly quit r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D189920
2023-10-04 09:50:52 +00:00
Jonathan Kew 22038b7bc5 Bug 1856110 - Use correct (family) name for the Aharoni Bold font provided by Windows Hebrew Supplemental fonts. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189719
2023-10-01 19:55:03 +00:00
Jonathan Kew fa315f60ce Bug 1853595 - Ensure tab-size is resolved using the font that would actually be used to render the space character, even if that's not the "first available font" as defined by CSS Fonts. r=dholbert
This only makes a difference in the (obscure) case where the block ancestor's
"first available font" (as defined by CSS Fonts) does not support the <space>
character; an example is PowerlineSymbols.

I confirmed that this fixes the GitHub "ghosting" issue on my Ubuntu system
when I have the fonts-powerline package installed.

Test in following patch.

Differential Revision: https://phabricator.services.mozilla.com/D189650
2023-10-01 10:50:03 +00:00
Butkovits Atila dc4f0dd2a4 Backed out 3 changesets (bug 1803406) for causing WR bustages. CLOSED TREE
Backed out changeset 91f12411aff1 (bug 1803406)
Backed out changeset edb458dfa8b8 (bug 1803406)
Backed out changeset 9c4a875ec67d (bug 1803406)
2023-09-29 21:33:03 +03:00
Jonathan Kew ac5e171696 Bug 1803406 - To try and mitigate the startup impact of font initialization, move more work to the RegisterFonts thread. r=gfx-reviewers,lsalzman
No user-visible behavior change; just trying to move a bit more work onto a secondary thread,
in the hope of improving startup perf (althogh if there's too much contention for disk i/o,
or not enough CPU cores available, it may not help much).

Differential Revision: https://phabricator.services.mozilla.com/D170287
2023-09-29 17:58:18 +00:00
Jonathan Kew d7baedb599 Bug 1803406 - Ensure consistent font lists across macOS processes, and use the kCTFontOptionsPreferSystemFont option when instantiating Core Text fonts. r=gfx-reviewers,lsalzman
This aims to avoid conflicts with user-installed fonts that shadow system fonts,
where there is a risk that different processes end up using different, incompatible
versions of "the same" font (i.e. they resolve the same font descriptor to different
resources).

Differential Revision: https://phabricator.services.mozilla.com/D170286
2023-09-29 17:58:17 +00:00
Emilio Cobos Álvarez d38f9b9e70 Bug 1851118 - Defer url() font load start until safe. r=jfkthame,masayuki
Use the same mechanism we use for style worker threads (LOAD_PENDING /
ContinueLoad()).

Differential Revision: https://phabricator.services.mozilla.com/D189267
2023-09-29 17:12:24 +00:00
serge-sans-paille 974e37adf9 Bug 1855955 - Remove useless <iostream> includes r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D189648
2023-09-29 14:15:53 +00:00
Mike Hommey f553129f78 Bug 1855870 - Upgrade webrender to bitflags 2. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D189605
2023-09-29 08:20:59 +00:00
Sandor Molnar 877328b180 Backed out changeset 5e882222f60d (bug 1855870) for causing build bustages. CLOSED TREE 2023-09-29 05:11:00 +03:00
Mike Hommey 9bcd21ef72 Bug 1855870 - Upgrade webrender to bitflags 2. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D189605
2023-09-29 01:50:47 +00:00
Daniel Holbert 077578eff4 Bug 1855506: Add assertions to validate the return value of gfxPlatformFontList::FindAndAddFamilies. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D189413
2023-09-28 17:05:26 +00:00
Jonathan Kew ea85f65d1e Bug 1854950 - Disable font-fingerprinting protection if hardly any standard distro fonts are present, as it would totally break content rendering. r=dholbert,emilio
Somewhat arbitrarily, require at least 3 standard "Base" fonts; otherwise assume
the user has done something weird such as delete all the distro fonts and install
an alternative collection, so we can't usefully classify them.

Differential Revision: https://phabricator.services.mozilla.com/D189394
2023-09-28 15:56:54 +00:00
Emilio Cobos Álvarez 48746a8760 Bug 1855504 - Minor cleanups in gfxUserFontSet. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D189266
2023-09-27 17:23:51 +00:00
Jonathan Kew 4fbd2fee62 Bug 1852596 r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D189243
2023-09-27 10:38:51 +00:00
Jonathan Kew 6e294c4381 Bug 1819275 - Make gfxMacPlatformFontList::LookupSystemFont a static method. r=gfx-reviewers,lsalzman
This method does not rely on any instance data, it just depends on system font APIs.
So it can be declared as static and used regardless of whether the platform font list
is fully initialized.

This avoids blocking on platform font list initialization when the widget code
calls LookupSystemFont during startup.

Differential Revision: https://phabricator.services.mozilla.com/D171207
2023-09-26 09:32:10 +00:00
Jonathan Kew f5897c1a00 Bug 1819275 - Don't unconditionally access (and initialize) the platform font list from gfxUserFontSet; it is only required for src:local faces. r=gfx-reviewers,lsalzman
We register the gfxUserFontSet instance with the platform font list so that it can
be updated when necessary, if the font list changes such that src:local rules might
resolve differently. But if src:local is not used, the font set does not need to
be aware of the platform list, so we can make the connection only when a local
lookup is actually present.

This avoids blocking the main thread during startup, e.g. when we create a font set
for the -moz-bullet dataURI font that is part of the UA stylesheet.

Differential Revision: https://phabricator.services.mozilla.com/D171206
2023-09-26 09:32:09 +00:00
Iulian Moraru cb0d7ccce8 Backed out 2 changesets (bug 1852541) for causing build bustages + bc failures. CLOSED TREE
Backed out changeset 7f516f079dd4 (bug 1852541)
Backed out changeset 9dea05c869be (bug 1852541)
2023-09-26 02:27:15 +03:00
Tom Ritter ab0d4828fa Bug 1852541: Do not randomize the canvas if it is one uniform pattern r=timhuang,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D188133
2023-09-25 21:22:39 +00:00
Cosmin Sabou f9be6e64d4 Backed out 2 changesets (bug 1852541) for causing build bustages on nsRFPService.cpp. CLOSED TREE
Backed out changeset dbb5ce808936 (bug 1852541)
Backed out changeset 6dff3776d3d5 (bug 1852541)
2023-09-25 21:37:30 +03:00
Tom Ritter a77109e532 Bug 1852541: Do not randomize the canvas if it is one uniform pattern r=timhuang,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D188133
2023-09-25 18:06:13 +00:00
Andrew Osmond f1d22fb2f1 Bug 1852145 - Part 1. Refactor CanvasRenderThread to represent a virtual thread. r=gfx-reviewers,lsalzman
Prior to this patch, CanvasRenderThread represents the concrete thread
we would spawn if gfxVars::UseCanvasRenderThread() returned true.
CanvasManagerParent was responsible for checking our state and deciding
between using the Compositor, Renderer and CanvasRender threads.

This patch makes the CanvasRenderThread class represent a virtual
thread. It will spawn a CanvasRender thread if necessary. Other classes
may use the abstraction to run on the correct thread without having to
duplicate the selection logic.

Differential Revision: https://phabricator.services.mozilla.com/D187719
2023-09-25 16:18:35 +00:00
Andrew Osmond 620833163a Bug 1852144 - Disable remote canvas globally in case of unrecoverable error. r=gfx-reviewers,lsalzman
This patch makes the remote canvas enabled state global. If we failed to
create a context, then it cannot recover, so we should never try again.
In the event of stream errors, it is likely due to virtual memory
shortages.

Differential Revision: https://phabricator.services.mozilla.com/D187718
2023-09-25 16:18:35 +00:00
Jonathan Kew 5c2b1b1d02 Bug 1850672 - Standard platform font-visibility level should be applied to localized names of the family. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D188494
2023-09-25 13:46:14 +00:00
Robert Longson f92dd3f823 Bug 1853368 - Replace deprecated CTFontManagerRegisterFontsForURLs by CTFontManagerRegisterFontURLs r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D188336
2023-09-19 08:41:12 +00:00
Gregory Pappas 4c58de9d34 Bug 1851395 - Remove canvas.createConicGradient.enabled pref r=webidl,peterv
Differential Revision: https://phabricator.services.mozilla.com/D187357
2023-09-18 22:09:35 +00:00
Jonathan Kew 220a4897ba Bug 1851192 - Ensure gfxPlatformFontList shutdown waits for the InitFontList thread to terminate. r=gfx-reviewers,lsalzman,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D188501
2023-09-18 18:46:20 +00:00
Jonathan Kew e75f77bc28 Bug 1851284 - Font name correction in Windows lang-pack font list. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D188424
2023-09-18 09:05:50 +00:00
Jonathan Kew 924f066162 Bug 1853216 - Don't render layered-color glyphs via webrender if text-shadow is present. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188346
2023-09-16 09:33:55 +00:00
Iulian Moraru 01b45bcc95 Backed out changeset 163d24542c19 (bug 1853216) for causing reftest failures on 1853216-1.html. 2023-09-16 05:14:15 +03:00
Emilio Cobos Álvarez 6cd30b6fe1 Bug 1853392 - Simplify font-size-adjust: from-font handling. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D188355
2023-09-15 22:17:25 +00:00
Jonathan Kew 661ae1d661 Bug 1853216 - Don't render layered-color glyphs via webrender if text-shadow is present. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188346
2023-09-15 21:10:53 +00:00
Gregory Pappas e5c7fdab51 Bug 1853262 - Remove gfx.downloadable_fonts.sanitize_omt pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D188314
2023-09-15 15:57:31 +00:00
Jonathan Kew 9eca0b34ce Bug 1853306 - Skip duplicates potentially returned by CTFontDescriptorCreateMatchingFontDescriptors in the descriptors array. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D188323
2023-09-15 14:39:19 +00:00
Masatoshi Kimura 0f09dfdb3e Bug 1852806 - Remove macros for older Windows SDK from gfx/. r=gfx-reviewers,lsalzman
Depends on D188022

Differential Revision: https://phabricator.services.mozilla.com/D188023
2023-09-15 03:19:26 +00:00
Cosmin Sabou f8c16a8f94 Backed out 15 changesets (bug 1852806) for causing mda failures on test_video_low_power_telemetry.html. CLOSED TREE
Backed out changeset faea1f4cb9a9 (bug 1852806)
Backed out changeset 4db93c374f9b (bug 1852806)
Backed out changeset 7e40e0e04921 (bug 1852806)
Backed out changeset b0a66c4269ce (bug 1852806)
Backed out changeset 4ff3545936f9 (bug 1852806)
Backed out changeset 02c0a8eb3fd6 (bug 1852806)
Backed out changeset ae2c7b33acfb (bug 1852806)
Backed out changeset 2b89ba254a1a (bug 1852806)
Backed out changeset dfa4f73fc548 (bug 1852806)
Backed out changeset daffcc4c1877 (bug 1852806)
Backed out changeset 33855bcdf15e (bug 1852806)
Backed out changeset 694f29707f3e (bug 1852806)
Backed out changeset 1891eda22a59 (bug 1852806)
Backed out changeset 1b854941389c (bug 1852806)
Backed out changeset 2f7cfe04be59 (bug 1852806)
2023-09-15 09:48:27 +03:00
Masatoshi Kimura f9d563c0c9 Bug 1852806 - Remove macros for older Windows SDK from gfx/. r=gfx-reviewers,lsalzman
Depends on D188022

Differential Revision: https://phabricator.services.mozilla.com/D188023
2023-09-15 03:19:26 +00:00
Jonathan Kew 8265030dfe Bug 1850484 - Ignore installed fonts with empty family-name. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D187921
2023-09-12 10:44:02 +00:00
Jonathan Kew b39196091d Bug 1848890 - Guard access to FontList::mBlocks with the font-list lock. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D187690
2023-09-08 19:02:58 +00:00
Mike Hommey 633e2ac6ba Bug 1851946 - Remove outdated mac SDK-version checks. r=mac-reviewers,media-playback-reviewers,bradwerth,alwu
Now that the minimum supported version of the mac SDK is 13.3, all the
macro-based checks for SDK versions older than that are always false.
Remove them.

Differential Revision: https://phabricator.services.mozilla.com/D187639
2023-09-08 01:44:07 +00:00