Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 12e7b01211e294de6f757c05659184bf63f8b070
https://github.com/WebKit/WebKit/commit/12e7b01211e294de6f757c05659184bf63f8b070
Author: Chris Dumez <[email protected]>
Date: 2026-04-03 (Fri, 03 Apr 2026)
Changed paths:
M Source/WebCore/bindings/js/JSElementCustom.cpp
M Source/WebCore/bindings/js/JSNodeCustom.cpp
Log Message:
-----------
Avoid ref-counting churn in JSElementCustom.cpp and JSNodeCustom.cpp
https://bugs.webkit.org/show_bug.cgi?id=311412
Reviewed by Anne van Kesteren.
We have a Ref and the createJS*Wrapper() functions take in a Ref&&.
WTF::move() our ref directly into the createJS*Wrapper() to avoid
ref-counting churn.
* Source/WebCore/bindings/js/JSElementCustom.cpp:
(WebCore::createNewElementWrapper):
* Source/WebCore/bindings/js/JSNodeCustom.cpp:
(WebCore::createWrapperInline):
Canonical link: https://commits.webkit.org/310515@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications