Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 95a45927753fc3a64f770e520c67a380f60e3c38..c3e6220e5f1ec88ffcd4e5828788aebf526302d7 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -758,6 +758,8 @@ bool WebContentsImpl::OnMessageReceived(RenderFrameHostImpl* render_frame_host, |
| IPC_MESSAGE_HANDLER(FrameHostMsg_UpdatePageImportanceSignals, |
| OnUpdatePageImportanceSignals) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_Find_Reply, OnFindReply) |
| + IPC_MESSAGE_HANDLER(FrameHostMsg_RestorePageScaleFactorOnLoad, |
| + SetPageScaleFactorForSubframes) |
|
kenrb
2017/01/24 17:13:27
This message should only ever come from the top-le
wjmaclean
2017/01/24 18:24:26
Sure, I'll look into doing that and include it in
wjmaclean
2017/01/24 21:48:47
Done.
|
| #if BUILDFLAG(ENABLE_PLUGINS) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, |
| OnPepperInstanceCreated) |
| @@ -1015,6 +1017,11 @@ void WebContentsImpl::UpdateDeviceScaleFactor(double device_scale_factor) { |
| new PageMsg_SetDeviceScaleFactor(MSG_ROUTING_NONE, device_scale_factor)); |
| } |
| +void WebContentsImpl::SetPageScaleFactorForSubframes(double page_scale_factor) { |
| + SendPageMessage( |
| + new PageMsg_SetPageScaleFactor(MSG_ROUTING_NONE, page_scale_factor)); |
| +} |
| + |
| void WebContentsImpl::GetScreenInfo(ScreenInfo* screen_info) { |
| if (GetView()) |
| GetView()->GetScreenInfo(screen_info); |