summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-27 11:03:45 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-04-27 11:03:45 (GMT)
commit21a424653c148ca966012826064f8b5db5afc93f (patch)
tree44d51f889bd9eaef04a07110937b52105a3b79cf
parent8d583fbe94b801353faec8e3a5a6729e3fe767a5 (diff)
downloadlibcss-21a424653c148ca966012826064f8b5db5afc93f.tar.gz
libcss-21a424653c148ca966012826064f8b5db5afc93f.tar.bz2
Interface: Add public API for getting box-sizing from computed style.
-rw-r--r--include/libcss/computed.h3
-rw-r--r--src/select/computed.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h
index c7e77e0..e15d0b0 100644
--- a/include/libcss/computed.h
+++ b/include/libcss/computed.h
@@ -203,6 +203,9 @@ uint8_t css_computed_border_left_color(
const css_computed_style *style,
css_color *color);
+uint8_t css_computed_box_sizing(
+ const css_computed_style *style);
+
uint8_t css_computed_height(
const css_computed_style *style,
css_fixed *length, css_unit *unit);
diff --git a/src/select/computed.c b/src/select/computed.c
index 2efc8a7..23f7ea4 100644
--- a/src/select/computed.c
+++ b/src/select/computed.c
@@ -632,6 +632,11 @@ uint8_t css_computed_border_left_color(const css_computed_style *style,
return get_border_left_color(style, color);
}
+uint8_t css_computed_box_sizing(const css_computed_style *style)
+{
+ return get_box_sizing(style);
+}
+
uint8_t css_computed_height(const css_computed_style *style,
css_fixed *length, css_unit *unit)
{