Gitweb links:
...log
http://git.netsurf-browser.org/libcss.git/shortlog/1a9fa6f7383dd4c79a25614b2438645cfa8ec572
...commit
http://git.netsurf-browser.org/libcss.git/commit/1a9fa6f7383dd4c79a25614b2438645cfa8ec572
...tree
http://git.netsurf-browser.org/libcss.git/tree/1a9fa6f7383dd4c79a25614b2438645cfa8ec572
The branch, master has been updated
via 1a9fa6f7383dd4c79a25614b2438645cfa8ec572 (commit)
from 04976d7f23da03e4bebbe50fd3548c8b4d7c26fc (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=1a9fa6f7383dd4c79a25614b2438645cfa8ec572
commit 1a9fa6f7383dd4c79a25614b2438645cfa8ec572
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
select: Fix blank pseudo style reversion
diff --git a/src/select/select.c b/src/select/select.c
index 0735641..da0aa61 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1161,6 +1161,14 @@ static css_error css__select_revert_property_to_origin(
{
css_error error;
+ if (select_state->results->styles[pseudo] == NULL) {
+ return CSS_OK;
+ }
+
+ if (select_state->revert[origin].style[pseudo] == NULL) {
+ return prop_dispatch[property].initial(select_state);
+ }
+
error = prop_dispatch[property].copy(
select_state->revert[origin].style[pseudo],
select_state->results->styles[pseudo]);
-----------------------------------------------------------------------
Summary of changes:
src/select/select.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/select/select.c b/src/select/select.c
index 0735641..da0aa61 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1161,6 +1161,14 @@ static css_error css__select_revert_property_to_origin(
{
css_error error;
+ if (select_state->results->styles[pseudo] == NULL) {
+ return CSS_OK;
+ }
+
+ if (select_state->revert[origin].style[pseudo] == NULL) {
+ return prop_dispatch[property].initial(select_state);
+ }
+
error = prop_dispatch[property].copy(
select_state->revert[origin].style[pseudo],
select_state->results->styles[pseudo]);
--
Cascading Style Sheets library
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]