зеркало из https://github.com/mozilla/gecko-dev.git
Bug 630841 - update text offsets when remove child from hypertext accessible, r=surkov, a=final
This commit is contained in:
Родитель
dd21ec36e9
Коммит
a79a118821
|
@ -2093,6 +2093,17 @@ nsHyperTextAccessible::InvalidateChildren()
|
|||
nsAccessibleWrap::InvalidateChildren();
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsHyperTextAccessible::RemoveChild(nsAccessible* aAccessible)
|
||||
{
|
||||
PRInt32 childIndex = aAccessible->GetIndexInParent();
|
||||
PRInt32 count = mOffsets.Length() - childIndex;
|
||||
if (count > 0)
|
||||
mOffsets.RemoveElementsAt(childIndex, count);
|
||||
|
||||
return nsAccessible::RemoveChild(aAccessible);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// nsHyperTextAccessible public static
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ public:
|
|||
virtual nsresult GetStateInternal(PRUint32 *aState, PRUint32 *aExtraState);
|
||||
|
||||
virtual void InvalidateChildren();
|
||||
virtual PRBool RemoveChild(nsAccessible* aAccessible);
|
||||
|
||||
// nsHyperTextAccessible (static helper method)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче