Bug 198597

Summary: Don't expose negative scrollLeft/scrollTop during rubber-banding
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: ScrollingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: NEW    
Severity: Normal CC: fred.wang, koivisto, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=198598
https://bugs.webkit.org/show_bug.cgi?id=198599
https://bugs.webkit.org/show_bug.cgi?id=199691
Attachments:
Description Flags
Patch none

Simon Fraser (smfr)
Reported 2019-06-05 19:52:11 PDT
Don't expose negative scrollLeft/scrollTop during rubber-banding
Attachments
Patch (26.70 KB, patch)
2019-06-05 19:57 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2019-06-05 19:57:21 PDT
Radar WebKit Bug Importer
Comment 2 2019-06-05 19:58:33 PDT
Antti Koivisto
Comment 3 2019-06-06 01:36:16 PDT
Comment on attachment 371468 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371468&action=review > Source/WebCore/platform/ScrollView.h:224 > + WEBCORE_EXPORT ScrollPosition scrollPosition(ScrollClamping = ScrollClamping::Unclamped) const final; Alternatively these functions could return both clamped and unclamped values as a struct, avoiding parameter passing.
Simon Fraser (smfr)
Comment 4 2019-06-06 10:54:34 PDT
(In reply to Antti Koivisto from comment #3) > Comment on attachment 371468 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=371468&action=review > > > Source/WebCore/platform/ScrollView.h:224 > > + WEBCORE_EXPORT ScrollPosition scrollPosition(ScrollClamping = ScrollClamping::Unclamped) const final; > > Alternatively these functions could return both clamped and unclamped values > as a struct, avoiding parameter passing. I think that would be even more plumbing. I'm worried that this isn't web compatible, so I'll hold off on landing this.
Simon Fraser (smfr)
Comment 5 2019-06-12 15:30:43 PDT
Comment on attachment 371468 [details] Patch Not going to land until I'm more convinced this won't break things.
Note You need to log in before you can comment on or make changes to this bug.