зеркало из https://github.com/mozilla/gecko-dev.git
bug 801459 - remove unused function r=surkov
This commit is contained in:
Родитель
96865bc6d7
Коммит
732ef9a77f
|
@ -62,7 +62,7 @@ public:
|
|||
AccEvent(uint32_t aEventType, Accessible* aAccessible,
|
||||
EIsFromUserInput aIsFromUserInput = eAutoDetect,
|
||||
EEventRule aEventRule = eRemoveDupes);
|
||||
// Initialize with an nsIDOMNode
|
||||
// Initialize with an nsINode
|
||||
AccEvent(uint32_t aEventType, nsINode* aNode,
|
||||
EIsFromUserInput aIsFromUserInput = eAutoDetect,
|
||||
EEventRule aEventRule = eRemoveDupes);
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "mozilla/dom/Element.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIPersistentProperties2.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsPoint.h"
|
||||
|
|
|
@ -481,26 +481,6 @@ nsCoreUtils::IsErrorPage(nsIDocument *aDocument)
|
|||
return StringBeginsWith(path, neterror) || StringBeginsWith(path, certerror);
|
||||
}
|
||||
|
||||
already_AddRefed<nsIDOMNode>
|
||||
nsCoreUtils::GetDOMNodeForContainer(nsIDocShellTreeItem *aContainer)
|
||||
{
|
||||
nsCOMPtr<nsIDocShell> shell = do_QueryInterface(aContainer);
|
||||
|
||||
nsCOMPtr<nsIContentViewer> cv;
|
||||
shell->GetContentViewer(getter_AddRefs(cv));
|
||||
|
||||
if (!cv)
|
||||
return nullptr;
|
||||
|
||||
nsIDocument* doc = cv->GetDocument();
|
||||
if (!doc)
|
||||
return nullptr;
|
||||
|
||||
nsIDOMNode* node = nullptr;
|
||||
CallQueryInterface(doc, &node);
|
||||
return node;
|
||||
}
|
||||
|
||||
bool
|
||||
nsCoreUtils::GetID(nsIContent *aContent, nsAString& aID)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "nsTArray.h"
|
||||
|
||||
class nsRange;
|
||||
class nsIDOMNode;
|
||||
class nsIFrame;
|
||||
class nsIDocShellTreeItem;
|
||||
class nsITreeColumn;
|
||||
|
@ -209,12 +208,6 @@ public:
|
|||
return aNode->OwnerDoc()->GetShell();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return document node for the given document shell tree item.
|
||||
*/
|
||||
static already_AddRefed<nsIDOMNode>
|
||||
GetDOMNodeForContainer(nsIDocShellTreeItem *aContainer);
|
||||
|
||||
/**
|
||||
* Get the ID for an element, in some types of XML this may not be the ID attribute
|
||||
* @param aContent Node to get the ID for
|
||||
|
|
Загрузка…
Ссылка в новой задаче