mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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.
This commit is contained in:
parent
6ce4e62e11
commit
4777a39479
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue