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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1133363003: Call setNeedsUpdateConstraints after adding Native controller view to superview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 2ab2910edd6fe1478aa2312c141628c68cd87dbc..d61e8aecbf745ad02794a6010a963b0172823110 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -1378,6 +1378,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)loadNativeViewWithSuccess:(BOOL)loadSuccess {
[_nativeController view].frame = [self visibleFrame];
[_containerView addSubview:[_nativeController view]];
+ [[_nativeController view] setNeedsUpdateConstraints];
const GURL currentURL([self currentURL]);
[self didStartLoadingURL:currentURL updateHistory:loadSuccess];
_loadPhase = web::PAGE_LOADED;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698