[Webkit-unassigned] [Bug 134488] Async loading of image resources
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 8 19:25:57 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=134488
--- Comment #26 from Darin Adler <darin at apple.com> ---
Comment on attachment 248223
--> https://bugs.webkit.org/attachment.cgi?id=248223
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=248223&action=review
> Source/WebCore/loader/ImageLoader.h:131
> + class ImageLoaderTask : public MicroTask {
> + public:
> + static std::unique_ptr<ImageLoaderTask> create(WeakPtr<ImageLoader> loader)
> + {
> + return std::unique_ptr<ImageLoaderTask>(new ImageLoaderTask(loader));
> + }
> +
> + virtual void run()
> + {
> + if (m_loader && !m_loader->cancelledTask())
> + m_loader->doUpdateFromElement();
> + }
> +
> + private:
> + ImageLoaderTask(WeakPtr<ImageLoader> loader)
> + : m_loader(loader)
> + {
> + }
> +
> + WeakPtr<ImageLoader> m_loader;
> + };
There’s no need to have this whole class in the header.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150309/7356ddc8/attachment-0002.html>
More information about the webkit-unassigned
mailing list