Skip to content
Permalink
Browse files

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 16, 2019
1 parent b420293 commit 45c64a7224c3926a5c4de2af93f0ea6c731ca358
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/style/values/specified/box.rs
@@ -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(),
};

0 comments on commit 45c64a7

Please sign in to comment.
You can’t perform that action at this time.