Changeset 204071 in webkit
- Timestamp:
- Aug 2, 2016, 11:16:04 PM (10 years ago)
- Location:
- branches/safari-602-branch
- Files:
-
- 2 added
- 9 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/accessibility/ios-simulator/has-touch-event-listener-expected.txt (added)
-
LayoutTests/accessibility/ios-simulator/has-touch-event-listener.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/AccessibilityObject.cpp (modified) (1 diff)
-
Source/WebCore/accessibility/AccessibilityObject.h (modified) (1 diff)
-
Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm (modified) (2 diffs)
-
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm (modified) (2 diffs)
-
Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602-branch/LayoutTests/ChangeLog
r204068 r204071 1 2016-08-02 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r203955. rdar://problem/27629346 4 5 2016-07-31 Nan Wang <n_wang@apple.com> 6 7 AX: Add a check for touch event listener on iOS accessibility object 8 https://bugs.webkit.org/show_bug.cgi?id=160388 9 10 Reviewed by Chris Fleizach. 11 12 * accessibility/ios-simulator/has-touch-event-listener-expected.txt: Added. 13 * accessibility/ios-simulator/has-touch-event-listener.html: Added. 14 1 15 2016-08-02 Babak Shafiei <bshafiei@apple.com> 2 16 -
branches/safari-602-branch/Source/WebCore/ChangeLog
r204069 r204071 1 2016-08-02 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r203955. rdar://problem/27629346 4 5 2016-07-31 Nan Wang <n_wang@apple.com> 6 7 AX: Add a check for touch event listener on iOS accessibility object 8 https://bugs.webkit.org/show_bug.cgi?id=160388 9 10 Reviewed by Chris Fleizach. 11 12 dispatchTouchEvent() is not working correctly within AXPress() sometimes. Need to 13 investigate it more in the future. Now, adding a check for the touch event listener 14 on the object's node so that iOS can handle dispatching the touch event instead. 15 16 Test: accessibility/ios-simulator/has-touch-event-listener.html 17 18 * accessibility/AccessibilityObject.h: 19 * accessibility/ios/AccessibilityObjectIOS.mm: 20 (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): 21 (WebCore::AccessibilityObject::hasTouchEventListener): 22 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: 23 (appendStringToResult): 24 (-[WebAccessibilityObjectWrapper _accessibilityHasTouchEventListener]): 25 (-[WebAccessibilityObjectWrapper _accessibilityValueIsAutofilled]): 26 1 27 2016-08-02 Babak Shafiei <bshafiei@apple.com> 2 28 -
branches/safari-602-branch/Source/WebCore/accessibility/AccessibilityObject.cpp
r203877 r204071 923 923 UserGestureIndicator gestureIndicator(ProcessingUserGesture, document); 924 924 925 // FIXME: dispatchTouchEvent() is not dispatching the touch event correctly. 925 926 bool dispatchedTouchEvent = dispatchTouchEvent(); 926 927 if (!dispatchedTouchEvent) -
branches/safari-602-branch/Source/WebCore/accessibility/AccessibilityObject.h
r203877 r204071 1041 1041 #if PLATFORM(IOS) 1042 1042 int accessibilityPasswordFieldLength(); 1043 bool hasTouchEventListener() const; 1043 1044 #endif 1044 1045 -
branches/safari-602-branch/Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm
r174898 r204071 27 27 #import "AccessibilityObject.h" 28 28 #import "AccessibilityRenderObject.h" 29 #import "EventNames.h" 29 30 #import "HTMLInputElement.h" 30 31 #import "RenderObject.h" … … 81 82 return DefaultBehavior; 82 83 } 83 84 85 bool AccessibilityObject::hasTouchEventListener() const 86 { 87 for (Node* node = this->node(); node; node = node->parentNode()) { 88 if (node->hasEventListeners(eventNames().touchstartEvent) || node->hasEventListeners(eventNames().touchendEvent)) 89 return true; 90 } 91 return false; 92 } 93 84 94 } // WebCore 85 95 -
branches/safari-602-branch/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm
r203575 r204071 950 950 } 951 951 952 - (BOOL)_accessibilityHasTouchEventListener 953 { 954 if (![self _prepareAccessibilityCall]) 955 return NO; 956 957 return m_object->hasTouchEventListener(); 958 } 959 952 960 - (BOOL)_accessibilityValueIsAutofilled 953 961 { -
branches/safari-602-branch/Tools/ChangeLog
r203970 r204071 1 2016-08-02 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r203955. rdar://problem/27629346 4 5 2016-07-31 Nan Wang <n_wang@apple.com> 6 7 AX: Add a check for touch event listener on iOS accessibility object 8 https://bugs.webkit.org/show_bug.cgi?id=160388 9 10 Reviewed by Chris Fleizach. 11 12 * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: 13 (AccessibilityUIElement::boolAttributeValue): 14 * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: 15 (WTR::AccessibilityUIElement::boolAttributeValue): 16 1 17 2016-07-31 Babak Shafiei <bshafiei@apple.com> 2 18 -
branches/safari-602-branch/Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm
r201568 r204071 96 96 - (UIAccessibilityTraits)_axContainedByFieldsetTrait; 97 97 - (id)_accessibilityFieldsetAncestor; 98 - (BOOL)_accessibilityHasTouchEventListener; 98 99 99 100 // TextMarker related … … 668 669 bool AccessibilityUIElement::boolAttributeValue(JSStringRef attribute) 669 670 { 671 if (JSStringIsEqualToUTF8CString(attribute, "AXHasTouchEventListener")) 672 return [m_element _accessibilityHasTouchEventListener]; 670 673 return false; 671 674 } -
branches/safari-602-branch/Tools/WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm
r201568 r204071 73 73 - (UIAccessibilityTraits)_axContainedByFieldsetTrait; 74 74 - (id)_accessibilityFieldsetAncestor; 75 - (BOOL)_accessibilityHasTouchEventListener; 75 76 76 77 // TextMarker related … … 380 381 bool AccessibilityUIElement::boolAttributeValue(JSStringRef attribute) 381 382 { 383 if (JSStringIsEqualToUTF8CString(attribute, "AXHasTouchEventListener")) 384 return [m_element _accessibilityHasTouchEventListener]; 382 385 return false; 383 386 }
Note:
See TracChangeset
for help on using the changeset viewer.