aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
Diffstat (limited to 'dw')
-rw-r--r--dw/style.cc5
-rw-r--r--dw/style.hh9
2 files changed, 14 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc
index d548d209..53d2cbb7 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;
@@ -106,6 +107,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. */
@@ -167,6 +169,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 &&
@@ -223,6 +226,7 @@ int StyleAttrs::hashValue () {
textTransform +
vloat +
clear +
+ overflow +
position +
top +
bottom +
@@ -349,6 +353,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;
diff --git a/dw/style.hh b/dw/style.hh
index bda567ce..948a6457 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -331,6 +331,13 @@ enum FontVariant {
FONT_VARIANT_SMALL_CAPS
};
+enum Overflow {
+ OVERFLOW_VISIBLE,
+ OVERFLOW_HIDDEN,
+ OVERFLOW_SCROLL,
+ OVERFLOW_AUTO
+};
+
enum Position {
POSITION_STATIC,
POSITION_RELATIVE,
@@ -527,6 +534,8 @@ public:
FloatType vloat; /* "float" is a keyword. */
ClearType clear;
+ Overflow overflow;
+
Position position;
Length top, bottom, left, right;