Index: content/renderer/accessibility/blink_ax_tree_source.cc |
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc |
index 8ae828e97ed634b76b2567f3a32e6905dc35e660..5c804bf89e4cad852b59c050efacf60b5cf01f65 100644 |
--- a/content/renderer/accessibility/blink_ax_tree_source.cc |
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc |
@@ -398,20 +398,8 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src, |
line_breaks.push_back(src_line_breaks[i]); |
dst->AddIntListAttribute(ui::AX_ATTR_LINE_BREAKS, line_breaks); |
} |
- |
- if (dst->role == ui::AX_ROLE_TEXT_FIELD && |
- src.textInputType().length()) { |
- dst->AddStringAttribute(ui::AX_ATTR_TEXT_INPUT_TYPE, |
- UTF16ToUTF8(src.textInputType())); |
- } |
} |
- blink::WebAXOptionalBool optionalBool = src.isAriaGrabbed(); |
- if (optionalBool == blink::WebAXOptionalBoolFalse) |
- dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, false); |
- else if (optionalBool == blink::WebAXOptionalBoolTrue) |
- dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, true); |
- |
// ARIA role. |
if (element.hasAttribute("role")) { |
dst->AddStringAttribute(ui::AX_ATTR_ROLE, |
@@ -420,6 +408,8 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src, |
std::string role = GetEquivalentAriaRoleString(dst->role); |
if (!role.empty()) |
dst->AddStringAttribute(ui::AX_ATTR_ROLE, role); |
+ else if (dst->role == ui::AX_ROLE_TIME) |
+ dst->AddStringAttribute(ui::AX_ATTR_ROLE, "time"); |
} |
// Browser plugin (used in a <webview>). |
@@ -608,11 +598,6 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src, |
ui::AX_ATTR_DESCRIBEDBY_IDS, describedby, dst); |
} |
- if (src.ariaDropEffect().length()) { |
- dst->AddStringAttribute(ui::AX_ATTR_DROPEFFECT, |
- UTF16ToUTF8(src.ariaDropEffect())); |
- } |
- |
WebVector<WebAXObject> flowTo; |
if (src.ariaFlowTo(flowTo)) |
AddIntListAttributeFromWebObjects(ui::AX_ATTR_FLOWTO_IDS, flowTo, dst); |