Changeset 45549 in webkit


Ignore:
Timestamp:
Jul 5, 2009 3:43:37 AM (15 years ago)
Author:
xan@webkit.org
Message:

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

Reviewed by Jan Alonzo.

https://bugs.webkit.org/show_bug.cgi?id=26960
[Gtk] caret offset not updated when selecting text

Report the caret offset from the end of the selection so it works
correctly for multi-char selections too (ie, anything that is not
the zero width caret).

  • accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (webkit_accessible_text_get_caret_offset):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45548 r45549  
     12009-07-05  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26960
     6        [Gtk] caret offset not updated when selecting text
     7
     8        Report the caret offset from the end of the selection so it works
     9        correctly for multi-char selections too (ie, anything that is not
     10        the zero width caret).
     11
     12        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     13        (webkit_accessible_text_get_caret_offset):
     14
    1152009-07-05  Holger Hans Peter Freyther  <zecke@selfish.org>
    216
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r45252 r45549  
    560560{
    561561    // TODO: Verify this for RTL text.
    562     return core(text)->selection().start().offsetInContainerNode();
     562    return core(text)->selection().end().offsetInContainerNode();
    563563}
    564564
Note: See TracChangeset for help on using the changeset viewer.