Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/2fc4177a09cc6fc6706f84dbe157077a41b6e22b
...commit 
http://git.netsurf-browser.org/libcss.git/commit/2fc4177a09cc6fc6706f84dbe157077a41b6e22b
...tree 
http://git.netsurf-browser.org/libcss.git/tree/2fc4177a09cc6fc6706f84dbe157077a41b6e22b

The branch, master has been updated
       via  2fc4177a09cc6fc6706f84dbe157077a41b6e22b (commit)
      from  cb0f7f373f55455d07f349f589ce3684d2fda167 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libcss.git/commit/?id=2fc4177a09cc6fc6706f84dbe157077a41b6e22b
commit 2fc4177a09cc6fc6706f84dbe157077a41b6e22b
Author: Lucas Neves <[email protected]>
Commit: Michael Drake <[email protected]>

    Example: Fix css_presentational_hints prototype and return value.

diff --git a/examples/example1.c b/examples/example1.c
index 511771d..be7a582 100644
--- a/examples/example1.c
+++ b/examples/example1.c
@@ -95,7 +95,7 @@ static css_error node_is_target(void *pw, void *node, bool 
*match);
 static css_error node_is_lang(void *pw, void *node,
                lwc_string *lang, bool *match);
 static css_error node_presentational_hint(void *pw, void *node,
-               uint32_t property, css_hint *hint);
+               uint32_t *nhints, css_hint **hints);
 static css_error ua_default_for_property(void *pw, uint32_t property,
                css_hint *hint);
 static css_error compute_font_size(void *pw, const css_hint *parent,
@@ -625,13 +625,13 @@ css_error node_is_lang(void *pw, void *n,
 }
 
 css_error node_presentational_hint(void *pw, void *node,
-               uint32_t property, css_hint *hint)
+               uint32_t *nhints, css_hint **hints)
 {
        UNUSED(pw);
        UNUSED(node);
-       UNUSED(property);
-       UNUSED(hint);
-       return CSS_PROPERTY_NOT_SET;
+       *nhints = 0;
+       *hints = NULL;
+       return CSS_OK;
 }
 
 css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint)


-----------------------------------------------------------------------

Summary of changes:
 examples/example1.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/example1.c b/examples/example1.c
index 511771d..be7a582 100644
--- a/examples/example1.c
+++ b/examples/example1.c
@@ -95,7 +95,7 @@ static css_error node_is_target(void *pw, void *node, bool 
*match);
 static css_error node_is_lang(void *pw, void *node,
                lwc_string *lang, bool *match);
 static css_error node_presentational_hint(void *pw, void *node,
-               uint32_t property, css_hint *hint);
+               uint32_t *nhints, css_hint **hints);
 static css_error ua_default_for_property(void *pw, uint32_t property,
                css_hint *hint);
 static css_error compute_font_size(void *pw, const css_hint *parent,
@@ -625,13 +625,13 @@ css_error node_is_lang(void *pw, void *n,
 }
 
 css_error node_presentational_hint(void *pw, void *node,
-               uint32_t property, css_hint *hint)
+               uint32_t *nhints, css_hint **hints)
 {
        UNUSED(pw);
        UNUSED(node);
-       UNUSED(property);
-       UNUSED(hint);
-       return CSS_PROPERTY_NOT_SET;
+       *nhints = 0;
+       *hints = NULL;
+       return CSS_OK;
 }
 
 css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint)


-- 
Cascading Style Sheets library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to