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