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

Unified Diff: webkit/glue/webpreferences.cc

Issue 7034052: Linux/CrOS smooth scrolling support - behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« chrome/common/chrome_switches.cc ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpreferences.cc
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 79ca2fa5ddd20bce683322303dbf9f2f5cc09116..ac4e843e794489669b22e05ff8e1249f6ffc9850 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -80,7 +80,8 @@ WebPreferences::WebPreferences()
interactive_form_validation_enabled(true),
fullscreen_enabled(false),
allow_displaying_insecure_content(true),
- allow_running_insecure_content(false) {
+ allow_running_insecure_content(false),
+ enable_scroll_animator(false) {
}
WebPreferences::~WebPreferences() {
@@ -229,4 +230,7 @@ void WebPreferences::Apply(WebView* web_view) const {
settings->setFullScreenEnabled(fullscreen_enabled);
settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
+#if defined(ENABLE_SMOOTH_SCROLLING)
darin (slow to review) 2011/05/31 20:40:24 we normally do not use WebKit ENABLE_ macros in ch
Scott Byer 2011/05/31 21:02:45 If I leave it unprotected, the compile breaks unti
+ settings->setEnableScrollAnimator(enable_scroll_animator);
+#endif
}
« chrome/common/chrome_switches.cc ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698