mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 754857 - Speed up text leaf accessible state calculation, r=tbsaunde
This commit is contained in:
parent
eb7c23a3ef
commit
3246c1d437
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user