Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 2532023002: Avoid updateStyleAndLayoutTree in determineAccessibilityRole (Closed)

Created:
4 years ago by kojii
Modified:
4 years ago
Reviewers:
tkent, dmazzoni, eae
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, haraken, je_julie, nektar+watch_chromium.org, nektarios, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/338b38e06760302a8010bfea008865f55db4db0c Cr-Commit-Position: refs/heads/master@{#435009}

Patch Set 1 : Approach 1 #

Patch Set 2 : Approach 2 #

Patch Set 3 : dmazzoni/tkent review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
kojii
tkent@, dmazzoni@, PTAL. cc/eae@ if any opinions, approach 4 (discarded) is layout. I investigated 4 ...
4 years ago (2016-11-28 12:57:11 UTC) #13
tkent
On 2016/11/28 at 12:57:11, kojii wrote: > tkent@, dmazzoni@, PTAL. cc/eae@ if any opinions, approach ...
4 years ago (2016-11-28 23:16:05 UTC) #16
dmazzoni
In this particular case, let's call Element::supportsFocus() instead. The main purpose of that line is ...
4 years ago (2016-11-28 23:25:29 UTC) #17
kojii
Thank you Dominic and tkent for the prompt reviews. On 2016/11/28 at 23:25:29, dmazzoni wrote: ...
4 years ago (2016-11-29 01:29:47 UTC) #20
dmazzoni
lgtm
4 years ago (2016-11-29 16:16:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2532023002/40001
4 years ago (2016-11-29 16:16:33 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-29 16:20:38 UTC) #28
commit-bot: I haz the power
4 years ago (2016-11-29 16:23:29 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/338b38e06760302a8010bfea008865f55db4db0c
Cr-Commit-Position: refs/heads/master@{#435009}

Powered by Google App Engine
This is Rietveld 408576698