summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-01-07 18:19:26 +0000
committerArtur Signell <artur.signell@itmill.com>2011-01-07 18:19:26 +0000
commit225b496ac8be822b73492eee291946212e66a734 (patch)
tree2b406978c547aeb5dd574098ffcc6ddf0bba5916 /src/com
parente8573de42f572df3dd7ed3e849523cba90a43403 (diff)
downloadvaadin-framework-225b496ac8be822b73492eee291946212e66a734.tar.gz
vaadin-framework-225b496ac8be822b73492eee291946212e66a734.zip
#6258 - IE6 does not cache CSS background images
svn changeset:16826/svn branch:6.5
Diffstat (limited to 'src/com')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
index 281b6f4d16..9e062eee80 100644
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
@@ -371,6 +371,10 @@ public class ApplicationConfiguration implements EntryPoint {
public void onModuleLoad() {
+ // Enable IE6 Background image caching
+ if (BrowserInfo.get().isIE6()) {
+ enableIE6BackgroundImageCache();
+ }
// Prepare VConsole for debugging
if (isDebugMode()) {
VDebugConsole console = GWT.create(VDebugConsole.class);
@@ -400,6 +404,19 @@ public class ApplicationConfiguration implements EntryPoint {
startNextApplication();
}
+ // From ImageSrcIE6
+ private static native void enableIE6BackgroundImageCache()
+ /*-{
+ // Fix IE background image refresh bug, present through IE6
+ // see http://www.mister-pixel.com/#Content__state=is_that_simple
+ // this only works with IE6 SP1+
+ try {
+ $doc.execCommand("BackgroundImageCache", false, true);
+ } catch (e) {
+ // ignore error on other browsers
+ }
+ }-*/;
+
/**
* Checks if client side is in debug mode. Practically this is invoked by
* adding ?debug parameter to URI.