RESOLVED DUPLICATE of bug 183504183554
[Web Animations] Fix some WebAnimation lifecycle issues in preparation for declarative animations support
https://bugs.webkit.org/show_bug.cgi?id=183554
Summary [Web Animations] Fix some WebAnimation lifecycle issues in preparation for de...
Antoine Quint
Reported 2018-03-11 19:26:38 PDT
[Web Animations] Fix some WebAnimation lifecycle issues in preparation for declarative animations support
Attachments
Patch (4.90 KB, patch)
2018-03-11 19:31 PDT, Antoine Quint
dino: review+
Antoine Quint
Comment 1 2018-03-11 19:31:06 PDT
Dean Jackson
Comment 2 2018-03-12 02:59:52 PDT
Comment on attachment 335564 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=335564&action=review > Source/WebCore/animation/WebAnimation.cpp:664 > + MicrotaskQueue::mainThreadQueue().append(std::make_unique<VoidMicrotask>([this, protectedThis = makeRef(*this)] () { > + this->performMicrotask(); > + })); No need for the this in []. Just use protectedThis->performMicrotask()
Antoine Quint
Comment 3 2018-03-12 03:04:58 PDT
(In reply to Dean Jackson from comment #2) > Comment on attachment 335564 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=335564&action=review > > > Source/WebCore/animation/WebAnimation.cpp:664 > > + MicrotaskQueue::mainThreadQueue().append(std::make_unique<VoidMicrotask>([this, protectedThis = makeRef(*this)] () { > > + this->performMicrotask(); > > + })); > > No need for the this in []. Just use protectedThis->performMicrotask() It actually is needed, the compiler says "'this' cannot be implicitly captured in this context" otherwise.
Antoine Quint
Comment 4 2018-03-12 06:03:55 PDT
*** This bug has been marked as a duplicate of bug 183504 ***
Note You need to log in before you can comment on or make changes to this bug.