Using atk_object_notify_state_change() instead of manually calling g_signal_emit_by_name() has the clear benefit that we don't emit by mistake an incorrect change of state, since we are forced to use values from the AtkState enum instead of raw strings. We should change it in AXObjectCacheAtk.cpp to avoid further confusion. [1]https://developer.gnome.org/atk/stable/AtkObject.html#atk-object-notify-state-change
<rdar://problem/15251851>
I'll do refactoring for this one.
Created attachment 214553 [details] Patch
Created attachment 214715 [details] Patch
Comment on attachment 214715 [details] Patch Lgtm as a partial patch, but you still need to change a few more places: accessibility/atk/WebKitAccessibleWrapperAtk.cpp editing/atk/FrameSelectionAtk.cpp
(In reply to comment #5) > (From update of attachment 214715 [details]) > Lgtm as a partial patch, but you still need to change a few more places: > > accessibility/atk/WebKitAccessibleWrapperAtk.cpp > editing/atk/FrameSelectionAtk.cpp Thanks, will do now.
Created attachment 214734 [details] Patch
Comment on attachment 214734 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=214734&action=review lgtm > Source/WebCore/ChangeLog:3 > + [ATK] Use atk_object_notify_state_change instead of manuall emitting signals manuall -> manually Anyway, that was my fault while reporting the bug, so I will push it manually for you and fix that before landing
Committed r157718: <http://trac.webkit.org/changeset/157718>