Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Unified Diff: webkit/tools/test_shell/webview_host_mac.mm

Issue 10666002: Enable CSS grid layout in test_shell to ease development. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/webview_host_gtk.cc ('k') | webkit/tools/test_shell/webview_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webview_host_mac.mm
diff --git a/webkit/tools/test_shell/webview_host_mac.mm b/webkit/tools/test_shell/webview_host_mac.mm
index 98ce43f0afbf8d827c48f272f5fe5c424d467999..cabe00e8e921e9151c91a64dd9849a16166f7d7f 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)));
« no previous file with comments | « webkit/tools/test_shell/webview_host_gtk.cc ('k') | webkit/tools/test_shell/webview_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698