Beispiel #1
0
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);
}
Beispiel #2
0
static void addItemToMap(HashCountedSet<AtomicStringImpl*>& map, const AtomicString& name)
{
    if (name.isEmpty())
        return;
    map.add(name.impl());
}