Changeset 157631 in webkit


Ignore:
Timestamp:
Oct 18, 2013 4:26:29 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[ATK] Fix invalid signal to set objects to an unknown state "layout-complete"
https://bugs.webkit.org/show_bug.cgi?id=122970

Patch by Denis Nomiyama <d.nomiyama@samsung.com> on 2013-10-18
Reviewed by Mario Sanchez Prada.

Source/WebCore:

Removed an invalid signal to set objects to an unknown state
layout-complete. This signal was originally generated to notify DRT
and WKTR in case of page load complete.
It was replaced by ATK:AtkDocument:load-complete, which is already sent
by AXObjectCache::frameLoadingEventPlatformNotification().

There is no new test since the changes are covered by existing ones
(e.g. accessibility/loading-iframe-sends-notification.html).

  • accessibility/atk/AXObjectCacheAtk.cpp:

(WebCore::AXObjectCache::postPlatformNotification): Removed an invalid
signal to set objects to an unknown state layout-complete.

Tools:

Removed an invalid signal to set an object state to layout-complete
that does not exist. It was replaced by ATK:AtkDocument:load-complete.

  • DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp:

(axObjectEventListener): Replaced layout-complete with load-complete.
(connectAccessibilityCallbacks): Connect callback to new listener for
ATK:AtkDocument:load-complete.
(disconnectAccessibilityCallbacks): Disconnect callback to new listener
for ATK:AtkDocument:load-complete.

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:

