Fix input type test to compare correct variable.

This commit is contained in:
Michael Drake 2012-07-15 14:06:37 +01:00
parent 1ecc94b187
commit f266e0569e

View File

@ -2494,15 +2494,15 @@ node_presentational_hint_width(nscss_select_ctx *ctx,
}
if (input) {
err = dom_element_get_attribute(node,
nscss_dom_string_type,
&width);
err = dom_element_get_attribute(node,
nscss_dom_string_type, &width);
if ((err != DOM_NO_ERR) || (width == NULL)) {
return CSS_PROPERTY_NOT_SET;
}
if (dom_string_isequal(name, nscss_dom_string_text) ||
dom_string_isequal(name, nscss_dom_string_password)) {
if (dom_string_isequal(width, nscss_dom_string_text) ||
dom_string_isequal(width,
nscss_dom_string_password)) {
hint->data.length.unit = CSS_UNIT_EX;
}