Skip to content
Browse files

style: Set WillChangeBits::TRANSFORM for individual transform.

We always check StyleWillChangeBits_TRANSFORM bit together with a
transform-like property set, so using WillChangeBits::TRANSFORM bit to
represent all transform-like properties is ok.

However, it seems the new test case works well even if we don't have this
patch. I still add it for individual transform properties to make sure
the test coverage is enough anyway.

Differential Revision:
  • Loading branch information...
BorisChiou authored and emilio committed Sep 30, 2019
1 parent 4a97d6f commit 19ddfd57d5d43e128235a5e93a33b2ec3aeae9c4
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/style/values/specified/
@@ -1153,7 +1153,9 @@ bitflags! {
fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits {
let mut flags = match longhand {
LonghandId::Opacity => WillChangeBits::OPACITY,
LonghandId::Transform => WillChangeBits::TRANSFORM,
LonghandId::Transform | LonghandId::Translate | LonghandId::Rotate | LonghandId::Scale => {
_ => WillChangeBits::empty(),

0 comments on commit 19ddfd5

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