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

Unified Diff: ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm

Issue 2594793004: Revert 'Bypass UIWebView.scrollView's contentInset implementation with UIScrollView's. (Closed)
Patch Set: Created 4 years 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
Index: ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
diff --git a/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm b/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
index a3f360ffaf8611c7886aa0dbae8b8679c1dcf8e0..d6f3abfb2e0fffaaa94e60e657640b9365eda738 100644
--- a/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
+++ b/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
@@ -584,10 +584,7 @@ NSString* const kOverscollActionsDidEnd = @"OverscollActionsDidStop";
}
- (void)setScrollViewContentInset:(UIEdgeInsets)contentInset {
- if (_scrollview)
- [_scrollview setContentInset:contentInset];
- else
- [_webViewScrollViewProxy setContentInsetFast:contentInset];
Eugene But (OOO till 7-30) 2016/12/21 18:48:43 Are you sure that this does not break Pull To Acti
Eugene But (OOO till 7-30) 2016/12/21 19:15:01 Ok. I tested this change and it breaks overscroll.
justincohen 2016/12/21 19:59:45 Done.
+ [_scrollview setContentInset:contentInset];
}
- (UIView<RelaxedBoundsConstraintsHitTestSupport>*)headerView {

Powered by Google App Engine
This is Rietveld 408576698