Changeset 45534 in webkit


Ignore:
Timestamp:
Jul 3, 2009 7:08:22 AM (15 years ago)
Author:
xan@webkit.org
Message:

2009-07-02 Xan Lopez <xlopez@igalia.com>

Reviewed by Jan Alonzo.

https://bugs.webkit.org/show_bug.cgi?id=26815
[Gtk] text-selection-changed events are not issued for the correct
object when the selection spans multiple objects

Get the focused node from the end of the selection, not the start,
so we can detect when we cross object boundaries.

  • editing/gtk/SelectionControllerGtk.cpp: (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45530 r45534  
     12009-07-02  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26815
     6        [Gtk] text-selection-changed events are not issued for the correct
     7        object when the selection spans multiple objects
     8
     9        Get the focused node from the end of the selection, not the start,
     10        so we can detect when we cross object boundaries.
     11
     12        * editing/gtk/SelectionControllerGtk.cpp:
     13        (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
     14
    1152009-07-02  Pierre d'Herbemont  <pdherbemont@apple.com>
    216
  • trunk/WebCore/editing/gtk/SelectionControllerGtk.cpp

    r44683 r45534  
    3131{
    3232    if (AXObjectCache::accessibilityEnabled() && m_sel.start().isNotNull() && m_sel.end().isNotNull()) {
    33         RenderObject* focusedNode = m_sel.start().node()->renderer();
     33        RenderObject* focusedNode = m_sel.end().node()->renderer();
    3434        AccessibilityObject* accessibilityObject = m_frame->document()->axObjectCache()->getOrCreate(focusedNode);
    3535        AtkObject* wrapper = accessibilityObject->wrapper();
Note: See TracChangeset for help on using the changeset viewer.