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

Unified Diff: content/renderer/accessibility/blink_ax_enum_conversion.cc

Issue 744623002: Exposing ARIA state/property aria-orientation on Windows correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing presubmit warning Created 6 years 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: content/renderer/accessibility/blink_ax_enum_conversion.cc
diff --git a/content/renderer/accessibility/blink_ax_enum_conversion.cc b/content/renderer/accessibility/blink_ax_enum_conversion.cc
index 3f201cce3322857a5b6e564850b887af28386f80..da0f630c9206b609fba9ecdbcaeb55e802d6db62 100644
--- a/content/renderer/accessibility/blink_ax_enum_conversion.cc
+++ b/content/renderer/accessibility/blink_ax_enum_conversion.cc
@@ -73,8 +73,10 @@ uint32 AXStateFromBlink(const blink::WebAXObject& o) {
if (o.isEnabled())
state |= (1 << ui::AX_STATE_ENABLED);
- if (o.isVertical())
+ if (o.orientation() == blink::WebAXOrientationVertical)
state |= (1 << ui::AX_STATE_VERTICAL);
+ else if (o.orientation() == blink::WebAXOrientationHorizontal)
+ state |= (1 << ui::AX_STATE_HORIZONTAL);
if (o.isVisited())
state |= (1 << ui::AX_STATE_VISITED);
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/shell/renderer/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698