Index: android_webview/native/aw_contents.cc |
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc |
index 6b6752559922a5aab51d0eb4ec2d948ad38fec86..b02daaf8bcece8cf6b9453ff2f3a4071b85bcf08 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -146,9 +146,6 @@ AwContents::AwContents(scoped_ptr<WebContents> web_contents) |
AwAutofillManagerDelegate::FromWebContents(web_contents_.get()); |
if (autofill_manager_delegate) |
InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData()); |
- |
- web_contents_->GetMutableRendererPrefs()->tap_multiple_targets_strategy = |
- content::TAP_MULTIPLE_TARGETS_STRATEGY_NONE; |
} |
void AwContents::SetJavaPeers(JNIEnv* env, |
@@ -214,6 +211,15 @@ void AwContents::InitAutofillIfNecessary(bool enabled) { |
AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER); |
} |
+void AwContents::SetAndroidWebViewRendererPrefs() { |
boliu
2013/08/29 16:29:59
What calls this and when is it called? Can we guar
benm (inactive)
2013/08/29 16:31:51
Oops, cherry pick fail! please see next PS!
On 20
|
+ content::RendererPreferences* prefs = |
+ web_contents_->GetMutableRendererPrefs(); |
+ prefs->tap_multiple_targets_strategy = |
+ content::TAP_MULTIPLE_TARGETS_STRATEGY_NONE; |
+ prefs->hinting = content::RENDERER_PREFERENCES_HINTING_SLIGHT; |
+ web_contents_->GetRenderViewHost()->SyncRendererPrefs(); |
+} |
+ |
void AwContents::SetAwAutofillManagerDelegate(jobject delegate) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |