Skip to content
  • mario@webkit.org's avatar
    [GTK] ATK text-caret-moved and text-selection-changed events not being emitted · 5f01abd0
    mario@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=76069
    
    Reviewed by Martin Robinson.
    
    Source/WebCore:
    
    Fix bug introduced with patch for Bug 72830.
    
    * editing/gtk/FrameSelectionGtk.cpp:
    (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
    Pass the right accessibility object associated with the current
    selection to objectFocusedAndCaretOffsetUnignored.
    
    Source/WebKit/gtk:
    
    Update caret browsing related unit tests to check emissions of
    'text-caret-moved' and 'text-selection-changed' signals.
    
    * tests/testatk.c:
    (textCaretMovedCallback): New callback for 'text-caret-moved'.
    (testWebkitAtkCaretOffsets): Check emissions of 'text-caret-moved'.
    (textSelectionChangedCallback): New callback for 'text-selection-changed'.
    (testWebkitAtkTextSelections): Check emissions of 'text-selection-changed'.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5f01abd0