| Summary: | Split UserActivity, simplify PageThrottler | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Gavin Barraclough <barraclough> | ||||||||
| Component: | WebCore Misc. | Assignee: | Gavin Barraclough <barraclough> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | ||||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Gavin Barraclough
2014-03-01 12:25:22 PST
Created attachment 225575 [details]
Fix
Comment on attachment 225575 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=225575&action=review > Source/WebCore/platform/HysteresisActivity.h:42 > + UserActivity(const char* description); Should mark this explicit. > Source/WebCore/platform/HysteresisActivity.h:56 > +private: > +#if HAVE(NS_ACTIVITY) > + void hysteresisTimerFired(); > + bool isValid(); > + > + bool m_active; > + RetainPtr<NSString> m_description; > + RunLoop::Timer<UserActivity> m_timer; > + RetainPtr<id> m_activity; > +#endif I think the private has to go inside the #if or we won’t compile with it off. Maybe that’s one reason for the red I see below in EWS. > Source/WebCore/platform/HysteresisActivity.h:36 > + HysteresisActivity(Delegate* delegate, double hysteresisSeconds = DefaultHysteresisSeconds) Can delegate be a reference instead of a pointer? I think that would be much better. Also, I think this constructor should be marked explicit. > Source/WebCore/platform/HysteresisActivity.h:74 > + constexpr static const double DefaultHysteresisSeconds = 5.0; I don’t think we have working constexpr on the Windows compiler. We maybe were working around it with a macro? I’d ask Anders about this. > Source/WebCore/platform/UserActivity.h:45 > + Impl(const char* description); explicit > Source/WebCore/platform/UserActivity.h:57 > + UserActivity(const char* description); explicit Created attachment 225590 [details]
EWS fixes
Created attachment 225603 [details]
GTK fix
Transmitting file data ............ Committed revision 164948. |