diff options
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/display_list_builder.rs | 2 | ||||
-rw-r--r-- | components/layout/layout_task.rs | 1 | ||||
-rw-r--r-- | components/layout/lib.rs | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index e97dca0c17b..7a6f3928aca 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1163,7 +1163,7 @@ impl FragmentDisplayListBuilding for Fragment { for operation in operations { let matrix = match operation { &transform::ComputedOperation::Rotate(ax, ay, az, theta) => { - let theta = f32::consts::PI_2 - theta.radians(); + let theta = 2.0f32 * f32::consts::PI - theta.radians(); Matrix4::create_rotation(ax, ay, az, theta) } &transform::ComputedOperation::Perspective(d) => { diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 172fcf2ed3f..35ffc56fa05 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -63,7 +63,6 @@ use std::collections::HashMap; use std::collections::hash_state::DefaultState; use std::mem::transmute; use std::ops::{Deref, DerefMut}; -use std::ptr; use std::sync::mpsc::{channel, Sender, Receiver, Select}; use std::sync::{Arc, Mutex, MutexGuard}; use style::computed_values::{filter, mix_blend_mode}; diff --git a/components/layout/lib.rs b/components/layout/lib.rs index 682b5ea3aec..01a544734de 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -6,7 +6,6 @@ #![feature(arc_unique)] #![feature(box_syntax)] #![feature(filling_drop)] -#![feature(float_consts)] #![feature(hashmap_hasher)] #![feature(heap_api)] #![feature(mpsc_select)] |