Commit 80975779 authored by olivierrobin's avatar olivierrobin Committed by Commit bot

Call setNeedsUpdateConstraints after adding Native controller view to superview

BUG=487531

Review URL: https://codereview.chromium.org/1133363003

Cr-Commit-Position: refs/heads/master@{#329639}
parent d972fc7a
...@@ -1378,6 +1378,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5; ...@@ -1378,6 +1378,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)loadNativeViewWithSuccess:(BOOL)loadSuccess { - (void)loadNativeViewWithSuccess:(BOOL)loadSuccess {
[_nativeController view].frame = [self visibleFrame]; [_nativeController view].frame = [self visibleFrame];
[_containerView addSubview:[_nativeController view]]; [_containerView addSubview:[_nativeController view]];
[[_nativeController view] setNeedsUpdateConstraints];
const GURL currentURL([self currentURL]); const GURL currentURL([self currentURL]);
[self didStartLoadingURL:currentURL updateHistory:loadSuccess]; [self didStartLoadingURL:currentURL updateHistory:loadSuccess];
_loadPhase = web::PAGE_LOADED; _loadPhase = web::PAGE_LOADED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment