From f1f3155ef6f28fb8595920e5423336b39bba4ed0 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 14 Feb 2009 22:55:32 +0000 Subject: Port libcss to libwapcaplet. It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517 --- test/dump_computed.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/dump_computed.h') diff --git a/test/dump_computed.h b/test/dump_computed.h index 690f6c0..7622394 100644 --- a/test/dump_computed.h +++ b/test/dump_computed.h @@ -142,7 +142,7 @@ static void dump_computed_style(const css_computed_style *style, char *buf, size_t wrote = 0; uint8_t val; css_color color; - const css_string *url; + lwc_string *url; css_fixed len1, len2; css_unit unit1, unit2; @@ -180,9 +180,9 @@ static void dump_computed_style(const css_computed_style *style, char *buf, /* background-image */ val = css_computed_background_image(style, &url); - if (val == CSS_BACKGROUND_IMAGE_IMAGE && url->data != NULL) { + if (val == CSS_BACKGROUND_IMAGE_IMAGE && url != NULL) { wrote = snprintf(ptr, *len, "background-image: url('%.*s')\n", - (int) url->len, url->data); + (int) lwc_string_length(url), lwc_string_data(url)); } else if (val == CSS_BACKGROUND_IMAGE_NONE) { wrote = snprintf(ptr, *len, "background-image: none\n"); } else { -- cgit v1.2.3