JavaScriptCore:
Reviewed by Maciej.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
Updated to include the right path.
* wtf/FastMalloc.h: #include Platform.h, since we use Platform macros.
WebCore:
Reviewed by Maciej.
Some Widget refactoring.
* WebCore.vcproj/WebCore/WebCore.vcproj:
* bridge/mac/FrameMac.mm:
* bridge/win/FrameWin.cpp:
(WebCore::FrameWin::runJavaScriptAlert):
(WebCore::FrameWin::runJavaScriptConfirm):
* bridge/win/PageWin.cpp:
(WebCore::Page::Page):
(WebCore::rootWindowForFrame):
* html/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::translate):
* page/FrameView.cpp:
(WebCore::FrameView::isFrameView):
* page/Page.h:
(WebCore::Page::setInstanceHandle):
(WebCore::Page::instanceHandle):
* platform/GraphicsContext.h:
* platform/ScrollView.h:
* platform/Widget.h:
* platform/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::translate):
(WebCore::GraphicsContext::origin):
* platform/mac/WidgetMac.mm:
(WebCore::Widget::clearFocus):
* platform/win/ResourceLoaderWin.cpp:
(WebCore::initializeOffScreenResourceLoaderWindow):
* platform/win/ScreenWin.cpp:
(WebCore::monitorInfo):
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::updateContents):
(WebCore::ScrollView::visibleWidth):
(WebCore::ScrollView::visibleHeight):
(WebCore::ScrollView::visibleContentRect):
(WebCore::ScrollView::viewportToContents):
(WebCore::ScrollView::contentsToViewport):
(WebCore::ScrollView::scrollBy):
(WebCore::ScrollView::updateScrollInfo):
(WebCore::ScrollView::updateScrollBars):
* platform/win/SharedTimerWin.cpp:
(WebCore::initializeOffScreenTimerWindow):
* platform/win/TemporaryLinkStubs.cpp:
(FrameView::updateBorder):
(ScrollView::paint):
(GraphicsContext::clip):
* platform/win/WidgetWin.cpp:
(WebCore::Widget::Widget):
(WebCore::Widget::parentWindow):
(WebCore::Widget::setParentWindow):
(WebCore::Widget::frameGeometry):
(WebCore::Widget::hasFocus):
(WebCore::Widget::setFocus):
(WebCore::Widget::show):
(WebCore::Widget::hide):
(WebCore::Widget::setFrameGeometry):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/win/ScreenWin.cpp b/WebCore/platform/win/ScreenWin.cpp
index 0a5cd0f..d4aeea5 100644
--- a/WebCore/platform/win/ScreenWin.cpp
+++ b/WebCore/platform/win/ScreenWin.cpp
@@ -28,6 +28,7 @@
#include "IntRect.h"
#include "FloatRect.h"
+#include "Frame.h"
#include "Page.h"
#include <windows.h>
@@ -45,7 +46,7 @@
static MONITORINFOEX monitorInfo(const Page* page)
{
- HMONITOR monitor = MonitorFromWindow(page->windowHandle(), MONITOR_DEFAULTTOPRIMARY);
+ HMONITOR monitor = MonitorFromWindow(page->mainFrame()->view()->containingWindow(), MONITOR_DEFAULTTOPRIMARY);
MONITORINFOEX info;
info.cbSize = sizeof(MONITORINFOEX);
GetMonitorInfo(monitor, &info);