mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
'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 |
||
---|---|---|
.. | ||
helpers | ||
longhands | ||
shorthands | ||
build.py | ||
cascade.rs | ||
computed_value_flags.rs | ||
counted_unknown_properties.py | ||
data.py | ||
declaration_block.rs | ||
gecko.mako.rs | ||
helpers.mako.rs | ||
Mako-1.1.2-py2.py3-none-any.whl | ||
properties.html.mako | ||
properties.mako.rs |