Changeset 46466 in webkit
- Timestamp:
- Jul 28, 2009 3:52:59 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r46462 r46466 1 2009-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 1 13 2009-07-23 Anton Muhin <antonm@chromium.org> 2 14 -
trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
r46343 r46466 507 507 } 508 508 509 // We can use the same callback for both 'style-set' and510 // 'direction-changed', since we don't care about neither of their511 // 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 521 509 static gchar* utf8Substr(const gchar* string, gint start, gint end) 522 510 { … … 563 551 static PangoLayout* getPangoLayoutForAtk(AtkText* textObject) 564 552 { 565 gpointer data = g_object_get_data(G_OBJECT(textObject), "webkit-accessible-pango-layout");566 if (data)567 return static_cast<PangoLayout*>(data);568 569 553 AccessibilityObject* coreObject = core(textObject); 570 554 … … 575 559 if (!webView) 576 560 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);580 561 581 562 GString* str = g_string_new(NULL);
Note: See TracChangeset
for help on using the changeset viewer.