Moving loading and broken image icons to /res for embedding. b=110384 r=adamlock,sfraser sr=sfraser,waterson
git-svn-id: svn://10.0.0.236/trunk@108627 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2036,8 +2036,8 @@ nsImageFrame::CanLoadImage(nsIURI *aURI)
|
||||
|
||||
nsresult nsImageFrame::LoadIcons(nsIPresContext *aPresContext)
|
||||
{
|
||||
nsAutoString loadingSrc(NS_LITERAL_STRING("resource:/res/html/loading-image.gif"));
|
||||
nsAutoString brokenSrc(NS_LITERAL_STRING("resource:/res/html/broken-image.gif"));
|
||||
NS_NAMED_LITERAL_STRING(loadingSrc,"resource:/res/loading-image.gif");
|
||||
NS_NAMED_LITERAL_STRING(brokenSrc,"resource:/res/broken-image.gif");
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
PRBool doLoad = PR_FALSE; // only load icons once...
|
||||
|
||||
@@ -121,9 +121,7 @@ endif
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
RESOURCES = \
|
||||
$(srcdir)/broken-image.gif \
|
||||
$(srcdir)/loading-image.gif \
|
||||
RESOURCES_HTML = \
|
||||
$(srcdir)/gopher-audio.gif \
|
||||
$(srcdir)/gopher-binary.gif \
|
||||
$(srcdir)/gopher-find.gif \
|
||||
@@ -135,6 +133,12 @@ RESOURCES = \
|
||||
$(srcdir)/gopher-unknown.gif \
|
||||
$(NULL)
|
||||
|
||||
RESOURCES = \
|
||||
$(srcdir)/broken-image.gif \
|
||||
$(srcdir)/loading-image.gif \
|
||||
$(NULL)
|
||||
|
||||
|
||||
# we don't want the shared lib, but we want to force the creation of a static lib.
|
||||
FORCE_STATIC_LIB = 1
|
||||
|
||||
@@ -152,5 +156,6 @@ INCLUDES += \
|
||||
$(NULL)
|
||||
|
||||
install::
|
||||
$(INSTALL) $(RESOURCES) $(DIST)/bin/res/html
|
||||
$(INSTALL) $(RESOURCES_HTML) $(DIST)/bin/res/html
|
||||
$(INSTALL) $(RESOURCES) $(DIST)/bin/res
|
||||
|
||||
|
||||
@@ -133,8 +133,8 @@ install:: $(LIBRARY)
|
||||
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
|
||||
|
||||
install::
|
||||
$(MAKE_INSTALL) broken-image.gif $(DIST)\bin\res\html
|
||||
$(MAKE_INSTALL) loading-image.gif $(DIST)\bin\res\html
|
||||
$(MAKE_INSTALL) broken-image.gif $(DIST)\bin\res
|
||||
$(MAKE_INSTALL) loading-image.gif $(DIST)\bin\res
|
||||
$(MAKE_INSTALL) gopher-audio.gif $(DIST)\bin\res\html
|
||||
$(MAKE_INSTALL) gopher-binary.gif $(DIST)\bin\res\html
|
||||
$(MAKE_INSTALL) gopher-find.gif $(DIST)\bin\res\html
|
||||
|
||||
@@ -2036,8 +2036,8 @@ nsImageFrame::CanLoadImage(nsIURI *aURI)
|
||||
|
||||
nsresult nsImageFrame::LoadIcons(nsIPresContext *aPresContext)
|
||||
{
|
||||
nsAutoString loadingSrc(NS_LITERAL_STRING("resource:/res/html/loading-image.gif"));
|
||||
nsAutoString brokenSrc(NS_LITERAL_STRING("resource:/res/html/broken-image.gif"));
|
||||
NS_NAMED_LITERAL_STRING(loadingSrc,"resource:/res/loading-image.gif");
|
||||
NS_NAMED_LITERAL_STRING(brokenSrc,"resource:/res/broken-image.gif");
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
PRBool doLoad = PR_FALSE; // only load icons once...
|
||||
|
||||
Reference in New Issue
Block a user