diff options
author | Sebastian Geerken <devnull@localhost> | 2014-08-02 12:54:52 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-08-02 12:54:52 +0200 |
commit | c4143d5106b2c5f47fa431c0eb0a4291591af292 (patch) | |
tree | e3fee29f1f87f0ef235b18c6a343087f7f645c1c /src/styleengine.cc | |
parent | abac9a3d10e920dd86520c658b670f189985bd4a (diff) |
Implemented 'min-width' and 'max-width'.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 74a6330f..f5f0a315 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -713,6 +713,18 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, else if (attrs->wordSpacing < -1000) attrs->wordSpacing = -1000; break; + case CSS_PROPERTY_MIN_WIDTH: + computeLength (&attrs->minWidth, p->value.intVal, attrs->font); + break; + case CSS_PROPERTY_MAX_WIDTH: + computeLength (&attrs->maxWidth, p->value.intVal, attrs->font); + break; + case CSS_PROPERTY_MIN_HEIGHT: + computeLength (&attrs->minHeight, p->value.intVal, attrs->font); + break; + case CSS_PROPERTY_MAX_HEIGHT: + computeLength (&attrs->maxHeight, p->value.intVal, attrs->font); + break; case PROPERTY_X_LINK: attrs->x_link = p->value.intVal; break; |