Changeset 12321 in webkit


Ignore:
Timestamp:
Jan 23, 2006, 4:56:32 PM (20 years ago)
Author:
mjs
Message:

JavaScriptCore:

Rubber stamped by Tim Hatcher.


  • renamed inert() operation on HashSet, HashCountedSet and HashTable to add() for consistency with HashMap
  • kjs/array_object.cpp: (ArrayProtoFunc::callAsFunction):
  • kjs/collector.cpp: (KJS::Collector::protect):
  • kjs/identifier.cpp: (KJS::Identifier::add):
  • kxmlcore/HashCountedSet.h: (KXMLCore::::add):
  • kxmlcore/HashMap.h: (KXMLCore::::inlineAdd):
  • kxmlcore/HashSet.h: (KXMLCore::::add):
  • kxmlcore/HashTable.h: (KXMLCore::HashTable::add): (KXMLCore::::add): (KXMLCore::::HashTable):

WebCore:

Rubber stamped by Tim Hatcher.


  • renamed inert() operation on HashSet, HashCountedSet and HashTable to add() for consistency with HashMap
  • bridge/mac/MacFrame.mm: (MacFrame::didTellBridgeAboutLoad):
  • khtml/ecma/kjs_dom.cpp: (KJS::DOMNode::mark):
  • khtml/html/HTMLElementImpl.cpp: (WebCore::HTMLElementImpl::isRecognizedTagName): (WebCore::inlineTagList): (WebCore::blockTagList):
  • khtml/html/HTMLFormCollectionImpl.cpp: (WebCore::HTMLFormCollectionImpl::updateNameCache):
  • khtml/html/htmlparser.cpp: (HTMLParser::isHeaderTag): (HTMLParser::isResidualStyleTag): (HTMLParser::isAffectedByResidualStyle):
  • khtml/xml/DocumentImpl.cpp: (WebCore::DocumentImpl::addElementById): (WebCore::DocumentImpl::registerDisconnectedNodeWithEventListeners):
  • khtml/xml/NodeImpl.cpp: (WebCore::NodeImpl::registerNodeList):
  • khtml/xml/dom_atomicstring.cpp: (DOM::AtomicString::add):
  • khtml/xml/dom_qname.cpp: (DOM::QualifiedName::QualifiedName):
  • loader/CachedObject.cpp: (WebCore::CachedObject::ref):
  • page/Frame.cpp: (Frame::keepAlive):
  • rendering/render_canvas.cpp: (RenderCanvas::addWidget):
  • rendering/render_frames.cpp: (WebCore::RenderPartObject::updateWidget):
  • rendering/render_line.cpp: (WebCore::InlineFlowBox::paint):
  • xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::addToRequestsByDocument):
