Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 749448 - Remove XTF, r=bz
Browse files Browse the repository at this point in the history
  • Loading branch information
Olli Pettay authored and Olli Pettay committed Nov 15, 2012
1 parent e945e66 commit 6d6ea28
Show file tree
Hide file tree
Showing 39 changed files with 0 additions and 2,839 deletions.
1 change: 0 additions & 1 deletion b2g/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
@BINPATH@/components/content_htmldoc.xpt
@BINPATH@/components/content_html.xpt
@BINPATH@/components/content_xslt.xpt
@BINPATH@/components/content_xtf.xpt
@BINPATH@/components/cookie.xpt
@BINPATH@/components/directory.xpt
@BINPATH@/components/docshell.xpt
Expand Down
1 change: 0 additions & 1 deletion browser/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
@BINPATH@/components/content_htmldoc.xpt
@BINPATH@/components/content_html.xpt
@BINPATH@/components/content_xslt.xpt
@BINPATH@/components/content_xtf.xpt
@BINPATH@/components/cookie.xpt
@BINPATH@/components/directory.xpt
@BINPATH@/components/docshell.xpt
Expand Down
19 changes: 0 additions & 19 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -4244,7 +4244,6 @@ MOZ_TOOLKIT_SEARCH=1
MOZ_UI_LOCALE=en-US
MOZ_UNIVERSALCHARDET=1
MOZ_URL_CLASSIFIER=
MOZ_XTF=1
MOZ_XUL=1
MOZ_ZIPWRITER=1
NS_PRINTING=1
Expand Down Expand Up @@ -5705,17 +5704,6 @@ MOZ_ARG_DISABLE_BOOL(negotiateauth,
MOZ_AUTH_EXTENSION=,
MOZ_AUTH_EXTENSION=1 )

dnl ========================================================
dnl XTF
dnl ========================================================
MOZ_ARG_DISABLE_BOOL(xtf,
[ --disable-xtf Disable XTF (pluggable xml tags) support],
MOZ_XTF=,
MOZ_XTF=1 )
if test "$MOZ_XTF"; then
AC_DEFINE(MOZ_XTF)
fi

dnl ========================================================
dnl Pref extensions (autoconfig)
dnl ========================================================
Expand Down Expand Up @@ -6074,12 +6062,6 @@ if test -z "$MOZ_JSDEBUGGER" -a `echo "$MOZ_EXTENSIONS" | grep -c venkman` -ne 0
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|venkman||'`
fi

dnl xforms requires xtf
if test -z "$MOZ_XTF" -a `echo "$MOZ_EXTENSIONS" | grep -c xforms` -ne 0; then
AC_MSG_WARN([Cannot build XForms without XTF support. Removing XForms from MOZ_EXTENSIONS.])
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|xforms||g'`
fi

dnl Remove dupes
MOZ_EXTENSIONS=`${PERL} ${srcdir}/build/unix/uniq.pl ${MOZ_EXTENSIONS}`

Expand Down Expand Up @@ -8313,7 +8295,6 @@ AC_SUBST(MOZ_UPDATE_XTERM)
AC_SUBST(MOZ_PLATFORM_MAEMO)
AC_SUBST(MOZ_AUTH_EXTENSION)
AC_SUBST(MOZ_PERMISSIONS)
AC_SUBST(MOZ_XTF)
AC_SUBST(MOZ_PREF_EXTENSIONS)
AC_SUBST(MOZ_JS_LIBS)
AC_SUBST(MOZ_PSM)
Expand Down
4 changes: 0 additions & 4 deletions content/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ ifdef MOZ_MEDIA
PARALLEL_DIRS += media
endif

ifdef MOZ_XTF
PARALLEL_DIRS += xtf
endif

ifdef ENABLE_TESTS
TOOL_DIRS += test
endif
Expand Down
11 changes: 0 additions & 11 deletions content/base/public/nsContentUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ class nsIWidget;
class nsIDragSession;
class nsIPresShell;
class nsIXPConnectJSObjectHolder;
#ifdef MOZ_XTF
class nsIXTFService;
#endif
#ifdef IBMBIDI
class nsIBidiKeyboard;
#endif
Expand Down Expand Up @@ -459,10 +456,6 @@ class nsContentUtils
return sIOService;
}

#ifdef MOZ_XTF
static nsIXTFService* GetXTFService();
#endif

#ifdef IBMBIDI
static nsIBidiKeyboard* GetBidiKeyboard();
#endif
Expand Down Expand Up @@ -2224,10 +2217,6 @@ class nsContentUtils

static nsIIOService *sIOService;

#ifdef MOZ_XTF
static nsIXTFService *sXTFService;
#endif

static bool sImgLoaderInitialized;
static void InitImgLoader();

