Changeset 155851 in webkit
- Timestamp:
- Sep 16, 2013 5:38:50 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r155848 r155851 1 2013-09-16 Krzysztof Czech <k.czech@samsung.com> 2 3 [ATK] Extends atk value interface to return proper checkbox states 4 https://bugs.webkit.org/show_bug.cgi?id=121413 5 6 Reviewed by Mario Sanchez Prada. 7 8 Sharing mac tests with other ports (GTK/EFL). 9 10 * accessibility/mixed-checkbox-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/mixed-checkbox-expected.txt. 11 * accessibility/mixed-checkbox.html: Renamed from LayoutTests/platform/mac/accessibility/mixed-checkbox.html. 12 * accessibility/native-vs-nonnative-checkboxes-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/native-vs-nonnative-checkboxes-expected.txt. 13 * accessibility/native-vs-nonnative-checkboxes.html: Renamed from LayoutTests/platform/mac/accessibility/native-vs-nonnative-checkboxes.html. 14 1 15 2013-09-16 Mario Sanchez Prada <mario.prada@samsung.com> 2 16 -
trunk/LayoutTests/accessibility/mixed-checkbox.html
r155850 r155851 2 2 <html> 3 3 <head> 4 <script src="../ ../../resources/js-test-pre.js"></script>4 <script src="../resources/js-test-pre.js"></script> 5 5 </head> 6 6 <body id="body"> … … 45 45 </script> 46 46 47 <script src="../ ../../resources/js-test-post.js"></script>47 <script src="../resources/js-test-post.js"></script> 48 48 </body> 49 49 </html> -
trunk/LayoutTests/accessibility/native-vs-nonnative-checkboxes.html
r155850 r155851 2 2 <html> 3 3 <head> 4 <script src="../ ../../resources/js-test-pre.js"></script>4 <script src="../resources/js-test-pre.js"></script> 5 5 </head> 6 6 <body id="body"> … … 35 35 </script> 36 36 37 <script src="../ ../../resources/js-test-post.js"></script>37 <script src="../resources/js-test-post.js"></script> 38 38 </body> 39 39 </html> -
trunk/Source/WebCore/ChangeLog
r155850 r155851 1 2013-09-16 Krzysztof Czech <k.czech@samsung.com> 2 3 [ATK] Extends atk value interface to return proper checkbox states 4 https://bugs.webkit.org/show_bug.cgi?id=121413 5 6 Reviewed by Mario Sanchez Prada. 7 8 Tests: accessibility/mixed-checkbox.html 9 accessibility/native-vs-nonnative-checkboxes.html 10 11 * accessibility/atk/WebKitAccessibleInterfaceValue.cpp: 12 (webkitAccessibleValueValueForAccessibilityObject): 13 (webkitAccessibleValueGetCurrentValue): 14 * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: 15 (getInterfaceMaskFromObject): 16 1 17 2013-09-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceValue.cpp
r139159 r155851 37 37 } 38 38 39 static float webkitAccessibleValueValueForAccessibilityObject(AccessibilityObject* coreObject) 40 { 41 if (!coreObject) 42 return 0; 43 44 if (coreObject->supportsRangeValue()) 45 return coreObject->valueForRange(); 46 47 if (coreObject->isCheckboxOrRadio()) { 48 switch (coreObject->checkboxOrRadioValue()) { 49 case ButtonStateOff: 50 return 0; 51 case ButtonStateOn: 52 return 1; 53 case ButtonStateMixed: 54 return 2; 55 } 56 } 57 58 return 0; 59 } 60 39 61 static void webkitAccessibleValueGetCurrentValue(AtkValue* value, GValue* gValue) 40 62 { 41 63 memset(gValue, 0, sizeof(GValue)); 42 64 g_value_init(gValue, G_TYPE_FLOAT); 43 g_value_set_float(gValue, core(value)->valueForRange());65 g_value_set_float(gValue, webkitAccessibleValueValueForAccessibilityObject(core(value))); 44 66 } 45 67 -
trunk/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
r155518 r155851 1036 1036 1037 1037 // Value 1038 if ( role == SliderRole || role == SpinButtonRole || role == ScrollBarRole || role == ProgressIndicatorRole)1038 if (coreObject->supportsRangeValue() || coreObject->isCheckboxOrRadio()) 1039 1039 interfaceMask |= 1 << WAI_VALUE; 1040 1040
Note: See TracChangeset
for help on using the changeset viewer.