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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 132383005: Set correct viewport size for an out of process iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed obsolete test Created 6 years, 10 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/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 4ca79c1e838bdc45c5f80e0f554c4205f8b29402..2d37e5ea3e9ea643cae9fc2fba86e7a36fabf8c2 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -32,7 +32,6 @@ RenderWidgetHost* RenderWidgetHostViewChildFrame::GetRenderWidgetHost() const {
}
void RenderWidgetHostViewChildFrame::SetSize(const gfx::Size& size) {
- size_ = size;
host_->WasResized();
}
@@ -68,8 +67,6 @@ gfx::Rect RenderWidgetHostViewChildFrame::GetViewBounds() const {
gfx::Rect rect;
if (frame_connector_)
rect = frame_connector_->ChildFrameRect();
- rect.set_width(size_.width());
- rect.set_height(size_.height());
return rect;
}
@@ -94,7 +91,10 @@ void RenderWidgetHostViewChildFrame::SetBackground(
}
gfx::Size RenderWidgetHostViewChildFrame::GetPhysicalBackingSize() const {
- return size_;
+ gfx::Size size;
+ if (frame_connector_)
+ size = frame_connector_->ChildFrameRect().size();
+ return size;
}
void RenderWidgetHostViewChildFrame::InitAsPopup(

Powered by Google App Engine
This is Rietveld 408576698