[evolution/wip/webkit2] WebKit2 - Build fixes



commit 4e865e0f9dd7ebf8a0f5a155758d7afaea3824a8
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 24 16:56:41 2015 +0100

    WebKit2 - Build fixes

 .../e-html-editor-selection-dom-functions.c        |   10 ++++------
 web-extensions/e-html-editor-view-dom-functions.c  |    1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/web-extensions/e-html-editor-selection-dom-functions.c 
b/web-extensions/e-html-editor-selection-dom-functions.c
index a4279ec..f82042c 100644
--- a/web-extensions/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/e-html-editor-selection-dom-functions.c
@@ -2894,7 +2894,7 @@ dom_selection_set_underline (WebKitDOMDocument *document,
 
        dom_exec_command (document, E_HTML_EDITOR_VIEW_COMMAND_UNDERLINE, NULL);
 
-       e_html_editor_view_force_spell_check_for_current_paragraph (view);
+       dom_force_spell_check_for_current_paragraph (document, extension);
 
        set_dbus_property_boolean (extension, "Underline", underline);
 }
@@ -3389,7 +3389,7 @@ dom_selection_set_monospaced (WebKitDOMDocument *document,
                dom_selection_set_font_size (document, extension, font_size);
        }
 
-       e_html_editor_view_force_spell_check_for_current_paragraph (view);
+       dom_force_spell_check_for_current_paragraph (document, extension);
 
 /* FIXME WK2
        g_object_notify (G_OBJECT (selection), "monospaced");*/
@@ -3469,7 +3469,7 @@ dom_selection_set_bold (WebKitDOMDocument *document,
 
        dom_exec_command (document, E_HTML_EDITOR_VIEW_COMMAND_BOLD, NULL);
 
-       e_html_editor_view_force_spell_check_for_current_paragraph (view);
+       dom_force_spell_check_for_current_paragraph (document, extension);
 /* FIXME WK2
        g_object_notify (G_OBJECT (selection), "bold");*/
 }
@@ -3548,7 +3548,7 @@ dom_selection_set_italic (WebKitDOMDocument *document,
 
        dom_exec_command (document, E_HTML_EDITOR_VIEW_COMMAND_ITALIC, NULL);
 
-       e_html_editor_view_force_spell_check_for_current_paragraph (view);
+       dom_force_spell_check_for_current_paragraph (document, extension);
 /* FIXME WK2
        g_object_notify (G_OBJECT (selection), "italic");*/
 }
@@ -3721,10 +3721,8 @@ dom_selection_set_font_size (WebKitDOMDocument *document,
        /* Text in <font size="3"></font> (size 3 is our default size) is a little
         * bit smaller than font outsize it. So move it outside of it. */
        if (font_size == E_HTML_EDITOR_SELECTION_FONT_SIZE_NORMAL) {
-               WebKitDOMDocument *document;
                WebKitDOMElement *element;
 
-               document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
                element = webkit_dom_document_query_selector (document, "font[size=\"3\"]", NULL);
                if (element) {
                        WebKitDOMNode *child;
diff --git a/web-extensions/e-html-editor-view-dom-functions.c 
b/web-extensions/e-html-editor-view-dom-functions.c
index 1759f54..28e1ab7 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -1328,6 +1328,7 @@ emoticon_read_async_cb (GFile *file,
                         LoadContext *load_context)
 {
        EEmoticon *emoticon = load_context->emoticon;
+       EHTMLEditorWebExtension *extension = load_context->extension;
        GError *error = NULL;
        gboolean html_mode;
        gchar *html, *mime_type;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]