(axObjectEventListener): Replaced layout-complete with load-complete.
(WTR::AccessibilityNotificationHandler::connectAccessibilityCallbacks):
Connect callback to new listener for ATK:AtkDocument:load-complete.
(WTR::AccessibilityNotificationHandler::disconnectAccessibilityCallbacks):
Disconnect callback to new listener for ATK:AtkDocument:load-complete.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157630 r157631  
     12013-10-18  Denis Nomiyama  <d.nomiyama@samsung.com>
     2
     3        [ATK] Fix invalid signal to set objects to an unknown state "layout-complete"
     4        https://bugs.webkit.org/show_bug.cgi?id=122970
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        Removed an invalid signal to set objects to an unknown state
     9        layout-complete. This signal was originally generated to notify DRT
     10        and WKTR in case of page load complete.
     11        It was replaced by ATK:AtkDocument:load-complete, which is already sent
     12        by AXObjectCache::frameLoadingEventPlatformNotification().
     13
     14        There is no new test since the changes are covered by existing ones
     15        (e.g. accessibility/loading-iframe-sends-notification.html).
     16
     17        * accessibility/atk/AXObjectCacheAtk.cpp:
     18        (WebCore::AXObjectCache::postPlatformNotification): Removed an invalid
     19        signal to set objects to an unknown state layout-complete.
     20
    1212013-10-18  Carlos Garcia Campos  <cgarcia@igalia.com>
    222
  • trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp

    r157018 r157631  
    165165
    166166        g_signal_emit_by_name(ATK_OBJECT(axObject), "property-change::accessible-value", &propertyValues, NULL);
    167     } else if (notification == AXLayoutComplete)
    168         g_signal_emit_by_name(axObject, "state-change", "layout-complete", true);
    169     else if (notification == AXInvalidStatusChanged)
     167    } else if (notification == AXInvalidStatusChanged)
    170168        g_signal_emit_by_name(axObject, "state-change", "invalid-entry", coreObject->invalidStatus() != "false");
    171169}
  • trunk/Tools/ChangeLog

    r157630 r157631  
     12013-10-18  Denis Nomiyama  <d.nomiyama@samsung.com>
     2
     3        [ATK] Fix invalid signal to set objects to an unknown state "layout-complete"
     4        https://bugs.webkit.org/show_bug.cgi?id=122970
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        Removed an invalid signal to set an object state to layout-complete
     9        that does not exist. It was replaced by ATK:AtkDocument:load-complete.
     10
     11        * DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp:
     12        (axObjectEventListener): Replaced layout-complete with load-complete.
     13        (connectAccessibilityCallbacks): Connect callback to new listener for
     14        ATK:AtkDocument:load-complete.
     15        (disconnectAccessibilityCallbacks): Disconnect callback to new listener
     16        for ATK:AtkDocument:load-complete.
     17        * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
     18        (axObjectEventListener): Replaced layout-complete with load-complete.
     19        (WTR::AccessibilityNotificationHandler::connectAccessibilityCallbacks):
     20        Connect callback to new listener for ATK:AtkDocument:load-complete.
     21        (WTR::AccessibilityNotificationHandler::disconnectAccessibilityCallbacks):
     22        Disconnect callback to new listener for ATK:AtkDocument:load-complete.
     23
    1242013-10-18  Carlos Garcia Campos  <cgarcia@igalia.com>
    225
  • trunk/Tools/DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp

    r156273 r157631  
    5757static guint propertyChangedListenerId = 0;
    5858static guint visibleDataChangedListenerId = 0;
     59static guint loadCompleteListenerId = 0;
    5960static NotificationHandlersMap notificationHandlers;
    6061static AccessibilityNotificationHandler* globalNotificationHandler = 0;
     
    107108        else if (!g_strcmp0(g_value_get_string(&paramValues[1]), "invalid-entry"))
    108109            notificationName = "AXInvalidStatusChanged";
    109         else if (!g_strcmp0(g_value_get_string(&paramValues[1]), "layout-complete"))
    110             notificationName = "AXLayoutComplete";
    111110    } else if (!g_strcmp0(signalQuery.signal_name, "focus-event")) {
    112111        signalName.set(g_strdup("focus-event"));
     
    121120        if (!g_strcmp0(g_quark_to_string(signalHint->detail), "accessible-value"))
    122121            notificationName = "AXValueChanged";
    123     } else
     122    } else if (!g_strcmp0(signalQuery.signal_name, "load-complete"))
     123        notificationName = "AXLoadComplete";
     124    else
    124125        signalName.set(g_strdup(signalQuery.signal_name));
    125126
     
    179180    propertyChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkObject:property-change");
    180181    visibleDataChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkObject:visible-data-changed");
     182    loadCompleteListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkDocument:load-complete");
    181183
    182184    // Ensure the Atk interface types are registered, otherwise
     
    218220        atk_remove_global_event_listener(visibleDataChangedListenerId);
    219221        visibleDataChangedListenerId = 0;
     222    }
     223    if (loadCompleteListenerId) {
     224        atk_remove_global_event_listener(loadCompleteListenerId);
     225        loadCompleteListenerId = 0;
    220226    }
    221227
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp

    r156541 r157631  
    4444unsigned propertyChangedListenerId = 0;
    4545unsigned visibleDataChangedListenerId = 0;
     46unsigned loadCompleteListenerId = 0;
    4647NotificationHandlersMap notificationHandlers;
    4748AccessibilityNotificationHandler* globalNotificationHandler = 0;
     
    9495        else if (!g_strcmp0(g_value_get_string(&paramValues[1]), "invalid-entry"))
    9596            notificationName = "AXInvalidStatusChanged";
    96         else if (!g_strcmp0(g_value_get_string(&paramValues[1]), "layout-complete"))
    97             notificationName = "AXLayoutComplete";
    9897    } else if (!g_strcmp0(signalQuery.signal_name, "focus-event")) {
    9998        signalName.set(g_strdup("focus-event"));
     
    108107        if (!g_strcmp0(g_quark_to_string(signalHint->detail), "accessible-value"))
    109108            notificationName = "AXValueChanged";
    110     } else
     109    } else if (!g_strcmp0(signalQuery.signal_name, "load-complete"))
     110        notificationName = "AXLoadComplete";
     111    else
    111112        signalName.set(g_strdup(signalQuery.signal_name));
    112113
     
    241242    propertyChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkObject:property-change");
    242243    visibleDataChangedListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkObject:visible-data-changed");
     244    loadCompleteListenerId = atk_add_global_event_listener(axObjectEventListener, "ATK:AtkDocument:load-complete");
    243245}
    244246
     
    274276        visibleDataChangedListenerId = 0;
    275277    }
    276 
     278    if (loadCompleteListenerId) {
     279        atk_remove_global_event_listener(loadCompleteListenerId);
     280        loadCompleteListenerId = 0;
     281    }
    277282    return true;
    278283}
Note: See TracChangeset for help on using the changeset viewer.