aboutsummaryrefslogtreecommitdiff
path: root/src/web.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-09-20 09:40:14 +0200
committerSebastian Geerken <devnull@localhost>2013-09-20 09:40:14 +0200
commitf815ca9e7f27a8fc4a8230413ecac8ad2b2e0621 (patch)
tree5810585bb4c5ddc256b7c42718581ea394a9036a /src/web.cc
parentfae1427770c3484970798e2e3f9f074f4af6599c (diff)
Added BrowserWindow and DilloURL (base URL) to StyleEngine::apply and related.
Diffstat (limited to 'src/web.cc')
-rw-r--r--src/web.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web.cc b/src/web.cc
index fcc65af8..a469ccb2 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -70,13 +70,13 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web,
/* Set a style for the widget */
StyleEngine styleEngine (layout);
- styleEngine.startElement ("body");
+ styleEngine.startElement ("body", Web->bw, Web->url);
dw = (Widget*) viewer(Type, Web, Call, Data);
if (dw == NULL)
return -1;
- dw->setStyle (styleEngine.style ());
+ dw->setStyle (styleEngine.style (Web->bw, Web->url));
/* This method frees the old dw if any */
layout->setWidget(dw);