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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2652643004: Make PageScaleFactor work for oopif subframes.
Patch Set: Fix patch gardening error: GesturePinch routing tests. Created 3 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698