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

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

Issue 2788523002: Finish all string attributes for Accessibility Object Model Phase 1. (Closed)
Patch Set: notifyAttributeChanged Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index c628d6e0f000c4eb5b238dedb91035c238c8d252..7a1ba40bd6a8d06cb3bd7a4494e7bafa35f26a45 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -31,6 +31,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/CSSPropertyNames.h"
#include "core/InputTypeNames.h"
+#include "core/dom/AccessibleNode.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/Range.h"
#include "core/dom/shadow/ShadowRoot.h"
@@ -1326,7 +1327,8 @@ const AtomicString& AXLayoutObject::liveRegionStatus() const {
DEFINE_STATIC_LOCAL(const AtomicString, liveRegionStatusPolite, ("polite"));
DEFINE_STATIC_LOCAL(const AtomicString, liveRegionStatusOff, ("off"));
- const AtomicString& liveRegionStatus = getAttribute(aria_liveAttr);
+ const AtomicString& liveRegionStatus =
+ getAOMPropertyOrARIAAttribute(AOMStringProperty::kLive);
// These roles have implicit live region status.
if (liveRegionStatus.isEmpty()) {
switch (roleValue()) {
@@ -1350,7 +1352,8 @@ const AtomicString& AXLayoutObject::liveRegionStatus() const {
const AtomicString& AXLayoutObject::liveRegionRelevant() const {
DEFINE_STATIC_LOCAL(const AtomicString, defaultLiveRegionRelevant,
("additions text"));
- const AtomicString& relevant = getAttribute(aria_relevantAttr);
+ const AtomicString& relevant =
+ getAOMPropertyOrARIAAttribute(AOMStringProperty::kRelevant);
// Default aria-relevant = "additions text".
if (relevant.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698