389 Commits

Author SHA1 Message Date
jkeiser%netscape.com
0321a23661 Make nsIFontMetrics::GetAveCharWidth() on all platforms (Rick.Ju@sun.com's patch, bug 50998), r=cbiesinger@web.de, sr=rbs@maths.uq.edu.au
git-svn-id: svn://10.0.0.236/trunk@129999 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 01:47:14 +00:00
katakai%japan.sun.com
c3757bbb4f bug 167040
CTL: caret does not move to next/prev line on text area
r=Roland.Mainz@informatik.med.uni-giessen.de,sr=scc
(CTL is not part of default build)


git-svn-id: svn://10.0.0.236/trunk@129191 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-11 01:52:34 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
dougt%netscape.com
db8cc9c7ec Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129037 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 05:38:16 +00:00
rbs%maths.uq.edu.au
a1be59664a Overshooting when measuring the text caused things to go out-of-sync and to hang, b=142206, r=shanjian, sr=dbaron, a=asa
git-svn-id: svn://10.0.0.236/trunk@128860 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-05 01:58:55 +00:00
shanjian%netscape.com
0e38ae2644 #161328 CJK string is not breakable before joined frames
This patch include 3 changes:
 1) check the breaking possibility  in between for 2 connection pieces.
 2) Make word breakable after the second word, priviously it only applies to western.
 3) always call RevertSpacesToNBSP before call line breaker. This is necessary because the
    change in 1.
r=boris zbarsky, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@127993 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-23 21:43:42 +00:00
shanjian%netscape.com
abf2bedad3 Back out my previous change because it cause regression 162670.
git-svn-id: svn://10.0.0.236/trunk@127269 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 19:18:27 +00:00
shanjian%netscape.com
68a2861b2a #161328, CJK string is not breakable before joined frames
CJK character is marked as breakable after first word.
For joined piece, check if it is breakable in between.

r=rbs, sr=boris zbarsky


git-svn-id: svn://10.0.0.236/trunk@127215 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 23:50:42 +00:00
aaronl%netscape.com
dd1d50f19e Bug 158754 - rest of checkin (correct code formatting this time)
git-svn-id: svn://10.0.0.236/trunk@126982 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 08:22:52 +00:00
aaronl%netscape.com
89d5e8b0f9 Bug 158754. Allow type ahead find to change selection color, and show caret with selection. r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@126980 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 08:15:30 +00:00
smontagu%netscape.com
87e0459927 GetWidth optimizations for Unix. Bug 36146. Authors Tomi.Leppikangas@oulu.fi, Roland.Mainz@informatik.med.uni-giessen.de; r=shanjian,smontagu; sr=rbs, darin
git-svn-id: svn://10.0.0.236/trunk@126829 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 00:13:11 +00:00
hwaara%chello.se
0defd3d409 #159065, comment-only change
r=jkeiser/sicking, sr=bz/jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@126030 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 23:44:18 +00:00
karnaze%netscape.com
ed50f0e383 bug 154741 - use macros instead of NS_FRAME_COMPLETE, a=asa, sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@125215 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 14:46:01 +00:00
shanjian%netscape.com
e81fefd3a4 #152056 Uninitialized memory read in nsTextFrame::GetPosition
relocate a line to prevent i from reaching contentLength.
r=mjudge, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124579 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 03:47:53 +00:00
karnaze%netscape.com
a60fc067fa bug 154924 - use NS_FRAME_COMPLETE rather than macro as it was before bug 145305 was checked in. sr=kin
git-svn-id: svn://10.0.0.236/trunk@124575 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 01:44:51 +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
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
mjudge%netscape.com
cc8e538c5c 113613 r=blythe sr=kin patch to fix end of line key moving caret outside of the style block. if we see a BR tag when searching for valid selection point keep backing up if possible.
git-svn-id: svn://10.0.0.236/trunk@123197 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 00:06:49 +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
cbiesinger%web.de
6f7dc93da9 bug 115473 r=pavlov sr=brendan
Remove timer priorities


git-svn-id: svn://10.0.0.236/trunk@123068 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:47:04 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
shanjian%netscape.com
a9c700ad59 #142562 problem with <td align=right or align=center
We are observing langGroup in some place while ignor it in others. This patch
make all font metrics call consistent. nsIRenderingContext API is change to
make things neat.
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122131 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:14 +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
rbs%maths.uq.edu.au
d21c5c6672 Added yet another defense to make Mozilla really robust when font resources run out, the patch makes font metrics to be fail safe or at least very hard to break -- to the point that failure means that the system is barely working (testing showed that Mozilla stayed alive while other applications were dying). Per request of super-reviewer & driver, also removed wallpaper null-checks sprinkled in the past for the problem. b=136248, r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@120592 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 22:24:59 +00:00
bzbarsky%mit.edu
1e4a6df19b Make selecting parts of a line in align:justify work right on
Mac/Linux.  Bug 58704, r=akkana, sr=kin


