Project

General

Profile

Bug #4781 ยป 0001-Include-theme-CSS-for-widgetsets-with-websockets.patch

Bruce Toll, 03/01/2016 01:58 AM

View differences:

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_) {
    (1-1/1)