Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 54b9fc03d8cb650626fcab77a275117cf99cc11f
https://github.com/WebKit/WebKit/commit/54b9fc03d8cb650626fcab77a275117cf99cc11f
Author: Keith Miller <[email protected]>
Date: 2026-08-25 (Tue, 25 Aug 2026)
Changed paths:
M Source/WTF/wtf/ScopedLambda.h
M Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp
Log Message:
-----------
Make ScopedLambda non-moveable
https://bugs.webkit.org/show_bug.cgi?id=322495
rdar://185800489
Reviewed by Yijia Huang.
Moving/Copying doesn't seem useful and introduces a footgun to escape
the ScopedLambda past the lifetime of the passed lambda, e.g. via a move
to the heap.
No new tests, no behavior change.
* Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp:
(WebCore::encode):
Use a reference of the ScopedLambda rather than a copy.
Canonical link: https://commits.webkit.org/319843@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications