Fix Win32 build bustage from Screen/Page FloatRect conversion
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 May 2006 20:05:01 +0000 (20:05 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 May 2006 20:05:01 +0000 (20:05 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14649 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/bridge/win/PageWin.cpp
WebCore/platform/win/ScreenWin.cpp

index a46fdad4e10ab3063de35ca7185845f6dab0fb4b..b20c84d76819c0a7d575f456e7f079ac57576f75 100644 (file)
@@ -27,7 +27,7 @@
 #include "Page.h"
 
 #include "Frame.h"
-#include "IntRect.h"
+#include "FloatRect.h"
 #include <windows.h>
 
 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)
index 33633866382672d3e8df91aa60831b3991c25622..7657ee4e97e371587ec28eebffcae115745a7a61 100644 (file)
  * 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 <windows.h>
 
@@ -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;
 }