NotesNode::NotesNode(Node * p) : BranchNode(p) , action_node_(this, NoteInfo()) { mutable_type() = NODE_TYPE_NOTE_CONTAINER; actionNode().mutable_type() = NODE_TYPE_NEW_NOTE; }
already_AddRefed<nsIAccessible> nsLinkableAccessible::GetActionAccessible() { // Return accessible for the action content if it's different from node of // this accessible. If the action accessible is not null then it is used to // redirect methods calls otherwise we use method implementation from the // base class. nsCOMPtr<nsIDOMNode> actionNode(do_QueryInterface(mActionContent)); if (!actionNode || mDOMNode == actionNode) return nsnull; nsIAccessible *accessible = nsnull; GetAccService()->GetAccessibleInWeakShell(actionNode, mWeakShell, &accessible); return accessible; }