aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@mozilla.com>2014-07-04 00:42:40 -0700
committerCameron Zwarich <zwarich@mozilla.com>2014-07-04 00:42:40 -0700
commit4777a3947916133e0105433956b73efd7f7a2fd6 (patch)
tree2e4deb50a674f1948b9d3c4151ffd3f2552257d2 /src
parent6ce4e62e113639dc74ea638751a701a9ada93b71 (diff)
downloadservo-4777a3947916133e0105433956b73efd7f7a2fd6.tar.gz
servo-4777a3947916133e0105433956b73efd7f7a2fd6.zip
Stop calling Scene::set_transform
The Scene::set_transform method was only introduced because of an old rustc bug around mutating properties across crates. Now that the rustc bug is fixed, we can stop calling this method.
Diffstat (limited to 'src')
-rw-r--r--src/components/compositing/compositor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/compositing/compositor.rs b/src/components/compositing/compositor.rs
index 5c47064279d..f91cde8f1fd 100644
--- a/src/components/compositing/compositor.rs
+++ b/src/components/compositing/compositor.rs
@@ -674,7 +674,7 @@ impl IOCompositor {
fn update_zoom_transform(&mut self) {
let scale = self.device_pixels_per_page_px();
- self.scene.set_transform(identity().scale(scale.get(), scale.get(), 1f32));
+ self.scene.transform = identity().scale(scale.get(), scale.get(), 1f32);
}
fn on_zoom_window_event(&mut self, magnification: f32) {