Home | History | Annotate | Download | only in dom

Lines Matching defs:oldId

894 static bool checkNeedsStyleInvalidationForIdChange(const AtomicString& oldId, const AtomicString& newId, const RuleFeatureSet& features)
896 ASSERT(newId != oldId);
897 if (!oldId.isEmpty() && features.hasSelectorForId(oldId))
927 AtomicString oldId = elementData()->idForStyleResolution();
929 if (newId != oldId) {
931 shouldInvalidateStyle = testShouldInvalidateStyle && checkNeedsStyleInvalidationForIdChange(oldId, newId, styleResolver->ruleFeatureSet());
1059 AtomicString oldId = elementData()->idForStyleResolution();
1061 if (newId != oldId) {
1062 if (!oldId.isEmpty() && featureSet.hasSelectorForId(oldId))
2764 inline void Element::updateId(const AtomicString& oldId, const AtomicString& newId)
2769 if (oldId == newId)
2772 updateId(treeScope(), oldId, newId);
2775 inline void Element::updateId(TreeScope* scope, const AtomicString& oldId, const AtomicString& newId)
2778 ASSERT(oldId != newId);
2780 if (!oldId.isEmpty())
2781 scope->removeElementById(oldId, this);
2786 updateExtraNamedItemRegistration(oldId, newId);
2884 void Element::updateExtraNamedItemRegistration(const AtomicString& oldId, const AtomicString& newId)
2889 if (!oldId.isEmpty())
2890 toHTMLDocument(document())->removeExtraNamedItem(oldId);
3025 const AtomicString& oldID = getIdAttribute();
3028 if (!oldID.isNull() || !newID.isNull())
3029 updateId(oldID, newID);