[EFL] Allow to skip count parameter in ewk_view_repaints_get and ewk_view_scroll_requ...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 08:02:15 +0000 (08:02 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 08:02:15 +0000 (08:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=65842

Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2011-09-28
Reviewed by Ryosuke Niwa.

Makes the count parameter in ewk_view_repaints_get and ewk_view_scroll_requests_get
as an optional parameter. Developer may pass NULL to skip returning the number of elements
of the requested array.

* ewk/ewk_view.cpp:
(ewk_view_repaints_get):
(ewk_view_scroll_requests_get):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96202 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/efl/ChangeLog
Source/WebKit/efl/ewk/ewk_view.cpp

index cbdd4ba..a6949f5 100755 (executable)
@@ -1,5 +1,20 @@
 2011-09-28  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
 
+        [EFL] Allow to skip count parameter in ewk_view_repaints_get and ewk_view_scroll_requests_get.
+        https://bugs.webkit.org/show_bug.cgi?id=65842
+
+        Reviewed by Ryosuke Niwa.
+
+        Makes the count parameter in ewk_view_repaints_get and ewk_view_scroll_requests_get
+        as an optional parameter. Developer may pass NULL to skip returning the number of elements
+        of the requested array.
+
+        * ewk/ewk_view.cpp:
+        (ewk_view_repaints_get):
+        (ewk_view_scroll_requests_get):
+
+2011-09-28  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
+
         [EFL] URL of resources are not decoded.
         https://bugs.webkit.org/show_bug.cgi?id=66540
 
index d635119..47869c6 100644 (file)
@@ -2375,7 +2375,7 @@ Ewk_View_Smart_Data* ewk_view_smart_data_get(const Evas_Object* o)
  * otherwise copy the array.
  *
  * @param priv private handle pointer of the view to get repaints.
- * @param count where to return the number of elements of returned array.
+ * @param count where to return the number of elements of returned array, may be @c 0.
  *
  * @return reference to array of requested repaints.
  *
@@ -2384,7 +2384,6 @@ Ewk_View_Smart_Data* ewk_view_smart_data_get(const Evas_Object* o)
  */
 const Eina_Rectangle* ewk_view_repaints_get(const Ewk_View_Private_Data* priv, size_t* count)
 {
-    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
     if (count)
         *count = 0;
     EINA_SAFETY_ON_NULL_RETURN_VAL(priv, 0);
@@ -2403,7 +2402,7 @@ const Eina_Rectangle* ewk_view_repaints_get(const Ewk_View_Private_Data* priv, s
  * otherwise copy the array.
  *
  * @param priv private handle pointer of the view to get scrolls.
- * @param count where to return the number of elements of returned array.
+ * @param count where to return the number of elements of returned array, may be @c 0.
  *
  * @return reference to array of requested scrolls.
  *
@@ -2412,7 +2411,6 @@ const Eina_Rectangle* ewk_view_repaints_get(const Ewk_View_Private_Data* priv, s
  */
 const Ewk_Scroll_Request* ewk_view_scroll_requests_get(const Ewk_View_Private_Data* priv, size_t* count)
 {
-    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
     if (count)
         *count = 0;
     EINA_SAFETY_ON_NULL_RETURN_VAL(priv, 0);