Changeset 12321 in webkit
- Timestamp:
- Jan 23, 2006, 4:56:32 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r12319 r12321 1 2006-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 1 25 2006-01-23 Justin Garcia <[email protected]> 2 26 -
trunk/JavaScriptCore/kjs/array_object.cpp
r12317 r12321 481 481 UString str = ""; 482 482 483 visitedElems. insert(thisObj);483 visitedElems.add(thisObj); 484 484 if (id == Join && !args[0]->isUndefined()) 485 485 separator = args[0]->toString(exec); -
trunk/JavaScriptCore/kjs/collector.cpp
r12317 r12321 412 412 return; 413 413 414 protectedValues(). insert(k->downcast());414 protectedValues().add(k->downcast()); 415 415 } 416 416 -
trunk/JavaScriptCore/kjs/identifier.cpp
r12317 r12321 139 139 return &UString::Rep::empty; 140 140 141 return *identifierTable(). insert<const char *, CStringTranslator>(c).first;141 return *identifierTable().add<const char *, CStringTranslator>(c).first; 142 142 } 143 143 … … 180 180 181 181 UCharBuffer buf = {s, length}; 182 return *identifierTable(). insert<UCharBuffer, UCharBufferTranslator>(buf).first;182 return *identifierTable().add<UCharBuffer, UCharBufferTranslator>(buf).first; 183 183 } 184 184 … … 191 191 return &UString::Rep::empty; 192 192 193 UString::Rep *result = *identifierTable(). insert(r).first;193 UString::Rep *result = *identifierTable().add(r).first; 194 194 if (result == r) 195 195 r->isIdentifier = true; -
trunk/JavaScriptCore/kxmlcore/HashCountedSet.h
r12301 r12321 56 56 57 57 // increases the count if an equal value is already present 58 // returnsvalue 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 done60 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); 61 61 62 62 // reduces the count of the value, and removes it if count … … 138 138 139 139 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) 141 141 { 142 142 pair<iterator, bool> result = m_impl.add(value, 0); -
trunk/JavaScriptCore/kxmlcore/HashMap.h
r12301 r12321 174 174 pair<typename HashMap<Key, Mapped, HashFunctions, KeyTraits, MappedTraits>::iterator, bool> HashMap<Key, Mapped, HashFunctions, KeyTraits, MappedTraits>::inlineAdd(const KeyType &key, const MappedType &mapped) 175 175 { 176 return m_impl.template insert<KeyType, MappedType, TranslatorType>(key, mapped);176 return m_impl.template add<KeyType, MappedType, TranslatorType>(key, mapped); 177 177 } 178 178 -
trunk/JavaScriptCore/kxmlcore/HashSet.h
r12301 r12321 80 80 bool contains(const ValueType& value) const; 81 81 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 85 87 // with some other type, to avoid the cost of type conversion if the object is already 86 88 // in the table. HashTranslator should have the following methods: … … 89 91 // static translate(ValueType&, const T&, unsigned hashCode); 90 92 template<typename T, typename HashTranslator> 91 std::pair<iterator, bool> insert(const T& value);93 std::pair<iterator, bool> add(const T& value); 92 94 93 95 void remove(const ValueType& value); … … 160 162 161 163 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); 165 167 } 166 168 167 169 template<typename Value, typename HashFunctions, typename Traits> 168 170 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); 172 174 } 173 175 -
trunk/JavaScriptCore/kxmlcore/HashTable.h
r12301 r12321 285 285 int capacity() const { return m_tableSize; } 286 286 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 comparing287 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 290 290 // with some other type, to avoid the cost of type conversion if the object is already 291 291 // 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&); 293 293 294 294 iterator find(const KeyType&); … … 416 416 template<typename Key, typename Value, const Key& ExtractKey(const Value&), typename HashFunctions, typename Traits, typename KeyTraits> 417 417 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) 419 419 { 420 420 invalidateIterators(); … … 632 632 #endif 633 633 { 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. 635 635 // It might be more efficient to copy the table slots, but it's not clear that efficiency is needed. 636 636 const_iterator end = other.end(); 637 637 for (const_iterator it = other.begin(); it != end; ++it) 638 insert(*it);638 add(*it); 639 639 } 640 640 -
trunk/WebCore/ChangeLog
r12319 r12321 1 2006-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 1 44 2006-01-23 Justin Garcia <[email protected]> 2 45 -
trunk/WebCore/bridge/mac/MacFrame.mm
r12313 r12321 3096 3096 void MacFrame::didTellBridgeAboutLoad(const DOM::DOMString& URL) 3097 3097 { 3098 urlsBridgeKnowsAbout. insert(URL.impl());3098 urlsBridgeKnowsAbout.add(URL.impl()); 3099 3099 } 3100 3100 -
trunk/WebCore/khtml/ecma/kjs_dom.cpp
r12287 r12321 143 143 144 144 // Mark the whole tree; use the global set of roots to avoid reentering. 145 markingRoots. insert(root);145 markingRoots.add(root); 146 146 for (NodeImpl *nodeToMark = root; nodeToMark; nodeToMark = nodeToMark->traverseNextNode()) { 147 147 DOMNode *wrapper = ScriptInterpreter::getDOMNodeForDocument(document, nodeToMark); -
trunk/WebCore/khtml/html/HTMLElementImpl.cpp
r12313 r12321 652 652 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList; 653 653 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) 656 656 } 657 657 return tagList.contains(tagName.localName().impl()); … … 664 664 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList; 665 665 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()); 711 711 } 712 712 return &tagList; … … 717 717 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > tagList; 718 718 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()); 752 752 } 753 753 return &tagList; -
trunk/WebCore/khtml/html/HTMLFormCollectionImpl.cpp
r12243 r12321 250 250 } 251 251 appendToVector(idVector, static_cast<NodeImpl *>(e)); 252 foundInputElements. insert(idAttrVal.impl());252 foundInputElements.add(idAttrVal.impl()); 253 253 } 254 254 if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal) { … … 260 260 } 261 261 appendToVector(nameVector, static_cast<NodeImpl *>(e)); 262 foundInputElements. insert(nameAttrVal.impl());262 foundInputElements.add(nameAttrVal.impl()); 263 263 } 264 264 } -
trunk/WebCore/khtml/html/htmlparser.cpp
r12313 r12321 838 838 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > headerTags; 839 839 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()); 846 846 } 847 847 … … 890 890 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > residualStyleTags; 891 891 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()); 911 911 } 912 912 … … 921 921 static HashSet<DOMStringImpl*, PointerHash<DOMStringImpl*> > affectedBlockTags; 922 922 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()); 941 941 } 942 942 -
trunk/WebCore/khtml/xml/DocumentImpl.cpp
r12313 r12321 650 650 m_elementsById.set(elementId.impl(), element); 651 651 else 652 m_duplicateIds. insert(elementId.impl());652 m_duplicateIds.add(elementId.impl()); 653 653 } 654 654 … … 1000 1000 void DocumentImpl::registerDisconnectedNodeWithEventListeners(NodeImpl* node) 1001 1001 { 1002 m_disconnectedNodesWithEventListeners. insert(node);1002 m_disconnectedNodesWithEventListeners.add(node); 1003 1003 } 1004 1004 -
trunk/WebCore/khtml/xml/NodeImpl.cpp
r12313 r12321 808 808 if (!m_nodeLists) 809 809 m_nodeLists = new NodeListSet; 810 m_nodeLists-> insert(list);810 m_nodeLists->add(list); 811 811 } 812 812 -
trunk/WebCore/khtml/xml/dom_atomicstring.cpp
r11962 r12321 83 83 return DOMStringImpl::empty(); 84 84 85 return *stringTable. insert<const char *, CStringTranslator>(c).first;85 return *stringTable.add<const char *, CStringTranslator>(c).first; 86 86 } 87 87 … … 140 140 141 141 QCharBuffer buf = {s, length}; 142 return *stringTable. insert<QCharBuffer, QCharBufferTranslator>(buf).first;142 return *stringTable.add<QCharBuffer, QCharBufferTranslator>(buf).first; 143 143 } 144 144 … … 151 151 return DOMStringImpl::empty(); 152 152 153 DOMStringImpl *result = *stringTable. insert(r).first;153 DOMStringImpl *result = *stringTable.add(r).first; 154 154 if (result == r) 155 155 r->_inTable = true; -
trunk/WebCore/khtml/xml/dom_qname.cpp
r11962 r12321 118 118 gNameCache = new QNameSet; 119 119 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; 121 121 ref(); 122 122 } -
trunk/WebCore/loader/CachedObject.cpp
r12129 r12321 88 88 void CachedObject::ref(CachedObjectClient *c) 89 89 { 90 m_clients. insert(c);90 m_clients.add(c); 91 91 Cache::removeFromLRUList(this); 92 92 increaseAccessCount(); -
trunk/WebCore/page/Frame.cpp
r12307 r12321 3017 3017 d->m_lifeSupportTimer.start(0, true); 3018 3018 #ifndef NDEBUG 3019 lifeSupportSet. insert(this);3019 lifeSupportSet.add(this); 3020 3020 #endif 3021 3021 } -
trunk/WebCore/rendering/render_canvas.cpp
r12230 r12321 565 565 void RenderCanvas::addWidget(RenderObject *o) 566 566 { 567 m_widgets. insert(o);567 m_widgets.add(o); 568 568 } 569 569 -
trunk/WebCore/rendering/render_frames.cpp
r12268 r12321 852 852 } 853 853 if (!embed) { 854 uniqueParamNames. insert(p->name().impl());854 uniqueParamNames.add(p->name().impl()); 855 855 paramNames.append(p->name().qstring()); 856 856 paramValues.append(p->value().qstring()); … … 868 868 if (!embed && serviceType.lower() == "application/x-java-applet") { 869 869 codebase = "codebase"; 870 uniqueParamNames. insert(codebase.impl()); // pretend we found it in a PARAM already870 uniqueParamNames.add(codebase.impl()); // pretend we found it in a PARAM already 871 871 } 872 872 -
trunk/WebCore/rendering/render_line.cpp
r12263 r12321 761 761 if (object()->style()->visibility() == VISIBLE && object()->style()->outlineWidth() > 0 && 762 762 !object()->isInlineContinuation() && !isRootInlineBox()) { 763 i.outlineObjects. insert(flowObject());763 i.outlineObjects.add(flowObject()); 764 764 } 765 765 } -
trunk/WebCore/xml/xmlhttprequest.cpp
r12282 r12321 568 568 569 569 assert(!requests->contains(this)); 570 requests-> insert(this);570 requests->add(this); 571 571 } 572 572
Note:
See TracChangeset
for help on using the changeset viewer.