diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-15 13:45:37 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-15 13:45:37 +0200 |
commit | a4d92f6ec2a1bf92c1f0bc408a7060a774bd027d (patch) | |
tree | d573fadd93d460bb3c40fcc88931ac88b637b65a /src/styleengine.cc | |
parent | 0941ffb6ccfe4f44ff5add68dbb57626c8b18666 (diff) |
Extended CSS parser and dw::core::Style by 'z-index'.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index f5f0a315..706340b6 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -725,6 +725,12 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, case CSS_PROPERTY_MAX_HEIGHT: computeLength (&attrs->maxHeight, p->value.intVal, attrs->font); break; + case CSS_PROPERTY_Z_INDEX: + if (p->type == CSS_LENGTH_TYPE_AUTO) + attrs->zIndex = dw::core::style::Z_INDEX_AUTO; + else + attrs->zIndex = p->value.intVal; + break; case PROPERTY_X_LINK: attrs->x_link = p->value.intVal; break; |