From d6b6d158d015df210c580e62b5bd11be825239b3 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 14 Mar 2013 01:33:37 -0400 Subject: [PATCH] bug 850990 - remove nsAccessNode::IsDocumentNode() r=surkov --- accessible/src/base/nsAccessNode.h | 4 ---- accessible/src/base/nsTextEquivUtils.cpp | 2 +- accessible/src/generic/Accessible.cpp | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/accessible/src/base/nsAccessNode.h b/accessible/src/base/nsAccessNode.h index fef2d2ae0406..beed6774cf74 100644 --- a/accessible/src/base/nsAccessNode.h +++ b/accessible/src/base/nsAccessNode.h @@ -68,10 +68,6 @@ public: { return GetNode() && GetNode()->IsNodeOfType(nsINode::eCONTENT); } - bool IsDocumentNode() const - { - return GetNode() && GetNode()->IsNodeOfType(nsINode::eDOCUMENT); - } /** * Return the unique identifier of the accessible. diff --git a/accessible/src/base/nsTextEquivUtils.cpp b/accessible/src/base/nsTextEquivUtils.cpp index 07c8482e90ef..959ba54738d4 100644 --- a/accessible/src/base/nsTextEquivUtils.cpp +++ b/accessible/src/base/nsTextEquivUtils.cpp @@ -265,7 +265,7 @@ nsTextEquivUtils::AppendFromValue(Accessible* aAccessible, } //XXX: is it necessary to care the accessible is not a document? - if (aAccessible->IsDocumentNode()) + if (aAccessible->IsDoc()) return NS_ERROR_UNEXPECTED; nsIContent *content = aAccessible->GetContent(); diff --git a/accessible/src/generic/Accessible.cpp b/accessible/src/generic/Accessible.cpp index d0554855c22e..7b45e9eb89cc 100644 --- a/accessible/src/generic/Accessible.cpp +++ b/accessible/src/generic/Accessible.cpp @@ -3038,7 +3038,7 @@ Accessible::ContainerWidget() const } // Don't cross DOM document boundaries. - if (parent->IsDocumentNode()) + if (parent->IsDoc()) break; } }