servo/components/style/properties
Oriol Brufau 7ec4c53266 style: Fix style containment not triggered by 'contain'
'container-type' and 'content-visibility' can trigger various kinds of
containment, but this was done via nsStyleDisplay::EffectiveContainment,
to avoid affecting the computed value of 'contain'.

This was fine except for style containment, which needs to set the flag
SELF_OR_ANCESTOR_HAS_CONTAIN_STYLE in order to really work, but this was
only done with 'contain: style'.

So this patch removes nsStyleDisplay::EffectiveContainment, and instead
uses two fields for containment: mContain and mEffectiveContainment.
This is somewhat analogous to mDisplay and mOriginalDisplay, though in
that case the computed value is the modified display.

Also fixes a typo in IsContainStyle() that made it return true for any
kind of containment, not just for style containment.

Differential Revision: https://phabricator.services.mozilla.com/D163779
2023-11-04 08:17:09 +01:00
..
helpers Implement support for the drop-shadow filter (#30439) 2023-10-04 11:32:45 +00:00
longhands style: Alias -webkit-clip-path to clip-path for webcompat 2023-11-04 08:17:09 +01:00
shorthands style: Remove non-standard and unused system font values 2023-11-04 08:17:09 +01:00
build.py Make the choice of layout runtime setting 2023-07-06 14:49:24 +02:00
cascade.rs style: Allow propagating computed style bits from the selector-matching process 2023-11-03 08:59:49 +01:00
computed_value_flags.rs style: Allow propagating computed style bits from the selector-matching process 2023-11-03 08:59:49 +01:00
counted_unknown_properties.py style: Alias -webkit-clip-path to clip-path for webcompat 2023-11-04 08:17:09 +01:00
data.py style: Remove system font support for various font longhands 2023-11-03 08:59:49 +01:00
declaration_block.rs style: Add support for the revert-layer keyword 2023-06-09 10:22:22 +02:00
gecko.mako.rs style: Fix style containment not triggered by 'contain' 2023-11-04 08:17:09 +01:00
helpers.mako.rs Further changes required by Servo 2023-11-03 08:59:49 +01:00
Mako-1.1.2-py2.py3-none-any.whl style: Update mako in the style system. 2020-04-16 16:35:07 +02:00
properties.html.mako Generate apis.html and css-properties.json for docs as part of crates’ build scripts 2019-07-30 08:37:33 +02:00
properties.mako.rs style: Exclude 'size' from the 'all' shorthand 2023-11-04 08:17:09 +01:00