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

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

Issue 2502803002: Restrict scope attribute on table cells (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/modules/accessibility/AXTable.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXTable.cpp b/third_party/WebKit/Source/modules/accessibility/AXTable.cpp
index 688b7975a5e133b4743694739bda0e1a68fd1dd5..43208d7f64f65cc8ebacae75ed19bf8ce5dccba6 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXTable.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXTable.cpp
@@ -232,7 +232,8 @@ bool AXTable::isDataTable() const {
if (isHTMLTableCellElement(*cellNode)) {
HTMLTableCellElement& cellElement = toHTMLTableCellElement(*cellNode);
if (!cellElement.headers().isEmpty() || !cellElement.abbr().isEmpty() ||
- !cellElement.axis().isEmpty() || !cellElement.scope().isEmpty())
+ !cellElement.axis().isEmpty() ||
+ !cellElement.getAttribute(scopeAttr).isEmpty())
tkent 2016/11/17 21:59:17 getAttribute -> fastGetAttribute
return true;
}

Powered by Google App Engine
This is Rietveld 408576698