Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7
...commit
http://git.netsurf-browser.org/netsurf.git/commit/abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7
...tree
http://git.netsurf-browser.org/netsurf.git/tree/abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7
The branch, master has been updated
via abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7 (commit)
from e499f5c08f27b0fa738f784dbb91d8fc28d8ca01 (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/netsurf.git/commit/?id=abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7
commit abdab90859a7299b2cf7eb6c3f6e68df9d17d1d7
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Presentational hints: Ensure length is initialised for auto margins.
Although the length is unused when margin is auto, having
uninitialised values present in a computed style means that
the style hashing may give the same style different hashes
depending on the unintitialised info.
The effect of this would have been be to reduce the chance
of computed style sharing. It would have had no effect on
page rendering.
diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c
index a962123..9fe9ffb 100644
--- a/content/handlers/css/hints.c
+++ b/content/handlers/css/hints.c
@@ -882,6 +882,7 @@ static void css_hint_margin_left_right_align_center(
corestring_dom_align, &attr);
if (exc == DOM_NO_ERR && attr != NULL) {
+ memset(hint, 0, sizeof(*hint) * 2);
if (dom_string_caseless_lwc_isequal(attr,
corestring_lwc_center) ||
dom_string_caseless_lwc_isequal(attr,
@@ -1022,6 +1023,7 @@ static void css_hint_margin_left_right_hr(
corestring_dom_align, &attr);
if (exc == DOM_NO_ERR && attr != NULL) {
+ memset(hint, 0, sizeof(*hint) * 2);
if (dom_string_caseless_lwc_isequal(attr,
corestring_lwc_left)) {
hint->prop = CSS_PROP_MARGIN_LEFT;
-----------------------------------------------------------------------
Summary of changes:
content/handlers/css/hints.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c
index a962123..9fe9ffb 100644
--- a/content/handlers/css/hints.c
+++ b/content/handlers/css/hints.c
@@ -882,6 +882,7 @@ static void css_hint_margin_left_right_align_center(
corestring_dom_align, &attr);
if (exc == DOM_NO_ERR && attr != NULL) {
+ memset(hint, 0, sizeof(*hint) * 2);
if (dom_string_caseless_lwc_isequal(attr,
corestring_lwc_center) ||
dom_string_caseless_lwc_isequal(attr,
@@ -1022,6 +1023,7 @@ static void css_hint_margin_left_right_hr(
corestring_dom_align, &attr);
if (exc == DOM_NO_ERR && attr != NULL) {
+ memset(hint, 0, sizeof(*hint) * 2);
if (dom_string_caseless_lwc_isequal(attr,
corestring_lwc_left)) {
hint->prop = CSS_PROP_MARGIN_LEFT;
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org