void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map, const AtomicString& name) { if (name.isEmpty()) return; map.add(name); if (LocalFrame* f = frame()) f->script().namedItemAdded(this, name); }
static void addItemToMap(HashCountedSet<AtomicStringImpl*>& map, const AtomicString& name) { if (name.isEmpty()) return; map.add(name.impl()); }