From: Yuni Jeong Date: Wed, 29 Aug 2012 11:31:26 +0000 (+0900) Subject: Removed code for checking whether the callback parameter is NULL in ewk_view_script_e... X-Git-Tag: 2.0_alpha~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da3b9742cdd07d30c6c95d8c0cd89a932530aaa7;p=framework%2Fweb%2Fwebkit-efl.git Removed code for checking whether the callback parameter is NULL in ewk_view_script_execute(). [Title] Removed code for checking whether the callback parameter is NULL in ewk_view_script_execute(). [Issue#] N/A [Problem] If the callback parameter is NULL, ewk_view_script_execute() does not work. [Cause] If the callback parameter is NULL, ewk_view_script_execute() return false. [Solution] If the result data from the script is not required, NULL might be used for the callback parameter. So, removed code for checking NULL for the callback parameter. Change-Id: Idae68a37b834f7cabf0c1d8cb7ef8f7919b52283 --- diff --git a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp index df4bcd4..71474bf 100755 --- a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp +++ b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp @@ -3358,7 +3358,6 @@ Eina_Bool ewk_view_script_execute(Evas_Object* ewkView, const char* script, Ewk_ EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false); EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, false); EINA_SAFETY_ON_NULL_RETURN_VAL(script, false); - EINA_SAFETY_ON_NULL_RETURN_VAL(callback, false); Ewk_View_Callback_Context* context = new Ewk_View_Callback_Context; context->scriptExecuteCallback = callback;