diff options
Diffstat (limited to 'accessible/generic/DocAccessible.cpp')
-rw-r--r-- | accessible/generic/DocAccessible.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/accessible/generic/DocAccessible.cpp b/accessible/generic/DocAccessible.cpp index 8fda3b44f..8c423193c 100644 --- a/accessible/generic/DocAccessible.cpp +++ b/accessible/generic/DocAccessible.cpp @@ -48,9 +48,7 @@ #include "mozilla/dom/DocumentType.h" #include "mozilla/dom/Element.h" -#ifdef MOZ_XUL #include "nsIXULDocument.h" -#endif using namespace mozilla; using namespace mozilla::a11y; @@ -210,11 +208,9 @@ DocAccessible::NativeRole() return roles::CHROME_WINDOW; if (itemType == nsIDocShellTreeItem::typeContent) { -#ifdef MOZ_XUL nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocumentNode)); if (xulDoc) return roles::APPLICATION; -#endif return roles::DOCUMENT; } } @@ -387,13 +383,11 @@ DocAccessible::URL(nsAString& aURL) const void DocAccessible::DocType(nsAString& aType) const { -#ifdef MOZ_XUL nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocumentNode)); if (xulDoc) { aType.AssignLiteral("window"); // doctype not implemented for XUL at time of writing - causes assertion return; } -#endif dom::DocumentType* docType = mDocumentNode->GetDoctype(); if (docType) docType->GetPublicId(aType); |