| Summary: | add Internals method to expose synchronous scrolling reasons for individual scrolling tree scrolling nodes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Cameron McCormack (:heycam) <heycam> | ||||
| Component: | Scrolling | Assignee: | Cameron McCormack (:heycam) <heycam> | ||||
| Status: | RESOLVED WONTFIX | ||||||
| Severity: | Normal | CC: | changseok, cmarcelo, darin, esprehn+autocc, ews-watchlist, fred.wang, glenn, jamesr, kondapallykalyan, luiz, pdr, simon.fraser, tonikitoo | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Local Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 226399 | ||||||
| Attachments: |
|
||||||
|
Description
Cameron McCormack (:heycam)
2021-05-30 22:17:58 PDT
Created attachment 430174 [details]
Patch
Comment on attachment 430174 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430174&action=review > Source/WebCore/testing/Internals.h:441 > + ExceptionOr<String> synchronousScrollingReasonsForScrollableElement(Element&) const; Is it possible to make this a const Element&? Doesn't dumping the scrolling state tree suffice? (In reply to Simon Fraser (smfr) from comment #3) > Doesn't dumping the scrolling state tree suffice? As I discovered from looking at other tests, yes it does. But it includes a lot of other irrelevant information for my tests. Seems like it's better to avoid having to update test expectations for changes in other parts of the scrolling state tree, but if you think it's better to just use the existing thing and avoid adding something new, I can do that. Comment on attachment 430174 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430174&action=review >> Source/WebCore/testing/Internals.h:441 >> + ExceptionOr<String> synchronousScrollingReasonsForScrollableElement(Element&) const; > > Is it possible to make this a const Element&? Why does that matter? This is designed to be called from JavaScript. (In reply to Simon Fraser (smfr) from comment #3) > Doesn't dumping the scrolling state tree suffice? I've updated my tests in bug 226399 to use the scrolling state tree dump so I'm not going to use this patch. |