} else {
BLANK_IMAGE_URL = GWT.getModuleBaseURL() + "clear.gif";
}
}
El bodyEl = XDOM.getBodyEl();
if (isBorderBox) {
bodyEl.addStyleName("ext-border-box");
}
if (isIE) {
bodyEl.addStyleName("ext-ie");
String cls = (isIE6 ? "ext-ie6" : (isIE7 ? "ext-ie7" : (isIE8 ? "ext-ie8" : (isIE9 ? "ext-ie8 ext-ie9" : null))));
bodyEl.addStyleName(cls);
if (isIE7 && isIE8compatibility()) {
bodyEl.addStyleName("ext-ie8-compatibility");
}
} else if (isGecko) {
bodyEl.addStyleName("ext-gecko");
String cls = (isGecko2 ? "ext-gecko2" : (isGecko3 ? "ext-gecko3" : null));
bodyEl.addStyleName(cls);
} else if (isOpera) {
bodyEl.addStyleName("ext-opera");
} else if (isWebKit) {
bodyEl.addStyleName("ext-webkit");
if (isSafari) {
bodyEl.addStyleName("ext-safari");
} else if (isChrome) {
bodyEl.addStyleName("ext-chrome");
}
}
if (isWindows) {
bodyEl.addStyleName("ext-windows");
} else if (isMac) {
bodyEl.addStyleName("ext-mac");
} else if (isLinux) {
bodyEl.addStyleName("ext-linux");
}
if (StateManager.get().getProvider() == null) {
StateManager.get().setProvider(new CookieProvider("/", null, null, isSecure));
}
Map<String, Object> theme = StateManager.get().getMap(GWT.getModuleBaseURL() + "theme");
if ((defaultTheme != null && forceTheme) || (theme == null && defaultTheme != null)) {
theme = defaultTheme.asMap();
}
if (theme != null) {
final String themeId = theme.get("id").toString();
String fileName = theme.get("file").toString();
if (!fileName.contains("gxt-all.css")) {
CSS.addStyleSheet(themeId, fileName);
}
bodyEl.addStyleName("x-theme-" + themeId);
Theme t = ThemeManager.findTheme(themeId);
t.init();
StateManager.get().set(GWT.getModuleBaseURL() + "theme", theme);