| Index: Source/core/page/CreateWindow.cpp
|
| diff --git a/Source/core/page/CreateWindow.cpp b/Source/core/page/CreateWindow.cpp
|
| index 2f0d7df60d35cd15954a226502465952e39899f0..4a3d75559a11f06f9544614d7d39fd78f4df6fbd 100644
|
| --- a/Source/core/page/CreateWindow.cpp
|
| +++ b/Source/core/page/CreateWindow.cpp
|
| @@ -100,8 +100,8 @@ static LocalFrame* createWindow(LocalFrame& openerFrame, LocalFrame& lookupFrame
|
| // specify the size of the viewport. We can only resize the window, so adjust
|
| // for the difference between the window size and the viewport size.
|
|
|
| - FloatRect windowRect = host->chrome().windowRect();
|
| - FloatSize viewportSize = host->chrome().pageRect().size();
|
| + IntRect windowRect = host->chrome().windowRect();
|
| + IntSize viewportSize = host->chrome().pageRect().size();
|
|
|
| if (features.xSet)
|
| windowRect.setX(features.x);
|
| @@ -112,8 +112,8 @@ static LocalFrame* createWindow(LocalFrame& openerFrame, LocalFrame& lookupFrame
|
| if (features.heightSet)
|
| windowRect.setHeight(features.height + (windowRect.height() - viewportSize.height()));
|
|
|
| - // Ensure non-NaN values, minimum size as well as being within valid screen area.
|
| - FloatRect newWindowRect = LocalDOMWindow::adjustWindowRect(frame, windowRect);
|
| + // Ensure minimum size as well as being within valid screen area.
|
| + IntRect newWindowRect = LocalDOMWindow::adjustWindowRect(frame, windowRect);
|
|
|
| host->chrome().setWindowRect(newWindowRect);
|
| host->chrome().show(policy);
|
|
|