fix up framebuffer build flags

fix select attributes

svn path=/trunk/netsurf/; revision=13643
This commit is contained in:
Vincent Sanders 2012-03-24 22:42:14 +00:00
parent 980d4d4caf
commit 3576ad71cb
2 changed files with 8 additions and 8 deletions

View File

@ -1074,7 +1074,7 @@ css_error node_has_attribute_equal(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;
@ -1126,7 +1126,7 @@ css_error node_has_attribute_dashmatch(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;
@ -1193,7 +1193,7 @@ css_error node_has_attribute_includes(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;
@ -1261,7 +1261,7 @@ css_error node_has_attribute_prefix(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;
@ -1325,7 +1325,7 @@ css_error node_has_attribute_suffix(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;
@ -1393,7 +1393,7 @@ css_error node_has_attribute_substring(void *pw, void *node,
return CSS_NOMEM;
err = dom_element_get_attribute(n, name, &atr_val);
if ((err != DOM_NO_ERR) && (atr_val != NULL)) {
if ((err != DOM_NO_ERR) || (atr_val == NULL)) {
dom_string_unref(name);
*match = false;
return CSS_OK;

View File

@ -58,12 +58,12 @@ ifeq ($(HOST),mint)
# xml-config returns -lsocket which is not needed and does not
# exist on all systems. because of that - hardcoded reference to
# libxml-2.0 here.
LDFLAGS += -L/usr/lib/ -lxml2 -lz -liconv
LDFLAGS += -L/usr/lib/ -lz -liconv
LDFLAGS += -lm
else
CFLAGS += $(shell $(PKG_CONFIG) --cflags libcurl)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libhubbub openssl)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libdom openssl)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libcss)
endif