Changeset 46466 in webkit


Ignore:
Timestamp:
Jul 28, 2009 3:52:59 AM (15 years ago)
Author:
xan@webkit.org
Message:

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

Reviewed by Gustavo Noronha.

https://bugs.webkit.org/show_bug.cgi?id=25415
[GTK][ATK] Please implement support for get_text_at_offset

Do not cache the pango layout in the object, since the layout of
the page can change between calls.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r46462 r46466  
     12009-07-28  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=25415
     6        [GTK][ATK] Please implement support for get_text_at_offset
     7
     8        Do not cache the pango layout in the object, since the layout of
     9        the page can change between calls.
     10
     11        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     12
    1132009-07-23  Anton Muhin  <antonm@chromium.org>
    214
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r46343 r46466  
    507507}
    508508
    509 // We can use the same callback for both 'style-set' and
    510 // 'direction-changed', since we don't care about neither of their
    511 // second parameters.
    512 static void updateLayout(GtkWidget* widget, gpointer dummy, gpointer userData)
    513 {
    514    gpointer data = g_object_get_data(G_OBJECT(userData), "webkit-accessible-pango-layout");
    515    if (!data)
    516        return;
    517 
    518    pango_layout_context_changed(static_cast<PangoLayout*>(data));
    519 }
    520 
    521509static gchar* utf8Substr(const gchar* string, gint start, gint end)
    522510{
     
    563551static PangoLayout* getPangoLayoutForAtk(AtkText* textObject)
    564552{
    565     gpointer data = g_object_get_data(G_OBJECT(textObject), "webkit-accessible-pango-layout");
    566     if (data)
    567         return static_cast<PangoLayout*>(data);
    568 
    569553    AccessibilityObject* coreObject = core(textObject);
    570554
     
    575559    if (!webView)
    576560        return 0;
    577 
    578     g_signal_connect(webView, "style-set", G_CALLBACK(updateLayout), textObject);
    579     g_signal_connect(webView, "direction-changed", G_CALLBACK(updateLayout), textObject);
    580561
    581562    GString* str = g_string_new(NULL);
Note: See TracChangeset for help on using the changeset viewer.