git-svn-id: svn://10.0.0.236/trunk@120236 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 22:03:41 +00:00
rods%netscape.com
32963ff2a4 Use binary search from nsTextFrame to find the length of the header/footer strings
Bug 139384  r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@119955 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-26 11:30:33 +00:00
waterson%netscape.com
b0d31a6489 Bug 128855. Be sure to grow |spacing| array in the case of small caps. Patch provided by Andrew Schultz <ajschult@eos.ncsu.edu>, r=attinasi, sr=waterson, a=asa.
git-svn-id: svn://10.0.0.236/trunk@118443 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-07 17:37:30 +00:00
rbs%maths.uq.edu.au
0c0c8d4953 Bug 129560 - Selection doesn't display on stretchy MathML characters. This is the part of the patch that makes text frames retain an appropriate width during selection (to avoid the caret to undershot when crossing stretchy characters), r=dbaron, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@118073 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 02:15:57 +00:00
shanjian%netscape.com
9784553190 #128394 Cursor position widely off from actual text when selection is made.
Taking langGroup into consideration when selecting font for text selection, it
should be consistent with the way of rendering text.

r=rbs, sr=attinasi, a=asa, adt


git-svn-id: svn://10.0.0.236/trunk@118049 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-03 23:26:58 +00:00
ftang%netscape.com
e49e8fd062 fix bug 130441 and 122584
support surrogate in text-align: jutify , selection and cusor movement
r=shanjian/smontagu sr=kin a=asa


git-svn-id: svn://10.0.0.236/trunk@117573 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 03:28:34 +00:00
bzbarsky%mit.edu
6251eec470 Speed up text measurement inside <pre> (major win for view source). Bug
98118, r=shanjian, sr=roc+moz, a=asa


git-svn-id: svn://10.0.0.236/trunk@115873 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 23:23:09 +00:00
attinasi%netscape.com
a83bd3ab92 Safety checks, in case the normalFont cannot be realized (due to system font exhaustion). b=117736 r=rbs sr=shaver a=asa
git-svn-id: svn://10.0.0.236/trunk@115334 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 00:13:49 +00:00
smontagu%netscape.com
d0afe74092 Converting bidi utilities to non-XPCOM interfaces. Bug 120818; r=mkaply, nhotta; sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114942 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 20:41:32 +00:00
rbs%maths.uq.edu.au
ee6ecf963a Initialize variables - regression/left-over from bug 96870 that caused me to spent cycles chasing a non-existent bug elsewhere, carrying forward r=rods, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114903 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 07:30:58 +00:00
dcone%netscape.com
8944f478a1 b=96870 r=rods sr=attinasi Fixed printing so backgrounds can be turned on and off.
git-svn-id: svn://10.0.0.236/trunk@114597 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 14:48:12 +00:00
timeless%mac.com
18aaee49b0 Bug 125601 ABS()-->PR_ABS() && PR_ABS()-cleanup
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@114554 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 01:01:06 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +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
pierre%netscape.com
846071ee39 89503 "font-size:0 ignored". When the font size is 0, set the x-height, ascent and descent to 0 in the TextReflowData. r=rbs/sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112063 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:21:55 +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
timeless%mac.com
39778a4e97 Bug 84380 Need a component that generates thai presentation forms
patch by Roland.Mainz@informatik.med.uni-giessen.de r=cls, r=pradhat, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@111782 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 02:32:43 +00:00
shanjian%netscape.com
76f735c3de #110243 trailing whitespaece removed twice
r=rbs sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@110842 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 02:25:55 +00:00
mkaply%us.ibm.com
ebfc3f6c7b OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@110694 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 06:15:46 +00:00
mjudge%netscape.com
20a1185b2b bs=7868 r=saari Adding in new api to bake on trunk before going to branch. this adds nsISelectionDisplay to nsISelectionController. SetDisplayFlags are how we now set if you want images selected or not
git-svn-id: svn://10.0.0.236/trunk@110680 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 01:29:49 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
mkaply%us.ibm.com
f69d3e7ed6 #114826
r=mkaply, a=asa for drivers
OS/2 only - back out OS/2 specific fix to fix regression
I'm checking this in now so I can make our automatic daily build on OS/2


git-svn-id: svn://10.0.0.236/trunk@110408 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 23:14:55 +00:00
karnaze%netscape.com
d8577654db bug 113424 - mechanism for percent height frames inside table cells to receive special height reflow. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@110006 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 14:51:12 +00:00
attinasi%netscape.com
58e14b05c5 Null checks for non-reproducable crash: b=108105 ...
git-svn-id: svn://10.0.0.236/trunk@109904 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:03:48 +00:00
mkaply%us.ibm.com
4defff2d32 #107905
r=mkaply, sr=attinasi
OS/2 only - don't shortcut font computations for fixed with fonts


git-svn-id: svn://10.0.0.236/trunk@109393 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:47:57 +00:00