aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-28 23:22:23 +0100
committerSebastian Geerken <devnull@localhost>2012-11-28 23:22:23 +0100
commit67421929c5ef216b175399f8df54f40f9058ecbf (patch)
treefedb9e077a318102aa9db18abd7ae3d92544e96e /src/styleengine.cc
parent9e9deedc7c615c992a735e88ac3987adeb5b13c3 (diff)
parent891e083d172ce40aec3d609ea5e0a4d3cd9df325 (diff)
Merge with http://hg.dillo.org/dillo/.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 48092c23..8aa8cdc3 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -51,7 +51,7 @@ StyleEngine::StyleEngine (dw::core::Layout *layout) {
style_attrs.color = Color::create (layout, 0);
style_attrs.backgroundColor = Color::create (layout, 0xffffff);
- n->style = Style::create (layout, &style_attrs);
+ n->style = Style::create (&style_attrs);
}
StyleEngine::~StyleEngine () {
@@ -718,7 +718,7 @@ Style * StyleEngine::backgroundStyle () {
assert (attrs.backgroundColor);
stack->getRef (stack->size () - 1)->backgroundStyle =
- Style::create (layout, &attrs);
+ Style::create (&attrs);
}
return stack->getRef (stack->size () - 1)->backgroundStyle;
}
@@ -760,7 +760,7 @@ Style * StyleEngine::style0 (int i) {
postprocessAttrs (&attrs);
- stack->getRef (i)->style = Style::create (layout, &attrs);
+ stack->getRef (i)->style = Style::create (&attrs);
return stack->getRef (i)->style;
}
@@ -774,7 +774,7 @@ Style * StyleEngine::wordStyle0 () {
attrs.valign = style ()->valign;
- stack->getRef(stack->size() - 1)->wordStyle = Style::create(layout, &attrs);
+ stack->getRef(stack->size() - 1)->wordStyle = Style::create(&attrs);
return stack->getRef (stack->size () - 1)->wordStyle;
}