Title: [96202] trunk/Source/WebKit/efl
Revision
96202
Author
[email protected]
Date
2011-09-28 01:02:15 -0700 (Wed, 28 Sep 2011)

Log Message

[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

Patch by Grzegorz Czajkowski <[email protected]> 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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (96201 => 96202)


--- trunk/Source/WebKit/efl/ChangeLog	2011-09-28 08:00:47 UTC (rev 96201)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-09-28 08:02:15 UTC (rev 96202)
@@ -1,5 +1,20 @@
 2011-09-28  Grzegorz Czajkowski  <[email protected]>
 
+        [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  <[email protected]>
+
         [EFL] URL of resources are not decoded.
         https://bugs.webkit.org/show_bug.cgi?id=66540
 

Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (96201 => 96202)


--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-09-28 08:00:47 UTC (rev 96201)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-09-28 08:02:15 UTC (rev 96202)
@@ -2375,7 +2375,7 @@
  * 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 @@
  */
 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 @@
  * 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 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);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to