59 Commits

Author SHA1 Message Date
ftang%netscape.com
671c15eaef fix bug 96530. delay loading of unicharutil dll till we really need it.
r=dp sr=waterson


git-svn-id: svn://10.0.0.236/trunk@105503 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 12:38:19 +00:00
dbaron%fas.harvard.edu
7bb7b59a69 Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105460 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 03:53:44 +00:00
ftang%netscape.com
bf09d01765 fix bug 88050. remove Korean base transformation. r=jshin sr=waterson
git-svn-id: svn://10.0.0.236/trunk@105122 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 00:22:13 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
dbaron%fas.harvard.edu
5f0a7ab9bd Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@85654 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 23:06:33 +00:00
rods%netscape.com
a6e0d47c5a removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
vidur%netscape.com
33d6574ffe Change to token and parser node interfaces in conjunction with less copying in the parser. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83552 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:13 +00:00
erik%netscape.com
3b3367c95a bug 57462; r=buster; sr=waterson; need to set "HasMultibyte" flag in
nsTextTransformer when we convert 0x5C to Yen Sign and Won Sign because
those chars are greater than 127; this fixes the problem where the Yen Sign
was not being displayed properly on Win95/98/ME because we have the 8-bit
rendering hint set on those platforms (see nsTextFrame's PaintAsciiText,
etc)


git-svn-id: svn://10.0.0.236/trunk@82109 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 22:06:59 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
peterlubczynski%netscape.com
41bcbed581 Fix to ensure we don't go past array bounds in ScanNormalUnicodeText() b=52722 r=buster a=karnaze
git-svn-id: svn://10.0.0.236/trunk@79915 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 22:45:31 +00:00
mcafee%netscape.com
763ecf020b Reverting v1.47 back to 1.46 to fix bustage. r=peterlubczynski
git-svn-id: svn://10.0.0.236/trunk@79679 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 00:21:24 +00:00
peterlubczynski%netscape.com
a45f923fc4 Fix to ensure we don't go past array bounds in ScanNormalUnicodeText() b=52722 a=buster
git-svn-id: svn://10.0.0.236/trunk@79667 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 23:16:50 +00:00
erik%netscape.com
791ffe17b5 bug 4238; r/a=ftang,buster,waterson; added language specific transforms so
that we can do things like U+005C -> U+00A5 (backslash -> yen sign for ja)


git-svn-id: svn://10.0.0.236/trunk@79661 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 23:00:32 +00:00
peterlubczynski%netscape.com
bc790c5ecf fix for bug 50432. PRPackedBools compressed to one flag. mAutoBuffer size reduced to 128. r=buster
git-svn-id: svn://10.0.0.236/trunk@78804 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 00:00:58 +00:00
buster%netscape.com
685185593d bug 14280
nsTextTransformer.cpp.
  I moved where we translate the nbsp to a (ascii 32 space character) until after the i18n routines are called, so they can properly account
  for the space as non-breaking and therefore part of the first word in the block.

bug  39901 and 38396
  nsHTMLImageLoader.*, nsImageFrame.cpp
  I backed out the bad fix for 38396, and put in a new fix where I store a little state in the image loader flags for cases where the image
  gets an unconstrained reflow and has %-based width.  This does not handle %-based min-width or max-width, that would be a separate
  bug that I'll file shortly.  But this fixes the vast majority of real cases out there.

bug  18754
  nsHRFrame.cpp, quirks.css, nsCSSFrameConstructor.cpp, last part of nsLineLayout.cpp
  in quirks mode, I changed HR from a block element to a replaced inline element that acts like a block, using generated content to get
  newlines before and after the HR.  This isn't ideal, but it gets us backwards compatibility, and ian and dbaron have blessed the approach.

