diff options
-rw-r--r-- | webkit/tools/test_shell/webview_host_gtk.cc | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/webview_host_mac.mm | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/webview_host_win.cc | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/webview_host_gtk.cc b/webkit/tools/test_shell/webview_host_gtk.cc index 40b61fa..117da89 100644 --- a/webkit/tools/test_shell/webview_host_gtk.cc +++ b/webkit/tools/test_shell/webview_host_gtk.cc @@ -8,6 +8,7 @@ #include "base/logging.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" #include "ui/gfx/rect.h" #include "ui/gfx/size.h" #include "webkit/glue/webpreferences.h" @@ -30,6 +31,7 @@ WebViewHost* WebViewHost::Create(GtkWidget* parent_view, host->webwidget_ = WebView::create(delegate); host->webview()->setDevToolsAgentClient(dev_tools_client); prefs.Apply(host->webview()); + host->webview()->settings()->setExperimentalCSSGridLayoutEnabled(true); host->webview()->initializeMainFrame(delegate); host->webwidget_->layout(); diff --git a/webkit/tools/test_shell/webview_host_mac.mm b/webkit/tools/test_shell/webview_host_mac.mm index 98ce43f..cabe00e 100644 --- a/webkit/tools/test_shell/webview_host_mac.mm +++ b/webkit/tools/test_shell/webview_host_mac.mm @@ -9,6 +9,7 @@ #include "skia/ext/platform_canvas.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" #include "ui/gfx/rect.h" #include "ui/gfx/size.h" @@ -42,6 +43,7 @@ WebViewHost* WebViewHost::Create(NSView* parent_view, host->webwidget_ = WebView::create(delegate); host->webview()->setDevToolsAgentClient(dev_tools_client); prefs.Apply(host->webview()); + host->webview()->settings()->setExperimentalCSSGridLayoutEnabled(true); host->webview()->initializeMainFrame(delegate); host->webwidget_->resize(WebSize(NSWidth(content_rect), NSHeight(content_rect))); diff --git a/webkit/tools/test_shell/webview_host_win.cc b/webkit/tools/test_shell/webview_host_win.cc index f1f7842..c911b2d 100644 --- a/webkit/tools/test_shell/webview_host_win.cc +++ b/webkit/tools/test_shell/webview_host_win.cc @@ -4,6 +4,7 @@ #include "webkit/tools/test_shell/webview_host.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" #include "ui/base/win/hwnd_util.h" #include "ui/gfx/rect.h" @@ -44,6 +45,7 @@ WebViewHost* WebViewHost::Create(HWND parent_view, host->webwidget_ = WebView::create(delegate); host->webview()->setDevToolsAgentClient(dev_tools_client); prefs.Apply(host->webview()); + host->webview()->settings()->setExperimentalCSSGridLayoutEnabled(true); host->webview()->initializeMainFrame(delegate); return host; |