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

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

Issue 270883003: Decouple RVH creation from CrossProcessFrameConnector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some more cleanup and fixes. Created 6 years, 7 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 19fcdf0d4b07713fe2cabee147f26ad574deec00..11894aa699def9d686967d39bef5f4af80dbd4f0 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -54,9 +54,11 @@ void CrossProcessFrameConnector::set_view(
view_ = view;
- // Attach ourselves to the new view.
- if (view_)
+ // Attach ourselves to the new view and size it appropriately.
+ if (view_) {
view_->set_cross_process_frame_connector(this);
+ OnInitializeChildFrame(child_frame_rect_, device_scale_factor_);
ncarter (slow) 2014/05/10 00:32:43 |device_scale_factor_| will be ignored by OnInitia
nasko 2014/05/16 16:17:30 Done.
+ }
}
void CrossProcessFrameConnector::RenderProcessGone() {

Powered by Google App Engine
This is Rietveld 408576698