LayoutTests/ChangeLog

 12013-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 NOBODY (OOPS!).
 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
1142013-11-06 Krzysztof Czech <k.czech@samsung.com>
215
316 [ATK] accessibility/tabindex-elements-are-accessible.html is failing

LayoutTests/platform/efl-wk1/TestExpectations

@@webkit.org/b/112008 accessibility/spinbutton-value.html [ Failure ]
131131webkit.org/b/112012 accessibility/svg-bounds.html [ Failure ]
132132webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ]
133133webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ]
134 webkit.org/b/112019 accessibility/title-ui-element-correctness.html [ Failure ]
135134webkit.org/b/112021 accessibility/visible-elements.html [ Failure Crash ]
136135
137136accessibility/aria-checkbox-sends-notification.html [ Skip ]

LayoutTests/platform/efl-wk2/TestExpectations

@@webkit.org/b/112008 accessibility/spinbutton-value.html [ Failure ]
163163webkit.org/b/112012 accessibility/svg-bounds.html [ Failure ]
164164webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ]
165165webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ]
166 webkit.org/b/112019 accessibility/title-ui-element-correctness.html [ Failure ]
167166webkit.org/b/112021 accessibility/visible-elements.html [ Failure Crash ]
168167
169168# New accessibility test added in r149858 that is failing for EFL.

LayoutTests/platform/gtk/TestExpectations

@@webkit.org/b/98613 css3/masking/clip-path-reference.html [ ImageOnlyFailure ]
12241224
12251225webkit.org/b/98950 transitions/blendmode-transitions.html [ Failure ]
12261226
1227 webkit.org/b/99825 accessibility/title-ui-element-correctness.html [ Failure ]
1228 
12291227webkit.org/b/98718 svg/animations/animate-css-xml-attributeType.html [ Failure ]
12301228
12311229webkit.org/b/100424 editing/selection/user-select-all-selection.html [ Failure ]

Source/WebCore/ChangeLog

 12013-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 NOBODY (OOPS!).
 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
1212013-11-06 Ryosuke Niwa <rniwa@webkit.org>
222
323 Notify nodes removal to Range/Selection after dispatching blur and mutation event

Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp

@@static const gchar* webkitAccessibleGetDescription(AtkObject* object)
191191 return cacheAndReturnAtkProperty(object, AtkCachedAccessibleDescription, accessibilityDescription(coreObject));
192192}
193193
 194static 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
194206static void setAtkRelationSetFromCoreObject(AccessibilityObject* coreObject, AtkRelationSet* relationSet)
195207{
196208 if (coreObject->isFieldset()) {
197209 AccessibilityObject* label = coreObject->titleUIElement();
198  if (label)
 210 if (label) {
 211 removeAtkRelationByType(relationSet, ATK_RELATION_LABELLED_BY);
199212 atk_relation_set_add_relation_by_type(relationSet, ATK_RELATION_LABELLED_BY, label->wrapper());
 213 }
200214 return;
201215 }
202216

@@static void setAtkRelationSetFromCoreObject(AccessibilityObject* coreObject, Atk
212226
213227 if (coreObject->isControl()) {
214228 AccessibilityObject* label = coreObject->correspondingLabelForControlElement();
215  if (label)
 229 if (label) {
 230 removeAtkRelationByType(relationSet, ATK_RELATION_LABELLED_BY);
216231 atk_relation_set_add_relation_by_type(relationSet, ATK_RELATION_LABELLED_BY, label->wrapper());
 232 }
217233 } else {
218234 AccessibilityObject* control = coreObject->correspondingControlForLabelElement();
219235 if (control)