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