diff --git a/WebCore/bridge/win/PageWin.cpp b/WebCore/bridge/win/PageWin.cpp index a46fdad4e10ab3063de35ca7185845f6dab0fb4b..b20c84d76819c0a7d575f456e7f079ac57576f75 100644 --- a/WebCore/bridge/win/PageWin.cpp +++ b/WebCore/bridge/win/PageWin.cpp @@ -27,7 +27,7 @@ #include "Page.h" #include "Frame.h" -#include "IntRect.h" +#include "FloatRect.h" #include namespace WebCore { @@ -62,7 +62,7 @@ Widget* Page::widget() const return m_widget; } -IntRect Page::windowRect() const +FloatRect Page::windowRect() const { HWND windowHandle = rootWindowForFrame(mainFrame()); if (!windowHandle) @@ -72,7 +72,7 @@ IntRect Page::windowRect() const return rect; } -void Page::setWindowRect(const IntRect& r) +void Page::setWindowRect(const FloatRect& r) { HWND windowHandle = rootWindowForFrame(mainFrame()); if (!windowHandle) diff --git a/WebCore/platform/win/ScreenWin.cpp b/WebCore/platform/win/ScreenWin.cpp index 33633866382672d3e8df91aa60831b3991c25622..7657ee4e97e371587ec28eebffcae115745a7a61 100644 --- a/WebCore/platform/win/ScreenWin.cpp +++ b/WebCore/platform/win/ScreenWin.cpp @@ -23,9 +23,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include "Screen.h" #include "IntRect.h" +#include "FloatRect.h" #include "Widget.h" #include @@ -50,7 +52,7 @@ static MONITORINFOEX monitorInfoForWidget(Widget* widget) return info; } -IntRect WebCore::screenRect(Widget* widget) +FloatRect WebCore::screenRect(Widget* widget) { return monitorInfoForWidget(widget).rcMonitor; } @@ -64,7 +66,7 @@ int WebCore::screenDepth(Widget* widget) return deviceInfo.dmBitsPerPel; } -IntRect WebCore::usableScreenRect(Widget* widget) +FloatRect WebCore::usableScreenRect(Widget* widget) { return monitorInfoForWidget(widget).rcWork; }