Changeset 48732 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 24, 2009, 2:18:26 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore: Renamed clear to removeAll, as suggested by Darin Adler.

Patch by Geoffrey Garen <[email protected]> on 2009-09-24
Reviewed by Sam Weinig.

  • wtf/HashCountedSet.h:

(WTF::::removeAll):

WebCore: Added back enable/disableSuddenTermination() functionality I accidentally
removed in my last patch.

Patch by Geoffrey Garen <[email protected]> on 2009-09-24
Reviewed by Sam Weinig.

  • page/DOMWindow.cpp:

(WebCore::addUnloadEventListener):
(WebCore::removeUnloadEventListener):
(WebCore::removeAllUnloadEventListeners):
(WebCore::addBeforeUnloadEventListener):
(WebCore::removeBeforeUnloadEventListener):
(WebCore::removeAllBeforeUnloadEventListeners):
(WebCore::DOMWindow::dispatchAllPendingUnloadEvents):
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::addEventListener):
(WebCore::DOMWindow::removeEventListener):
(WebCore::DOMWindow::removeAllEventListeners):

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r48731 r48732  
     12009-09-24  Geoffrey Garen  <[email protected]>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Renamed clear to removeAll, as suggested by Darin Adler.
     6
     7        * wtf/HashCountedSet.h:
     8        (WTF::::removeAll):
     9
    1102009-09-24  Mark Rowe  <[email protected]>
    211
  • trunk/JavaScriptCore/wtf/HashCountedSet.h

    r48727 r48732  
    6666 
    6767        // removes the value, regardless of its count
    68         void clear(iterator);
    69         void clear(const ValueType&);
     68        void removeAll(iterator);
     69        void removeAll(const ValueType&);
    7070
    7171        // clears the whole set
     
    172172   
    173173    template<typename Value, typename HashFunctions, typename Traits>
    174     inline void HashCountedSet<Value, HashFunctions, Traits>::clear(const ValueType& value)
    175     {
    176         clear(find(value));
    177     }
    178    
    179     template<typename Value, typename HashFunctions, typename Traits>
    180     inline void HashCountedSet<Value, HashFunctions, Traits>::clear(iterator it)
     174    inline void HashCountedSet<Value, HashFunctions, Traits>::removeAll(const ValueType& value)
     175    {
     176        removeAll(find(value));
     177    }
     178   
     179    template<typename Value, typename HashFunctions, typename Traits>
     180    inline void HashCountedSet<Value, HashFunctions, Traits>::removeAll(iterator it)
    181181    {
    182182        if (it == end())
Note: See TracChangeset for help on using the changeset viewer.