aboutsummaryrefslogtreecommitdiff
path: root/dw/style.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-15 13:45:37 +0200
committerSebastian Geerken <devnull@localhost>2014-09-15 13:45:37 +0200
commita4d92f6ec2a1bf92c1f0bc408a7060a774bd027d (patch)
treed573fadd93d460bb3c40fcc88931ac88b637b65a /dw/style.cc
parent0941ffb6ccfe4f44ff5add68dbb57626c8b18666 (diff)
Extended CSS parser and dw::core::Style by 'z-index'.
Diffstat (limited to 'dw/style.cc')
-rw-r--r--dw/style.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc
index d548d209..1c2978b4 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -92,6 +92,7 @@ void StyleAttrs::initValues ()
display = DISPLAY_INLINE;
whiteSpace = WHITE_SPACE_NORMAL;
cursor = CURSOR_DEFAULT;
+ zIndex = Z_INDEX_AUTO;
}
/**
@@ -200,6 +201,7 @@ bool StyleAttrs::equals (object::Object *other) {
listStylePosition == otherAttrs->listStylePosition &&
listStyleType == otherAttrs->listStyleType &&
cursor == otherAttrs->cursor &&
+ zIndex == otherAttrs->zIndex &&
x_link == otherAttrs->x_link &&
x_lang[0] == otherAttrs->x_lang[0] &&
x_lang[1] == otherAttrs->x_lang[1] &&
@@ -256,6 +258,7 @@ int StyleAttrs::hashValue () {
listStylePosition +
listStyleType +
cursor +
+ zIndex +
x_link +
x_lang[0] + x_lang[1] +
x_img +
@@ -376,6 +379,7 @@ void Style::copyAttrs (StyleAttrs *attrs)
listStylePosition = attrs->listStylePosition;
listStyleType = attrs->listStyleType;
cursor = attrs->cursor;
+ zIndex = attrs->zIndex;
x_link = attrs->x_link;
x_lang[0] = attrs->x_lang[0];
x_lang[1] = attrs->x_lang[1];