mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1478879 - Remove Range/Enum use in dom/. r=mccr8
--HG-- extra : rebase_source : 422301183e7855a0a994c77ee1e4a4aed72fd9c5
This commit is contained in:
parent
f32766d3de
commit
d0da0b5842
@ -264,8 +264,8 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(CustomElementRegistry)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(CustomElementRegistry)
|
||||
for (ConstructorMap::Enum iter(tmp->mConstructors); !iter.empty(); iter.popFront()) {
|
||||
aCallbacks.Trace(&iter.front().mutableKey(),
|
||||
for (auto iter = tmp->mConstructors.iter(); !iter.done(); iter.next()) {
|
||||
aCallbacks.Trace(&iter.get().mutableKey(),
|
||||
"mConstructors key",
|
||||
aClosure);
|
||||
}
|
||||
|
@ -2021,8 +2021,8 @@ nsJSNPRuntime::OnPluginDestroy(NPP npp)
|
||||
// Prevent modification of sJSObjWrappers table if we go reentrant.
|
||||
sJSObjWrappersAccessible = false;
|
||||
|
||||
for (JSObjWrapperTable::Enum e(sJSObjWrappers); !e.empty(); e.popFront()) {
|
||||
nsJSObjWrapper *npobj = e.front().value();
|
||||
for (auto iter = sJSObjWrappers.modIter(); !iter.done(); iter.next()) {
|
||||
nsJSObjWrapper* npobj = iter.get().value();
|
||||
MOZ_ASSERT(npobj->_class == &nsJSObjWrapper::sJSObjWrapperNPClass);
|
||||
if (npobj->mNpp == npp) {
|
||||
if (npobj->_class && npobj->_class->invalidate) {
|
||||
@ -2031,7 +2031,7 @@ nsJSNPRuntime::OnPluginDestroy(NPP npp)
|
||||
|
||||
_releaseobject(npobj);
|
||||
|
||||
e.removeFront();
|
||||
iter.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@ -2094,8 +2094,8 @@ nsJSNPRuntime::OnPluginDestroyPending(NPP npp)
|
||||
if (sJSObjWrappersAccessible) {
|
||||
// Prevent modification of sJSObjWrappers table if we go reentrant.
|
||||
sJSObjWrappersAccessible = false;
|
||||
for (JSObjWrapperTable::Enum e(sJSObjWrappers); !e.empty(); e.popFront()) {
|
||||
nsJSObjWrapper *npobj = e.front().value();
|
||||
for (auto iter = sJSObjWrappers.iter(); !iter.done(); iter.next()) {
|
||||
nsJSObjWrapper* npobj = iter.get().value();
|
||||
MOZ_ASSERT(npobj->_class == &nsJSObjWrapper::sJSObjWrapperNPClass);
|
||||
if (npobj->mNpp == npp) {
|
||||
npobj->mDestroyPending = true;
|
||||
|
Loading…
Reference in New Issue
Block a user