| 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 0578dfad09f91aeb4c4110894b48e7c208cf31f7..9878ddecd674c346d3de1f47f6309facc71b3546 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -45,6 +45,7 @@
|
| #include "content/browser/frame_host/navigation_handle_impl.h"
|
| #include "content/browser/frame_host/navigator_impl.h"
|
| #include "content/browser/frame_host/render_frame_host_impl.h"
|
| +#include "content/browser/frame_host/render_frame_proxy_host.h"
|
| #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
|
| #include "content/browser/geolocation/geolocation_service_context.h"
|
| #include "content/browser/host_zoom_map_impl.h"
|
| @@ -72,6 +73,7 @@
|
| #include "content/common/browser_plugin/browser_plugin_messages.h"
|
| #include "content/common/frame_messages.h"
|
| #include "content/common/input_messages.h"
|
| +#include "content/common/page_messages.h"
|
| #include "content/common/site_isolation_policy.h"
|
| #include "content/common/ssl_status_serialization.h"
|
| #include "content/common/view_messages.h"
|
| @@ -779,6 +781,10 @@ int WebContentsImpl::SendToAllFrames(IPC::Message* message) {
|
| return number_of_messages;
|
| }
|
|
|
| +void WebContentsImpl::SendPageMessage(IPC::Message* msg) {
|
| + frame_tree_.root()->render_manager()->SendPageMessage(msg);
|
| +}
|
| +
|
| RenderViewHostImpl* WebContentsImpl::GetRenderViewHost() const {
|
| return GetRenderManager()->current_host();
|
| }
|
| @@ -2219,6 +2225,13 @@ void WebContentsImpl::SendScreenRects() {
|
| RenderWidgetHostImpl::From(GetRenderViewHost()->GetWidget())
|
| ->SendScreenRects();
|
|
|
| + RenderWidgetHostViewBase* rwhv =
|
| + static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView());
|
| + if (rwhv) {
|
| + SendPageMessage(new PageMsg_UpdateWindowScreenRect(
|
| + MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow()));
|
| + }
|
| +
|
| if (browser_plugin_embedder_)
|
| browser_plugin_embedder_->DidSendScreenRects();
|
| }
|
|
|