void HTMLDocument::removeItemFromMap(HashCountedSet<AtomicString>& map, const AtomicString& name) { if (name.isEmpty()) return; map.remove(name); if (LocalFrame* f = frame()) f->script().namedItemRemoved(this, name); }
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 removeItemFromMap(HashCountedSet<AtomicStringImpl*>& map, const AtomicString& name) { if (name.isEmpty()) return; map.remove(name.impl()); }
static void addItemToMap(HashCountedSet<AtomicStringImpl*>& map, const AtomicString& name) { if (name.isEmpty()) return; map.add(name.impl()); }