зеркало из https://github.com/mozilla/gecko-dev.git
bug 657719 - nsAccessible::IsSelected() hidden overloaded virtual method r=surkov
From 4a0905d51ad8b84af7f627284131f355d3156c69 Mon Sep 17 00:00:00 2001 --- accessible/src/base/nsAccessible.cpp | 9 +-------- accessible/src/base/nsAccessible.h | 7 ++++++- 2 files changed, 7 insertions(+), 9 deletions(-)
This commit is contained in:
Родитель
ab9151e423
Коммит
d3a0c9a420
|
@ -2626,7 +2626,7 @@ nsAccessible::GetSelected(PRBool *aSelected)
|
|||
if (IsDefunct())
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
*aSelected = IsSelected();
|
||||
*aSelected = IsLinkSelected();
|
||||
return NS_OK;
|
||||
|
||||
}
|
||||
|
@ -2932,13 +2932,6 @@ nsAccessible::IsValid()
|
|||
// to force it for links they internally know to be invalid
|
||||
}
|
||||
|
||||
bool
|
||||
nsAccessible::IsSelected()
|
||||
{
|
||||
NS_PRECONDITION(IsHyperLink(), "IsSelected is called on not hyper link!");
|
||||
return (gLastFocusedNode == GetNode());
|
||||
}
|
||||
|
||||
PRUint32
|
||||
nsAccessible::AnchorCount()
|
||||
{
|
||||
|
|
|
@ -426,7 +426,12 @@ public:
|
|||
/**
|
||||
* Return true if the link currently has the focus.
|
||||
*/
|
||||
virtual bool IsSelected();
|
||||
inline bool IsLinkSelected()
|
||||
{
|
||||
NS_PRECONDITION(IsHyperlink(),
|
||||
"IsLinkSelected() called on something that is not a hyper link!");
|
||||
return gLastFocusedNode == GetNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the number of anchors within the link.
|
||||
|
|
Загрузка…
Ссылка в новой задаче