Changeset 102282 in webkit


Ignore:
Timestamp:
Dec 7, 2011 4:28:55 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r102267.
http://trac.webkit.org/changeset/102267
https://bugs.webkit.org/show_bug.cgi?id=74032

Breaks build on Chromium Mac Debug (Requested by aklein on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-12-07

Source/JavaScriptCore:

  • wtf/HashTraits.h:

Source/WebCore:

  • dom/ChildListMutationScope.cpp:

(WebCore::MutationAccumulationRouter::MutationAccumulationRouter::childAdded):
(WebCore::MutationAccumulationRouter::MutationAccumulationRouter::willRemoveChild):
(WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
(WebCore::MutationAccumulationRouter::MutationAccumulationRouter::decrementScopingLevel):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r102267 r102282  
     12011-12-07  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r102267.
     4        http://trac.webkit.org/changeset/102267
     5        https://bugs.webkit.org/show_bug.cgi?id=74032
     6
     7        Breaks build on Chromium Mac Debug (Requested by aklein on
     8        #webkit).
     9
     10        * wtf/HashTraits.h:
     11
    1122011-12-07  Adam Klein  <adamk@chromium.org>
    213
  • trunk/Source/JavaScriptCore/wtf/HashTraits.h

    r102267 r102282  
    118118        typedef PassOwnPtr<P> PassOutType;
    119119        static PassOwnPtr<P> passOut(OwnPtr<P>& value) { return value.release(); }
    120         static PassOwnPtr<P> passOut(std::nullptr_t) { return nullptr; }
    121120
    122121        typedef typename OwnPtr<P>::PtrType PeekType;
  • trunk/Source/WebCore/ChangeLog

    r102281 r102282  
     12011-12-07  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r102267.
     4        http://trac.webkit.org/changeset/102267
     5        https://bugs.webkit.org/show_bug.cgi?id=74032
     6
     7        Breaks build on Chromium Mac Debug (Requested by aklein on
     8        #webkit).
     9
     10        * dom/ChildListMutationScope.cpp:
     11        (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::childAdded):
     12        (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::willRemoveChild):
     13        (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
     14        (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::decrementScopingLevel):
     15
    1162011-12-07  Kentaro Hara  <haraken@chromium.org>
    217
  • trunk/Source/WebCore/dom/ChildListMutationScope.cpp

    r102267 r102282  
    4141#include "StaticNodeList.h"
    4242#include <wtf/HashMap.h>
    43 #include <wtf/OwnPtr.h>
     43#include <wtf/RefCounted.h>
    4444
    4545namespace WebCore {
     
    5151// in WebCore) it will likely result in both (a) ASSERTions failing, and (b) mutation records
    5252// being enqueued for delivery before the outer-most scope closes.
    53 class ChildListMutationAccumulator {
     53class ChildListMutationAccumulator : public RefCounted<ChildListMutationAccumulator> {
    5454    WTF_MAKE_NONCOPYABLE(ChildListMutationAccumulator);
    5555public:
     
    9696    typedef HashMap<Node*, unsigned> ScopingLevelMap;
    9797    ScopingLevelMap m_scopingLevels;
    98     HashMap<Node*, OwnPtr<ChildListMutationAccumulator> > m_accumulations;
     98    HashMap<Node*, RefPtr<ChildListMutationAccumulator> > m_accumulations;
    9999
    100100    static MutationAccumulationRouter* s_instance;
     
    217217void MutationAccumulationRouter::childAdded(Node* target, Node* child)
    218218{
    219     HashMap<Node*, OwnPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);
     219    HashMap<Node*, RefPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);
    220220    ASSERT(iter != m_accumulations.end());
    221221
     
    226226void MutationAccumulationRouter::willRemoveChild(Node* target, Node* child)
    227227{
    228     HashMap<Node*, OwnPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);
     228    HashMap<Node*, RefPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);
    229229    ASSERT(iter != m_accumulations.end());
    230230
     
    243243    OwnPtr<MutationObserverInterestGroup> observers = MutationObserverInterestGroup::createForChildListMutation(target);
    244244    if (observers->isEmpty())
    245         m_accumulations.set(target, nullptr);
     245        m_accumulations.set(target, 0);
    246246    else
    247         m_accumulations.set(target, adoptPtr(new ChildListMutationAccumulator(target, observers.release())));
     247        m_accumulations.set(target, adoptRef(new ChildListMutationAccumulator(target, observers.release())));
    248248}
    249249
     
    259259    m_scopingLevels.remove(iter);
    260260
    261     OwnPtr<ChildListMutationAccumulator> record = m_accumulations.take(target);
     261    RefPtr<ChildListMutationAccumulator> record = m_accumulations.take(target);
    262262    if (record)
    263263        record->enqueueMutationRecord();
Note: See TracChangeset for help on using the changeset viewer.