Commit c8cbedda authored by ananta's avatar ananta Committed by Commit bot

Ensure that the Windows system font information and the scrollbar metrics are...

Ensure that the Windows system font information and the scrollbar metrics are synced with the ViewMsg_SetRendererPrefs IPC

The patch to sync the font and scrollbar metrics from the browser to the renderer was sending these values only during
RenderView creation and not along with the ViewMsg_SetRendererPrefs IPC which caused scrollbars to disappear and other bad
things.

BUG=474871

Review URL: https://codereview.chromium.org/1069683006

Cr-Commit-Position: refs/heads/master@{#324349}
parent 9203ef81
...@@ -357,9 +357,12 @@ bool RenderViewHostImpl::IsRenderViewLive() const { ...@@ -357,9 +357,12 @@ bool RenderViewHostImpl::IsRenderViewLive() const {
} }
void RenderViewHostImpl::SyncRendererPrefs() { void RenderViewHostImpl::SyncRendererPrefs() {
Send(new ViewMsg_SetRendererPrefs(GetRoutingID(), RendererPreferences renderer_preferences =
delegate_->GetRendererPrefs( delegate_->GetRendererPrefs(GetProcess()->GetBrowserContext());
GetProcess()->GetBrowserContext()))); #if defined(OS_WIN)
GetWindowsSpecificPrefs(&renderer_preferences);
#endif
Send(new ViewMsg_SetRendererPrefs(GetRoutingID(), renderer_preferences));
} }
WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() { WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment