Changeset 176481 in webkit
- Timestamp:
- Nov 21, 2014, 4:02:59 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/accessibility/auto-filled-value.html (added)
-
LayoutTests/platform/mac/accessibility/auto-filled-value-expected.txt (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/AccessibilityObject.cpp (modified) (2 diffs)
-
Source/WebCore/accessibility/AccessibilityObject.h (modified) (1 diff)
-
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (modified) (1 diff)
-
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r176479 r176481 1 2014-11-21 Chris Fleizach <cfleizach@apple.com> 2 3 AX: Unclear that user and password are autofilled, no VoiceOver version of the yellow outline. 4 https://bugs.webkit.org/show_bug.cgi?id=138904 5 6 Reviewed by Mario Sanchez Prada. 7 8 * accessibility/auto-filled-value.html: Added. 9 * platform/mac/accessibility/auto-filled-value-expected.txt: Added. 10 1 11 2014-11-21 Michael Saboff <msaboff@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r176478 r176481 1 2014-11-21 Chris Fleizach <cfleizach@apple.com> 2 3 AX: Unclear that user and password are autofilled, no VoiceOver version of the yellow outline. 4 https://bugs.webkit.org/show_bug.cgi?id=138904 5 6 Reviewed by Mario Sanchez Prada. 7 8 Add an attribute that marks when a text field is auto-filled. 9 10 Test: accessibility/auto-filled-value.html 11 12 * accessibility/AccessibilityObject.cpp: 13 (WebCore::AccessibilityObject::isValueAutofilled): 14 * accessibility/AccessibilityObject.h: 15 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 16 (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]): 17 (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): 18 1 19 2014-11-21 Andreas Kling <akling@apple.com> 2 20 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r176162 r176481 41 41 #include "FrameLoader.h" 42 42 #include "FrameSelection.h" 43 #include "HTMLInputElement.h" 43 44 #include "HTMLNames.h" 44 45 #include "HTMLParserIdioms.h" … … 1972 1973 return nullptr; 1973 1974 } 1975 1976 bool AccessibilityObject::isValueAutofilled() const 1977 { 1978 if (!isNativeTextControl()) 1979 return false; 1980 1981 Node* node = this->node(); 1982 if (!node || !is<HTMLInputElement>(*node)) 1983 return false; 1984 1985 return downcast<HTMLInputElement>(*node).isAutofilled(); 1986 } 1974 1987 1975 1988 const AtomicString& AccessibilityObject::placeholderValue() const -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r176331 r176481 833 833 834 834 virtual String passwordFieldValue() const { return String(); } 835 835 bool isValueAutofilled() const; 836 836 837 // Used by an ARIA tree to get all its rows. 837 838 void ariaTreeRows(AccessibilityChildrenVector&); -
trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm
r176318 r176481 751 751 } 752 752 753 - (BOOL)_accessibilityValueIsAutofilled 754 { 755 if (![self _prepareAccessibilityCall]) 756 return NO; 757 758 return m_object->isValueAutofilled(); 759 } 760 753 761 - (CGFloat)_accessibilityMinValue 754 762 { -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r176162 r176481 128 128 #ifndef NSAccessibilityAccessKeyAttribute 129 129 #define NSAccessibilityAccessKeyAttribute @"AXAccessKey" 130 #endif 131 132 #ifndef NSAccessibilityValueAutofilledAttribute 133 #define NSAccessibilityValueAutofilledAttribute @"AXValueAutofilled" 130 134 #endif 131 135 … … 1374 1378 [tempArray addObject:NSAccessibilityInvalidAttribute]; 1375 1379 [tempArray addObject:NSAccessibilityPlaceholderValueAttribute]; 1380 [tempArray addObject:NSAccessibilityValueAutofilledAttribute]; 1376 1381 textAttrs = [[NSArray alloc] initWithArray:tempArray]; 1377 1382 [tempArray release]; … … 1541 1546 [tempArray addObject:NSAccessibilityInvalidAttribute]; 1542 1547 [tempArray addObject:NSAccessibilityPlaceholderValueAttribute]; 1548 [tempArray addObject:NSAccessibilityValueAutofilledAttribute]; 1543 1549 passwordFieldAttrs = [[NSArray alloc] initWithArray:tempArray]; 1544 1550 [tempArray release]; … … 2861 2867 if ([attributeName isEqualToString:NSAccessibilityPlaceholderValueAttribute]) 2862 2868 return m_object->placeholderValue(); 2863 2869 2870 if ([attributeName isEqualToString:NSAccessibilityValueAutofilledAttribute]) 2871 return @(m_object->isValueAutofilled()); 2872 2864 2873 if ([attributeName isEqualToString:NSAccessibilityHasPopupAttribute]) 2865 2874 return [NSNumber numberWithBool:m_object->ariaHasPopup()];
Note:
See TracChangeset
for help on using the changeset viewer.