Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index ef0e15cfe089cd45d0028deb540f829369f6a4d5..c5563bf6c193bee068b2ab22ea9fc838cc22e916 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -766,6 +766,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup) |
#endif |
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowCreatedWindow, OnShowCreatedWindow) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_RestorePageScaleFactorOnLoad, |
+ OnSetPageScaleFactorForSubframes) |
IPC_END_MESSAGE_MAP() |
// No further actions here, since we may have been deleted. |
@@ -2239,6 +2241,17 @@ void RenderFrameHostImpl::OnShowCreatedWindow(int pending_widget_routing_id, |
disposition, initial_rect, user_gesture); |
} |
+void RenderFrameHostImpl::OnSetPageScaleFactorForSubframes( |
+ double page_scale_factor) { |
+ // Only the main frame should be receiving this message. |
+ if (!frame_tree_node_->IsMainFrame()) { |
+ NOTREACHED(); |
+ return; |
+ } |
+ |
+ delegate_->SetPageScaleFactorForSubframes(page_scale_factor); |
+} |
+ |
void RenderFrameHostImpl::RegisterMojoInterfaces() { |
device::GeolocationServiceContext* geolocation_service_context = |
delegate_ ? delegate_->GetGeolocationServiceContext() : NULL; |