зеркало из https://github.com/mozilla/pjs.git
Bug 630841 - update text offsets when remove child from hypertext accessible, r=surkov, a=final
This commit is contained in:
Родитель
87ef67dcd9
Коммит
f2186c6cc2
|
@ -2093,6 +2093,17 @@ nsHyperTextAccessible::InvalidateChildren()
|
||||||
nsAccessibleWrap::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
|
// nsHyperTextAccessible public static
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ public:
|
||||||
virtual nsresult GetStateInternal(PRUint32 *aState, PRUint32 *aExtraState);
|
virtual nsresult GetStateInternal(PRUint32 *aState, PRUint32 *aExtraState);
|
||||||
|
|
||||||
virtual void InvalidateChildren();
|
virtual void InvalidateChildren();
|
||||||
|
virtual PRBool RemoveChild(nsAccessible* aAccessible);
|
||||||
|
|
||||||
// nsHyperTextAccessible (static helper method)
|
// nsHyperTextAccessible (static helper method)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче