Ignore:
Timestamp:
Dec 8, 2011, 5:56:59 PM (13 years ago)
Author:
[email protected]
Message:

Use HashMap<Node*, OwnPtr<...>> in ChildListMutationScope
https://bugs.webkit.org/show_bug.cgi?id=73964

Reviewed by Darin Adler.

Source/JavaScriptCore:

  • wtf/HashTraits.h: Add passOut(std::nullptr_t) to allow callers to use HashMap::take on a HashMap of OwnPtrs.

Source/WebCore:

Re-landing r102267 with a fix for the clang build.

No new tests, refactoring only.

  • dom/ChildListMutationScope.cpp:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/HashTraits.h

    r102282 r102410  
    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; }
    120121
    121122        typedef typename OwnPtr<P>::PtrType PeekType;
Note: See TracChangeset for help on using the changeset viewer.