Fix SafeHtml API misuse (calling SafeHtmlUtils.fromSafeConstant(String)
with a non-constant string value).
Review at http://gwt-code-reviews.appspot.com/1611804
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10797 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/cell/client/ImageLoadingCell.java b/user/src/com/google/gwt/cell/client/ImageLoadingCell.java
index 6ac3698..ea4a6d0 100644
--- a/user/src/com/google/gwt/cell/client/ImageLoadingCell.java
+++ b/user/src/com/google/gwt/cell/client/ImageLoadingCell.java
@@ -26,7 +26,6 @@
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
-import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.text.shared.AbstractSafeHtmlRenderer;
import com.google.gwt.text.shared.SafeHtmlRenderer;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
@@ -100,10 +99,10 @@
if (LOADING_RENDERER == null) {
Resources resources = GWT.create(Resources.class);
ImageResource res = resources.loading();
- final String loadingHtml = AbstractImagePrototype.create(res).getHTML();
+ final SafeHtml loadingHtml = AbstractImagePrototype.create(res).getSafeHtml();
LOADING_RENDERER = new AbstractSafeHtmlRenderer<String>() {
public SafeHtml render(String object) {
- return SafeHtmlUtils.fromSafeConstant(loadingHtml);
+ return loadingHtml;
}
};
}