Changeset 43342 in webkit
- Timestamp:
- May 7, 2009 5:36:01 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r43340 r43342 1 2009-05-07 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 https://bugs.webkit.org/show_bug.cgi?id=25610 6 [GTK] text.caretOffset is reportedly always 0 7 8 Use the right function to get the caret offset in an 9 element. selectionStart() would only work for text 10 controls (there's even an ASSERT when calculating the selected 11 text range). Instead just get the selection and get the offset of 12 the start position. 13 14 * page/gtk/AccessibilityObjectWrapperAtk.cpp: 15 1 16 2009-05-07 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 17 -
trunk/WebCore/page/gtk/AccessibilityObjectWrapperAtk.cpp
r42907 r43342 488 488 static gint webkit_accessible_text_get_caret_offset(AtkText* text) 489 489 { 490 // TODO: Verify this , especiallyfor RTL text.491 return core(text)->selection Start();490 // TODO: Verify this for RTL text. 491 return core(text)->selection().start().offsetInContainerNode(); 492 492 } 493 493
Note: See TracChangeset
for help on using the changeset viewer.