Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6d1a61fa69dfe8e0a4b64ef6d629681068f37dd1
https://github.com/WebKit/WebKit/commit/6d1a61fa69dfe8e0a4b64ef6d629681068f37dd1
Author: Kimmo Kinnunen <[email protected]>
Date: 2025-10-02 (Thu, 02 Oct 2025)
Changed paths:
A LayoutTests/fast/images/imagebitmap-memory-expected.html
A LayoutTests/fast/images/imagebitmap-memory.html
M Source/WebCore/html/ImageBitmap.cpp
M Source/WebCore/html/ImageBitmap.h
Log Message:
-----------
REGRESSION (273213@main): ImageBitmap fails to report memory cost
https://bugs.webkit.org/show_bug.cgi?id=295618
rdar://155563791
Reviewed by Matt Woodrow.
GC would not be triggered when many or large ImageBitmaps were
allocated.
Update ImageBitmap::m_memoryCost when creating the instance. This will
be used by bindings ReportExtraMemoryCost feature to report
the extra memory cost to the JS heap when the binding object is created
and visited.
Test: fast/images/imagebitmap-memory.html
* LayoutTests/fast/images/imagebitmap-memory-expected.html: Added.
* LayoutTests/fast/images/imagebitmap-memory.html: Added.
* Source/WebCore/html/ImageBitmap.cpp:
(WebCore::ImageBitmap::detach):
(WebCore::ImageBitmap::ImageBitmap):
(WebCore::ImageBitmap::~ImageBitmap):
(WebCore::ImageBitmap::takeImageBuffer):
(WebCore::ImageBitmap::memoryCost const):
(WebCore::ImageBitmap::updateMemoryCost): Deleted.
* Source/WebCore/html/ImageBitmap.h:
Canonical link: https://commits.webkit.org/300870@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes