Skip to content


Browse files Browse the repository at this point in the history
style: Treat 3d translate/scale as 2d if the value can be expressed a…
…s 2d.

For the individual transform properties if they spec a value that can be
expressed as 2d we treat as 2d and serialize accordingly.

We drop Translate::Translate and Scale::Scale, and then rename
Translate::Translate3D as Translate::Translate, Scale::Scale3D as
Scale::Scale. So now we use Translate::Translate to represent 2d and 3d
translation, and Scale::Scale to represent 2d and 3d scale. There is no
difference between 2d and 3d translate/scale in Gecko because we always
convert them into 3d format to layers (on the compositor thread), so this
change makes things simpler.

Differential Revision:
  • Loading branch information
BorisChiou authored and emilio committed Nov 30, 2019
1 parent bb06ed7 commit b420293
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 154 deletions.

0 comments on commit b420293

Please sign in to comment.