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

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

Created:
5 years ago by shreyasv1
Modified:
5 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
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. Committed: https://crrev.com/f5406c826d16602ce699bdf7f7da5cc5461be7f0 Cr-Commit-Position: refs/heads/master@{#365691}

Patch Set 1 #

Patch Set 2 : y #

Total comments: 2

Patch Set 3 : y #

Patch Set 4 : y #

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 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
shreyasv1
5 years ago (2015-12-16 00:24:10 UTC) #2
shreyasv1
As a (intended) side effect this CL fixes a bug in UIWebView where adding it ...
5 years ago (2015-12-16 00:26:50 UTC) #3
kkhorimoto
lgtm with nit. Also, can you add a sentence to the CL description that explains ...
5 years ago (2015-12-16 18:54:17 UTC) #4
shreyasv1
https://codereview.chromium.org/1531593002/diff/20001/ios/web/web_state/ui/crw_web_controller_container_view.mm File ios/web/web_state/ui/crw_web_controller_container_view.mm (right): https://codereview.chromium.org/1531593002/diff/20001/ios/web/web_state/ui/crw_web_controller_container_view.mm#newcode222 ios/web/web_state/ui/crw_web_controller_container_view.mm:222: [_webViewContentView setFrame:self.bounds]; On 2015/12/16 18:54:17, kkhorimoto_ wrote: > Can ...
5 years ago (2015-12-16 23:02:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531593002/40001
5 years ago (2015-12-16 23:03:49 UTC) #9
kkhorimoto
I'm adding Eugene as a review since I'm not a web/ OWNER. Also, can you ...
5 years ago (2015-12-16 23:10:05 UTC) #11
Eugene But (OOO till 7-30)
lgtm
5 years ago (2015-12-16 23:21:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531593002/40001
5 years ago (2015-12-16 23:23:49 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/129716)
5 years ago (2015-12-16 23:52:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531593002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531593002/60001
5 years ago (2015-12-17 00:03:22 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-17 02:48:40 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-17 02:50:03 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f5406c826d16602ce699bdf7f7da5cc5461be7f0
Cr-Commit-Position: refs/heads/master@{#365691}

Powered by Google App Engine
This is Rietveld 408576698