| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| index 236fb0884bb753694f82dc9af222848015650eb5..94a1cc2c8bce20bbdc56a50ca37debbb241b9249 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| @@ -2027,14 +2027,14 @@ gfx::Rect DesktopWindowTreeHostX11::GetWorkAreaBoundsInPixels() const {
|
|
|
| gfx::Rect DesktopWindowTreeHostX11::ToDIPRect(
|
| const gfx::Rect& rect_in_pixels) const {
|
| - gfx::RectF rect_in_dip = rect_in_pixels;
|
| + gfx::RectF rect_in_dip = gfx::RectF(rect_in_pixels);
|
| GetRootTransform().TransformRectReverse(&rect_in_dip);
|
| return gfx::ToEnclosingRect(rect_in_dip);
|
| }
|
|
|
| gfx::Rect DesktopWindowTreeHostX11::ToPixelRect(
|
| const gfx::Rect& rect_in_dip) const {
|
| - gfx::RectF rect_in_pixels = rect_in_dip;
|
| + gfx::RectF rect_in_pixels = gfx::RectF(rect_in_dip);
|
| GetRootTransform().TransformRect(&rect_in_pixels);
|
| return gfx::ToEnclosingRect(rect_in_pixels);
|
| }
|
|
|