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..30fee70aec951a86cccfc6d0df8b0331fa022e13 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -147,8 +147,7 @@ AwContents::AwContents(scoped_ptr<WebContents> web_contents) |
if (autofill_manager_delegate) |
InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData()); |
- web_contents_->GetMutableRendererPrefs()->tap_multiple_targets_strategy = |
- content::TAP_MULTIPLE_TARGETS_STRATEGY_NONE; |
+ SetAndroidWebViewRendererPrefs(); |
} |
void AwContents::SetJavaPeers(JNIEnv* env, |
@@ -214,6 +213,15 @@ void AwContents::InitAutofillIfNecessary(bool enabled) { |
AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER); |
} |
+void AwContents::SetAndroidWebViewRendererPrefs() { |
+ 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(); |
boliu
2013/08/29 16:48:31
Hmm, I think we do have a RVH at this point, but n
benm (inactive)
2013/08/29 16:53:36
Yes, that's correct AFAIU. This doesn't crash, any
joth
2013/08/29 18:19:40
Sounds like AwRVHExt OnRVHCreated would be the pla
boliu
2013/08/29 18:26:08
Not really. When render view is created, the exist
benm (inactive)
2013/08/30 13:47:43
We could move to AWRHExt::OnRVCreated, - this is a
|
+} |
+ |
void AwContents::SetAwAutofillManagerDelegate(jobject delegate) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |