Bug 754857 - Speed up text leaf accessible state calculation, r=tbsaunde

This commit is contained in:
Alexander Surkov 2012-05-23 19:26:18 +09:00
parent eb7c23a3ef
commit 3246c1d437
2 changed files with 0 additions and 17 deletions

View File

@ -47,22 +47,6 @@ nsHTMLTextAccessible::NativeRole()
return nsTextAccessible::NativeRole();
}
PRUint64
nsHTMLTextAccessible::NativeState()
{
PRUint64 state = nsTextAccessible::NativeState();
nsDocAccessible* docAccessible = Document();
if (docAccessible) {
PRUint64 docState = docAccessible->State();
if (0 == (docState & states::EDITABLE)) {
state |= states::READONLY; // Links not focusable in editor
}
}
return state;
}
nsresult
nsHTMLTextAccessible::GetAttributesInternal(nsIPersistentProperties *aAttributes)
{

View File

@ -25,7 +25,6 @@ public:
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName);
virtual nsresult GetAttributesInternal(nsIPersistentProperties *aAttributes);
virtual mozilla::a11y::role NativeRole();
virtual PRUint64 NativeState();
};
/**