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

Issue 1538093002: Adding CRWWebViewContentView as a subview when it is set (Closed)

Created:
5 years ago by shreyasv1
Modified:
5 years ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2564
Target Ref:
refs/pending/branch-heads/2564
Project:
chromium
Visibility:
Public.

Description

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} (cherry picked from commit f5406c826d16602ce699bdf7f7da5cc5461be7f0) Committed: https://chromium.googlesource.com/chromium/src/+/2127544e6eea33df2b28db1d9335a1c32bba3224

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M ios/web/web_state/ui/crw_web_controller_container_view.mm View 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
shreyasv1
5 years ago (2015-12-18 21:36:07 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
2127544e6eea33df2b28db1d9335a1c32bba3224.

Powered by Google App Engine
This is Rietveld 408576698