aboutsummaryrefslogtreecommitdiff
path: root/dw/style.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2010-10-21 11:22:29 -0300
committerJorge Arellano Cid <jcid@dillo.org>2010-10-21 11:22:29 -0300
commit4bc80c00e134f96f7226f64eaa37d5c1097d00b2 (patch)
treef9f85a9eb4bcaf69dcf8fdb0f35e887ee4cc293b /dw/style.cc
parent90531a3492332a841770ffe32257c97f5531dc0d (diff)
imported patch border-collapse-parsing
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 30597af2..d315382c 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -49,6 +49,7 @@ void StyleAttrs::initValues ()
margin.setVal (0);
borderWidth.setVal (0);
padding.setVal (0);
+ borderCollapse = BORDER_MODEL_SEPARATE;
setBorderColor (NULL);
setBorderStyle (BORDER_NONE);
hBorderSpacing = 0;
@@ -123,6 +124,7 @@ bool StyleAttrs::equals (object::Object *other) {
margin.equals (&otherAttrs->margin) &&
borderWidth.equals (&otherAttrs->borderWidth) &&
padding.equals (&otherAttrs->padding) &&
+ borderCollapse == otherAttrs->borderCollapse &&
borderColor.top == otherAttrs->borderColor.top &&
borderColor.right == otherAttrs->borderColor.right &&
borderColor.bottom == otherAttrs->borderColor.bottom &&
@@ -158,6 +160,7 @@ int StyleAttrs::hashValue () {
margin.hashValue () +
borderWidth.hashValue () +
padding.hashValue () +
+ borderCollapse +
(intptr_t) borderColor.top +
(intptr_t) borderColor.right +
(intptr_t) borderColor.bottom +
@@ -246,6 +249,7 @@ void Style::copyAttrs (StyleAttrs *attrs)
margin = attrs->margin;
borderWidth = attrs->borderWidth;
padding = attrs->padding;
+ borderCollapse = attrs->borderCollapse;
borderColor = attrs->borderColor;
borderStyle = attrs->borderStyle;
display = attrs->display;