@@ -2684,14 +2684,14 @@ Node::InsertedIntoAncestorResult Element::insertedIntoAncestor(InsertionType ins
2684
2684
2685
2685
if (auto & idValue = getIdAttribute (); !idValue.isEmpty ()) {
2686
2686
if (newScope)
2687
- newScope->addElementById (* idValue. impl () , *this );
2687
+ newScope->addElementById (idValue, *this );
2688
2688
if (newDocument)
2689
2689
updateIdForDocument (*newDocument, nullAtom (), idValue, HTMLDocumentNamedItemMapsUpdatingCondition::Always);
2690
2690
}
2691
2691
2692
2692
if (auto & nameValue = getNameAttribute (); !nameValue.isEmpty ()) {
2693
2693
if (newScope)
2694
- newScope->addElementByName (* nameValue. impl () , *this );
2694
+ newScope->addElementByName (nameValue, *this );
2695
2695
if (newDocument)
2696
2696
updateNameForDocument (*newDocument, nullAtom (), nameValue);
2697
2697
}
@@ -2771,14 +2771,14 @@ void Element::removedFromAncestor(RemovalType removalType, ContainerNode& oldPar
2771
2771
2772
2772
if (auto & idValue = getIdAttribute (); !idValue.isEmpty ()) {
2773
2773
if (oldScope)
2774
- oldScope->removeElementById (* idValue. impl () , *this );
2774
+ oldScope->removeElementById (idValue, *this );
2775
2775
if (oldHTMLDocument)
2776
2776
updateIdForDocument (*oldHTMLDocument, idValue, nullAtom (), HTMLDocumentNamedItemMapsUpdatingCondition::Always);
2777
2777
}
2778
2778
2779
2779
if (auto & nameValue = getNameAttribute (); !nameValue.isEmpty ()) {
2780
2780
if (oldScope)
2781
- oldScope->removeElementByName (* nameValue. impl () , *this );
2781
+ oldScope->removeElementByName (nameValue, *this );
2782
2782
if (oldHTMLDocument)
2783
2783
updateNameForDocument (*oldHTMLDocument, nameValue, nullAtom ());
2784
2784
}
@@ -4748,9 +4748,9 @@ void Element::updateNameForTreeScope(TreeScope& scope, const AtomString& oldName
4748
4748
ASSERT (oldName != newName);
4749
4749
4750
4750
if (!oldName.isEmpty ())
4751
- scope.removeElementByName (* oldName. impl () , *this );
4751
+ scope.removeElementByName (oldName, *this );
4752
4752
if (!newName.isEmpty ())
4753
- scope.addElementByName (* newName. impl () , *this );
4753
+ scope.addElementByName (newName, *this );
4754
4754
}
4755
4755
4756
4756
void Element::updateNameForDocument (HTMLDocument& document, const AtomString& oldName, const AtomString& newName)
@@ -4763,17 +4763,17 @@ void Element::updateNameForDocument(HTMLDocument& document, const AtomString& ol
4763
4763
if (WindowNameCollection::elementMatchesIfNameAttributeMatch (*this )) {
4764
4764
const AtomString& id = WindowNameCollection::elementMatchesIfIdAttributeMatch (*this ) ? getIdAttribute () : nullAtom ();
4765
4765
if (!oldName.isEmpty () && oldName != id)
4766
- document.removeWindowNamedItem (* oldName. impl () , *this );
4766
+ document.removeWindowNamedItem (oldName, *this );
4767
4767
if (!newName.isEmpty () && newName != id)
4768
- document.addWindowNamedItem (* newName. impl () , *this );
4768
+ document.addWindowNamedItem (newName, *this );
4769
4769
}
4770
4770
4771
4771
if (DocumentNameCollection::elementMatchesIfNameAttributeMatch (*this )) {
4772
4772
const AtomString& id = DocumentNameCollection::elementMatchesIfIdAttributeMatch (*this ) ? getIdAttribute () : nullAtom ();
4773
4773
if (!oldName.isEmpty () && oldName != id)
4774
- document.removeDocumentNamedItem (* oldName. impl () , *this );
4774
+ document.removeDocumentNamedItem (oldName, *this );
4775
4775
if (!newName.isEmpty () && newName != id)
4776
- document.addDocumentNamedItem (* newName. impl () , *this );
4776
+ document.addDocumentNamedItem (newName, *this );
4777
4777
}
4778
4778
}
4779
4779
@@ -4800,9 +4800,9 @@ void Element::updateIdForTreeScope(TreeScope& scope, const AtomString& oldId, co
4800
4800
ASSERT (oldId != newId);
4801
4801
4802
4802
if (!oldId.isEmpty ())
4803
- scope.removeElementById (* oldId. impl () , *this , notifyObservers == NotifyObservers::Yes);
4803
+ scope.removeElementById (oldId, *this , notifyObservers == NotifyObservers::Yes);
4804
4804
if (!newId.isEmpty ())
4805
- scope.addElementById (* newId. impl () , *this , notifyObservers == NotifyObservers::Yes);
4805
+ scope.addElementById (newId, *this , notifyObservers == NotifyObservers::Yes);
4806
4806
}
4807
4807
4808
4808
void Element::updateIdForDocument (HTMLDocument& document, const AtomString& oldId, const AtomString& newId, HTMLDocumentNamedItemMapsUpdatingCondition condition)
@@ -4816,17 +4816,17 @@ void Element::updateIdForDocument(HTMLDocument& document, const AtomString& oldI
4816
4816
if (WindowNameCollection::elementMatchesIfIdAttributeMatch (*this )) {
4817
4817
const AtomString& name = condition == HTMLDocumentNamedItemMapsUpdatingCondition::UpdateOnlyIfDiffersFromNameAttribute && WindowNameCollection::elementMatchesIfNameAttributeMatch (*this ) ? getNameAttribute () : nullAtom ();
4818
4818
if (!oldId.isEmpty () && oldId != name)
4819
- document.removeWindowNamedItem (* oldId. impl () , *this );
4819
+ document.removeWindowNamedItem (oldId, *this );
4820
4820
if (!newId.isEmpty () && newId != name)
4821
- document.addWindowNamedItem (* newId. impl () , *this );
4821
+ document.addWindowNamedItem (newId, *this );
4822
4822
}
4823
4823
4824
4824
if (DocumentNameCollection::elementMatchesIfIdAttributeMatch (*this )) {
4825
4825
const AtomString& name = condition == HTMLDocumentNamedItemMapsUpdatingCondition::UpdateOnlyIfDiffersFromNameAttribute && DocumentNameCollection::elementMatchesIfNameAttributeMatch (*this ) ? getNameAttribute () : nullAtom ();
4826
4826
if (!oldId.isEmpty () && oldId != name)
4827
- document.removeDocumentNamedItem (* oldId. impl () , *this );
4827
+ document.removeDocumentNamedItem (oldId, *this );
4828
4828
if (!newId.isEmpty () && newId != name)
4829
- document.addDocumentNamedItem (* newId. impl () , *this );
4829
+ document.addDocumentNamedItem (newId, *this );
4830
4830
}
4831
4831
}
4832
4832
@@ -4841,9 +4841,9 @@ void Element::updateLabel(TreeScope& scope, const AtomString& oldForAttributeVal
4841
4841
return ;
4842
4842
4843
4843
if (!oldForAttributeValue.isEmpty ())
4844
- scope.removeLabel (* oldForAttributeValue. impl () , downcast<HTMLLabelElement>(*this ));
4844
+ scope.removeLabel (oldForAttributeValue, downcast<HTMLLabelElement>(*this ));
4845
4845
if (!newForAttributeValue.isEmpty ())
4846
- scope.addLabel (* newForAttributeValue. impl () , downcast<HTMLLabelElement>(*this ));
4846
+ scope.addLabel (newForAttributeValue, downcast<HTMLLabelElement>(*this ));
4847
4847
}
4848
4848
4849
4849
void Element::willModifyAttribute (const QualifiedName& name, const AtomString& oldValue, const AtomString& newValue)
0 commit comments