Changeset 102282 in webkit
- Timestamp:
- Dec 7, 2011 4:28:55 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r102267 r102282 1 2011-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 1 12 2011-12-07 Adam Klein <adamk@chromium.org> 2 13 -
trunk/Source/JavaScriptCore/wtf/HashTraits.h
r102267 r102282 118 118 typedef PassOwnPtr<P> PassOutType; 119 119 static PassOwnPtr<P> passOut(OwnPtr<P>& value) { return value.release(); } 120 static PassOwnPtr<P> passOut(std::nullptr_t) { return nullptr; }121 120 122 121 typedef typename OwnPtr<P>::PtrType PeekType; -
trunk/Source/WebCore/ChangeLog
r102281 r102282 1 2011-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 1 16 2011-12-07 Kentaro Hara <haraken@chromium.org> 2 17 -
trunk/Source/WebCore/dom/ChildListMutationScope.cpp
r102267 r102282 41 41 #include "StaticNodeList.h" 42 42 #include <wtf/HashMap.h> 43 #include <wtf/ OwnPtr.h>43 #include <wtf/RefCounted.h> 44 44 45 45 namespace WebCore { … … 51 51 // in WebCore) it will likely result in both (a) ASSERTions failing, and (b) mutation records 52 52 // being enqueued for delivery before the outer-most scope closes. 53 class ChildListMutationAccumulator {53 class ChildListMutationAccumulator : public RefCounted<ChildListMutationAccumulator> { 54 54 WTF_MAKE_NONCOPYABLE(ChildListMutationAccumulator); 55 55 public: … … 96 96 typedef HashMap<Node*, unsigned> ScopingLevelMap; 97 97 ScopingLevelMap m_scopingLevels; 98 HashMap<Node*, OwnPtr<ChildListMutationAccumulator> > m_accumulations;98 HashMap<Node*, RefPtr<ChildListMutationAccumulator> > m_accumulations; 99 99 100 100 static MutationAccumulationRouter* s_instance; … … 217 217 void MutationAccumulationRouter::childAdded(Node* target, Node* child) 218 218 { 219 HashMap<Node*, OwnPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);219 HashMap<Node*, RefPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target); 220 220 ASSERT(iter != m_accumulations.end()); 221 221 … … 226 226 void MutationAccumulationRouter::willRemoveChild(Node* target, Node* child) 227 227 { 228 HashMap<Node*, OwnPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target);228 HashMap<Node*, RefPtr<ChildListMutationAccumulator> >::iterator iter = m_accumulations.find(target); 229 229 ASSERT(iter != m_accumulations.end()); 230 230 … … 243 243 OwnPtr<MutationObserverInterestGroup> observers = MutationObserverInterestGroup::createForChildListMutation(target); 244 244 if (observers->isEmpty()) 245 m_accumulations.set(target, nullptr);245 m_accumulations.set(target, 0); 246 246 else 247 m_accumulations.set(target, adopt Ptr(new ChildListMutationAccumulator(target, observers.release())));247 m_accumulations.set(target, adoptRef(new ChildListMutationAccumulator(target, observers.release()))); 248 248 } 249 249 … … 259 259 m_scopingLevels.remove(iter); 260 260 261 OwnPtr<ChildListMutationAccumulator> record = m_accumulations.take(target);261 RefPtr<ChildListMutationAccumulator> record = m_accumulations.take(target); 262 262 if (record) 263 263 record->enqueueMutationRecord();
Note: See TracChangeset
for help on using the changeset viewer.