Gitweb links:
...log
http://git.netsurf-browser.org/libcss.git/shortlog/03ab48a3171d358d50d0d9...
...commit
http://git.netsurf-browser.org/libcss.git/commit/03ab48a3171d358d50d0d973...
...tree
http://git.netsurf-browser.org/libcss.git/tree/03ab48a3171d358d50d0d97331...
The branch, master has been updated
via 03ab48a3171d358d50d0d97331a64a79c084521b (commit)
from e2b4077eed0ad778847cd7b17406e8bf8b61a4ae (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=03ab48a3171d358d50d0...
commit 03ab48a3171d358d50d0d97331a64a79c084521b
Author: Michael Drake <Michael Drake tlsa(a)netsurf-browser.org>
Commit: Michael Drake <Michael Drake tlsa(a)netsurf-browser.org>
select: mq: Fix to convert parse unit types to public unit types.
diff --git a/src/select/mq.h b/src/select/mq.h
index c01144b..9a97b7d 100644
--- a/src/select/mq.h
+++ b/src/select/mq.h
@@ -9,6 +9,9 @@
#ifndef css_select_mq_h_
#define css_select_mq_h_
+#include "select/properties/properties.h"
+#include "select/properties/helpers.h"
+
static inline css_fixed css_len2px(
css_fixed length,
css_unit unit,
@@ -122,9 +125,10 @@ static inline bool mq_match_feature_range_length_op1(
return false;
}
- if (value->data.dim.unit != CSS_UNIT_PX) {
+ if (value->data.dim.unit != UNIT_PX) {
v = css_len2px(value->data.dim.len,
- value->data.dim.unit, media);
+ css__to_css_unit(value->data.dim.unit),
+ media);
} else {
v = value->data.dim.len;
}
@@ -156,9 +160,10 @@ static inline bool mq_match_feature_range_length_op2(
return false;
}
- if (value->data.dim.unit != CSS_UNIT_PX) {
+ if (value->data.dim.unit != UNIT_PX) {
v = css_len2px(value->data.dim.len,
- value->data.dim.unit, media);
+ css__to_css_unit(value->data.dim.unit),
+ media);
} else {
v = value->data.dim.len;
}
-----------------------------------------------------------------------
Summary of changes:
src/select/mq.h | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/select/mq.h b/src/select/mq.h
index c01144b..9a97b7d 100644
--- a/src/select/mq.h
+++ b/src/select/mq.h
@@ -9,6 +9,9 @@
#ifndef css_select_mq_h_
#define css_select_mq_h_
+#include "select/properties/properties.h"
+#include "select/properties/helpers.h"
+
static inline css_fixed css_len2px(
css_fixed length,
css_unit unit,
@@ -122,9 +125,10 @@ static inline bool mq_match_feature_range_length_op1(
return false;
}
- if (value->data.dim.unit != CSS_UNIT_PX) {
+ if (value->data.dim.unit != UNIT_PX) {
v = css_len2px(value->data.dim.len,
- value->data.dim.unit, media);
+ css__to_css_unit(value->data.dim.unit),
+ media);
} else {
v = value->data.dim.len;
}
@@ -156,9 +160,10 @@ static inline bool mq_match_feature_range_length_op2(
return false;
}
- if (value->data.dim.unit != CSS_UNIT_PX) {
+ if (value->data.dim.unit != UNIT_PX) {
v = css_len2px(value->data.dim.len,
- value->data.dim.unit, media);
+ css__to_css_unit(value->data.dim.unit),
+ media);
} else {
v = value->data.dim.len;
}
--
Cascading Style Sheets library