2010-11-24 Xan Lopez <xlopez@igalia.com>
authorxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 17:51:25 +0000 (17:51 +0000)
committerxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 17:51:25 +0000 (17:51 +0000)
commite7e3e4cfa0901489b3402e8bc7ffe9f623bb9782
tree2599e5e1ab1bc27cd3d2a37d3c31dae06367a446
parent9f32eb368bf256985bd005bf54d332d64691fe29
2010-11-24  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        Fix crashes in GTK+ bots. Use kit() instead of wrapFoo, otherwise
        the DOM objects won't be in the cache and we'll ASSERT when
        unreffing them.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::EditorClient::shouldDeleteRange): use kit to get the
        GObject wrapper for the DOM object.
        (WebKit::EditorClient::shouldShowDeleteInterface): ditto.
        (WebKit::EditorClient::shouldBeginEditing): ditto.
        (WebKit::EditorClient::shouldEndEditing): ditto.
        (WebKit::EditorClient::shouldInsertText): ditto.
        (WebKit::EditorClient::shouldChangeSelectedRange): ditto.
        (WebKit::EditorClient::shouldApplyStyle): ditto.
        (WebKit::EditorClient::shouldInsertNode): ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp