mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
LibWeb: Make node cloning methods const
This commit is contained in:
parent
31b20e38ee
commit
a467005855
Notes:
github-actions[bot]
2025-01-11 22:11:18 +00:00
Author: https://github.com/tcl3
Commit: a467005855
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3228
Reviewed-by: https://github.com/gmta ✅
20 changed files with 23 additions and 23 deletions
|
@ -1030,7 +1030,7 @@ WebIDL::ExceptionOr<GC::Ref<Node>> Node::replace_child(GC::Ref<Node> node, GC::R
|
|||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-node-clone
|
||||
WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_node(Document* document, bool subtree, Node* parent)
|
||||
WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_node(Document* document, bool subtree, Node* parent) const
|
||||
{
|
||||
// To clone a node given a node node and an optional document document (default node’s node document),
|
||||
// boolean subtree (default false), and node-or-null parent (default null):
|
||||
|
@ -1085,7 +1085,7 @@ WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_node(Document* document, bool sub
|
|||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#clone-a-single-node
|
||||
WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_single_node(Document& document)
|
||||
WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_single_node(Document& document) const
|
||||
{
|
||||
// To clone a single node given a node node and document document:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue