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

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

Issue 1095513005: Add helper method to check the native slider (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXNodeObject.cpp
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
index 069373dadb673d1477c21023166a63e8654e9bf5..238ad7fb1fb7a2b2415a816ff6df8cbbd20601ee 100644
--- a/Source/modules/accessibility/AXNodeObject.cpp
+++ b/Source/modules/accessibility/AXNodeObject.cpp
@@ -1330,11 +1330,8 @@ float AXNodeObject::valueForRange() const
if (hasAttribute(aria_valuenowAttr))
return getAttribute(aria_valuenowAttr).toFloat();
- if (isHTMLInputElement(node())) {
- HTMLInputElement& input = toHTMLInputElement(*node());
- if (input.type() == InputTypeNames::range)
- return input.valueAsNumber();
- }
+ if (isNativeSlider())
+ return toHTMLInputElement(*node()).valueAsNumber();
if (isHTMLMeterElement(node()))
return toHTMLMeterElement(*node()).value();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698