style: Convert RGBA to AbsoluteColor for computed/animated/resolved CSS colors

Computed color values will not be in the correct format, closer to the
one specified by the author.  This also means that colors accross the
code are stored now as AbsoluteColor or StyleAbsoluteColor.  This allows
color space/gamut information to be available for use.

Some animation related test failures had to be changed, because colors
now has greater precision.  Animated a color now causes a lot more
animation updates, which was not initially expected.  See the bug for
discussion.

Differential Revision: https://phabricator.services.mozilla.com/D171021
This commit is contained in:
Tiaan Louw 2023-03-07 11:28:15 +00:00 committed by Martin Robinson
parent 3763d9a6cc
commit 8c1c4073e2
19 changed files with 233 additions and 258 deletions

View file

@ -224,7 +224,6 @@ impl_trivial_to_shmem!(
usize
);
impl_trivial_to_shmem!(cssparser::RGBA);
impl_trivial_to_shmem!(cssparser::SourceLocation);
impl_trivial_to_shmem!(cssparser::TokenSerializationType);