From 5cf44de899121336e6809c10cf31c71865aacdb2 Mon Sep 17 00:00:00 2001 From: "roc+@cs.cmu.edu" Date: Tue, 22 May 2007 21:26:42 -0700 Subject: [PATCH] Backing out due to bustage. --- content/base/src/nsLineBreaker.cpp | 10 ++++------ intl/build/Makefile.in | 10 ---------- intl/build/nsI18nModule.cpp | 5 ----- intl/lwbrk/src/Makefile.in | 22 +--------------------- intl/lwbrk/src/nsLWBrkConstructors.h | 11 +---------- intl/lwbrk/src/nsLWIMP.h | 10 ++-------- 6 files changed, 8 insertions(+), 60 deletions(-) diff --git a/content/base/src/nsLineBreaker.cpp b/content/base/src/nsLineBreaker.cpp index 1f5f9248304..bb71a1af21e 100644 --- a/content/base/src/nsLineBreaker.cpp +++ b/content/base/src/nsLineBreaker.cpp @@ -57,12 +57,10 @@ IS_SPACE(PRUint8 u) static inline int IS_CJK_CHAR(PRUnichar u) { - // CJK plus other scripts that require special line breaking treatment - return (0x0e01 <= u && u <= 0x0e5f) || // Thai - (0x1100 <= u && u <= 0x11ff) || // Hangul Jamo - (0x2e80 <= u && u <= 0xd7ff) || // several CJK blocks - (0xf900 <= u && u <= 0xfaff) || // CJK Compatibility Idographs - (0xff00 <= u && u <= 0xffef); // Halfwidth and Fullwidth Forms + return (0x1100 <= u && u <= 0x11ff) || + (0x2e80 <= u && u <= 0xd7ff) || + (0xf900 <= u && u <= 0xfaff) || + (0xff00 <= u && u <= 0xffef); } nsLineBreaker::nsLineBreaker() diff --git a/intl/build/Makefile.in b/intl/build/Makefile.in index cd16cc98e51..ad414f14c87 100644 --- a/intl/build/Makefile.in +++ b/intl/build/Makefile.in @@ -106,13 +106,3 @@ endif include $(topsrcdir)/config/rules.mk -ifdef MOZ_ENABLE_PANGO -CXXFLAGS += \ - $(MOZ_PANGO_CFLAGS) \ - $(NULL) - -EXTRA_DSO_LDOPTS += \ - $(MOZ_PANGO_LIBS) \ - $(NULL) -endif - diff --git a/intl/build/nsI18nModule.cpp b/intl/build/nsI18nModule.cpp index 320f1b42745..8ec61960fd4 100644 --- a/intl/build/nsI18nModule.cpp +++ b/intl/build/nsI18nModule.cpp @@ -59,13 +59,8 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSemanticUnitScanner) static nsModuleComponentInfo components[] = { // lwbrk -#ifdef MOZ_ENABLE_PANGO - { "Line Breaker", NS_LBRK_CID, - NS_LBRK_CONTRACTID, nsPangoLineBreakerConstructor}, -#else { "Line Breaker", NS_LBRK_CID, NS_LBRK_CONTRACTID, nsJISx4051LineBreakerConstructor}, -#endif { "Word Breaker", NS_WBRK_CID, NS_WBRK_CONTRACTID, nsSampleWordBreakerConstructor}, { "Semantic Unit Scanner", NS_SEMANTICUNITSCANNER_CID, diff --git a/intl/lwbrk/src/Makefile.in b/intl/lwbrk/src/Makefile.in index 20ad0e9734a..1e2106e11d6 100644 --- a/intl/lwbrk/src/Makefile.in +++ b/intl/lwbrk/src/Makefile.in @@ -55,29 +55,9 @@ REQUIRES = xpcom \ CSRCS = rulebrk.c CPPSRCS = \ + nsJISx4501LineBreaker.cpp \ nsSampleWordBreaker.cpp \ nsSemanticUnitScanner.cpp \ $(NULL) -ifdef MOZ_ENABLE_PANGO -CPPSRCS += \ - nsPangoLineBreaker.cpp \ - $(NULL) -else -CPPSRCS += \ - nsJISx4501LineBreaker.cpp \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk - -ifdef MOZ_ENABLE_PANGO -CXXFLAGS += \ - $(MOZ_PANGO_CFLAGS) \ - $(NULL) - -EXTRA_DSO_LDOPTS += \ - $(MOZ_PANGO_LIBS) \ - $(NULL) -endif - diff --git a/intl/lwbrk/src/nsLWBrkConstructors.h b/intl/lwbrk/src/nsLWBrkConstructors.h index da3ba064189..caf355224f4 100644 --- a/intl/lwbrk/src/nsLWBrkConstructors.h +++ b/intl/lwbrk/src/nsLWBrkConstructors.h @@ -41,20 +41,11 @@ #include "nsLWBrkCIID.h" #include "nsILineBreaker.h" #include "nsIWordBreaker.h" -#ifdef MOZ_ENABLE_PANGO -# include "nsPangoLineBreaker.h" -#else -# include "nsJISx4501LineBreaker.h" -#endif +#include "nsJISx4501LineBreaker.h" #include "nsSampleWordBreaker.h" #include "nsLWBRKDll.h" -#ifdef MOZ_ENABLE_PANGO -NS_GENERIC_FACTORY_CONSTRUCTOR(nsPangoLineBreaker) -#else NS_GENERIC_FACTORY_CONSTRUCTOR(nsJISx4051LineBreaker) -#endif - NS_GENERIC_FACTORY_CONSTRUCTOR(nsSampleWordBreaker) #endif diff --git a/intl/lwbrk/src/nsLWIMP.h b/intl/lwbrk/src/nsLWIMP.h index 5d7acfbbba4..f5af20fb034 100644 --- a/intl/lwbrk/src/nsLWIMP.h +++ b/intl/lwbrk/src/nsLWIMP.h @@ -37,16 +37,10 @@ #ifndef nsLWIMP_h__ #define nsLWIMP_h__ -#ifdef MOZ_ENABLE_PANGO -# include "nsPangoLineBreaker.h" -# define LINEBREAKER nsPangoLineBreaker -#else -# include "nsJISx4501LineBreaker.h" -# define LINEBREAKER nsJISx4501LineBreaker -#endif - +#include "nsJISx4501LineBreaker.h" #include "nsSampleWordBreaker.h" +#define LINEBREAKER nsJISx4501LineBreaker #define WORDBREAKER nsSampleWordBreaker #endif /* nsLWIMP_h__ */