mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
remove WindowMethods::size()
This commit is contained in:
parent
e25dd45139
commit
fef0506269
2 changed files with 2 additions and 8 deletions
|
@ -868,7 +868,7 @@ impl WindowMethods for Window {
|
|||
}
|
||||
|
||||
fn framebuffer_size(&self) -> DeviceUintSize {
|
||||
self.size().to_u32()
|
||||
(self.inner_size.get().to_f32() * self.hidpi_factor()).to_u32()
|
||||
}
|
||||
|
||||
fn window_rect(&self) -> DeviceUintRect {
|
||||
|
@ -877,10 +877,6 @@ impl WindowMethods for Window {
|
|||
DeviceUintRect::new(origin, size)
|
||||
}
|
||||
|
||||
fn size(&self) -> TypedSize2D<f32, DevicePixel> {
|
||||
self.inner_size.get().to_f32() * self.hidpi_factor()
|
||||
}
|
||||
|
||||
fn client_window(&self, _: BrowserId) -> (DeviceUintSize, DeviceIntPoint) {
|
||||
let (size, point) = match self.kind {
|
||||
WindowKind::Window(ref window, ..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue