зеркало из https://github.com/mozilla/gecko-dev.git
Bug 754857 - Speed up text leaf accessible state calculation, r=tbsaunde
This commit is contained in:
Родитель
5a93e907b9
Коммит
ef8f1dec69
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче