diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-01 14:58:17 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-01 14:58:17 +0200 |
commit | b786927adfaaee3eddc3c73033edbddd7f646f2a (patch) | |
tree | 147590998d178fb41c0988babfefe3819d403413 /src | |
parent | 8ef9399d0e4f92ebb00d7cc6c0ec273c4b5ca4bd (diff) |
Cleanup.
Diffstat (limited to 'src')
-rw-r--r-- | src/styleengine.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 01ba71f8..f3fd2934 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -480,6 +480,12 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, } } break; + case CSS_PROPERTY_BACKGROUND_POSITION: + computeLength (&attrs->backgroundPositionX, p->value.posVal->posX, + attrs->font); + computeLength (&attrs->backgroundPositionY, p->value.posVal->posY, + attrs->font); + break; case CSS_PROPERTY_BACKGROUND_REPEAT: attrs->backgroundRepeat = (BackgroundRepeat) p->value.intVal; break; @@ -629,12 +635,6 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, else if (attrs->wordSpacing < -1000) attrs->wordSpacing = -1000; break; - case CSS_PROPERTY_BACKGROUND_POSITION: - computeLength (&attrs->backgroundPositionX, p->value.posVal->posX, - attrs->font); - computeLength (&attrs->backgroundPositionY, p->value.posVal->posY, - attrs->font); - break; case PROPERTY_X_LINK: attrs->x_link = p->value.intVal; break; |