Title: [90737] trunk/Source/WebCore
Revision
90737
Author
[email protected]
Date
2011-07-11 05:29:38 -0700 (Mon, 11 Jul 2011)

Log Message

Added accessibility notification when value is changed.
https://bugs.webkit.org/show_bug.cgi?id=64256

Notifies the value change of range input when accessibility is enabled.

Patch by Shinya Kawanaka <[email protected]> on 2011-07-11
Reviewed by Kent Tamura.

Covered by existing tests.

* html/RangeInputType.cpp:
(WebCore::RangeInputType::handleKeydownEvent):
  Added accessibility notification when value is changed.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (90736 => 90737)


--- trunk/Source/WebCore/ChangeLog	2011-07-11 12:21:50 UTC (rev 90736)
+++ trunk/Source/WebCore/ChangeLog	2011-07-11 12:29:38 UTC (rev 90737)
@@ -1,3 +1,18 @@
+2011-07-11  Shinya Kawanaka  <[email protected]>
+
+        Added accessibility notification when value is changed.
+        https://bugs.webkit.org/show_bug.cgi?id=64256
+
+        Notifies the value change of range input when accessibility is enabled.
+
+        Reviewed by Kent Tamura.
+
+        Covered by existing tests.
+
+        * html/RangeInputType.cpp:
+        (WebCore::RangeInputType::handleKeydownEvent):
+          Added accessibility notification when value is changed.
+
 2011-07-08  Mikhail Naganov  <[email protected]>
 
         Web Inspector: Fix resizing of sidebar pane in Timeline and Profile panels.

Modified: trunk/Source/WebCore/html/RangeInputType.cpp (90736 => 90737)


--- trunk/Source/WebCore/html/RangeInputType.cpp	2011-07-11 12:21:50 UTC (rev 90736)
+++ trunk/Source/WebCore/html/RangeInputType.cpp	2011-07-11 12:29:38 UTC (rev 90737)
@@ -32,6 +32,7 @@
 #include "config.h"
 #include "RangeInputType.h"
 
+#include "AXObjectCache.h"
 #include "HTMLDivElement.h"
 #include "HTMLInputElement.h"
 #include "HTMLNames.h"
@@ -216,6 +217,9 @@
     if (newValue != current) {
         ExceptionCode ec;
         setValueAsNumber(newValue, ec);
+
+        if (AXObjectCache::accessibilityEnabled())
+            element()->document()->axObjectCache()->postNotification(element()->renderer(), AXObjectCache::AXValueChanged, true);
         element()->dispatchFormControlChangeEvent();
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to