Fix for bug CORBA error on getAttributes() for document frame, r=ginn.chen

This commit is contained in:
surkov.alexander%gmail.com 2007-04-07 08:58:29 +00:00
Родитель 89b58c9f11
Коммит 104f097932
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -456,6 +456,15 @@ NS_IMETHODIMP nsDocAccessible::GetParent(nsIAccessible **aParent)
return mParent ? nsAccessible::GetParent(aParent) : NS_ERROR_FAILURE; return mParent ? nsAccessible::GetParent(aParent) : NS_ERROR_FAILURE;
} }
NS_IMETHODIMP
nsDocAccessible::GetAttributes(nsIPersistentProperties **aAttributes)
{
NS_ENSURE_ARG_POINTER(aAttributes);
*aAttributes = nsnull;
return mDOMNode ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessible::Init() NS_IMETHODIMP nsDocAccessible::Init()
{ {
PutCacheEntry(gGlobalDocAccessibleCache, mWeakShell, this); PutCacheEntry(gGlobalDocAccessibleCache, mWeakShell, this);

Просмотреть файл

@ -81,6 +81,7 @@ class nsDocAccessible : public nsHyperTextAccessible,
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState); NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
NS_IMETHOD GetFocusedChild(nsIAccessible **aFocusedChild); NS_IMETHOD GetFocusedChild(nsIAccessible **aFocusedChild);
NS_IMETHOD GetParent(nsIAccessible **aParent); NS_IMETHOD GetParent(nsIAccessible **aParent);
NS_IMETHOD GetAttributes(nsIPersistentProperties **aAttributes);
NS_IMETHOD TakeFocus(void); NS_IMETHOD TakeFocus(void);
// ----- nsIScrollPositionListener --------------------------- // ----- nsIScrollPositionListener ---------------------------