| Summary: | Expand test infrastructure to support scrolling tests (Part 4): Scroll Snap Support | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||
| Component: | Layout and Rendering | Assignee: | Brent Fulgham <bfulgham> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, cmarcelo, commit-queue, jamesr, luiz, tonikitoo | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | 144131 | ||||||||
| Bug Blocks: | 146081, 142358, 144591, 172349 | ||||||||
| Attachments: |
|
||||||||
|
Description
Brent Fulgham
2015-04-30 18:06:29 PDT
Created attachment 252161 [details]
Patch
Created attachment 252193 [details]
Patch
Comment on attachment 252193 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252193&action=review > Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:34 > +#include <wtf/RefPtr.h> Not needed. > Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:110 > bool m_requestedScrollPositionRepresentsProgrammaticScroll; > + bool m_expectsWheelEventTestTrigger; Might as well convert these to C++11 initializersL m_expectsWheelEventTestTrigger { false }; > Source/WebCore/page/scrolling/ScrollingTree.h:105 > + virtual void deferTestsForReason(WheelEventTestTrigger::ScrollableAreaIdentifier, WheelEventTestTrigger::DeferTestTriggerReason) { /* Do nothing */ } > + virtual void removeTestDeferralForReason(WheelEventTestTrigger::ScrollableAreaIdentifier, WheelEventTestTrigger::DeferTestTriggerReason) { /* Do nothing */ } No need for "/* Do nothing */". > Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h:107 > + bool m_expectsWheelEventTestTrigger; m_expectsWheelEventTestTrigger { false }; Comment on attachment 252193 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252193&action=review >> Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:34 >> +#include <wtf/RefPtr.h> > > Not needed. I'll remove it. >> Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:110 >> + bool m_expectsWheelEventTestTrigger; > > Might as well convert these to C++11 initializersL m_expectsWheelEventTestTrigger { false }; OK. >> Source/WebCore/page/scrolling/ScrollingTree.h:105 >> + virtual void removeTestDeferralForReason(WheelEventTestTrigger::ScrollableAreaIdentifier, WheelEventTestTrigger::DeferTestTriggerReason) { /* Do nothing */ } > > No need for "/* Do nothing */". OK! >> Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h:107 >> + bool m_expectsWheelEventTestTrigger; > > m_expectsWheelEventTestTrigger { false }; Done. New scroll snap tests are under Bug 142358. Committed r183702: <http://trac.webkit.org/changeset/183702> |