diff options
author | Nazım Can Altınova <canaltinova@gmail.com> | 2017-12-15 10:26:23 -0600 |
---|---|---|
committer | Nazım Can Altınova <canaltinova@gmail.com> | 2017-12-18 11:58:06 -0600 |
commit | 9882d0bae5eba3820c6231858ae73ef2396f2cb9 (patch) | |
tree | da4036fadac621a3d56b1d5dd0c231671279919d /components/layout/flow.rs | |
parent | 3ad2687c0b21227ef41702599f1f5f85f4cb4884 (diff) | |
download | servo-9882d0bae5eba3820c6231858ae73ef2396f2cb9.tar.gz servo-9882d0bae5eba3820c6231858ae73ef2396f2cb9.zip |
style: Move text-align outside of the mako file.
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 e4841bd2e0f..c706516933b 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -654,7 +654,7 @@ impl FlowFlags { #[inline] pub fn set_text_align(&mut self, value: TextAlign) { *self = (*self & !FlowFlags::TEXT_ALIGN) | - FlowFlags::from_bits(value.to_u32() << TEXT_ALIGN_SHIFT).unwrap(); + FlowFlags::from_bits((value as u32) << TEXT_ALIGN_SHIFT).unwrap(); } #[inline] |