mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
commit
a15cecb3f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue