[Webkit-unassigned] [Bug 148442] Fix crash due to animationDidEnd called on deallocated RemoteLayerTreeHost
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 26 14:00:18 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=148442
Tim Horton <thorton at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thorton at apple.com
--- Comment #7 from Tim Horton <thorton at apple.com> ---
(In reply to comment #6)
> Comment on attachment 259977 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=259977&action=review
>
> >> Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.mm:145
> >> m_layers.remove(layerID);
> >
> > 1) You can do the hash table lookup only once.
> >
> > 2) Should you also cover the case in clearLayers()?
>
> 1. Good point. Fixed.
>
> 2. clearLayers is only invoked in the destructor of RemoteLayerTreeHost,
> which ensures that all animation delegates are first invalidated. It might
> be better to lift the invalidation logic from ~RemoteLayerTreeHost to
> clearLayers() instead though.
Ah! No, that's probably fine. OK.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150826/d2d996d3/attachment-0001.html>
More information about the webkit-unassigned
mailing list