mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
parent
70a2ca7fc0
commit
c0b2fa74ac
36 changed files with 123 additions and 121 deletions
|
@ -117,9 +117,9 @@ protected:
|
|||
ChildNode() = default;
|
||||
|
||||
private:
|
||||
JS::GCPtr<Node> viable_previous_sibling_for_insertion(Vector<Variant<JS::Handle<Node>, DeprecatedString>> const& nodes) const
|
||||
JS::GCPtr<Node> viable_previous_sibling_for_insertion(Vector<Variant<JS::Handle<Node>, DeprecatedString>> const& nodes)
|
||||
{
|
||||
auto* node = static_cast<NodeType const*>(this);
|
||||
auto* node = static_cast<NodeType*>(this);
|
||||
|
||||
while (auto* previous_sibling = node->previous_sibling()) {
|
||||
bool contained_in_nodes = false;
|
||||
|
@ -142,9 +142,9 @@ private:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
JS::GCPtr<Node> viable_nest_sibling_for_insertion(Vector<Variant<JS::Handle<Node>, DeprecatedString>> const& nodes) const
|
||||
JS::GCPtr<Node> viable_nest_sibling_for_insertion(Vector<Variant<JS::Handle<Node>, DeprecatedString>> const& nodes)
|
||||
{
|
||||
auto* node = static_cast<NodeType const*>(this);
|
||||
auto* node = static_cast<NodeType*>(this);
|
||||
|
||||
while (auto* next_sibling = node->next_sibling()) {
|
||||
bool contained_in_nodes = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue