Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style: Set WillChangeBits::TRANSFORM for offset-path and add tests fo…
…r it.

Differential Revision: https://phabricator.services.mozilla.com/D53109
  • Loading branch information
BorisChiou authored and emilio committed Nov 30, 2019
1 parent b420293 commit 45c64a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/style/values/specified/box.rs
Expand Up @@ -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(),
};

Expand Down

0 comments on commit 45c64a7

Please sign in to comment.