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

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

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). Created 3 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/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index b56680ddfbc2a0466ab21b1467d4c4e2b4b5abca..6010267d172e33ab0fcae98000eeb3cae8bfac85 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -324,7 +324,7 @@ void CrossProcessFrameConnector::SetRect(const gfx::Rect& frame_rect) {
gfx::Rect old_rect = child_frame_rect_;
child_frame_rect_ = frame_rect;
if (view_) {
- view_->SetBounds(frame_rect);
+ view_->RequestTopLevelBoundsInScreen(frame_rect);
// Other local root frames nested underneath this one implicitly have their
// view rects changed when their ancestor is repositioned, and therefore
« no previous file with comments | « chrome/browser/ui/web_contents_sizer.mm ('k') | content/browser/frame_host/render_widget_host_view_child_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698