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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 1667623002: Make sure Document::updateLayoutTree*() is called before Element::isFocusable(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 06aafbcab4efdc8f313282d56e07b9c5c912143a..e8a60d8448656def99306770033d35ec740fedf0 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -518,8 +518,11 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole()
return role;
if (node()->isElementNode()) {
Element* element = toElement(node());
- if (element->isInCanvasSubtree() && element->isFocusable())
- return GroupRole;
+ if (element->isInCanvasSubtree()) {
+ document()->updateLayoutTreeIgnorePendingStylesheets();
+ if (element->isFocusable())
+ return GroupRole;
+ }
}
return UnknownRole;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698