Bug #4781 ยป 0001-Include-theme-CSS-for-widgetsets-with-websockets.patch
| src/web/WebRenderer.C | ||
|---|---|---|
|
if (conf.inlineCss())
|
||
|
app->styleSheet().javaScriptUpdate(app, collectedJS1_, false);
|
||
|
if (!initialStyleRendered_) {
|
||
|
/*
|
||
|
* If we have not yet served the bootstyle for this page (possible with websocket)
|
||
|
*/
|
||
|
if (app->theme()) {
|
||
|
std::vector<WCssStyleSheet> styleSheets = app->theme()->styleSheets();
|
||
|
for (unsigned i = 0; i < styleSheets.size(); ++i)
|
||
|
loadStyleSheet(collectedJS1_, app, styleSheets[i]);
|
||
|
}
|
||
|
initialStyleRendered_ = true;
|
||
|
}
|
||
|
loadStyleSheets(collectedJS1_, app);
|
||
|
if (app->bodyHtmlClassChanged_) {
|
||