Use AtomicString in RuleSet and RuleFeature
[WebKit-https.git] / Source / WebCore / style / StyleSharingResolver.cpp
index 4571024..b7a2849 100644 (file)
@@ -90,7 +90,7 @@ std::unique_ptr<RenderStyle> SharingResolver::resolve(const Element& searchEleme
         return nullptr;
     // Ids stop style sharing if they show up in the stylesheets.
     auto& id = element.idForStyleResolution();
-    if (!id.isNull() && m_ruleSets.features().idsInRules.contains(id.impl()))
+    if (!id.isNull() && m_ruleSets.features().idsInRules.contains(id))
         return nullptr;
     if (parentElementPreventsSharing(parentElement))
         return nullptr;
@@ -236,7 +236,7 @@ bool SharingResolver::canShareStyleWithElement(const Context& context, const Sty
         return false;
 
     auto& candidateElementId = candidateElement.idForStyleResolution();
-    if (!candidateElementId.isNull() && m_ruleSets.features().idsInRules.contains(candidateElementId.impl()))
+    if (!candidateElementId.isNull() && m_ruleSets.features().idsInRules.contains(candidateElementId))
         return false;
 
     bool isControl = is<HTMLFormControlElement>(candidateElement);
@@ -340,7 +340,7 @@ bool SharingResolver::sharingCandidateHasIdenticalStyleAffectingAttributes(const
 bool SharingResolver::classNamesAffectedByRules(const SpaceSplitString& classNames) const
 {
     for (unsigned i = 0; i < classNames.size(); ++i) {
-        if (m_ruleSets.features().classesInRules.contains(classNames[i].impl()))
+        if (m_ruleSets.features().classesInRules.contains(classNames[i]))
             return true;
     }
     return false;