зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446668: Remove more dead code after bug 749981. r=smaug
Reviewers: smaug Bug #: 1446668 Differential Revision: https://phabricator.services.mozilla.com/D757 MozReview-Commit-ID: CWv0odRUxgK
This commit is contained in:
Родитель
d2dbc4de71
Коммит
bf8ff28130
|
@ -1522,14 +1522,6 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
|||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(FragmentOrElement)
|
||||
|
||||
void
|
||||
FragmentOrElement::MarkUserData(void* aObject, nsAtom* aKey, void* aChild,
|
||||
void* aData)
|
||||
{
|
||||
uint32_t* gen = static_cast<uint32_t*>(aData);
|
||||
xpc_MarkInCCGeneration(static_cast<nsISupports*>(aChild), *gen);
|
||||
}
|
||||
|
||||
void
|
||||
FragmentOrElement::MarkNodeChildren(nsINode* aNode)
|
||||
{
|
||||
|
|
|
@ -207,8 +207,6 @@ public:
|
|||
static void RemoveBlackMarkedNode(nsINode* aNode);
|
||||
static void MarkNodeChildren(nsINode* aNode);
|
||||
static void InitCCCallbacks();
|
||||
static void MarkUserData(void* aObject, nsAtom* aKey, void* aChild,
|
||||
void *aData);
|
||||
|
||||
/**
|
||||
* Is the HTML local name a void element?
|
||||
|
|
|
@ -400,21 +400,6 @@ nsXPConnect::GetInfoForIID(const nsIID * aIID, nsIInterfaceInfo** info)
|
|||
return XPTInterfaceInfoManager::GetSingleton()->GetInfoForIID(aIID, info);
|
||||
}
|
||||
|
||||
void
|
||||
xpc_MarkInCCGeneration(nsISupports* aVariant, uint32_t aGeneration)
|
||||
{
|
||||
nsCOMPtr<XPCVariant> variant = do_QueryInterface(aVariant);
|
||||
if (variant) {
|
||||
variant->SetCCGeneration(aGeneration);
|
||||
variant->GetJSVal(); // Unmarks gray JSObject.
|
||||
XPCVariant* weak = variant.get();
|
||||
variant = nullptr;
|
||||
if (weak->IsPurple()) {
|
||||
weak->RemovePurple();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
xpc_TryUnmarkWrappedGrayObject(nsISupports* aWrappedJS)
|
||||
{
|
||||
|
|
|
@ -226,11 +226,6 @@ xpc_FastGetCachedWrapper(JSContext* cx, nsWrapperCache* cache, JS::MutableHandle
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// If aVariant is an XPCVariant, this marks the object to be in aGeneration.
|
||||
// This also unmarks the gray JSObject.
|
||||
extern void
|
||||
xpc_MarkInCCGeneration(nsISupports* aVariant, uint32_t aGeneration);
|
||||
|
||||
// If aWrappedJS is a JS wrapper, unmark its JSObject.
|
||||
extern void
|
||||
xpc_TryUnmarkWrappedGrayObject(nsISupports* aWrappedJS);
|
||||
|
|
Загрузка…
Ссылка в новой задаче