Bug 767757 - Move nsAccessNode::Init() to Acccessible::Init() r=trev.saunders

This commit is contained in:
Andrew Quartey 2012-07-10 14:32:30 +02:00
parent d620727817
commit 697500916b
5 changed files with 11 additions and 12 deletions

View File

@ -74,12 +74,6 @@ void nsAccessNode::LastRelease()
////////////////////////////////////////////////////////////////////////////////
// nsAccessNode public
bool
nsAccessNode::Init()
{
return true;
}
void
nsAccessNode::Shutdown()

View File

@ -63,11 +63,6 @@ public:
*/
mozilla::a11y::RootAccessible* RootAccessible() const;
/**
* Initialize the access node object, add it to the cache.
*/
virtual bool Init();
/**
* Shutdown the access node object.
*/

View File

@ -194,6 +194,12 @@ Accessible::SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry)
mRoleMapEntry = aRoleMapEntry;
}
bool
Accessible::Init()
{
return true;
}
NS_IMETHODIMP
Accessible::GetDocument(nsIAccessibleDocument** aDocument)
{

View File

@ -126,6 +126,11 @@ public:
//////////////////////////////////////////////////////////////////////////////
// Public methods
/**
* Initialize the accessible.
*/
virtual bool Init();
/**
* Get the description of this accessible.
*/

View File

@ -393,7 +393,6 @@ nsAccessNodeWrap::MakeAccessNode(nsINode *aNode)
if (!newNode)
return NULL;
newNode->Init();
iNode = static_cast<ISimpleDOMNode*>(newNode);
iNode->AddRef();
}