gecko-dev/xpcom/ds
CanadaHonk 2d520652e0 Bug 1794628 - Implement inverted-colors media feature r=geckoview-reviewers,morgan,emilio,m_kato,cmartin
Implemented the inverted-colors media feature from Media Queries Level 5
for all platforms.
Spec: https://drafts.csswg.org/mediaqueries-5/#inverted

Platform specific implementations:
- Windows: Checks system color filter setting, and if it is inverted
  (note: Windows does not live update due to having to read a reg key)
- Mac: Checks dedicated inverted accessibility system setting
- Android: Checks dedicated inverted system setting
- Linux: No GTK API exposes anything like it so always none

Locked behind new pref `layout.css.inverted-colors.enabled`,
always off by default for now.

Also added new WPT tests (none previously).

Other browsers:
- WebKit: shipped since Safari 9.1 (Jan 2017)
- Blink: no signal

Test page: https://goose.icu/inverted-colors

Differential Revision: https://phabricator.services.mozilla.com/D173201
2023-04-11 13:34:00 +00:00
..
test Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD 2022-11-22 13:37:48 +00:00
tools Bug 1793463 - Part 3: Handle non-bytes keys more consistently in perfecthash, r=emilio 2022-12-01 15:43:18 +00:00
ArenaAllocator.h
ArenaAllocatorExtensions.h
ArrayAlgorithm.h
ArrayIterator.h
Atom.py
AtomArray.h
Dafsa.cpp
Dafsa.h
HTMLAtoms.py
IncrementalTokenizer.cpp
IncrementalTokenizer.h
Observer.h
PLDHashTable.cpp Bug 1733729: Fix non-unified build bustage in xpcom directory. r=mccr8 2021-10-05 00:29:56 +00:00
PLDHashTable.h Bug 1778259 - Attach the correct comments to PLDHashTable::ShallowSizeOf.. r=xpcom-reviewers,jstutte DONTBUILD 2022-07-06 11:07:17 +00:00
PerfectHash.h
SimpleEnumerator.h
StaticAtoms.py Bug 1794628 - Implement inverted-colors media feature r=geckoview-reviewers,morgan,emilio,m_kato,cmartin 2023-04-11 13:34:00 +00:00
StickyTimeDuration.h Bug 1660405 - Move away from mozilla::IsInfinite in favor of std::isinf. r=nbp,media-playback-reviewers,alwu 2023-03-22 11:35:34 +00:00
Tokenizer.cpp Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi 2021-12-13 21:47:56 +00:00
Tokenizer.h
components.conf Bug 1789902 - Part 2: Use XPCOM static components instead of Services in Rust, r=xpcom-reviewers,necko-reviewers,barret,valentin 2022-09-13 13:47:13 +00:00
moz.build Bug 1812753 - Move xpcom/ds/MruCache.h to mfbt/, r=glandium 2023-01-31 17:59:25 +00:00
nsArray.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsArray.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsArrayEnumerator.cpp
nsArrayEnumerator.h
nsArrayUtils.cpp
nsArrayUtils.h
nsAtom.h Bug 1823397, Add nsAutoAtom*String, r=emilio 2023-03-20 13:56:00 +00:00
nsAtomTable.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsAtomTable.h Bug 1800582 - Don't count atoms in the a11y cache r=Jamie 2022-11-16 09:55:27 +00:00
nsBaseHashtable.h
nsCOMArray.cpp
nsCOMArray.h
nsCRT.cpp
nsCRT.h Bug 1709559 - Avoid using PL_str implementations when fuzzing network. r=valentin,necko-reviewers,xpcom-reviewers,KrisWright 2021-05-05 18:09:28 +00:00
nsCharSeparatedTokenizer.cpp Bug 1772006 - Part 8: Allow building xpcom/string without unified builds, r=xpcom-reviewers,barret 2022-07-30 00:12:49 +00:00
nsCharSeparatedTokenizer.h
nsCheapSets.h
nsClassHashtable.h
nsDeque.cpp
nsDeque.h
nsEnumeratorUtils.cpp
nsEnumeratorUtils.h
nsExpirationTracker.h
nsGkAtoms.cpp
nsGkAtoms.h Bug 1704658: Implement ParamTraits for RefPtr<nsAtom> r=nika 2021-04-27 08:20:18 +00:00
nsHashKeys.h Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi 2021-12-13 21:47:56 +00:00
nsHashPropertyBag.cpp Bug 1738927 - Create nsSimpleHashPropertyBag for non-main thread usage; r=xpcom-reviewers,janv,mccr8 2021-11-08 12:02:40 +00:00
nsHashPropertyBag.h Bug 1738927 - Create nsSimpleHashPropertyBag for non-main thread usage; r=xpcom-reviewers,janv,mccr8 2021-11-08 12:02:40 +00:00
nsHashtablesFwd.h Bug 1727422 - Support arbitrary integer keys in nsTHashMap, r=xpcom-reviewers,mccr8 2021-08-25 16:31:08 +00:00
nsIArray.idl
nsIArrayExtensions.idl
nsIINIParser.idl Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag 2022-09-28 13:17:41 +00:00
nsIMutableArray.idl
nsINIParserImpl.cpp Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag 2022-09-28 13:17:41 +00:00
nsINIParserImpl.h Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika 2022-06-30 09:12:16 +00:00
nsIObserver.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIObserverService.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIPersistentProperties.h
nsIPersistentProperties2.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIProperties.idl
nsIProperty.idl
nsIPropertyBag.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIPropertyBag2.idl
nsISerializable.idl
nsISimpleEnumerator.idl
nsIStringEnumerator.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsISupportsIterators.idl
nsISupportsPrimitives.idl
nsIVariant.idl
nsIWindowsRegKey.idl
nsIWritablePropertyBag.idl
nsIWritablePropertyBag2.idl
nsInterfaceHashtable.h
nsMathUtils.h
nsObserverList.cpp
nsObserverList.h
nsObserverService.cpp Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana 2022-07-25 20:19:48 +00:00
nsObserverService.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsPersistentProperties.cpp Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsPersistentProperties.h Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsPointerHashKeys.h
nsProperties.cpp Bug 1733308 - Fix non-unified builds errors in xpcom/ds. r=xpcom-reviewers,mccr8 2021-10-01 01:49:17 +00:00
nsProperties.h
nsQuickSort.cpp
nsQuickSort.h
nsRefCountedHashtable.h
nsRefPtrHashtable.h
nsSimpleEnumerator.cpp
nsSimpleEnumerator.h
nsStaticAtomUtils.h
nsStaticNameTable.cpp
nsStaticNameTable.h
nsStringEnumerator.cpp
nsStringEnumerator.h
nsSupportsPrimitives.cpp Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika 2022-09-28 15:17:46 +00:00
nsSupportsPrimitives.h
nsTArray-inl.h Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
nsTArray.cpp Bug 1624717 - Copy release mode bounds checking from nsTArray to Array r=glandium 2021-09-09 13:29:18 +00:00
nsTArray.h Bug 1800496 - Re-introduce ArrayView; r=asuth 2022-11-18 10:02:28 +00:00
nsTArrayForwardDeclare.h
nsTHashMap.h Bug 1727422 - Support arbitrary integer keys in nsTHashMap, r=xpcom-reviewers,mccr8 2021-08-25 16:31:08 +00:00
nsTHashSet.h
nsTHashtable.h
nsTObserverArray.cpp
nsTObserverArray.h Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
nsTPriorityQueue.h
nsVariant.cpp Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot 2023-03-22 11:35:33 +00:00
nsVariant.h
nsWhitespaceTokenizer.h
nsWindowsRegKey.cpp Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsWindowsRegKey.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00