mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 513451 remove nsPresShell::EnumeratePlugins, it's been unused since bug 480819
r+sr=roc
This commit is contained in:
parent
411a24dcdd
commit
c39efe899d
@ -1263,11 +1263,6 @@ private:
|
||||
PRPackedBool mAsyncResizeTimerIsActive;
|
||||
PRPackedBool mInResize;
|
||||
|
||||
typedef void (*nsPluginEnumCallback)(PresShell*, nsIContent*);
|
||||
void EnumeratePlugins(nsIDOMDocument *aDocument,
|
||||
const nsString &aPluginTag,
|
||||
nsPluginEnumCallback aCallback);
|
||||
|
||||
private:
|
||||
/*
|
||||
* Computes the backstop color for the view: transparent if in a transparent
|
||||
@ -7407,29 +7402,6 @@ PresShell::Observe(nsISupports* aSubject,
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
void
|
||||
PresShell::EnumeratePlugins(nsIDOMDocument *aDocument,
|
||||
const nsString &aPluginTag,
|
||||
nsPluginEnumCallback aCallback)
|
||||
{
|
||||
nsCOMPtr<nsIDOMNodeList> nodes;
|
||||
aDocument->GetElementsByTagName(aPluginTag, getter_AddRefs(nodes));
|
||||
if (!nodes)
|
||||
return;
|
||||
|
||||
PRUint32 length;
|
||||
nodes->GetLength(&length);
|
||||
|
||||
for (PRUint32 i = 0; i < length; ++i) {
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
nodes->Item(i, getter_AddRefs(node));
|
||||
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(node);
|
||||
if (content)
|
||||
aCallback(this, content);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------
|
||||
// End of protected and private methods on the PresShell
|
||||
//------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user