mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Fix input type test to compare correct variable.
This commit is contained in:
parent
1ecc94b187
commit
f266e0569e
10
css/select.c
10
css/select.c
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user