diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebCore/editing/gtk | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/editing/gtk')
-rw-r--r-- | WebCore/editing/gtk/SelectionControllerGtk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/editing/gtk/SelectionControllerGtk.cpp b/WebCore/editing/gtk/SelectionControllerGtk.cpp index 52fbbab..f3bd4bc 100644 --- a/WebCore/editing/gtk/SelectionControllerGtk.cpp +++ b/WebCore/editing/gtk/SelectionControllerGtk.cpp @@ -30,11 +30,11 @@ namespace WebCore { void SelectionController::notifyAccessibilityForSelectionChange() { if (AXObjectCache::accessibilityEnabled() && m_sel.start().isNotNull() && m_sel.end().isNotNull()) { - RenderObject* focusedNode = m_sel.start().node()->renderer(); + RenderObject* focusedNode = m_sel.end().node()->renderer(); AccessibilityObject* accessibilityObject = m_frame->document()->axObjectCache()->getOrCreate(focusedNode); AtkObject* wrapper = accessibilityObject->wrapper(); if (ATK_IS_TEXT(wrapper)) { - g_signal_emit_by_name(wrapper, "text-caret-moved", m_sel.start().offsetInContainerNode()); + g_signal_emit_by_name(wrapper, "text-caret-moved", m_sel.end().computeOffsetInContainerNode()); if (m_sel.isRange()) g_signal_emit_by_name(wrapper, "text-selection-changed"); |