Expand Down
25 changes: 0 additions & 25 deletions content/base/src/nsContentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
#include "nsCRT.h"
#include "nsIDOMEvent.h"
#include "nsIDOMEventTarget.h"
#ifdef MOZ_XTF
#include "nsIXTFService.h"
static NS_DEFINE_CID(kXTFServiceCID, NS_XTFSERVICE_CID);
#endif
#include "nsIMIMEService.h"
#include "nsLWBrkCIID.h"
#include "nsILineBreaker.h"
Expand Down Expand Up @@ -195,9 +191,6 @@ nsIThreadJSContextStack *nsContentUtils::sThreadJSContextStack;
nsIParserService *nsContentUtils::sParserService = nullptr;
nsINameSpaceManager *nsContentUtils::sNameSpaceManager;
nsIIOService *nsContentUtils::sIOService;
#ifdef MOZ_XTF
nsIXTFService *nsContentUtils::sXTFService = nullptr;
#endif
imgILoader *nsContentUtils::sImgLoader;
imgILoader *nsContentUtils::sPrivateImgLoader;
imgICache *nsContentUtils::sImgCache;
Expand Down Expand Up @@ -955,21 +948,6 @@ nsContentUtils::ParseSandboxAttributeToFlags(const nsAString& aSandboxAttrValue)
return out;
}

#ifdef MOZ_XTF
nsIXTFService*
nsContentUtils::GetXTFService()
{
if (!sXTFService) {
nsresult rv = CallGetService(kXTFServiceCID, &sXTFService);
if (NS_FAILED(rv)) {
sXTFService = nullptr;
}
}

return sXTFService;
}
#endif

#ifdef IBMBIDI
nsIBidiKeyboard*
nsContentUtils::GetBidiKeyboard()
Expand Down Expand Up @@ -1473,9 +1451,6 @@ nsContentUtils::Shutdown()
NS_IF_RELEASE(sIOService);
NS_IF_RELEASE(sLineBreaker);
NS_IF_RELEASE(sWordBreaker);
#ifdef MOZ_XTF
NS_IF_RELEASE(sXTFService);
#endif
NS_IF_RELEASE(sImgLoader);
NS_IF_RELEASE(sPrivateImgLoader);
NS_IF_RELEASE(sImgCache);
Expand Down
16 changes: 0 additions & 16 deletions content/base/src/nsNameSpaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
#include "nsDataHashtable.h"
#include "nsString.h"

#ifdef MOZ_XTF
#include "nsIServiceManager.h"
#include "nsIXTFService.h"
#include "nsContentUtils.h"
static NS_DEFINE_CID(kXTFServiceCID, NS_XTFSERVICE_CID);
#endif

using namespace mozilla;
using namespace mozilla::dom;

Expand Down Expand Up @@ -214,15 +207,6 @@ NS_NewElement(nsIContent** aResult,
if (ns == kNameSpaceID_XMLEvents) {
return NS_NewXMLEventsElement(aResult, aNodeInfo);
}
#ifdef MOZ_XTF
if (ns > kNameSpaceID_LastBuiltin) {
nsIXTFService* xtfService = nsContentUtils::GetXTFService();
NS_ASSERTION(xtfService, "could not get xtf service");
if (xtfService &&
NS_SUCCEEDED(xtfService->CreateElement(aResult, aNodeInfo)))
return NS_OK;
}
#endif
return NS_NewXMLElement(aResult, aNodeInfo);
}

Expand Down
8 changes: 0 additions & 8 deletions content/xml/document/src/nsXMLContentSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,6 @@ nsXMLContentSink::CloseElement(nsIContent* aContent)
#endif
nodeInfo->NameAtom() == nsGkAtoms::object ||
nodeInfo->NameAtom() == nsGkAtoms::applet))
#ifdef MOZ_XTF
|| nodeInfo->NamespaceID() > kNameSpaceID_LastBuiltin
#endif
|| nodeInfo->NameAtom() == nsGkAtoms::title
) {
aContent->DoneAddingChildren(HaveNotifiedForCurrentContent());
Expand Down Expand Up @@ -1016,11 +1013,6 @@ nsXMLContentSink::HandleStartElement(const PRUnichar *aName,
nodeInfo->SetIDAttributeAtom(IDAttr);
}
}

#ifdef MOZ_XTF
if (nameSpaceID > kNameSpaceID_LastBuiltin)
content->BeginAddingChildren();
#endif

// Set the attributes on the new content element
result = AddAttributes(aAtts, content);
Expand Down
16 changes: 0 additions & 16 deletions content/xtf/Makefile.in

This file was deleted.

25 changes: 0 additions & 25 deletions content/xtf/public/Makefile.in

This file was deleted.

56 changes: 0 additions & 56 deletions content/xtf/public/nsIXMLContentBuilder.idl

This file was deleted.

36 changes: 0 additions & 36 deletions content/xtf/public/nsIXTFAttributeHandler.idl

This file was deleted.

Loading

0 comments on commit 6d6ea28

Please sign in to comment.