Commit graph

336 commits

Author SHA1 Message Date
roytam1
10b96192dd gfx: relax DrawTargetCairo::IsValid() check, fixes crash when loading spectrumsurveys.com 2025-07-09 00:09:31 +08:00
roytam1
6414271c91 Merge remote-tracking branch 'origin/tracking' into custom 2025-06-17 09:32:50 +08:00
Moonchild
91a026ea65 No issue - Set device contrast to an acceptable value if OOB.
On Mac and Win+DW, enhanced device contrast can possibly not be set.
This throws Skia for a loop by passing in an OOB scalar to its init.
Work around this by setting an accepted average value that helps
prevent font wash-out while not causing fringing.
2025-06-17 09:23:10 +08:00
roytam1
7f3ccb5dc3 Merge remote-tracking branch 'origin/tracking' into custom 2025-05-27 23:22:51 +08:00
Brian Smith
ce535a850f No Issue - MacOS fixes and updates. stroucki reported on the forum a libary not loading. This corrects the path. It still loads with the incorrect path on most systems, but fixing it anyway. https://github.com/joseluisq/macosx-sdks Update the SDK list with the SDKs available here. 2025-05-27 23:20:46 +08:00
roytam1
e72f8a3a81 Merge remote-tracking branch 'origin/tracking' into custom 2025-05-14 14:36:05 +08:00
Brian Smith
e8b3077d4f No Issue - Fixes for building with LLVM 19 included with FreeBSD 13.5. Fix a conflict with libc++ 19 and the old Mozilla (re)alloc macros. LLVM 18+ does not allow std::char_traits<unsigned char> so avoid it. https://bugzilla.mozilla.org/show_bug.cgi?id=1849070 Partial NSS upgrade to replace ByteString with a class. https://bugzilla.mozilla.org/show_bug.cgi?id=1851092 2025-05-14 14:20:07 +08:00
roytam1
310c05b97a Merge remote-tracking branch 'origin/tracking' into custom 2024-11-21 21:09:29 +08:00
Moonchild
ef5f052d97 Issue #2657 - Remove -moz-samplesize resize-decoding for low-vram mobiles
Resolves #2657
2024-11-21 21:08:24 +08:00
roytam1
4397f384a7 Merge remote-tracking branch 'origin/tracking' into custom 2024-10-31 21:48:26 +08:00
Moonchild
8d536c0cc7 Issue #2646 - Parse "variations" keywords.
Resolves #2646
2024-10-31 21:47:14 +08:00
roytam1
d27ddaffd7 Merge remote-tracking branch 'origin/tracking' into custom 2024-08-05 10:39:53 +08:00
Nia Alarie
a023a81fef Fix loading libGL on NetBSD
The unversioned libGL is preferred on OpenBSD and NetBSD because
both (a) always install it (b) have forks of X11 with different
ABI versions.  However, many Linux distributions do not ship
unversioned .so symlinks unless you install -dev packages.

Unfortunately also needs to be fixed in ANGLE which has the same
problem.
2024-08-05 10:39:06 +08:00
Moonchild
5c509ea6ce Issue #1925 - Replace RectCorner with Corner. 2024-08-05 10:38:49 +08:00
Moonchild
c096b46278 Issue #1925 - Convert NS_SIDE_TO_HALF_CORNER to a constexpr function. 2024-08-05 10:38:32 +08:00
Moonchild
2a399b60a1 Issue #1925 - Convert NS_SIDE_TO_FULL_CORNER to a constexpr function. 2024-08-05 10:38:17 +08:00
Moonchild
b0b13b8719 Issue #1925 - Convert NS_SIDE_IS_VERTICAL to a constexpr function. 2024-08-05 10:38:00 +08:00
Moonchild
8a2bc8ef4d Issue #1925 - Convert NS_FULL_TO_HALF_CORNER to a constexpr function.
Note: Because the new function checks types, we need to change the
fullCorner type in `nsComputedDOMStyle::GetEllipseRadii()` and
`StyleAnimationValue::ExtractComputedValue()` to `Corner` instead of the
underlying base type.
2024-08-05 10:35:50 +08:00
Moonchild
31badb0f2e Issue #1925 - Convert NS_HALF_TO_FULL_CORNER to a constexpr function. 2024-08-05 10:35:29 +08:00
Moonchild
f507d2cdbc Issue #1925 - Convert NS_HALF_CORNER_IS_X to a constexpr function. 2024-08-05 10:35:13 +08:00
Moonchild
1730199755 Issue #1925 - Move NS_FOR_CSS_HALF_CORNER to gfx/2d/Types.h and rewrite it. 2024-08-05 10:34:47 +08:00
Moonchild
8dc8875db6 Issue #1925 - Convert half-corner index macros to an enum. 2024-08-05 10:34:31 +08:00
Moonchild
d73f8c2e84 Issue #1925 - Remove use of NS_CORNER_{TOP|BOTTOM}_{LEFT|RIGHT} macros. 2024-08-05 10:34:15 +08:00
Moonchild
0a7f42b452 Issue #1925 - Rewrite NS_FOR_CSS_CORNERS to be similar to *_SIDES
- Renames it to NS_CSS_FULL_CORNERS and uses the one macro for all full
  corners. In preparation for giving half corners the same treatment.