bug  50257
  nsLineLayout.cpp
  Did a couple of things in here:
       * The actual fix is controlled by FIX_BUG_50257 #define symbol.  This basically says that an break (BR) will always fit on a line.
         A more general solution would probably be to round up to the nearest pixel, and if the thing is less than a pixel make it fit on a
         line.  This is a wimpier, safer solution.
       * I noticed that the way we got the compatibility mode was way out of date, very wasteful.  So I fixed that.
       * I noticed that there were a bunch of redundant SetFlag calls.  Since the flag variable is initialized to 0, setting a flag to 0 on a newly
         created object is a waste.

  nsBlockFrame.cpp  --  just added a comment to some odd looking code, to make sure no one comes along later and breaks it


git-svn-id: svn://10.0.0.236/trunk@78763 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 21:15:02 +00:00
ftang%netscape.com
f4932134bc fix bug 50849. thanks kin@netscape.com for the patch. r=ftang
git-svn-id: svn://10.0.0.236/trunk@78167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 21:19:23 +00:00
shanjian%netscape.com
c14deeb485 #14588 Ctrl+right arrow skips over nbsp (nbsp should be word break)
ra=ftang
new fix which only apply to word jump.


git-svn-id: svn://10.0.0.236/trunk@77115 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 21:15:19 +00:00
waterson%netscape.com
b270876b7f Back out shanjian's last change as it was causing several whitespace-related regressions. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@76301 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:11:41 +00:00
shanjian%netscape.com
3a788283fa #14588 Ctrl+right arrow skips over nbsp (nbsp should be word break)
r = ftang a=ftang
changes made in word break and word jump.


git-svn-id: svn://10.0.0.236/trunk@75545 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:03:08 +00:00
dougt%netscape.com
1cdcbb34f4 Adding assert on invalid init of textTransformer. see bug 43094
Basic check for null.

Without this assert, you will crash if there is no nsILineBreakerFactory
found.


git-svn-id: svn://10.0.0.236/trunk@73316 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:54:01 +00:00
shanjian%netscape.com
beb4a500e4 #7601, r = ftang
fixed backwards wordjump problem for non-ascii characters.


git-svn-id: svn://10.0.0.236/trunk@70079 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 19:52:05 +00:00
ftang%netscape.com
ef22a5b8b1 fix bug 16796. handle german ß and convert to SS in capital and uppercase
git-svn-id: svn://10.0.0.236/trunk@69046 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 19:44:09 +00:00
jdunn%netscape.com
aed89a2d6d adding include for tolower & toupper
git-svn-id: svn://10.0.0.236/trunk@65724 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 15:52:50 +00:00
troy%netscape.com
b382c442f3 Added support for measuring text runs in ascii, and changed text transformer
to leave the text as ascii if possible


git-svn-id: svn://10.0.0.236/trunk@65721 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:54:43 +00:00
troy%netscape.com
06a1e3a6e3 Eliminated buffering that the text frame was doing when measuring
text in runs and changed the text transformer code to do the buffering
instead. It was already copying the transformed text into its internal
buffer anyway, so this saves the extra copy


git-svn-id: svn://10.0.0.236/trunk@65191 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 14:14:47 +00:00
jbetak%netscape.com
26caf1493e r=troy, ftang fix for 9099 HTML entity followed by CR garbles page and
30353 Thai Page shows a weird character for <wbr>


