darin%meer.net
af98e4f306
landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
bryner%brianryner.com
3191a1feaa
Inline boolean getters and setters on nsIPresContext, and change the storage to a bitfield. Bug 229371, r+sr=roc.
...
git-svn-id: svn://10.0.0.236/trunk@153018 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 17:49:01 +00:00
neil%parkwaycc.co.uk
690c52c7f7
Bug 232321 Make layout.word_select.stop_at_punctuation work as a user preference r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@152928 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 11:10:31 +00:00
timeless%mozdev.org
8749f7951c
Bug 205262 warning nsSampleWordBreaker::Next was hidden by nsSemanticUnitScanner::Next
...
r=smontagu sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@142848 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 22:06:40 +00:00
smontagu%netscape.com
630769075e
Backing out fix for bug 192088, which caused regressions for Persian and Indic scripts. r=gisburn, sr=roc+moz, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@142656 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-20 18:19:09 +00:00
dbaron%dbaron.org
69da9d4a19
Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
smontagu%netscape.com
b6e3d92246
Don't do numeric substitution in Arabic text by default. Bug 181711, r+sr=rbs, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@142219 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-08 18:38:19 +00:00
smontagu%netscape.com
2c7d24c5a5
Correct a regression in Bidi ordering and simplify the way in which we determine whether Arabic shaping needs to be performed depending on the capabilities of the system and whether we are rendering character by character. Bug 192919, r/sr=rbs.
...
git-svn-id: svn://10.0.0.236/trunk@139103 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 20:56:03 +00:00
smontagu%netscape.com
2cbbe712d4
Whitespace change to note that the previous checkin was for bug 188759.
...
git-svn-id: svn://10.0.0.236/trunk@138582 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:51:04 +00:00
smontagu%netscape.com
79daa2c21d
Ensure that the buffer offset in nsTextTransformer::GetNextWord is correctly positioned after transforming ligatures. Bug 1888759, r/sr=rbs.
...
git-svn-id: svn://10.0.0.236/trunk@138580 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:47:44 +00:00
smontagu%netscape.com
1b3fb26673
Separate stripping zero-width join control characters from DoArabicShaping() so that they get stripped in preshaped text as well. Bug 192088, r/sr=roc+moz.
...
git-svn-id: svn://10.0.0.236/trunk@138370 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 21:31:19 +00:00
aaronl%netscape.com
ee27cb1b5c
Bug 98546. Fix word break detection to improve select by word where there is punctuation in the word. Also fixes 125172, double clicking in URL bar should select only part of URL. Also fixes bug 133312, word selection with accented letters. r=brade, sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@136088 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 20:56:53 +00:00
bryner%netscape.com
6278746fdf
Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
caillon%returnzero.com
8a1bf17a45
Re-landing these because I don't believe this are responsible for the Txul spike.
...
Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135125 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:05:41 +00:00
caillon%returnzero.com
d751688cb9
Backing out these changes since they appear to have caused a Txul regression on some tinderboxes (not all... weird...)
...
git-svn-id: svn://10.0.0.236/trunk@135111 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 05:11:02 +00:00
caillon%returnzero.com
6b60a8affb
Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
...
r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135068 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:41:12 +00:00
mjudge%netscape.com
0661484e2b
127321. r=brade sr=sfrasier. bug that skips getting stuck on word jumping on macs. This feature now may want to be turned on in the windows and unix builds as well.
...
git-svn-id: svn://10.0.0.236/trunk@126742 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 06:37:01 +00:00
mjudge%netscape.com
f0f35586c2
backing out checked into closed tree
...
git-svn-id: svn://10.0.0.236/trunk@126680 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 19:52:18 +00:00
mjudge%netscape.com
bac2fdb53d
fix for 127321. r=brade sr=smfr. Fix for word jumping getting stuck on punctuation.
...
git-svn-id: svn://10.0.0.236/trunk@126678 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 19:48:42 +00:00
taka%netscape.com
8ea5186a8e
Remove unexpected space inserted between Chinese and Japanese characters as a result of unfolding lines. These scripts don't use space as a word boundary. b=135323 r=shanjian sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@124421 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:43:16 +00:00
smontagu%netscape.com
cc4e2832ab
Do Arabic shaping earlier before measuring the text so that it gets laid out correctly. Bugs 117041, 138097. r=ftang, sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@123073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:00:20 +00:00
jst%netscape.com
0e34136ef1
Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
cathleen%netscape.com
3fcee4d2a1
remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers
...
and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp
git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:04:45 +00:00
jst%netscape.com
b9772d48fe
Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@112678 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:20:51 +00:00
cathleen%netscape.com
ea31156ed0
converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
...
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
mkaply%us.ibm.com
b6110d2c3c
#36163
...
r=mkaply, r/sr=attinasi
Don't show Bidi control characters in the browser
git-svn-id: svn://10.0.0.236/trunk@108059 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 14:21:52 +00:00
dbaron%fas.harvard.edu
9ef49bf676
Fix member initializer re-ordered warnings by re-ordering member initializers. r=jag rs=waterson b=105974
...
git-svn-id: svn://10.0.0.236/trunk@106235 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 03:21:53 +00:00
dbaron%fas.harvard.edu
8b3489a026
Bug 86947:
...
Make the line list doubly linked and access it through a list class and iterators.
Stop recomputing margins on all of the children of each block in the reflow chain (which causes O(N^2) state recovery during incremental reflow). Instead, add a second dirty bit to the lines and walk backwards through the line list to recompute vertical margins only when either dirty bit is set and the previous line was not reflowed. Add nsIFrame::IsEmpty to identify frames through which margins collapse.
Fix O(N^2) propagation of float damage by maintaining a set of intervals damaged by floats (bug 61962) and be sure to damage the correct areas (bug 48138).
Introduce nsCollapsingMargin to do correct collapsing of combinations of positive and negative margins (bug 50142).
Clean up some odds and ends and fix another smaller O(N^2) problem in nsBlockFrame::AddFrames.
r=attinasi, rbs sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106224 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 01:08:40 +00:00
pinkerton%netscape.com
a23e69e10e
adding a couple of prefs to make word selection better on mac. doesn't eat whitespace to next word and stops at punctuation. r=mjudge/sr=sfraser. bug# 98546
...
git-svn-id: svn://10.0.0.236/trunk@105772 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 14:10:22 +00:00
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