- Swaps to prefix operator++
2024-08-05 10:33:54 +08:00
Moonchild
b3a51c2711 Issue #1925 - Move Corner enum from mozilla::css to mozilla namespace. 2024-08-05 10:33:38 +08:00
Moonchild
bdb12f10e3 Issue #1925 - Move NS_FOR_CSS_CORNERS and enum to gfx/2d/Types.h. 2024-08-05 10:32:40 +08:00
Moonchild
3a153f32e3 Issue #1925 - Change Side's operator++ from postfix to prefix.
The postfix operator++ was actually incorrectly implemented (the
implementation is a prefix version). Since it's only used in the adjacent
macro, there's no risk with this change to correct that.
2024-08-05 10:32:24 +08:00
Moonchild
ec7351a5d4 Issue #1925 - Remove use of NS_SIDE_* macros. 2024-08-05 10:31:46 +08:00
Moonchild
e6e2796541 Issue #1925 - Remove mozilla::css::Side typedef. 2024-08-05 10:30:50 +08:00
Moonchild
5b0921df6e Issue #1925 - Move NS_FOR_CSS_SIDES and operator++ to gfx/2d/Types.h 2024-08-05 10:30:33 +08:00
roytam1
a2f81bc791 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-17 16:15:30 +08:00
Richard-Rogalski
b73f500c04 PR #2530 - Fix altivec code, fix building for PPC
Altivec code was previously uncompilable, and the altivec accelerations
also could not be disabled with a build flag or env variable, leading
to pale moon not being buildable on any altivec supported CPU ( all
PPC CPUs ever almost ). Why? I don't know, 'inline' in C is cursed
and making it static makes it significantly less so.

Closes: https://forum.palemoon.org/viewtopic.php?f=5&t=31108&p=252462#p252462
Signed-off-by: Richard Rogalski <rrogalski@firemail.cc>
2024-06-17 16:10:19 +08:00
roytam1
f8f3b3ee43 Merge remote-tracking branch 'origin/tracking' into custom 2024-05-22 15:26:11 +08:00
Moonchild
7d2ecc13dd [gfx] Use calloc for cairo font-creation functions. 2024-05-22 15:22:50 +08:00
Moonchild
7672f932f7 [gfx] Ensure font entry's unitsPerEm and font extents are initialized when gfxFont is created. 2024-05-22 15:22:23 +08:00
Moonchild
552cd74b08 [gfx] Clear mSharedBlobData if blob creation failed. 2024-05-22 15:21:23 +08:00
roytam1
552db66da0 Merge remote-tracking branch 'origin/tracking' into custom 2024-04-19 09:37:04 +08:00
Moonchild
9b6c2f36f1 [gfx] Pull several OTS fixes from upstream to improve data safety.
- Don't check STAT designAxisSize if the designAxisCount is zero.
- Avoid potential arithmetic overflow during Buffer read operations.
- Use more careful range checks in STAT parsing.
2024-04-19 09:35:17 +08:00
roytam1
aed4ca8fc5 Merge remote-tracking branch 'origin/tracking' into custom 2024-04-16 15:16:58 +08:00
Moonchild
07cc276a10 Issue #2470 - Check for failure of getting IDXGIKeyedMutex. 2024-04-16 14:52:01 +08:00
roytam1
a944026bae Merge remote-tracking branch 'origin/tracking' into custom 2024-04-02 22:57:21 +08:00
Andy
0d07d4377a Issue #2492 - Don't Assume System Font for Emojis with Suffixes
A few dozen Emojis use otherwise general font characters in the lower codepages.
Luckily, the Emoji codepages always include either a VS16 or KeyCap suffix.
2024-04-02 22:55:06 +08:00
Andy
69f3b4e199 Issue #2492 - Standardized use of Emoji Character Properties
Detection of Emoji Components, for use as suffixes of TextDefault.
Detection of Non-Presentation Emojis as TextDefault.
Detection of all Extended Pictographics as EmojiDefault.
2024-04-02 22:54:46 +08:00
FranklinDM
4bf43b8fb4 Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class 2024-04-02 22:49:48 +08:00
FranklinDM
656ee639c5 Issue #2112 - Part 1: Remove Stylo tests 2024-04-02 22:29:48 +08:00
roytam1
523b9df9db Merge remote-tracking branch 'origin/tracking' into custom 2024-02-08 14:34:40 +08:00
Moonchild
6d1bf36717 Issue #2465 - Do not use our in-tree metrics hints if using system-cairo
Use a somewhat equivalent font-options instance when using the
system-supplied cairo lib, instead of our in-tree extension.

Resolves #2465
2024-02-08 14:30:30 +08:00
roytam1
35252384aa Merge remote-tracking branch 'origin/tracking' into custom 2024-01-25 12:22:19 +08:00
Geoff Lang
580e04c8a8 [gfx] Cherry-pick chromium:1864587 2024-01-25 12:12:43 +08:00
roytam1
0ac8b08be1 gfx: fix d3d9 part call to `DXGIYCbCrTextureData::Create()' in Issue #2393 - Part 2. 2023-11-30 10:49:49 +08:00