Commit 3f7b51ce authored by xan@webkit.org's avatar xan@webkit.org

2009-04-14 Xan Lopez <xlopez@igalia.com>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=21546
        [GTK] ATK accessibility enhancements

        Remove some dead code and g_return_if_fail from static functions.

        * page/gtk/AccessibilityObjectWrapperAtk.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@42496 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 705c7827
2009-04-14 Xan Lopez <xlopez@igalia.com>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=21546
[GTK] ATK accessibility enhancements
Remove some dead code and g_return_if_fail from static functions.
* page/gtk/AccessibilityObjectWrapperAtk.cpp:
2009-04-14 Xan Lopez <xlopez@igalia.com> 2009-04-14 Xan Lopez <xlopez@igalia.com>
Reviewed by Holger Freyther. Reviewed by Holger Freyther.
...@@ -292,9 +292,6 @@ static AtkStateSet* webkit_accessible_ref_state_set(AtkObject* object) ...@@ -292,9 +292,6 @@ static AtkStateSet* webkit_accessible_ref_state_set(AtkObject* object)
static void webkit_accessible_init(AtkObject* object, gpointer data) static void webkit_accessible_init(AtkObject* object, gpointer data)
{ {
g_return_if_fail(WEBKIT_IS_ACCESSIBLE(object));
g_return_if_fail(data);
if (ATK_OBJECT_CLASS(webkit_accessible_parent_class)->initialize) if (ATK_OBJECT_CLASS(webkit_accessible_parent_class)->initialize)
ATK_OBJECT_CLASS(webkit_accessible_parent_class)->initialize(object, data); ATK_OBJECT_CLASS(webkit_accessible_parent_class)->initialize(object, data);
...@@ -389,8 +386,6 @@ static const gchar* webkit_accessible_action_get_name(AtkAction* action, gint i) ...@@ -389,8 +386,6 @@ static const gchar* webkit_accessible_action_get_name(AtkAction* action, gint i)
static void atk_action_interface_init(AtkActionIface* iface) static void atk_action_interface_init(AtkActionIface* iface)
{ {
g_return_if_fail(iface);
iface->do_action = webkit_accessible_action_do_action; iface->do_action = webkit_accessible_action_do_action;
iface->get_n_actions = webkit_accessible_action_get_n_actions; iface->get_n_actions = webkit_accessible_action_get_n_actions;
iface->get_description = webkit_accessible_action_get_description; iface->get_description = webkit_accessible_action_get_description;
...@@ -525,37 +520,8 @@ static gboolean webkit_accessible_text_set_caret_offset(AtkText* text, gint offs ...@@ -525,37 +520,8 @@ static gboolean webkit_accessible_text_set_caret_offset(AtkText* text, gint offs
return TRUE; return TRUE;
} }
#if 0
// Signal handlers
static void webkit_accessible_text_text_changed(AtkText* text, gint position, gint length)
{
}
static void webkit_accessible_text_text_caret_moved(AtkText* text, gint location)
{
}
static void webkit_accessible_text_text_selection_changed(AtkText* text)
{
}
static void webkit_accessible_text_text_attributes_changed(AtkText* text)
{
}
static void webkit_accessible_text_get_range_extents(AtkText* text, gint start_offset, gint end_offset, AtkCoordType coord_type, AtkTextRectangle* rect)
{
}
static AtkTextRange** webkit_accessible_text_get_bounded_ranges(AtkText* text, AtkTextRectangle* rect, AtkCoordType coord_type, AtkTextClipType x_clip_type, AtkTextClipType y_clip_type)
{
}
#endif
static void atk_text_interface_init(AtkTextIface* iface) static void atk_text_interface_init(AtkTextIface* iface)
{ {
g_return_if_fail(iface);
iface->get_text = webkit_accessible_text_get_text; iface->get_text = webkit_accessible_text_get_text;
iface->get_text_after_offset = webkit_accessible_text_get_text_after_offset; iface->get_text_after_offset = webkit_accessible_text_get_text_after_offset;
iface->get_text_at_offset = webkit_accessible_text_get_text_at_offset; iface->get_text_at_offset = webkit_accessible_text_get_text_at_offset;
...@@ -565,7 +531,6 @@ static void atk_text_interface_init(AtkTextIface* iface) ...@@ -565,7 +531,6 @@ static void atk_text_interface_init(AtkTextIface* iface)
iface->get_run_attributes = webkit_accessible_text_get_run_attributes; iface->get_run_attributes = webkit_accessible_text_get_run_attributes;
iface->get_default_attributes = webkit_accessible_text_get_default_attributes; iface->get_default_attributes = webkit_accessible_text_get_default_attributes;
iface->get_character_extents = webkit_accessible_text_get_character_extents; iface->get_character_extents = webkit_accessible_text_get_character_extents;
//iface->get_range_extents = ;
iface->get_character_count = webkit_accessible_text_get_character_count; iface->get_character_count = webkit_accessible_text_get_character_count;
iface->get_offset_at_point = webkit_accessible_text_get_offset_at_point; iface->get_offset_at_point = webkit_accessible_text_get_offset_at_point;
iface->get_n_selections = webkit_accessible_text_get_n_selections; iface->get_n_selections = webkit_accessible_text_get_n_selections;
...@@ -641,8 +606,6 @@ static void webkit_accessible_editable_text_paste_text(AtkEditableText* text, gi ...@@ -641,8 +606,6 @@ static void webkit_accessible_editable_text_paste_text(AtkEditableText* text, gi
static void atk_editable_text_interface_init(AtkEditableTextIface* iface) static void atk_editable_text_interface_init(AtkEditableTextIface* iface)
{ {
g_return_if_fail(iface);
iface->set_run_attributes = webkit_accessible_editable_text_set_run_attributes; iface->set_run_attributes = webkit_accessible_editable_text_set_run_attributes;
iface->set_text_contents = webkit_accessible_editable_text_set_text_contents; iface->set_text_contents = webkit_accessible_editable_text_set_text_contents;
iface->insert_text = webkit_accessible_editable_text_insert_text; iface->insert_text = webkit_accessible_editable_text_insert_text;
...@@ -680,8 +643,6 @@ static G_CONST_RETURN gchar* webkit_accessible_streamable_content_get_uri(AtkStr ...@@ -680,8 +643,6 @@ static G_CONST_RETURN gchar* webkit_accessible_streamable_content_get_uri(AtkStr
static void atk_streamable_content_interface_init(AtkStreamableContentIface* iface) static void atk_streamable_content_interface_init(AtkStreamableContentIface* iface)
{ {
g_return_if_fail(iface);
iface->get_n_mime_types = webkit_accessible_streamable_content_get_n_mime_types; iface->get_n_mime_types = webkit_accessible_streamable_content_get_n_mime_types;
iface->get_mime_type = webkit_accessible_streamable_content_get_mime_type; iface->get_mime_type = webkit_accessible_streamable_content_get_mime_type;
iface->get_stream = webkit_accessible_streamable_content_get_stream; iface->get_stream = webkit_accessible_streamable_content_get_stream;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment