Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding CRWWebViewContentView as a subview when it is set
Adding subviews in layoutSubviews is problematic (see http://stackoverflow.com/questions/34301366/call-addsubview-within-layoutsubviews/34301753) This CL moves it out of |layoutSubviews| and into when the CRWWebViewContentView is actually set on the ContainerView. The existing logic will take care of removing the old ContentView from the superview when there is a need to replace the ContentView. As a (intended) side effect this CL fixes a bug in UIWebView where adding it as part of layoutSubViews would lead to issues in scrolling of certain pages. BUG=568097 TEST= Illustrated in the bug. Review URL: https://codereview.chromium.org/1531593002 Cr-Commit-Position: refs/heads/master@{#365691}
- Loading branch information