Changeset 168360 in webkit
- Timestamp:
- May 6, 2014 9:17:19 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r168358 r168360 1 2014-05-06 Chris Fleizach <cfleizach@apple.com> 2 3 AX: VoiceOver does not announce text changes for content editable regions in Safari 4 https://bugs.webkit.org/show_bug.cgi?id=132577 5 6 Reviewed by Mario Sanchez Prada. 7 8 * accessibility/content-editable-set-inner-text-generates-axvalue-notification-expected.txt: Added. 9 * accessibility/content-editable-set-inner-text-generates-axvalue-notification.html: Added. 10 1 11 2014-05-06 Dirk Schulze <krit@webkit.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r168358 r168360 1 2014-05-06 Chris Fleizach <cfleizach@apple.com> 2 3 AX: VoiceOver does not announce text changes for content editable regions in Safari 4 https://bugs.webkit.org/show_bug.cgi?id=132577 5 6 Reviewed by Mario Sanchez Prada. 7 8 When text or children are changed inside of a contenteditable region, we need to 9 convert those actions into AXValueChange notifications. 10 11 Test: accessibility/content-editable-set-inner-text-generates-axvalue-notification.html 12 13 * accessibility/AccessibilityNodeObject.cpp: 14 (WebCore::AccessibilityNodeObject::childrenChanged): 15 (WebCore::AccessibilityNodeObject::hasContentEditableAttributeSet): Deleted. 16 * accessibility/AccessibilityNodeObject.h: 17 * accessibility/AccessibilityObject.cpp: 18 (WebCore::AccessibilityObject::hasContentEditableAttributeSet): 19 * accessibility/AccessibilityObject.h: 20 * accessibility/AccessibilityRenderObject.cpp: 21 (WebCore::AccessibilityRenderObject::textChanged): 22 1 23 2014-05-06 Dirk Schulze <krit@webkit.org> 2 24 -
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
r168042 r168360 153 153 154 154 // If this element is an ARIA text control, notify the AT of changes. 155 if ( parent->isARIATextControl() && !parent->isNativeTextControl() && !parent->node()->hasEditableStyle())155 if ((parent->isARIATextControl() || parent->hasContentEditableAttributeSet()) && !parent->isNativeTextControl()) 156 156 cache->postNotification(parent, parent->document(), AXObjectCache::AXValueChanged); 157 157 } … … 2009 2009 } 2010 2010 2011 // If you call node->hasEditableStyle() since that will return true if an ancestor is editable.2012 // This only returns true if this is the element that actually has the contentEditable attribute set.2013 bool AccessibilityNodeObject::hasContentEditableAttributeSet() const2014 {2015 return contentEditableAttributeIsEnabled(element());2016 }2017 2018 2011 bool AccessibilityNodeObject::canSetSelectedAttribute() const 2019 2012 { -
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.h
r166438 r168360 178 178 AccessibilityRole determineAriaRoleAttribute() const; 179 179 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const; 180 bool hasContentEditableAttributeSet() const;181 180 virtual bool isDescendantOfBarrenParent() const override; 182 181 void alterSliderValue(bool increase); -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r168171 r168360 1317 1317 } 1318 1318 1319 // If you call node->hasEditableStyle() since that will return true if an ancestor is editable. 1320 // This only returns true if this is the element that actually has the contentEditable attribute set. 1321 bool AccessibilityObject::hasContentEditableAttributeSet() const 1322 { 1323 return contentEditableAttributeIsEnabled(element()); 1324 } 1325 1319 1326 bool AccessibilityObject::contentEditableAttributeIsEnabled(Element* element) 1320 1327 { -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r168171 r168360 847 847 static bool liveRegionStatusIsEnabled(const AtomicString&); 848 848 static bool contentEditableAttributeIsEnabled(Element*); 849 bool hasContentEditableAttributeSet() const; 849 850 850 851 bool supportsARIAAttributes() const; -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r168042 r168360 2768 2768 cache->postNotification(renderParent, AXObjectCache::AXLiveRegionChanged); 2769 2769 2770 if ( parent->isARIATextControl() && !parent->isNativeTextControl() && !parent->node()->hasEditableStyle())2770 if ((parent->isARIATextControl() || parent->hasContentEditableAttributeSet()) && !parent->isNativeTextControl()) 2771 2771 cache->postNotification(renderParent, AXObjectCache::AXValueChanged); 2772 2772 }
Note: See TracChangeset
for help on using the changeset viewer.