Bug 388910 - building with disabled MOZ_XUL failed, patch=romaxa@gmail.com, r=me, sr=neil

This commit is contained in:
surkov.alexander@gmail.com 2007-07-24 00:50:51 -07:00
parent d7b847a09b
commit 9ebfcd078b

View File

@ -214,8 +214,11 @@ nsDocAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
// nsAccessible::GetState() always fail for document accessible.
nsAccessible::GetState(aState, aExtraState);
#ifdef MOZ_XUL
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
if (!xulDoc) {
if (!xulDoc)
#endif
{
// XXX Need to invent better check to see if doc is focusable,
// which it should be if it is scrollable. A XUL document could be focusable.
// See bug 376803.