LibWeb: Make node cloning methods const

This commit is contained in:
Tim Ledbetter 2025-01-11 17:37:08 +00:00 committed by Jelle Raaijmakers
commit a467005855
Notes: github-actions[bot] 2025-01-11 22:11:18 +00:00
20 changed files with 23 additions and 23 deletions

View file

@ -78,7 +78,7 @@ void HTMLOrSVGElement<ElementBase>::attribute_changed(FlyString const& local_nam
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#dom-noncedelement-nonce
template<typename ElementBase>
WebIDL::ExceptionOr<void> HTMLOrSVGElement<ElementBase>::cloned(DOM::Node& copy, bool)
WebIDL::ExceptionOr<void> HTMLOrSVGElement<ElementBase>::cloned(DOM::Node& copy, bool) const
{
// The cloning steps for elements that include HTMLOrSVGElement given node, copy, and subtree
// are to set copy's [[CryptographicNonce]] to node's [[CryptographicNonce]].