| 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..968b1b1cbc247b38d414ecc0671daac28bd521c3 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -1015,6 +1015,17 @@ void WebContentsImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
|
| new PageMsg_SetDeviceScaleFactor(MSG_ROUTING_NONE, device_scale_factor));
|
| }
|
|
|
| +void WebContentsImpl::SetPageScaleFactorForSubframes(double page_scale_factor) {
|
| + RenderWidgetHostView* main_frame_view = GetMainFrame()->GetView();
|
| + for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) {
|
| + if (view && view != main_frame_view) {
|
| + RenderWidgetHost* host = view->GetRenderWidgetHost();
|
| + host->Send(new FrameMsg_SetPageScaleFactor(host->GetRoutingID(),
|
| + page_scale_factor));
|
| + }
|
| + }
|
| +}
|
| +
|
| void WebContentsImpl::GetScreenInfo(ScreenInfo* screen_info) {
|
| if (GetView())
|
| GetView()->GetScreenInfo(screen_info);
|
|
|