Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/00cafe488273eab18e9c93bf59191efaa722fc3b
...commit 
http://git.netsurf-browser.org/libcss.git/commit/00cafe488273eab18e9c93bf59191efaa722fc3b
...tree 
http://git.netsurf-browser.org/libcss.git/tree/00cafe488273eab18e9c93bf59191efaa722fc3b

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

    Stylesheet: Increase size of storage for selector count for rules.
    
    We've found instances of well over 256 selectors for a rule in the wild.
    
    `for N in $(seq 0 254); do echo ".selector-$N,"; done; echo ".selector-255 
{}"`

diff --git a/src/stylesheet.h b/src/stylesheet.h
index a44ad1f..a71fca6 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -117,10 +117,10 @@ struct css_rule {
        css_rule *next;                         /**< next in list */
        css_rule *prev;                         /**< previous in list */
 
-       unsigned int type  :  4,                /**< css_rule_type */
-                    index : 16,                /**< index in sheet */
-                    items :  8,                /**< # items in rule */
-                    ptype :  1;                /**< css_rule_parent_type */
+       uint32_t index; /**< index in sheet */
+       uint16_t items; /**< number of items (selectors) in rule */
+       uint8_t type;   /**< css_rule_type */
+       uint8_t ptype;  /**< css_rule_parent_type */
 } _ALIGNED;
 
 typedef struct css_rule_selector {


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

Summary of changes:
 src/stylesheet.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/stylesheet.h b/src/stylesheet.h
index a44ad1f..a71fca6 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -117,10 +117,10 @@ struct css_rule {
        css_rule *next;                         /**< next in list */
        css_rule *prev;                         /**< previous in list */
 
-       unsigned int type  :  4,                /**< css_rule_type */
-                    index : 16,                /**< index in sheet */
-                    items :  8,                /**< # items in rule */
-                    ptype :  1;                /**< css_rule_parent_type */
+       uint32_t index; /**< index in sheet */
+       uint16_t items; /**< number of items (selectors) in rule */
+       uint8_t type;   /**< css_rule_type */
+       uint8_t ptype;  /**< css_rule_parent_type */
 } _ALIGNED;
 
 typedef struct css_rule_selector {


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