git-svn-id: svn://10.0.0.236/trunk@64045 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 20:23:23 +00:00
ftang%netscape.com
48f8574d1b fix word breaking problem. r=mjudge. treat all word breaking as the same.
git-svn-id: svn://10.0.0.236/trunk@57440 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 22:07:13 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
kipp%netscape.com
283a28a5d4 r=ftang (someday); fixed 17559 regression - there were a few cases where characters > 127 were leaking out without setting the mHasMultibyte flag that were triggering painting bugs on macs...
git-svn-id: svn://10.0.0.236/trunk@52389 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:32:37 +00:00
kipp%netscape.com
4bb755ead2 r=ftang,brade, bug=16886,9101 - the text transformer was letting some nbsp's through in a few special cases; the text transformer also squelches shy characters now (9101)
git-svn-id: svn://10.0.0.236/trunk@51774 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:04:51 +00:00
kipp%netscape.com
e5f0e5328b Fixed percolation of nbsp's into the transformed buffer (bug 16886)
git-svn-id: svn://10.0.0.236/trunk@51401 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:47:36 +00:00
kipp%netscape.com
6b051cc38a r=ftang; rewrite to fix 16656, parts of 7455
git-svn-id: svn://10.0.0.236/trunk@51205 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:01:45 +00:00
kipp%netscape.com
66125fa907 r=troy; revised nsITextContent api to simplify it and the consumers; this is done as prep work for bug 9101
git-svn-id: svn://10.0.0.236/trunk@50895 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:36:07 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
warren%netscape.com
6fbf464bce Refcounted case conversion service properly
git-svn-id: svn://10.0.0.236/trunk@49094 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:05:51 +00:00
kipp%netscape.com
e790d2ca63 Changed to have the stack buffer embedded in the xformer
git-svn-id: svn://10.0.0.236/trunk@48685 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:16 +00:00
troy%netscape.com
590a741dbd Minor changes to reduce the amount of unnecessary ref counting and speed
things up a little


git-svn-id: svn://10.0.0.236/trunk@47864 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:31:59 +00:00
ftang%netscape.com
bed550f28d implement word jump for non Ascii
git-svn-id: svn://10.0.0.236/trunk@43559 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:06:57 +00:00
ftang%netscape.com
d4536e263f tune performance by elimate unnecessary reference to nsIWordBreaker in nsTexTransformer. Add NS_PRECONDITION code into nsTextTransformer to make code better
git-svn-id: svn://10.0.0.236/trunk@42948 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:23:56 +00:00
ftang%netscape.com
c12062ec71 fix bug 7544
git-svn-id: svn://10.0.0.236/trunk@35319 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:21:03 +00:00
kipp%netscape.com
161c772762 Use shared IID
git-svn-id: svn://10.0.0.236/trunk@29556 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 22:14:36 +00:00
ftang%netscape.com
1957cf6cfb add one boolean to indicate word break or line break
git-svn-id: svn://10.0.0.236/trunk@26572 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 22:41:44 +00:00
kipp%netscape.com
647cec902d Support MOZ_PRE_WRAP
git-svn-id: svn://10.0.0.236/trunk@25650 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 04:12:46 +00:00
ftang%netscape.com
dbe9e3f74a fix mHasMultibyte hint problem when the first character of the *word* is not ASCII
git-svn-id: svn://10.0.0.236/trunk@23657 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 03:00:33 +00:00
kipp%netscape.com
001a19082a Eliminate some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@22849 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 04:28:54 +00:00
ftang%netscape.com
5f7220fa9c change nsTextTransformer to break line by calling nsILineBreak and make nsTextFrame pass the nsILineBreaker to nsTextTransformer
git-svn-id: svn://10.0.0.236/trunk@21772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 18:21:23 +00:00
ftang%netscape.com
d997998a21 Make Case conversion work for non-Latin1 Unicode. Reviewed by kipp. Perofrmance is the same after changing this.
git-svn-id: svn://10.0.0.236/trunk@21542 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:27:54 +00:00
mjudge%netscape.com
22b8399dde Added, jump to prev word, modified INIT of nsTextTransformer to better prepare for a start offset at the end of the mFrags list. added implementation of extra parameter to nsIFrame::PeekOffset to keep state for the next word problem of eating ws. nsTextFrame should be all set on implementation of jumping words.
git-svn-id: svn://10.0.0.236/trunk@21454 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 04:59:52 +00:00
mjudge%netscape.com
465cddb814 gettig word jumping to work, adding GetPrevWord to texttransformer
git-svn-id: svn://10.0.0.236/trunk@21451 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 03:20:59 +00:00