Chromium Code Reviews
DescriptionMerge 2924: Avoid updateStyleAndLayoutTree in determineAccessibilityRole
This patch avoids updating layout tree in
AXNodeObject::determineAccessibilityRole().
Element::isFocusable() requires styles to be updated. However, when
layout code calls determineAccessibilityRole(), updating layout tree
should be avoided since it may destroy the calling object.
This patch replaces it to supportsFocus(), since the main purpose is
to give elements with tabIndex explicitly set get some role.
This is a speculative fix.
BUG=590369, 647602, 665168
Review-Url: https://codereview.chromium.org/2532023002
Cr-Commit-Position: refs/heads/master@{#435009}
(cherry picked from commit 338b38e06760302a8010bfea008865f55db4db0c)
Committed: https://chromium.googlesource.com/chromium/src/+/13ae3f245af2124718f024ae13f328c27c618f09
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||