summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-06-15 18:27:24 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-15 18:27:24 -0700
commitab03dc86489826ee11774d136453cfc86ec9ac1b (patch)
tree8cae856273609af2d93f80bf83eaa2f36fccaaf1
parentc76dcf83460116fb39cfb33637de964cd171b64f (diff)
parentab19ca49906518c0d8eacb32a3897682f11335b0 (diff)
downloadexternal_webkit-ab03dc86489826ee11774d136453cfc86ec9ac1b.zip
external_webkit-ab03dc86489826ee11774d136453cfc86ec9ac1b.tar.gz
external_webkit-ab03dc86489826ee11774d136453cfc86ec9ac1b.tar.bz2
Merge "Set appropriate initial viewport bounds."
-rw-r--r--Source/WebKit/android/jni/WebCoreViewBridge.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebKit/android/jni/WebCoreViewBridge.h b/Source/WebKit/android/jni/WebCoreViewBridge.h
index f247602..b04a0f9 100644
--- a/Source/WebKit/android/jni/WebCoreViewBridge.h
+++ b/Source/WebKit/android/jni/WebCoreViewBridge.h
@@ -38,7 +38,14 @@ namespace WebCore
class WebCoreViewBridge : public WebCoreRefObject {
public:
- WebCoreViewBridge() { }
+ WebCoreViewBridge()
+ {
+ m_bounds.setWidth(320);
+ m_bounds.setHeight(240);
+ m_visibleBounds = m_bounds;
+ m_windowBounds = m_bounds;
+ }
+
virtual ~WebCoreViewBridge() { }
virtual void draw(WebCore::GraphicsContext* ctx,