summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-05-26 14:18:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-05-26 14:18:38 -0700
commit6df7a6f6621fd9b786d0d5823ca10533c12c2f66 (patch)
tree717ef2de6cfbb881afe93b94003712f96b7d9b61 /WebKit/android
parent9c5d29908efab71c0c545f5fdeff610e2fd4573c (diff)
parent299511d537b620ede57a2bff60a8f27d3c935815 (diff)
downloadexternal_webkit-6df7a6f6621fd9b786d0d5823ca10533c12c2f66.zip
external_webkit-6df7a6f6621fd9b786d0d5823ca10533c12c2f66.tar.gz
external_webkit-6df7a6f6621fd9b786d0d5823ca10533c12c2f66.tar.bz2
Merge "Refix http://b/issue?id=2509597."
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index ead81e0..c8d9d4b 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -40,7 +40,6 @@
#include "GraphicsLayerAndroid.h"
#include "Icon.h"
#include "Page.h"
-#include "Screen.h"
#include "ScriptController.h"
#include "WebCoreFrameBridge.h"
#include "WebCoreViewBridge.h"
@@ -171,10 +170,10 @@ Page* ChromeClientAndroid::createWindow(Frame* frame, const FrameLoadRequest&,
return frame->page();
#endif
- WTF::PassRefPtr<WebCore::Screen> screen = WebCore::Screen::create(frame);
+ const WebCoreViewBridge* bridge = frame->view()->platformWidget();
bool dialog = features.dialog || !features.resizable
- || (features.heightSet && features.height < screen.get()->height()
- && features.widthSet && features.width < screen.get()->width())
+ || (features.heightSet && features.height < bridge->height()
+ && features.widthSet && features.width < bridge->width())
|| (!features.menuBarVisible && !features.statusBarVisible
&& !features.toolBarVisible && !features.locationBarVisible
&& !features.scrollbarsVisible);