Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/8e7e0412adc25060e70aa84ebbd43b37c9cc710b
...commit 
http://git.netsurf-browser.org/libcss.git/commit/8e7e0412adc25060e70aa84ebbd43b37c9cc710b
...tree 
http://git.netsurf-browser.org/libcss.git/tree/8e7e0412adc25060e70aa84ebbd43b37c9cc710b

The branch, master has been updated
       via  8e7e0412adc25060e70aa84ebbd43b37c9cc710b (commit)
      from  d986c1c356aba25bdf0b977133b387fbdad5aa90 (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=8e7e0412adc25060e70aa84ebbd43b37c9cc710b
commit 8e7e0412adc25060e70aa84ebbd43b37c9cc710b
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Selection: Try all previous sibling nodes for sharable styles.
    
    Previously we would only consider the first candidate.

diff --git a/src/select/select.c b/src/select/select.c
index e46134c..8488b74 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -964,14 +964,15 @@ printf("      \t%s\tno share: node id (%s)\n", 
lwc_string_data(state->element.na
                                type, sharable_node_data);
                if (error != CSS_OK) {
                        return error;
-               } else {
-                       if (sharable_node_data == NULL) {
-                               /* Can't share with this; look for another */
-                               continue;
-                       } else {
-                               break;
-                       }
                }
+
+               if (*sharable_node_data != NULL) {
+                       /* Found style date we can share */
+                       break;
+               }
+
+               /* Can't share with this; look for another */
+               node = share_candidate_node;
        }
 
        return CSS_OK;


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

Summary of changes:
 src/select/select.c |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/select/select.c b/src/select/select.c
index e46134c..8488b74 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -964,14 +964,15 @@ printf("      \t%s\tno share: node id (%s)\n", 
lwc_string_data(state->element.na
                                type, sharable_node_data);
                if (error != CSS_OK) {
                        return error;
-               } else {
-                       if (sharable_node_data == NULL) {
-                               /* Can't share with this; look for another */
-                               continue;
-                       } else {
-                               break;
-                       }
                }
+
+               if (*sharable_node_data != NULL) {
+                       /* Found style date we can share */
+                       break;
+               }
+
+               /* Can't share with this; look for another */
+               node = share_candidate_node;
        }
 
        return CSS_OK;


-- 
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