Removed code for checking whether the callback parameter is NULL in ewk_view_script_e...
authorYuni Jeong <yhnet.jung@samsung.com>
Wed, 29 Aug 2012 11:31:26 +0000 (20:31 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Wed, 29 Aug 2012 11:54:29 +0000 (20:54 +0900)
[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

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

index df4bcd4..71474bf 100755 (executable)
@@ -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;