aboutsummaryrefslogtreecommitdiff
path: root/src/web.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/web.cc')
-rw-r--r--src/web.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web.cc b/src/web.cc
index 0a8ee710..617afbbe 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -73,14 +73,14 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web,
style::createPerLength (0));
/* Set a style for the widget */
- StyleEngine styleEngine (layout);
- styleEngine.startElement ("body", Web->bw, Web->url);
+ StyleEngine styleEngine (layout, Web->url);
+ styleEngine.startElement ("body", Web->bw);
dw = (Widget*) viewer(Type, Web, Call, Data);
if (dw == NULL)
return -1;
- dw->setStyle (styleEngine.style (Web->bw, Web->url));
+ dw->setStyle (styleEngine.style (Web->bw));
/* This method frees the old dw if any */
layout->setWidget(dw);