~midori/midori/trunk

« back to all changes in this revision

Viewing changes to extensions/formhistory/formhistory-gdom-frontend.c

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-19 21:00:46 UTC
  • mfrom: (6216.1.10 midori.butcher)
  • Revision ID: tarmac-20130619210046-i3yv8cnkyjuafubb
Bump WebKit requirement to 1.8.3 and drop support for earlier versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 version 2.1 of the License, or (at your option) any later version.
9
9
*/
10
10
#include "formhistory-frontend.h"
11
 
#ifdef FORMHISTORY_USE_GDOM
12
11
#define COMPLETION_DELAY 200
13
12
 
14
13
FormHistoryPriv*
393
392
    for (i = 0; i < webkit_dom_node_list_get_length (inputs); i++)
394
393
    {
395
394
        WebKitDOMNode* element = webkit_dom_node_list_item (inputs, i);
396
 
        #if WEBKIT_CHECK_VERSION (1, 6, 1)
397
395
        gchar* autocomplete = webkit_dom_html_input_element_get_autocomplete (
398
396
            WEBKIT_DOM_HTML_INPUT_ELEMENT (element));
399
397
        gboolean off = !g_strcmp0 (autocomplete, "off");
400
398
        g_free (autocomplete);
401
399
        if (off)
402
400
            continue;
403
 
        #endif
404
401
 
405
402
        g_object_set_data (G_OBJECT (element), "doc", doc);
406
403
        g_object_set_data (G_OBJECT (element), "webview", web_view);
511
508
        G_CALLBACK (formhistory_suggestion_selected_cb), priv);
512
509
    return TRUE;
513
510
}
514
 
#endif