diff options
author | Sebastian Geerken <devnull@localhost> | 2012-09-13 12:35:54 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-09-13 12:35:54 +0200 |
commit | 94e451ffa5ece79a3b071ee553650bf8bd869a46 (patch) | |
tree | f07d031111d6dd4e3a960f882606bfab1c56fdbd /src/styleengine.cc | |
parent | 1fbc6981b2372216304c22430a3898100962f01f (diff) | |
parent | cb4003e1cac5abfbc7b02cb57d4663d976ef8550 (diff) |
Merge of http://flpsed.org/hgweb/dillo_hyphen/
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 8453f3eb..19b9f371 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -601,6 +601,13 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props) { case PROPERTY_X_LINK: attrs->x_link = p->value.intVal; break; + case PROPERTY_X_LANG: + attrs->x_lang[0] = tolower (p->value.strVal[0]); + if (attrs->x_lang[0]) + attrs->x_lang[1] = tolower (p->value.strVal[1]); + else + attrs->x_lang[1] = 0; + break; case PROPERTY_X_IMG: attrs->x_img = p->value.intVal; break; |