Index: content/browser/browser_plugin/browser_plugin_embedder.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc |
index 930db2726a3e556f6b711610177a1f13c68d73da..9d76f97fed77e5d3afdf730e16ea835c762d4369 100644 |
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc |
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc |
@@ -97,8 +97,14 @@ void BrowserPluginEmbedder::NavigateGuest(RenderViewHost* render_view_host, |
guest->set_embedder_render_process_host( |
render_view_host->GetProcess()); |
- guest_web_contents->GetMutableRendererPrefs()-> |
- throttle_input_events = false; |
+ RendererPreferences* guest_renderer_prefs = |
+ guest_web_contents->GetMutableRendererPrefs(); |
+ // Copy renderer preferences to guest. For GTK and Aura this is necessary to |
Charlie Reis
2012/09/27 19:01:32
I'd like to make a note here that this is intentio
lazyboy
2012/09/27 23:02:23
Done.
|
+ // get proper renderer configuration values for caret blinking interval, |
+ // colors related to selection and focus. |
+ *guest_renderer_prefs = *web_contents()->GetMutableRendererPrefs(); |
Charlie Reis
2012/09/25 19:15:25
Just curious why this is necessary. Where does th
lazyboy
2012/09/25 19:26:20
I believe RenderViewHostImpl.CreateRenderView() ge
Charlie Reis
2012/09/25 21:04:36
That's probably where the prefs are passed to the
lazyboy
2012/09/25 21:21:38
For the embedder, the TabContents's PrefsTabHelper
Charlie Reis
2012/09/25 23:19:25
Ah, now we're getting somewhere. It's interesting
|
+ |
+ guest_renderer_prefs->throttle_input_events = false; |
AddGuest(instance_id, guest_web_contents, frame_id); |
guest_web_contents->SetDelegate(guest); |
} else { |