[Webkit-unassigned] [Bug 97825] New: AX: labelForElement is slow when there are a lot of DOM elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 27 15:46:15 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=97825
Summary: AX: labelForElement is slow when there are a lot of
DOM elements
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Accessibility
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dmazzoni at google.com
See related bug: https://bugs.webkit.org/show_bug.cgi?id=33253
Currently AccessibilityNodeObject::labelForElement, which is used to find the <label> associated with a focusable control, scans all of the nodes in the DOM tree to find possible labels, which can be inefficient. This function shows up as a bottleneck when I run various Chrome benchmarks with accessibility enabled.
Proposed alternative: AXObjectCache should maintain a hash map from label id to label element. It should be generated lazily the first time it's needed, then updated every time a label is modified or deleted.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list