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

Issue 1071723002: [Find in Page] Prevent scrolling past the page edge. (Closed)

Created:
5 years, 8 months ago by justincohen
Modified:
5 years, 7 months ago
Reviewers:
shreyasv1, sdefresne
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Find in Page] Prevent scrolling past the page edge. Sometimes the find in page js returns a text position that is too far down. Correct all |points| sent to -setContentOffset for overscroll. BUG=472091 Committed: https://crrev.com/87c443e596cac6351b5b24cca5a8c84ce85a935f Cr-Commit-Position: refs/heads/master@{#330518}

Patch Set 1 #

Total comments: 10

Patch Set 2 : sdefresne comments #

Patch Set 3 : typo #

Total comments: 1

Patch Set 4 : Resurrected from the dead #

Patch Set 5 : Ascii sort cmath #

Total comments: 2

Patch Set 6 : Remove static cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M ios/chrome/browser/find_in_page/find_in_page_controller.mm View 1 2 3 4 5 6 chunks +23 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
justincohen
ptal
5 years, 8 months ago (2015-04-08 19:36:39 UTC) #2
justincohen
shreyasv@ for review, sdefresne@ for OWNERS
5 years, 8 months ago (2015-04-08 19:37:31 UTC) #4
sdefresne
not lgtm until the self/strongSelf are fixed (I care less about std::max or API change) ...
5 years, 8 months ago (2015-04-08 20:02:19 UTC) #5
justincohen
Oops, big catch on the strongSelf, thanks. PTAL https://codereview.chromium.org/1071723002/diff/1/ios/chrome/browser/find_in_page/find_in_page_controller.mm File ios/chrome/browser/find_in_page/find_in_page_controller.mm (right): https://codereview.chromium.org/1071723002/diff/1/ios/chrome/browser/find_in_page/find_in_page_controller.mm#newcode61 ios/chrome/browser/find_in_page/find_in_page_controller.mm:61: // ...
5 years, 8 months ago (2015-04-08 20:25:51 UTC) #6
shreyasv1
https://codereview.chromium.org/1071723002/diff/40001/ios/chrome/browser/find_in_page/find_in_page_controller.mm File ios/chrome/browser/find_in_page/find_in_page_controller.mm (right): https://codereview.chromium.org/1071723002/diff/40001/ios/chrome/browser/find_in_page/find_in_page_controller.mm#newcode140 ios/chrome/browser/find_in_page/find_in_page_controller.mm:140: - (CGPoint)limitoverscroll:(CRWWebViewScrollViewProxy*)scrollViewProxy Declaration does not match definition.
5 years, 8 months ago (2015-04-08 20:55:58 UTC) #7
justincohen
hold off on reviewing this, I spoke to sdefresne offline and will take a different ...
5 years, 8 months ago (2015-04-08 21:05:01 UTC) #8
justincohen
Sorry for the ancient CL, but it's back. PTAL!
5 years, 7 months ago (2015-05-18 17:08:22 UTC) #9
sdefresne
lgtm with nits https://codereview.chromium.org/1071723002/diff/80001/ios/chrome/browser/find_in_page/find_in_page_controller.mm File ios/chrome/browser/find_in_page/find_in_page_controller.mm (right): https://codereview.chromium.org/1071723002/diff/80001/ios/chrome/browser/find_in_page/find_in_page_controller.mm#newcode144 ios/chrome/browser/find_in_page/find_in_page_controller.mm:144: CGFloat maxScroll = std::max((CGFloat)0, contentHeight - ...
5 years, 7 months ago (2015-05-19 13:30:27 UTC) #10
justincohen
https://codereview.chromium.org/1071723002/diff/80001/ios/chrome/browser/find_in_page/find_in_page_controller.mm File ios/chrome/browser/find_in_page/find_in_page_controller.mm (right): https://codereview.chromium.org/1071723002/diff/80001/ios/chrome/browser/find_in_page/find_in_page_controller.mm#newcode144 ios/chrome/browser/find_in_page/find_in_page_controller.mm:144: CGFloat maxScroll = std::max((CGFloat)0, contentHeight - frameHeight); On 2015/05/19 ...
5 years, 7 months ago (2015-05-19 13:57:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071723002/100001
5 years, 7 months ago (2015-05-19 14:06:47 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-19 14:10:09 UTC) #15
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 14:10:58 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/87c443e596cac6351b5b24cca5a8c84ce85a935f
Cr-Commit-Position: refs/heads/master@{#330518}

Powered by Google App Engine
This is Rietveld 408576698