408 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
a51e000a16 eliminate some build warnings. See bug 187117.
git-svn-id: svn://10.0.0.236/trunk@136426 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 19:44:21 +00:00
bzbarsky%mit.edu
291ec6eb41 Move GetFirstInFlow/GetLastInFlow up to nsIFrame. Bug 187117, r=roc+moz, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136402 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 02:59:04 +00:00
smontagu%netscape.com
d3fbbabadb Corrections to measurement of justified Arabic text. Bug 187866, r=sfraser, sr=rbs@maths.uq.edu.au.
git-svn-id: svn://10.0.0.236/trunk@136089 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 21:15:52 +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
dbaron%dbaron.org
a569c670f5 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%dbaron.org
c278517282 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136010 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:19:10 +00:00
jfrancis%netscape.com
072ac8da08 fix for 180034: selection should respect the select_all style. code=mjudge, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@135559 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 01:45:15 +00:00
dbaron%fas.harvard.edu
119ebf6760 Fix uninitialized variable introduced last night. b=1777
git-svn-id: svn://10.0.0.236/trunk@135133 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 15:59:24 +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
dbaron%fas.harvard.edu
10a7236c6a Correctly implement text-decoration in standards mode by drawing the underline on the element with the text-decoration property set. Refactor painting code a bit to avoid code duplication. Patch by Esben Mose Hansen <esben@oek.dk>, with paint refactoring and some other changes by dbaron. r=dbaron sr=bzbarsky b=1777
git-svn-id: svn://10.0.0.236/trunk@135099 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 04:00:18 +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
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
dbaron%fas.harvard.edu
307f43b5a1 Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
git-svn-id: svn://10.0.0.236/trunk@134006 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 15:37:56 +00:00
karnaze%netscape.com
3d58e9c1e1 bug 176030 - Make Destroy fix up prev/next-in-flow pointers. a=roc, sr=bzbarsky, r=bernd.
git-svn-id: svn://10.0.0.236/trunk@132710 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 15:33:36 +00:00
bzbarsky%mit.edu
a70a392a2c Make GetParent on nsStyleContext return an
already_AddRefed<nsIStyleContext>.  Bug 171808, r=jkeiser, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@131531 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 01:46:15 +00:00
shanjian%netscape.com
e96dcbdf3f #54467 punctuation mark in the :first-letter pseudo-element does not cover all the Unicode punctuation marks
check more punctual mark for first-letter pseudo-element.
r=pierre, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@131336 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-07 22:16:57 +00:00
jkeiser%netscape.com
4b3dc6b474 Don't crash on pages with font-size: 1px (Rick.Ju@sun.com's patch, bug 170225), r=jkeiser@netscape.com, sr=bryner@netscape.com
git-svn-id: svn://10.0.0.236/trunk@130575 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 07:50:39 +00:00
glazman%netscape.com
2d08e4ac57 Add support for :-moz-selection CSS3 pseudo-element. See test case in bug. Should become ::selection once support for '::' parsing is implemented; b=167068, r=mjudge, sr=kin
git-svn-id: svn://10.0.0.236/trunk@130333 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 08:13:05 +00:00
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