Auto merge of #19621 - sbwtw:using_variable, r=jdm

using local variable instead of a function call.

the data of `frame_size` is already storage into variable `new_frame_size`

<!-- 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/19621)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-12-21 08:53:21 -06:00 committed by GitHub
commit a15cecb3f7

View file

@ -674,7 +674,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
return;
}
self.frame_size = self.window.framebuffer_size();
self.frame_size = new_frame_size;
self.window_rect = new_window_rect;
self.send_window_size(WindowSizeType::Resize);