Changeset 158757 in webkit
- Timestamp:
- Nov 6, 2013 10:17:03 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r158755 r158757 1 2013-11-06 Michał Pakuła vel Rutka <m.pakula@samsung.com> 2 3 [ATK] accessibility/title-ui-element-correctness.html fails 4 https://bugs.webkit.org/show_bug.cgi?id=99825 5 6 Reviewed by Mario Sanchez Prada. 7 8 Remove failure test expectation for the test fixed by this patch. 9 10 * platform/efl-wk1/TestExpectations: 11 * platform/efl-wk2/TestExpectations: 12 * platform/gtk/TestExpectations: 13 1 14 2013-11-06 Mario Sanchez Prada <mario.prada@samsung.com> 2 15 -
trunk/LayoutTests/platform/efl-wk1/TestExpectations
r158754 r158757 132 132 webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ] 133 133 webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ] 134 webkit.org/b/112019 accessibility/title-ui-element-correctness.html [ Failure ]135 134 webkit.org/b/112021 accessibility/visible-elements.html [ Failure Crash ] 136 135 -
trunk/LayoutTests/platform/efl-wk2/TestExpectations
r158754 r158757 164 164 webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ] 165 165 webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ] 166 webkit.org/b/112019 accessibility/title-ui-element-correctness.html [ Failure ]167 166 webkit.org/b/112021 accessibility/visible-elements.html [ Failure Crash ] 168 167 -
trunk/LayoutTests/platform/gtk/TestExpectations
r158755 r158757 1223 1223 webkit.org/b/98950 transitions/blendmode-transitions.html [ Failure ] 1224 1224 1225 webkit.org/b/99825 accessibility/title-ui-element-correctness.html [ Failure ]1226 1227 1225 webkit.org/b/98718 svg/animations/animate-css-xml-attributeType.html [ Failure ] 1228 1226 -
trunk/Source/WebCore/ChangeLog
r158750 r158757 1 2013-11-06 Michał Pakuła vel Rutka <m.pakula@samsung.com> 2 3 [ATK] accessibility/title-ui-element-correctness.html fails 4 https://bugs.webkit.org/show_bug.cgi?id=99825 5 6 Reviewed by Mario Sanchez Prada. 7 8 When calling setAtkRelationSetFromCoreObject a new ATK_LABELLED_BY_RELATION 9 is added, adding proper label element as a relation. When the document structure 10 has been changed and a different label should be linked as a relation, current ATK 11 implementation adds it as a next target on relation's target list, while 12 WTR/DumpRenderTree implementation takes only first one into account. 13 This patch adds a new function removing current relations before adding new ones. 14 15 Covered by existing tests. 16 17 * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: 18 (removeAtkRelationFromRelationSetByType): 19 (setAtkRelationSetFromCoreObject): 20 1 21 2013-11-06 Daniel Bates <dabates@apple.com> 2 22 -
trunk/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
r157857 r158757 192 192 } 193 193 194 static void removeAtkRelationByType(AtkRelationSet* relationSet, AtkRelationType relationType) 195 { 196 int count = atk_relation_set_get_n_relations(relationSet); 197 for (int i = 0; i < count; i++) { 198 AtkRelation* relation = atk_relation_set_get_relation(relationSet, i); 199 if (atk_relation_get_relation_type(relation) == relationType) { 200 atk_relation_set_remove(relationSet, relation); 201 break; 202 } 203 } 204 } 205 194 206 static void setAtkRelationSetFromCoreObject(AccessibilityObject* coreObject, AtkRelationSet* relationSet) 195 207 { 196 208 if (coreObject->isFieldset()) { 197 209 AccessibilityObject* label = coreObject->titleUIElement(); 198 if (label) 210 if (label) { 211 removeAtkRelationByType(relationSet, ATK_RELATION_LABELLED_BY); 199 212 atk_relation_set_add_relation_by_type(relationSet, ATK_RELATION_LABELLED_BY, label->wrapper()); 213 } 200 214 return; 201 215 } … … 213 227 if (coreObject->isControl()) { 214 228 AccessibilityObject* label = coreObject->correspondingLabelForControlElement(); 215 if (label) 229 if (label) { 230 removeAtkRelationByType(relationSet, ATK_RELATION_LABELLED_BY); 216 231 atk_relation_set_add_relation_by_type(relationSet, ATK_RELATION_LABELLED_BY, label->wrapper()); 232 } 217 233 } else { 218 234 AccessibilityObject* control = coreObject->correspondingControlForLabelElement();
Note: See TracChangeset
for help on using the changeset viewer.