diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-11-02 17:02:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 17:02:07 -0500 |
commit | c494d25e24d515509a5d8bb86a30669ee01742b9 (patch) | |
tree | b95cc4c5e4fd38a2eed6b24e71b538ff62384915 /components/layout/flow.rs | |
parent | 92b49010b107ffd8be9169a1c979710338dc24c4 (diff) | |
parent | cb9645cd17b6e1ecdf6f3e63d47efa88433bb1fc (diff) | |
download | servo-c494d25e24d515509a5d8bb86a30669ee01742b9.tar.gz servo-c494d25e24d515509a5d8bb86a30669ee01742b9.zip |
Auto merge of #18750 - Manishearth:transform-generic, r=emilio,xidorn
Make transforms generic
This makes the specified and computed value of transform share a generic
backing enum.
This will eventually be a complete fix for
https://bugzilla.mozilla.org/show_bug.cgi?id=1391145 , and also
incidentally fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1405881
Currently WIP -- the generic transform exists and is used, but this
currently misses some animation and glue cases.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18750)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 9769f2070a4..c881817f398 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -291,7 +291,7 @@ pub trait Flow: HasBaseFlow + fmt::Debug + Sync + Send + 'static { } if !self.as_block().fragment.establishes_stacking_context() || - self.as_block().fragment.style.get_box().transform.0.is_none() { + self.as_block().fragment.style.get_box().transform.0.is_empty() { overflow.translate(&position.origin.to_vector()); return overflow; } |