Location:
trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r12319 r12321  
     12006-01-23  Maciej Stachowiak  <[email protected]>
     2
     3        Rubber stamped by Tim Hatcher.
     4       
     5        - renamed inert() operation on HashSet, HashCountedSet and HashTable to add()
     6        for consistency with HashMap
     7
     8        * kjs/array_object.cpp:
     9        (ArrayProtoFunc::callAsFunction):
     10        * kjs/collector.cpp:
     11        (KJS::Collector::protect):
     12        * kjs/identifier.cpp:
     13        (KJS::Identifier::add):
     14        * kxmlcore/HashCountedSet.h:
     15        (KXMLCore::::add):
     16        * kxmlcore/HashMap.h:
     17        (KXMLCore::::inlineAdd):
     18        * kxmlcore/HashSet.h:
     19        (KXMLCore::::add):
     20        * kxmlcore/HashTable.h:
     21        (KXMLCore::HashTable::add):
     22        (KXMLCore::::add):
     23        (KXMLCore::::HashTable):
     24
    1252006-01-23  Justin Garcia  <[email protected]>
    226
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r12317 r12321  
    481481    UString str = "";
    482482
    483     visitedElems.insert(thisObj);
     483    visitedElems.add(thisObj);
    484484    if (id == Join && !args[0]->isUndefined())
    485485      separator = args[0]->toString(exec);
  • trunk/JavaScriptCore/kjs/collector.cpp

    r12317 r12321  
    412412      return;
    413413
    414     protectedValues().insert(k->downcast());
     414    protectedValues().add(k->downcast());
    415415}
    416416
  • trunk/JavaScriptCore/kjs/identifier.cpp

    r12317 r12321  
    139139        return &UString::Rep::empty;
    140140   
    141     return *identifierTable().insert<const char *, CStringTranslator>(c).first;
     141    return *identifierTable().add<const char *, CStringTranslator>(c).first;
    142142}
    143143
     
    180180   
    181181    UCharBuffer buf = {s, length};
    182     return *identifierTable().insert<UCharBuffer, UCharBufferTranslator>(buf).first;
     182    return *identifierTable().add<UCharBuffer, UCharBufferTranslator>(buf).first;
    183183}
    184184
     
    191191        return &UString::Rep::empty;
    192192
    193     UString::Rep *result = *identifierTable().insert(r).first;
     193    UString::Rep *result = *identifierTable().add(r).first;
    194194    if (result == r)
    195195        r->isIdentifier = true;
  • trunk/JavaScriptCore/kxmlcore/HashCountedSet.h

    r12301 r12321  
    5656
    5757        // increases the count if an equal value is already present
    58         // returns value is a pair of an interator to the new value's location,
    59         // and a bool that is true if an actual new insertion was done
    60         std::pair<iterator, bool> insert(const ValueType &value);
     58        // the return value is a pair of an interator to the new value's location,
     59        // and a bool that is true if an new entry was added
     60        std::pair<iterator, bool> add(const ValueType &value);
    6161       
    6262        // reduces the count of the value, and removes it if count
     
    138138   
    139139    template<typename Value, typename HashFunctions, typename Traits>
    140     inline std::pair<typename HashCountedSet<Value, HashFunctions, Traits>::iterator, bool> HashCountedSet<Value, HashFunctions, Traits>::insert(const ValueType &value)
     140    inline std::pair<typename HashCountedSet<Value, HashFunctions, Traits>::iterator, bool> HashCountedSet<Value, HashFunctions, Traits>::add(const ValueType &value)
    141141    {
    142142        pair<iterator, bool> result = m_impl.add(value, 0);
  • trunk/JavaScriptCore/kxmlcore/HashMap.h

    r12301 r12321  
    174174pair<typename HashMap<Key, Mapped, HashFunctions, KeyTraits, MappedTraits>::iterator, bool> HashMap<Key, Mapped, HashFunctions, KeyTraits, MappedTraits>::inlineAdd(const KeyType &key, const MappedType &mapped)
    175175{
    176     return m_impl.template insert<KeyType, MappedType, TranslatorType>(key, mapped);
     176    return m_impl.template add<KeyType, MappedType, TranslatorType>(key, mapped);
    177177}
    178178
  • trunk/JavaScriptCore/kxmlcore/HashSet.h

    r12301 r12321  
    8080        bool contains(const ValueType& value) const;
    8181       
    82         std::pair<iterator, bool> insert(const ValueType &value);
    83        
    84         // a special version of insert() that finds the object by hashing and comparing
     82        // the return value is a pair of an interator to the new value's location,
     83        // and a bool that is true if an new entry was added
     84        std::pair<iterator, bool> add(const ValueType &value);
     85       
     86        // a special version of add() that finds the object by hashing and comparing
    8587        // with some other type, to avoid the cost of type conversion if the object is already
    8688        // in the table. HashTranslator should have the following methods:
     
    8991        //   static translate(ValueType&, const T&, unsigned hashCode);
    9092        template<typename T, typename HashTranslator>
    91         std::pair<iterator, bool> insert(const T& value);
     93        std::pair<iterator, bool> add(const T& value);
    9294       
    9395        void remove(const ValueType& value);
     
    160162   
    161163    template<typename Value, typename HashFunctions, typename Traits>
    162     std::pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool> HashSet<Value, HashFunctions, Traits>::insert(const ValueType &value)
    163     {
    164         return m_impl.insert(value);
     164    std::pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool> HashSet<Value, HashFunctions, Traits>::add(const ValueType &value)
     165    {
     166        return m_impl.add(value);
    165167    }
    166168   
    167169    template<typename Value, typename HashFunctions, typename Traits>
    168170    template<typename T, typename HashSetTranslator>
    169     std::pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool> HashSet<Value, HashFunctions, Traits>::insert(const T& value)
    170     {
    171         return m_impl.template insert<T, T, HashSetTranslatorAdapter<ValueType, T, HashSetTranslator> >(value, value);
     171    std::pair<typename HashSet<Value, HashFunctions, Traits>::iterator, bool> HashSet<Value, HashFunctions, Traits>::add(const T& value)
     172    {
     173        return m_impl.template add<T, T, HashSetTranslatorAdapter<ValueType, T, HashSetTranslator> >(value, value);
    172174    }
    173175   
  • trunk/JavaScriptCore/kxmlcore/HashTable.h

    r12301 r12321  
    285285        int capacity() const { return m_tableSize; }
    286286
    287         pair<iterator, bool> insert(const ValueType& value) { return insert<KeyType, ValueType, IdentityTranslatorType>(ExtractKey(value), value); }
    288 
    289         // A special version of insert() that finds the object by hashing and comparing
     287        pair<iterator, bool> add(const ValueType& value) { return add<KeyType, ValueType, IdentityTranslatorType>(ExtractKey(value), value); }
     288
     289        // A special version of add() that finds the object by hashing and comparing
    290290        // with some other type, to avoid the cost of type conversion if the object is already
    291291        // in the table.
    292         template<typename T, typename Extra, typename HashTranslator> pair<iterator, bool> insert(const T& key, const Extra&);
     292        template<typename T, typename Extra, typename HashTranslator> pair<iterator, bool> add(const T& key, const Extra&);
    293293
    294294        iterator find(const KeyType&);
     
    416416    template<typename Key, typename Value, const Key& ExtractKey(const Value&), typename HashFunctions, typename Traits, typename KeyTraits>
    417417    template<typename T, typename Extra, typename HashTranslator>
    418     inline pair<typename HashTable<Key, Value, ExtractKey, HashFunctions, Traits, KeyTraits>::iterator, bool> HashTable<Key, Value, ExtractKey, HashFunctions, Traits, KeyTraits>::insert(const T& key, const Extra &extra)
     418    inline pair<typename HashTable<Key, Value, ExtractKey, HashFunctions, Traits, KeyTraits>::iterator, bool> HashTable<Key, Value, ExtractKey, HashFunctions, Traits, KeyTraits>::add(const T& key, const Extra &extra)
    419419    {
    420420        invalidateIterators();
     
    632632#endif
    633633    {
    634         // Copy the hash table the dumb way, by inserting each element into the new table.
     634        // Copy the hash table the dumb way, by adding each element to the new table.
    635635        // It might be more efficient to copy the table slots, but it's not clear that efficiency is needed.
    636636        const_iterator end = other.end();
    637637        for (const_iterator it = other.begin(); it != end; ++it)
    638             insert(*it);
     638            add(*it);
    639639    }
    640640
  • trunk/WebCore/ChangeLog

    r12319 r12321  
     12006-01-23  Maciej Stachowiak  <[email protected]>
     2
     3        Rubber stamped by Tim Hatcher.
     4       
     5        - renamed inert() operation on HashSet, HashCountedSet and HashTable to add()
     6        for consistency with HashMap
     7
     8        * bridge/mac/MacFrame.mm:
     9        (MacFrame::didTellBridgeAboutLoad):
     10        * khtml/ecma/kjs_dom.cpp:
     11        (KJS::DOMNode::mark):
     12        * khtml/html/HTMLElementImpl.cpp:
     13        (WebCore::HTMLElementImpl::isRecognizedTagName):
     14        (WebCore::inlineTagList):
     15        (WebCore::blockTagList):
     16        * khtml/html/HTMLFormCollectionImpl.cpp:
     17        (WebCore::HTMLFormCollectionImpl::updateNameCache):
     18        * khtml/html/htmlparser.cpp:
     19        (HTMLParser::isHeaderTag):
     20        (HTMLParser::isResidualStyleTag):
     21        (HTMLParser::isAffectedByResidualStyle):
     22        * khtml/xml/DocumentImpl.cpp:
     23        (WebCore::DocumentImpl::addElementById):
     24        (WebCore::DocumentImpl::registerDisconnectedNodeWithEventListeners):
     25        * khtml/xml/NodeImpl.cpp:
     26        (WebCore::NodeImpl::registerNodeList):
     27        * khtml/xml/dom_atomicstring.cpp:
     28        (DOM::AtomicString::add):
     29        * khtml/xml/dom_qname.cpp:
     30        (DOM::QualifiedName::QualifiedName):
     31        * loader/CachedObject.cpp:
     32        (WebCore::CachedObject::ref):
     33        * page/Frame.cpp:
     34        (Frame::keepAlive):
     35        * rendering/render_canvas.cpp:
     36        (RenderCanvas::addWidget):
     37        * rendering/render_frames.cpp:
     38        (WebCore::RenderPartObject::updateWidget):
     39        * rendering/render_line.cpp:
     40        (WebCore::InlineFlowBox::paint):
     41        * xml/xmlhttprequest.cpp:
     42        (WebCore::XMLHttpRequest::addToRequestsByDocument):
     43
    1442006-01-23  Justin Garcia  <[email protected]>
    245
  • trunk/WebCore/bridge/mac/MacFrame.mm

    r12313 r12321  
    30963096void MacFrame::didTellBridgeAboutLoad(const DOM::DOMString& URL)
    30973097{
    3098     urlsBridgeKnowsAbout.insert(URL.impl());
     3098    urlsBridgeKnowsAbout.add(URL.impl());
    30993099}
    31003100
  • trunk/WebCore/khtml/ecma/kjs_dom.cpp

    r12287 r12321  
    143143
    144144  // Mark the whole tree; use the global set of roots to avoid reentering.
    145   markingRoots.insert(root);
     145  markingRoots.add(root);
    146146  for (NodeImpl *nodeToMark = root; nodeToMark; nodeToMark = nodeToMark->traverseNextNode()) {
    147147    DOMNode *wrapper = ScriptInterpreter::getDOMNodeForDocument(document, nodeToMark);
  • trunk/WebCore/khtml/html/HTMLElementImpl.cpp

    r12313 r12321  
    652652    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList;
    653653    if (tagList.isEmpty()) {
    654         #define INSERT_TAG(name) tagList.insert(name##Tag.localName().impl());
    655         DOM_HTMLNAMES_FOR_EACH_TAG(INSERT_TAG)
     654        #define ADD_TAG(name) tagList.add(name##Tag.localName().impl());
     655        DOM_HTMLNAMES_FOR_EACH_TAG(ADD_TAG)
    656656    }
    657657    return tagList.contains(tagName.localName().impl());
     
    664664    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList;
    665665    if (tagList.isEmpty()) {
    666         tagList.insert(ttTag.localName().impl());
    667         tagList.insert(iTag.localName().impl());
    668         tagList.insert(bTag.localName().impl());
    669         tagList.insert(uTag.localName().impl());
    670         tagList.insert(sTag.localName().impl());
    671         tagList.insert(strikeTag.localName().impl());
    672         tagList.insert(bigTag.localName().impl());
    673         tagList.insert(smallTag.localName().impl());
    674         tagList.insert(emTag.localName().impl());
    675         tagList.insert(strongTag.localName().impl());
    676         tagList.insert(dfnTag.localName().impl());
    677         tagList.insert(codeTag.localName().impl());
    678         tagList.insert(sampTag.localName().impl());
    679         tagList.insert(kbdTag.localName().impl());
    680         tagList.insert(varTag.localName().impl());
    681         tagList.insert(citeTag.localName().impl());
    682         tagList.insert(abbrTag.localName().impl());
    683         tagList.insert(acronymTag.localName().impl());
    684         tagList.insert(aTag.localName().impl());
    685         tagList.insert(canvasTag.localName().impl());
    686         tagList.insert(imgTag.localName().impl());
    687         tagList.insert(appletTag.localName().impl());
    688         tagList.insert(objectTag.localName().impl());
    689         tagList.insert(embedTag.localName().impl());
    690         tagList.insert(fontTag.localName().impl());
    691         tagList.insert(basefontTag.localName().impl());
    692         tagList.insert(brTag.localName().impl());
    693         tagList.insert(scriptTag.localName().impl());
    694         tagList.insert(mapTag.localName().impl());
    695         tagList.insert(qTag.localName().impl());
    696         tagList.insert(subTag.localName().impl());
    697         tagList.insert(supTag.localName().impl());
    698         tagList.insert(spanTag.localName().impl());
    699         tagList.insert(bdoTag.localName().impl());
    700         tagList.insert(iframeTag.localName().impl());
    701         tagList.insert(inputTag.localName().impl());
    702         tagList.insert(keygenTag.localName().impl());
    703         tagList.insert(selectTag.localName().impl());
    704         tagList.insert(textareaTag.localName().impl());
    705         tagList.insert(labelTag.localName().impl());
    706         tagList.insert(buttonTag.localName().impl());
    707         tagList.insert(insTag.localName().impl());
    708         tagList.insert(delTag.localName().impl());
    709         tagList.insert(nobrTag.localName().impl());
    710         tagList.insert(wbrTag.localName().impl());
     666        tagList.add(ttTag.localName().impl());
     667        tagList.add(iTag.localName().impl());
     668        tagList.add(bTag.localName().impl());
     669        tagList.add(uTag.localName().impl());
     670        tagList.add(sTag.localName().impl());
     671        tagList.add(strikeTag.localName().impl());
     672        tagList.add(bigTag.localName().impl());
     673        tagList.add(smallTag.localName().impl());
     674        tagList.add(emTag.localName().impl());
     675        tagList.add(strongTag.localName().impl());
     676        tagList.add(dfnTag.localName().impl());
     677        tagList.add(codeTag.localName().impl());
     678        tagList.add(sampTag.localName().impl());
     679        tagList.add(kbdTag.localName().impl());
     680        tagList.add(varTag.localName().impl());
     681        tagList.add(citeTag.localName().impl());
     682        tagList.add(abbrTag.localName().impl());
     683        tagList.add(acronymTag.localName().impl());
     684        tagList.add(aTag.localName().impl());
     685        tagList.add(canvasTag.localName().impl());
     686        tagList.add(imgTag.localName().impl());
     687        tagList.add(appletTag.localName().impl());
     688        tagList.add(objectTag.localName().impl());
     689        tagList.add(embedTag.localName().impl());
     690        tagList.add(fontTag.localName().impl());
     691        tagList.add(basefontTag.localName().impl());
     692        tagList.add(brTag.localName().impl());
     693        tagList.add(scriptTag.localName().impl());
     694        tagList.add(mapTag.localName().impl());
     695        tagList.add(qTag.localName().impl());
     696        tagList.add(subTag.localName().impl());
     697        tagList.add(supTag.localName().impl());
     698        tagList.add(spanTag.localName().impl());
     699        tagList.add(bdoTag.localName().impl());
     700        tagList.add(iframeTag.localName().impl());
     701        tagList.add(inputTag.localName().impl());
     702        tagList.add(keygenTag.localName().impl());
     703        tagList.add(selectTag.localName().impl());
     704        tagList.add(textareaTag.localName().impl());
     705        tagList.add(labelTag.localName().impl());
     706        tagList.add(buttonTag.localName().impl());
     707        tagList.add(insTag.localName().impl());
     708        tagList.add(delTag.localName().impl());
     709        tagList.add(nobrTag.localName().impl());
     710        tagList.add(wbrTag.localName().impl());
    711711    }
    712712    return &tagList;
     
    717717    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList;
    718718    if (tagList.isEmpty()) {
    719         tagList.insert(pTag.localName().impl());
    720         tagList.insert(h1Tag.localName().impl());
    721         tagList.insert(h2Tag.localName().impl());
    722         tagList.insert(h3Tag.localName().impl());
    723         tagList.insert(h4Tag.localName().impl());
    724         tagList.insert(h5Tag.localName().impl());
    725         tagList.insert(h6Tag.localName().impl());
    726         tagList.insert(ulTag.localName().impl());
    727         tagList.insert(olTag.localName().impl());
    728         tagList.insert(dirTag.localName().impl());
    729         tagList.insert(menuTag.localName().impl());
    730         tagList.insert(preTag.localName().impl());
    731         tagList.insert(plaintextTag.localName().impl());
    732         tagList.insert(xmpTag.localName().impl());
    733         tagList.insert(dlTag.localName().impl());
    734         tagList.insert(divTag.localName().impl());
    735         tagList.insert(layerTag.localName().impl());
    736         tagList.insert(centerTag.localName().impl());
    737         tagList.insert(noscriptTag.localName().impl());
    738         tagList.insert(noframesTag.localName().impl());
    739         tagList.insert(noembedTag.localName().impl());
    740         tagList.insert(nolayerTag.localName().impl());
    741         tagList.insert(blockquoteTag.localName().impl());
    742         tagList.insert(formTag.localName().impl());
    743         tagList.insert(isindexTag.localName().impl());
    744         tagList.insert(hrTag.localName().impl());
    745         tagList.insert(tableTag.localName().impl());
    746         tagList.insert(fieldsetTag.localName().impl());
    747         tagList.insert(addressTag.localName().impl());
    748         tagList.insert(liTag.localName().impl());
    749         tagList.insert(ddTag.localName().impl());
    750         tagList.insert(dtTag.localName().impl());
    751         tagList.insert(marqueeTag.localName().impl());
     719        tagList.add(pTag.localName().impl());
     720        tagList.add(h1Tag.localName().impl());
     721        tagList.add(h2Tag.localName().impl());
     722        tagList.add(h3Tag.localName().impl());
     723        tagList.add(h4Tag.localName().impl());
     724        tagList.add(h5Tag.localName().impl());
     725        tagList.add(h6Tag.localName().impl());
     726        tagList.add(ulTag.localName().impl());
     727        tagList.add(olTag.localName().impl());
     728        tagList.add(dirTag.localName().impl());
     729        tagList.add(menuTag.localName().impl());
     730        tagList.add(preTag.localName().impl());
     731        tagList.add(plaintextTag.localName().impl());
     732        tagList.add(xmpTag.localName().impl());
     733        tagList.add(dlTag.localName().impl());
     734        tagList.add(divTag.localName().impl());
     735        tagList.add(layerTag.localName().impl());
     736        tagList.add(centerTag.localName().impl());
     737        tagList.add(noscriptTag.localName().impl());
     738        tagList.add(noframesTag.localName().impl());
     739        tagList.add(noembedTag.localName().impl());
     740        tagList.add(nolayerTag.localName().impl());
     741        tagList.add(blockquoteTag.localName().impl());
     742        tagList.add(formTag.localName().impl());
     743        tagList.add(isindexTag.localName().impl());
     744        tagList.add(hrTag.localName().impl());
     745        tagList.add(tableTag.localName().impl());
     746        tagList.add(fieldsetTag.localName().impl());
     747        tagList.add(addressTag.localName().impl());
     748        tagList.add(liTag.localName().impl());
     749        tagList.add(ddTag.localName().impl());
     750        tagList.add(dtTag.localName().impl());
     751        tagList.add(marqueeTag.localName().impl());
    752752    }
    753753    return &tagList;
  • trunk/WebCore/khtml/html/HTMLFormCollectionImpl.cpp

    r12243 r12321  
    250250                }
    251251                appendToVector(idVector, static_cast<NodeImpl *>(e));
    252                 foundInputElements.insert(idAttrVal.impl());
     252                foundInputElements.add(idAttrVal.impl());
    253253            }
    254254            if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal) {
     
    260260                }
    261261                appendToVector(nameVector, static_cast<NodeImpl *>(e));
    262                 foundInputElements.insert(nameAttrVal.impl());
     262                foundInputElements.add(nameAttrVal.impl());
    263263            }
    264264        }
  • trunk/WebCore/khtml/html/htmlparser.cpp

    r12313 r12321  
    838838    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > headerTags;
    839839    if (headerTags.isEmpty()) {
    840         headerTags.insert(h1Tag.localName().impl());
    841         headerTags.insert(h2Tag.localName().impl());
    842         headerTags.insert(h3Tag.localName().impl());
    843         headerTags.insert(h4Tag.localName().impl());
    844         headerTags.insert(h5Tag.localName().impl());
    845         headerTags.insert(h6Tag.localName().impl());
     840        headerTags.add(h1Tag.localName().impl());
     841        headerTags.add(h2Tag.localName().impl());
     842        headerTags.add(h3Tag.localName().impl());
     843        headerTags.add(h4Tag.localName().impl());
     844        headerTags.add(h5Tag.localName().impl());
     845        headerTags.add(h6Tag.localName().impl());
    846846    }
    847847   
     
    890890    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > residualStyleTags;
    891891    if (residualStyleTags.isEmpty()) {
    892         residualStyleTags.insert(aTag.localName().impl());
    893         residualStyleTags.insert(fontTag.localName().impl());
    894         residualStyleTags.insert(ttTag.localName().impl());
    895         residualStyleTags.insert(uTag.localName().impl());
    896         residualStyleTags.insert(bTag.localName().impl());
    897         residualStyleTags.insert(iTag.localName().impl());
    898         residualStyleTags.insert(sTag.localName().impl());
    899         residualStyleTags.insert(strikeTag.localName().impl());
    900         residualStyleTags.insert(bigTag.localName().impl());
    901         residualStyleTags.insert(smallTag.localName().impl());
    902         residualStyleTags.insert(emTag.localName().impl());
    903         residualStyleTags.insert(strongTag.localName().impl());
    904         residualStyleTags.insert(dfnTag.localName().impl());
    905         residualStyleTags.insert(codeTag.localName().impl());
    906         residualStyleTags.insert(sampTag.localName().impl());
    907         residualStyleTags.insert(kbdTag.localName().impl());
    908         residualStyleTags.insert(varTag.localName().impl());
    909         residualStyleTags.insert(nobrTag.localName().impl());
    910         residualStyleTags.insert(wbrTag.localName().impl());
     892        residualStyleTags.add(aTag.localName().impl());
     893        residualStyleTags.add(fontTag.localName().impl());
     894        residualStyleTags.add(ttTag.localName().impl());
     895        residualStyleTags.add(uTag.localName().impl());
     896        residualStyleTags.add(bTag.localName().impl());
     897        residualStyleTags.add(iTag.localName().impl());
     898        residualStyleTags.add(sTag.localName().impl());
     899        residualStyleTags.add(strikeTag.localName().impl());
     900        residualStyleTags.add(bigTag.localName().impl());
     901        residualStyleTags.add(smallTag.localName().impl());
     902        residualStyleTags.add(emTag.localName().impl());
     903        residualStyleTags.add(strongTag.localName().impl());
     904        residualStyleTags.add(dfnTag.localName().impl());
     905        residualStyleTags.add(codeTag.localName().impl());
     906        residualStyleTags.add(sampTag.localName().impl());
     907        residualStyleTags.add(kbdTag.localName().impl());
     908        residualStyleTags.add(varTag.localName().impl());
     909        residualStyleTags.add(nobrTag.localName().impl());
     910        residualStyleTags.add(wbrTag.localName().impl());
    911911    }
    912912   
     
    921921    static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > affectedBlockTags;
    922922    if (affectedBlockTags.isEmpty()) {
    923         affectedBlockTags.insert(h1Tag.localName().impl());
    924         affectedBlockTags.insert(h2Tag.localName().impl());
    925         affectedBlockTags.insert(h3Tag.localName().impl());
    926         affectedBlockTags.insert(h4Tag.localName().impl());
    927         affectedBlockTags.insert(h5Tag.localName().impl());
    928         affectedBlockTags.insert(h6Tag.localName().impl());
    929         affectedBlockTags.insert(pTag.localName().impl());
    930         affectedBlockTags.insert(divTag.localName().impl());
    931         affectedBlockTags.insert(blockquoteTag.localName().impl());
    932         affectedBlockTags.insert(addressTag.localName().impl());
    933         affectedBlockTags.insert(centerTag.localName().impl());
    934         affectedBlockTags.insert(ulTag.localName().impl());
    935         affectedBlockTags.insert(olTag.localName().impl());
    936         affectedBlockTags.insert(liTag.localName().impl());
    937         affectedBlockTags.insert(dlTag.localName().impl());
    938         affectedBlockTags.insert(dtTag.localName().impl());
    939         affectedBlockTags.insert(ddTag.localName().impl());
    940         affectedBlockTags.insert(preTag.localName().impl());
     923        affectedBlockTags.add(h1Tag.localName().impl());
     924        affectedBlockTags.add(h2Tag.localName().impl());
     925        affectedBlockTags.add(h3Tag.localName().impl());
     926        affectedBlockTags.add(h4Tag.localName().impl());
     927        affectedBlockTags.add(h5Tag.localName().impl());
     928        affectedBlockTags.add(h6Tag.localName().impl());
     929        affectedBlockTags.add(pTag.localName().impl());
     930        affectedBlockTags.add(divTag.localName().impl());
     931        affectedBlockTags.add(blockquoteTag.localName().impl());
     932        affectedBlockTags.add(addressTag.localName().impl());
     933        affectedBlockTags.add(centerTag.localName().impl());
     934        affectedBlockTags.add(ulTag.localName().impl());
     935        affectedBlockTags.add(olTag.localName().impl());
     936        affectedBlockTags.add(liTag.localName().impl());
     937        affectedBlockTags.add(dlTag.localName().impl());
     938        affectedBlockTags.add(dtTag.localName().impl());
     939        affectedBlockTags.add(ddTag.localName().impl());
     940        affectedBlockTags.add(preTag.localName().impl());
    941941    }
    942942   
  • trunk/WebCore/khtml/xml/DocumentImpl.cpp

    r12313 r12321  
    650650        m_elementsById.set(elementId.impl(), element);
    651651    else
    652         m_duplicateIds.insert(elementId.impl());
     652        m_duplicateIds.add(elementId.impl());
    653653}
    654654
     
    10001000void DocumentImpl::registerDisconnectedNodeWithEventListeners(NodeImpl* node)
    10011001{
    1002     m_disconnectedNodesWithEventListeners.insert(node);
     1002    m_disconnectedNodesWithEventListeners.add(node);
    10031003}
    10041004
  • trunk/WebCore/khtml/xml/NodeImpl.cpp

    r12313 r12321  
    808808    if (!m_nodeLists)
    809809        m_nodeLists = new NodeListSet;
    810     m_nodeLists->insert(list);
     810    m_nodeLists->add(list);
    811811}
    812812
  • trunk/WebCore/khtml/xml/dom_atomicstring.cpp

    r11962 r12321  
    8383        return DOMStringImpl::empty();
    8484   
    85     return *stringTable.insert<const char *, CStringTranslator>(c).first;
     85    return *stringTable.add<const char *, CStringTranslator>(c).first;
    8686}
    8787
     
    140140   
    141141    QCharBuffer buf = {s, length};
    142     return *stringTable.insert<QCharBuffer, QCharBufferTranslator>(buf).first;
     142    return *stringTable.add<QCharBuffer, QCharBufferTranslator>(buf).first;
    143143}
    144144
     
    151151        return DOMStringImpl::empty();
    152152   
    153     DOMStringImpl *result = *stringTable.insert(r).first;
     153    DOMStringImpl *result = *stringTable.add(r).first;
    154154    if (result == r)
    155155        r->_inTable = true;
  • trunk/WebCore/khtml/xml/dom_qname.cpp

    r11962 r12321  
    118118        gNameCache = new QNameSet;
    119119    QualifiedNameComponents components = { p.impl(), l.impl(), n.impl() };
    120     m_impl = *gNameCache->insert<QualifiedNameComponents, QNameComponentsTranslator>(components).first;   
     120    m_impl = *gNameCache->add<QualifiedNameComponents, QNameComponentsTranslator>(components).first;   
    121121    ref();
    122122}
  • trunk/WebCore/loader/CachedObject.cpp

    r12129 r12321  
    8888void CachedObject::ref(CachedObjectClient *c)
    8989{
    90     m_clients.insert(c);
     90    m_clients.add(c);
    9191    Cache::removeFromLRUList(this);
    9292    increaseAccessCount();
  • trunk/WebCore/page/Frame.cpp

    r12307 r12321  
    30173017    d->m_lifeSupportTimer.start(0, true);
    30183018#ifndef NDEBUG
    3019     lifeSupportSet.insert(this);
     3019    lifeSupportSet.add(this);
    30203020#endif
    30213021}
  • trunk/WebCore/rendering/render_canvas.cpp

    r12230 r12321  
    565565void RenderCanvas::addWidget(RenderObject *o)
    566566{
    567     m_widgets.insert(o);
     567    m_widgets.add(o);
    568568}
    569569
  • trunk/WebCore/rendering/render_frames.cpp

    r12268 r12321  
    852852              }
    853853              if (!embed) {
    854                   uniqueParamNames.insert(p->name().impl());
     854                  uniqueParamNames.add(p->name().impl());
    855855                  paramNames.append(p->name().qstring());
    856856                  paramValues.append(p->value().qstring());
     
    868868      if (!embed && serviceType.lower() == "application/x-java-applet") {
    869869          codebase = "codebase";
    870           uniqueParamNames.insert(codebase.impl()); // pretend we found it in a PARAM already
     870          uniqueParamNames.add(codebase.impl()); // pretend we found it in a PARAM already
    871871      }
    872872     
  • trunk/WebCore/rendering/render_line.cpp

    r12263 r12321  
    761761            if (object()->style()->visibility() == VISIBLE && object()->style()->outlineWidth() > 0 &&
    762762                !object()->isInlineContinuation() && !isRootInlineBox()) {
    763                 i.outlineObjects.insert(flowObject());
     763                i.outlineObjects.add(flowObject());
    764764            }
    765765        }
  • trunk/WebCore/xml/xmlhttprequest.cpp

    r12282 r12321  
    568568
    569569  assert(!requests->contains(this));
    570   requests->insert(this);
     570  requests->add(this);
    571571}
    572572
Note: See TracChangeset for help on using the changeset viewer.