style: Set WillChangeBits::TRANSFORM for offset-path and add tests for it.

Differential Revision: https://phabricator.services.mozilla.com/D53109
This commit is contained in:
Boris Chiou 2019-11-16 01:52:32 +00:00 committed by Emilio Cobos Álvarez
parent b420293a57
commit 45c64a7224
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -1151,7 +1151,9 @@ fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits {
LonghandId::Opacity => WillChangeBits::OPACITY,
LonghandId::Transform => WillChangeBits::TRANSFORM,
#[cfg(feature = "gecko")]
LonghandId::Translate | LonghandId::Rotate | LonghandId::Scale => WillChangeBits::TRANSFORM,
LonghandId::Translate | LonghandId::Rotate | LonghandId::Scale | LonghandId::OffsetPath => {
WillChangeBits::TRANSFORM
}
_ => WillChangeBits::empty(),
};