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 /dw/style.cc | |
parent | 1fbc6981b2372216304c22430a3898100962f01f (diff) | |
parent | cb4003e1cac5abfbc7b02cb57d4663d976ef8550 (diff) |
Merge of http://flpsed.org/hgweb/dillo_hyphen/
Diffstat (limited to 'dw/style.cc')
-rw-r--r-- | dw/style.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc index a2240a9e..2a1d4088 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -37,6 +37,7 @@ namespace style { void StyleAttrs::initValues () { x_link = -1; + x_lang[0] = x_lang[1] = 0; x_img = -1; x_tooltip = NULL; textDecoration = TEXT_DECORATION_NONE; @@ -144,6 +145,8 @@ bool StyleAttrs::equals (object::Object *other) { listStyleType == otherAttrs->listStyleType && cursor == otherAttrs->cursor && x_link == otherAttrs->x_link && + x_lang[0] == otherAttrs->x_lang[0] && + x_lang[1] == otherAttrs->x_lang[1] && x_img == otherAttrs->x_img && x_tooltip == otherAttrs->x_tooltip); } @@ -182,6 +185,7 @@ int StyleAttrs::hashValue () { listStyleType + cursor + x_link + + x_lang[0] + x_lang[1] + x_img + (intptr_t) x_tooltip; } @@ -267,6 +271,8 @@ void Style::copyAttrs (StyleAttrs *attrs) listStyleType = attrs->listStyleType; cursor = attrs->cursor; x_link = attrs->x_link; + x_lang[0] = attrs->x_lang[0]; + x_lang[1] = attrs->x_lang[1]; x_img = attrs->x_img; x_tooltip = attrs->x_tooltip; } |