aboutsummaryrefslogtreecommitdiff
path: root/dw/style.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-03 13:51:25 +0200
committerSebastian Geerken <devnull@localhost>2014-10-03 13:51:25 +0200
commit8fd2ae404f3f0af087217ba79ff9a35955fb026f (patch)
treebc42c1fbbb2224a52846d62111e5924ec788d0fc /dw/style.cc
parent59b3ae08f3fcd91c0792e2ea840d0072f1d73416 (diff)
parent5f1cf298395601f67afc9aff78e547d915663daf (diff)
Merge with main repo. (But something is not working yet.)
Diffstat (limited to 'dw/style.cc')
-rw-r--r--dw/style.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc
index 1c2978b4..830613fa 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -76,6 +76,7 @@ void StyleAttrs::initValues ()
minWidth = maxWidth = minHeight = maxHeight = LENGTH_AUTO;
vloat = FLOAT_NONE;
clear = CLEAR_NONE;
+ overflow = OVERFLOW_VISIBLE;
position = POSITION_STATIC;
top = bottom = left = right = LENGTH_AUTO;
textIndent = 0;
@@ -107,6 +108,7 @@ void StyleAttrs::resetValues ()
textAlignChar = '.';
vloat = FLOAT_NONE; /** \todo Correct? Check specification. */
clear = CLEAR_NONE; /** \todo Correct? Check specification. */
+ overflow = OVERFLOW_VISIBLE;
position = POSITION_STATIC; /** \todo Correct? Check specification. */
top = bottom = left = right = LENGTH_AUTO; /** \todo Correct? Check
specification. */
@@ -168,6 +170,7 @@ bool StyleAttrs::equals (object::Object *other) {
textTransform == otherAttrs->textTransform &&
vloat == otherAttrs->vloat &&
clear == otherAttrs->clear &&
+ overflow == otherAttrs->overflow &&
position == otherAttrs->position &&
top == otherAttrs->top &&
bottom == otherAttrs->bottom &&
@@ -225,6 +228,7 @@ int StyleAttrs::hashValue () {
textTransform +
vloat +
clear +
+ overflow +
position +
top +
bottom +
@@ -352,6 +356,7 @@ void Style::copyAttrs (StyleAttrs *attrs)
textTransform = attrs->textTransform;
vloat = attrs->vloat;
clear = attrs->clear;
+ overflow = attrs->overflow;
position = attrs->position;
top = attrs->top;
bottom = attrs->bottom;