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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.cc

Issue 10908099: Copy renderer preferences from embedder to guest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@tmp
Patch Set: Add comments so it's obvious why we need to copy renderer prefs (gtk+aura). Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698