Граф коммитов

665 Коммитов

Автор SHA1 Сообщение Дата
sfraser%netscape.com 4ab006926a More const data goodness. r/sr=alecf. Bug 74803 2003-02-26 01:19:04 +00:00
smontagu%netscape.com 743ba45c35 Remove nsITextFrame. Bug 188618, r/sr=roc+moz. 2003-02-25 00:44:04 +00:00
timeless%mozdev.org a6d6c97aa2 Bug 189295 nsTextFrame.cpp: The variable isWhitespace has not yet been assigned a value.
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rbs sr=roc+moz
2003-02-23 18:39:41 +00:00
dbaron%dbaron.org 6dd68f3c64 Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2003-02-22 15:34:38 +00:00
bryner%netscape.com e43f5a49fd Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron. 2003-02-22 00:32:13 +00:00
jrgm%netscape.com 9f319a79e1 remove '#ifndef REPEATING_TIMERS' code. This was accidentally turned back on in 9/02 after being dead from 12/01, and will now revert to using repeating timers. Affect caret, <blink>, bookmarks & search 'ping'. bug 182141, r+sr=smfr 2003-01-20 04:26:17 +00:00
dbaron%dbaron.org 23976acf02 Make nsContinuingTextFrame::GetFirstInFlow not crash. b=189515 r+sr=bzbarsky 2003-01-18 15:21:33 +00:00
bzbarsky%mit.edu 57d6e335fd eliminate some build warnings. See bug 187117. 2003-01-16 19:44:21 +00:00
bzbarsky%mit.edu 3b069db273 Move GetFirstInFlow/GetLastInFlow up to nsIFrame. Bug 187117, r=roc+moz, sr=dbaron 2003-01-16 02:59:04 +00:00
smontagu%netscape.com b7ff83408b Corrections to measurement of justified Arabic text. Bug 187866, r=sfraser, sr=rbs@maths.uq.edu.au. 2003-01-09 21:15:52 +00:00
aaronl%netscape.com b384a46582 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 2003-01-09 20:56:53 +00:00
dbaron%dbaron.org 57124d8115 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 2003-01-09 14:26:32 +00:00
dbaron%dbaron.org 14c5b6b776 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 21:19:10 +00:00
jfrancis%netscape.com 67761ee6a7 fix for 180034: selection should respect the select_all style. code=mjudge, r=jfrancis, sr=kin 2002-12-22 01:45:15 +00:00
dbaron%fas.harvard.edu 48e09a1052 Fix uninitialized variable introduced last night. b=1777 2002-12-11 15:59:24 +00:00
caillon%returnzero.com 0dffa137af 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
2002-12-11 14:05:41 +00:00
caillon%returnzero.com 22b558c150 Backing out these changes since they appear to have caused a Txul regression on some tinderboxes (not all... weird...) 2002-12-11 05:11:02 +00:00
dbaron%fas.harvard.edu 34a1e37f7e 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 2002-12-11 04:00:18 +00:00
caillon%returnzero.com 71f8783cae Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz
2002-12-10 23:41:12 +00:00
peterv%netscape.com 2cd27f702a Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst. 2002-11-29 23:44:07 +00:00
dbaron%fas.harvard.edu f6b1702067 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 2002-11-17 15:37:56 +00:00
karnaze%netscape.com e802c4dc50 bug 176030 - Make Destroy fix up prev/next-in-flow pointers. a=roc, sr=bzbarsky, r=bernd. 2002-10-30 15:33:36 +00:00
bzbarsky%mit.edu 279ffda515 Make GetParent on nsStyleContext return an
already_AddRefed<nsIStyleContext>.  Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:46:15 +00:00
shanjian%netscape.com e7917def35 #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
2002-10-07 22:16:57 +00:00
jkeiser%netscape.com 80dc49d4a2 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 2002-09-27 07:50:39 +00:00
glazman%netscape.com 4e4c744b19 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 2002-09-24 08:13:05 +00:00
jkeiser%netscape.com ee2446e88f Make nsIFontMetrics::GetAveCharWidth() on all platforms (Rick.Ju@sun.com's patch, bug 50998), r=cbiesinger@web.de, sr=rbs@maths.uq.edu.au 2002-09-19 01:47:14 +00:00
katakai%japan.sun.com 04efa431f3 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)
2002-09-11 01:52:34 +00:00
dougt%netscape.com 68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dougt%netscape.com fae89c4077 Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 05:38:16 +00:00
rbs%maths.uq.edu.au 03096fcdeb Overshooting when measuring the text caused things to go out-of-sync and to hang, b=142206, r=shanjian, sr=dbaron, a=asa 2002-09-05 01:58:55 +00:00
shanjian%netscape.com 6245c03e54 #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
2002-08-23 21:43:42 +00:00
shanjian%netscape.com 13973c7248 Back out my previous change because it cause regression 162670. 2002-08-14 19:18:27 +00:00
shanjian%netscape.com 04cb8910cc #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
2002-08-13 23:50:42 +00:00
aaronl%netscape.com 85507cff5c Bug 158754 - rest of checkin (correct code formatting this time) 2002-08-10 08:22:52 +00:00
aaronl%netscape.com fac59ec279 Bug 158754. Allow type ahead find to change selection color, and show caret with selection. r=akkana, sr=jst 2002-08-10 08:15:30 +00:00
smontagu%netscape.com 52121ade9f GetWidth optimizations for Unix. Bug 36146. Authors Tomi.Leppikangas@oulu.fi, Roland.Mainz@informatik.med.uni-giessen.de; r=shanjian,smontagu; sr=rbs, darin 2002-08-09 00:13:11 +00:00
hwaara%chello.se f2bb8b1a0a #159065, comment-only change
r=jkeiser/sicking, sr=bz/jst, a=asa
2002-07-29 23:44:18 +00:00
karnaze%netscape.com 669f9885af bug 154741 - use macros instead of NS_FRAME_COMPLETE, a=asa, sr=kin, r=alexsavulov. 2002-07-15 14:46:01 +00:00
shanjian%netscape.com db6d418deb #152056 Uninitialized memory read in nsTextFrame::GetPosition
relocate a line to prevent i from reaching contentLength.
r=mjudge, sr=dveditz
2002-07-03 03:47:53 +00:00
karnaze%netscape.com ab4deb43a5 bug 154924 - use NS_FRAME_COMPLETE rather than macro as it was before bug 145305 was checked in. sr=kin 2002-07-03 01:44:51 +00:00
taka%netscape.com b89e4636c2 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 2002-07-01 20:43:16 +00:00
dbaron%fas.harvard.edu e63a11c0e8 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 2002-06-25 21:16:17 +00:00
mjudge%netscape.com b91274d165 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. 2002-06-13 00:06:49 +00:00
smontagu%netscape.com 66051e90f8 Do Arabic shaping earlier before measuring the text so that it gets laid out correctly. Bugs 117041, 138097. r=ftang, sr=waterson 2002-06-11 21:00:20 +00:00
cbiesinger%web.de 15a321ca78 bug 115473 r=pavlov sr=brendan
Remove timer priorities
2002-06-11 20:47:04 +00:00
karnaze%netscape.com 1faf4c0592 bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov. 2002-05-28 22:50:43 +00:00
shanjian%netscape.com 7f5900aa67 #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
2002-05-24 20:11:14 +00:00
jst%netscape.com 1075a3f80d Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com 2002-05-23 00:00:34 +00:00
rbs%maths.uq.edu.au ca47d8b903 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 2002-05-02 22:24:59 +00:00
bzbarsky%mit.edu 6ec031ee62 Make selecting parts of a line in align:justify work right on
Mac/Linux.  Bug 58704, r=akkana, sr=kin
2002-04-29 22:03:41 +00:00
rods%netscape.com 6db330b5a8 Use binary search from nsTextFrame to find the length of the header/footer strings
Bug 139384  r=dcone sr=attinasi
2002-04-26 11:30:33 +00:00
waterson%netscape.com 9f45ab2b13 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. 2002-04-07 17:37:30 +00:00
rbs%maths.uq.edu.au cc0c21b63a 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 2002-04-04 02:15:57 +00:00
shanjian%netscape.com 4e99a38eeb #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
2002-04-03 23:26:58 +00:00
ftang%netscape.com 6818ce0f80 fix bug 130441 and 122584
support surrogate in text-align: jutify , selection and cusor movement
r=shanjian/smontagu sr=kin a=asa
2002-03-27 03:28:34 +00:00
bzbarsky%mit.edu 99a387dcfb Speed up text measurement inside <pre> (major win for view source). Bug
98118, r=shanjian, sr=roc+moz, a=asa
2002-03-05 23:23:09 +00:00
attinasi%netscape.com e7305de97e Safety checks, in case the normalFont cannot be realized (due to system font exhaustion). b=117736 r=rbs sr=shaver a=asa 2002-02-26 00:13:49 +00:00
smontagu%netscape.com 37ebf6848d Converting bidi utilities to non-XPCOM interfaces. Bug 120818; r=mkaply, nhotta; sr=attinasi 2002-02-19 20:41:32 +00:00
rbs%maths.uq.edu.au 60016580a6 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 2002-02-19 07:30:58 +00:00
dcone%netscape.com f7e8a4bf6d b=96870 r=rods sr=attinasi Fixed printing so backgrounds can be turned on and off. 2002-02-15 14:48:12 +00:00
timeless%mac.com 74bcab176b Bug 125601�ABS()-->PR_ABS() && PR_ABS()-cleanup
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser
2002-02-15 01:01:06 +00:00
cathleen%netscape.com 740d95a0a9 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan 2002-02-05 01:41:13 +00:00
cathleen%netscape.com 486c0d47f9 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
2002-01-26 00:04:45 +00:00
jst%netscape.com 74b270f1db 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 2002-01-24 09:20:51 +00:00
pierre%netscape.com b69d2055a6 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 2002-01-14 13:21:55 +00:00
cathleen%netscape.com 92d4fbf218 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2002-01-12 03:18:55 +00:00
timeless%mac.com ed26a5d45e 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
2002-01-10 02:32:43 +00:00
shanjian%netscape.com 38acb31ebe #110243 trailing whitespaece removed twice
r=rbs sr=attinasi
2001-12-20 02:25:55 +00:00
mkaply%us.ibm.com bec6bed40a OS/2 bustage 2001-12-18 06:15:46 +00:00
mjudge%netscape.com 2ecc969e5b 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 2001-12-18 01:29:49 +00:00
jaggernaut%netscape.com 97b0530073 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf 2001-12-16 11:58:03 +00:00
mkaply%us.ibm.com 3bc695d956 #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
2001-12-12 23:14:55 +00:00
karnaze%netscape.com 748ebbcd0d bug 113424 - mechanism for percent height frames inside table cells to receive special height reflow. sr=attinasi, r=alexsavulov 2001-12-07 14:51:12 +00:00
attinasi%netscape.com 0e2e20f34f Null checks for non-reproducable crash: b=108105 ... 2001-12-07 00:03:48 +00:00
mkaply%us.ibm.com 6db8af531a #107905
r=mkaply, sr=attinasi
OS/2 only - don't shortcut font computations for fixed with fonts
2001-11-30 22:47:57 +00:00
kin%netscape.com 190a0000f7 Fix for bug 111264: nsTextFrame::SetSelected() calls Invalidate() with empty rect.
Prevent SetSelected() from generating invalidate warnings by
preventing calls to Invalidate with an empty rect.

r=jfrancis@netscape.com  sr=attinasi@netscape.com
2001-11-29 22:54:15 +00:00
mkaply%us.ibm.com 6c4dc301be #108280
r=mkaply, sr=blizzard
OS/2 only - code from Javier Pedemonte to get our fonts back after 99010
2001-11-27 22:58:37 +00:00
mkaply%us.ibm.com 3f591b0d95 #36163
r=mkaply, r/sr=attinasi
Don't show Bidi control characters in the browser
2001-11-14 14:21:52 +00:00
karnaze%netscape.com 436e1ac49e bug 103925 (2nd patch) - flag pixel rounding errors in display reflow debugging. sr=attinasi, r=bernd 2001-11-14 13:40:03 +00:00
bzbarsky%mit.edu f2ee8260a0 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf
2001-11-14 01:33:42 +00:00
attinasi%netscape.com 94f3ab9a20 Elimiate calls to nsFrame::Invalidate when the dirtyRect is empty. Also, removed some invalid code from nsFrame::Invalidate and added DEBUG check to catch later offenders. b=103266 r=rbs sr=hyatt 2001-11-06 01:44:20 +00:00
dbaron%fas.harvard.edu daeed9f51f Ensure that text inputs, checkboxes and radios paint over inline element backgrounds that are behind them. Fix a few build warnings. b=107244 r=rods sr=waterson 2001-11-03 06:23:19 +00:00
rbs%maths.uq.edu.au 32cf016db5 bug 102088 - Cleanup transitory font APIs that were used as a bridge in bug 99010, r=waterson, sr=attinasi 2001-10-30 22:58:00 +00:00
karnaze%netscape.com e38dff73f8 bug 103925 - general reflow debugging capability. sr=attinasi, r=alexsavulov 2001-10-29 01:43:59 +00:00
alecf%netscape.com 6ae8a9bee0 Convert users of nsCRT::ToUpper(PRUnichar) to ToUpper(PRUnichar) for bug 100214, r=jag, sr=scc 2001-10-26 17:18:35 +00:00
dbaron%fas.harvard.edu 157c017816 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
2001-10-25 01:08:40 +00:00
simon%softel.co.il c24e2968a6 Fix for bug 75034: Selection highlight on some Bidi pages was displayed in the opposite position to the actual selection. r=kin@netscape.com, sr=attinasi 2001-10-24 11:12:31 +00:00
pinkerton%netscape.com 5fb9dd1a7e 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 2001-10-19 14:10:22 +00:00
dbaron%fas.harvard.edu ed869c764e Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc 2001-10-16 03:53:44 +00:00
bernd.mielke%snafu.de faafbd0e04 bug 103443 replace the return rv?rv:NS_ERROR_FAILURE; with a more correct version
r=dbaron sr=attinasi
2001-10-13 09:27:46 +00:00
dbaron%fas.harvard.edu edc11e5ad3 Fix 'text-decoration: blink' and the blink element. Patch from Chase Tingley <tingley@sundell.net>. r=dbaron sr=hyatt b=89065 2001-10-11 00:15:09 +00:00
mkaply%us.ibm.com 6dabd5cfda #81664
r=simon@softel.co.il, sr=attinasi for nsTextFrame, sr=blizzard for nsBidiPresUtils
Cleanup of bidi reordering code
2001-10-01 03:43:42 +00:00
waterson%netscape.com b173c37b0d Bug 58384, 86279. Be sure to trim letter spacing as well as word spacing in TrimTrailingWhiteSpace(). Also, explicitly add letter spacing where appropriate, instead of including it in word spacing. r=shanjian, sr=attinasi. 2001-09-28 22:39:10 +00:00
gerv%gerv.net 4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
rbs%maths.uq.edu.au 5b02d7ca8a bug 99010 - font changes. r=attinasi@netscape.com, sr=waterson@netscape.com 2001-09-27 18:34:30 +00:00
karnaze%netscape.com e908dd0313 bug 68998 - added extra param to Paint, PaintChild, PaintChildren used by tables in standard mode. sr=waterson, r=alexsavulov. 2001-09-19 12:35:19 +00:00
dbaron%fas.harvard.edu 113ad642ae Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797 2001-08-21 01:48:11 +00:00
jgaunt%netscape.com 9f2f88aa48 fix for bug 94768
r=smfr,leaf
sr=hyatt
2001-08-17 03:13:07 +00:00
dbaron%fas.harvard.edu fb0cc1ea35 Clean up if-else cascade by condensing into one big logical expression. Based on patch by Ulrich Drepper <drepper@cygnus.com>. r=jag sr=waterson b=89791 2001-08-01 03:09:59 +00:00
dbaron%fas.harvard.edu aa4fec2b67 Header include dependency cleanup. b=64023 r=jag rs=brendan 2001-07-16 02:40:48 +00:00
shanjian%netscape.com 49936baba8 #77394 incorrect handling of empty text nodes
r=waterson, sr=attinasi
2001-07-09 20:47:58 +00:00
jaggernaut%netscape.com 5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
dcone%netscape.com d3ef97497b bug=24406. Fix printing of blank text fields.. selection criteria was wrong. r=r=kmcclusk@netscape.com sr=attinasi 2001-06-29 05:32:56 +00:00
ftang%netscape.com 3e782eb254 fix bug 84031. r=simon@softel.co.il sr=kin a=blizzard
fix GetBidiProperty
2001-06-21 12:35:48 +00:00
mjudge%netscape.com 18f1ea4a52 82993,52868,79511,82101 a=asa sr=kin. bugs that cross files. stopped generated content entrys into frames with caret and mouse navigation. and table cell navigation. 2001-06-20 04:48:10 +00:00
loadrunner%betak.net 91c70ee453 bug 85487, M091 crash at line breaker [@ nsJISx4501LineBreaker::Next],
r=ftang, sr=waterson, a=asa
2001-06-19 22:57:50 +00:00
yokoyama%netscape.com fff83cbeae bug 72415:
allocate more word buffer in case of failure of ComputeWordFragmentWidth()
check in for shanjian@netscape.com
r=waterson, sr=attinasi a=blizzard
2001-06-13 21:48:43 +00:00
shanjian%netscape.com e34e0f10e9 #19265 [TEXT] Word-wrap improperly breaks before space following last word [INLINE]
r = waterson
r/sr=attinasi a=asa
2001-06-05 02:40:27 +00:00
hyatt%netscape.com b135c5b55a Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
kin%netscape.com 91badd7c66 Fix for bug #82566 (hang in nsTextFrame::GetPosition in BIDI code)
Fix for bug #81078 (UMR: nsTextFrame::GetPosition() when selecting text.)
Subtract mContentOffset from the index returned by the ip[] array, and
make sure this index is <= textLength.
r=mjudge  sr=sfraser  a=blizzard@mozilla.org
2001-05-25 13:20:38 +00:00
waterson%netscape.com ab25003da8 Bug 73291. Handle case where paint arrives before reflow for modified content. r=karnaze, sr=attinasi, a=asa 2001-05-24 18:40:45 +00:00
mkaply%us.ibm.com 1f6d785923 #81078
r=simon@softel.co.il, sr=sfraser, a=blizzard
Fix UMR and bounds checking
2001-05-23 22:05:30 +00:00
ftang%netscape.com a962a940a4 temp fix 75026 r/sr=sfraser. add stop-bleeding code for bidi code to reduce crash
Buy more time for simon@softel.co.il to produce the real fix.
2001-05-21 22:38:26 +00:00
evaughan%netscape.com d9378cb8f0 Fix for bug #80902
-r jeff@tcbnetworks.com -sr waterson

Fix for bug #80505

-r aaronl, jgaunt -sr brendan
2001-05-17 23:52:32 +00:00
ftang%netscape.com 5938ccae19 fix bug 80552 r=ftang r/sr=jst
check in for simon@softel.co.il
change BidiEnable to GetBidiEnable
2001-05-16 13:40:08 +00:00
ftang%netscape.com 30057b4224 fix UMR in GetPosition for bug 81078
check in for simon@softel.co.il
r/sr=kin@netscape.com, ftang@netscape.com
check array boundary before accessing the content array
2001-05-16 13:36:36 +00:00
ftang%netscape.com c1c716bc4d fix bug 80793.
check bidi frame before we call next sibling
check in for simon@softel.co.il
r/sr=kin
2001-05-16 13:17:40 +00:00
ftang%netscape.com 50996b210a fix bug 80166. check in for simon@softe.co.il
r=ftang sr=blizzard
2001-05-15 12:07:30 +00:00
evaughan%netscape.com 94198ed5d8 Landing accessibility
-r aarol, jgaunt

-sr brendan
2001-05-11 21:11:38 +00:00
mjudge%netscape.com 62aec426fa 62971 sr= hyatt r=kin/waterson fix for changing how we find the line given an event point
this will now do a binary search muuuch faster worst case than before
2001-05-11 08:04:29 +00:00
dcone%netscape.com a81e76f9b1 bug 79477 r=kmmclusk sr=attinasi 2001-05-10 14:19:58 +00:00
pierre%netscape.com 5d218e63a6 30971 cursor: auto does not work. r=attinasi 2001-05-02 11:03:03 +00:00
evaughan%netscape.com 679472c15d Accessibility work. bug #12952
-r aaronl -sr brendan
2001-04-17 23:06:38 +00:00
erik%netscape.com 3f8707c9fb bug 74946; author=simon@softel.co.il; r=erik; sr=attinasi; diffs from IBM
bidi project (e.g. Arabic, Hebrew)
2001-04-11 23:32:21 +00:00
evaughan%netscape.com dd702eea33 XP part of accessibility landing
-r vidur, rods -sr hyatt
2001-04-01 01:01:33 +00:00
mjudge%netscape.com 3c9472063f 66793 r= cmanske sr = attinasi 2001-03-27 23:02:21 +00:00
kmcclusk%netscape.com e6b6217eb3 Added 1 pixel to the invalidate rect to compensate for twips to pixel rounding error. bug=63951; sr=karnaze@netscape.com; r=attinasi@netscape.com 2001-03-23 14:36:28 +00:00
shanjian%netscape.com a98c5eb4eb #36863 CSS: small-caps/uppercase: � should become SS
r = erik, sr = erik
2001-03-22 01:27:13 +00:00
rods%netscape.com f225ff8a67 Display frame reflow counts (turned via config file define)
Bug 71514 r=kmclusk sr=attinasi
2001-03-13 01:47:22 +00:00
buster%netscape.com d4879b7748 bug 47549 (Floaters cause entire page to redraw as content is appended (block paint perf))
r=kmcclusk@netscape.com
sr=waterson@netscape.com
2001-02-12 07:06:49 +00:00
rods%netscape.com 99666eed8c This checkin enables mozilla to support the printing of selection, the printing of page ranges, and
the printing of headers and footers.
Printing of selection is implemented by the frames figuring out if they are in the selection and painting
if they or not they they don't paint. This also only allows the printing of the first page of
selections, alothough it is well documented where this is implemeted so it can be removed.
Bugs 63426, 31218, 61075 r=dcone,kmcclusk,erik,buster sr=waterson
2001-01-27 14:09:34 +00:00
rods%netscape.com edb0c6270c removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson
2001-01-04 20:44:42 +00:00
mkaply%us.ibm.com 367ecd5755 #50998
r=rods, a/sr=buster
OS/2 has support for GetAveCharWidth so enable it
2001-01-02 23:26:25 +00:00
dbaron%fas.harvard.edu 2b2160f1b0 Fix incorrect usage of nsCOMPtr where nsCOMPtr::operator& was used instead of getter_AddRefs. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com 2000-12-09 04:21:51 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
buster%netscape.com cae9d32741 bug 56704 (Crash selecting text)
r=erik
a=waterson
2000-10-27 14:16:36 +00:00
pierre%netscape.com 195136278b bug 1046: letter-spacing should apply on space characters too. r=erik+buster, a=michaell. 2000-10-09 08:39:29 +00:00
erik%netscape.com 033206ebf0 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)
2000-09-20 23:00:32 +00:00
mjudge%netscape.com e2be918716 small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575 2000-09-14 11:45:01 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
anthonyd%netscape.com 112b262913 fix for bug 48624 (hidden selection issues with plain text widgets)
fix for bug 45662 (updating range impl to dom spec)
fix for some edge case selection issues invloving multiple windows, no bug #
but saari knows about this.
r: sfraser, jfrancis, mjudge, saari
a: beppe
2000-08-24 03:54:30 +00:00
kin%netscape.com 1f2d45de6f Partial fix for bug #45152: Typed text does not render in TextAreas with a horizontal scrollbar
Made Reflow() invalidate the correct region during an incremental or dirty reflow.
r=waterson@netscape.com
2000-08-16 23:12:19 +00:00
attinasi%netscape.com c2db7a5f52 Text with 'whitespace:nowrap' no longer uses special Win32-only text measurement code becasue it didn't work. b=42832 r=waterson 2000-08-10 23:03:11 +00:00
mjudge%netscape.com 65269995e3 29570 37393 42794 mac os fix for selecting out of frame bounds. 2000-08-09 22:33:03 +00:00
sfraser%netscape.com 9aa82a567b Fix for bug 25161 -- allow editor to handle pages with forms by implementing user-select and user-input for form controls. r=rods, pierre, mjudge. 2000-08-08 23:38:00 +00:00
pierre%netscape.com 5e553bbece 42864 ('user-select:none' should make children non-selectable) 2000-08-05 04:41:33 +00:00
shanjian%netscape.com d2b093a3d7 #14588 Ctrl+right arrow skips over nbsp (nbsp should be word break)
r = ftang a=ftang
changes made in word break and word jump.
2000-08-03 23:03:08 +00:00
anthonyd%netscape.com fed5192eba nsPresContext.cpp : added to comment to presContext::GetLookAndFeel to inform others that
that method has been depricated.
nsTextFrame.cpp : changed an assert to a warning, didnt need to be an assert.
r: mjudge@netscape.com
2000-08-03 22:30:47 +00:00
waterson%netscape.com 4896ee6d33 Bug 46693. Check to see if we CanContinueTextRun() while walking over the frames to FindNextText(). This revives the logic that I nuked when fixing 19051, and keeps you from trying to walk over <br> or other frames to erroneously continue a text run. r=akkana. 2000-07-28 22:29:28 +00:00
waterson%netscape.com 9bd4266798 Bug 19051. Remove code that computed and maintained nsTextRun. Instead, compute 'next text' when required by crawling the frame tree in nsLineLayout::FindNextText(). r=roc+moz@cs.cmu.edu 2000-07-27 05:16:08 +00:00
mjudge%netscape.com 7317580268 46209 one of the last beta 2 blockers. adding ability to frames to tell if part of them is visible. idl change to allow nsISelectionController to give CheckVisibility. PresShell actually has the code for nsGfxTextControlFrame to call. 2000-07-26 11:31:12 +00:00
shanjian%netscape.com 8e013f01a6 #42422
Fix the crash, contentLen should not be extended futher than the
text fragment's length.
2000-07-10 22:32:54 +00:00
mjudge%netscape.com 95c22b351b bug = 34896. Fixing ender lite startup problem with caret. checking for inOffset<0. we checked for >mContentLength but not <0. r=churchil. 2000-06-01 01:00:15 +00:00
pavlov%netscape.com 803190ad4b changes all usages of NS_NewTimer to CreateInstance 2000-05-17 02:49:35 +00:00
akkana%netscape.com d39b10a680 Partial work on 16311, 32807, 16352: code reorganization/cleanup of word/line/paragraph selection. 2000-05-16 22:48:28 +00:00
shanjian%netscape.com e79533211d #7601
r = ftang
Fixed non-ascii forward wordjump problem.
2000-05-16 19:51:09 +00:00
mjudge%netscape.com fa4088842d fixing warnings and some redundant code 2000-05-13 20:47:42 +00:00
mjudge%netscape.com 06fe36cd3f changing use of nsXIFConverter to nsIXifConverter 2000-05-13 08:10:25 +00:00
mjudge%netscape.com 55912eddb8 changing way we access caret. use the selection controller whenever possible. because it will make the caret do the right thing even when we have multiple selections accessing same caret. 2000-05-11 04:25:43 +00:00
attinasi%netscape.com a29102e7ef Tiny fix to avoid divide-by-zero when the AveCharWidth is 0. b=37577 r=dcone 2000-05-09 21:20:38 +00:00
mjudge%netscape.com 9fc3ea7f15 adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController 2000-05-08 03:59:53 +00:00
erik%netscape.com 0f1eec05eb bug 26237; added support for HTML LANG attribute -- it now uses the fonts
specified by the user for elements with the LANG attribute when the font
is a CSS generic (e.g. serif); r=pierre
2000-05-05 21:04:36 +00:00
anthonyd%netscape.com 9a23850613 r: mjudge
table bacgrounds now sleected properly with disabled selection
(grey selection)
2000-04-30 18:56:26 +00:00
mjudge%netscape.com 7e5a6b3cd7 change to move selection interfaces to nsISelectionController and away from nsIPresShell or nsIDocument 2000-04-28 06:21:31 +00:00
mjudge%netscape.com 2c0953e1be ender lite checkin. 2000-04-27 07:37:12 +00:00
anthonyd%netscape.com a3535292d9 r: mjudge
bug fix for 34397, broken IME selection
2000-04-26 03:54:21 +00:00
anthonyd%netscape.com b5b3122ac2 r=mjudge. Removing redundant call to SetColor for ::RenderString. all places have allready set the color before calling this method. this removal should be a no-op. Selection color now should look correct 2000-04-21 21:38:08 +00:00
rods%netscape.com 21de9f3e8a Add ifdef'ed Performance Reflow Counting code 2000-04-21 14:59:47 +00:00
anthonyd%netscape.com 815b66f915 drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge 2000-04-20 23:11:41 +00:00
buster%netscape.com f40b76249a bug 588 (text justification) for Robert O'Callahan <roc+moz@cs.cmu.edu>
r=buster

bug 18545 ([FLOAT] Problem Centering <TABLE> with <DIV> tag)
r=troy

bugs 18827, 19579, 22327 24782, 26512, 30124, 31849, 32846 (floater behavior wrong)
The primary change here is to determine if a block is impacted by a floater, and if so
mark the block's lines dirty when appropriate.
r=troy

no bug number.  performance work.  reduced the size of some reflow data structures by
collapsing multiple fields into a single bit field.
r=troy
2000-04-17 14:40:46 +00:00
scc%netscape.com 52bdf65d60 making string conversions explicit 2000-04-15 21:18:29 +00:00
troy%netscape.com 41bb5435ed b=35749 Fixed Purify warning 2000-04-13 20:55:40 +00:00
troy%netscape.com 391a9f5e58 b=35312 Made sure we don't mesure in chunks if letter spacing is
specified
2000-04-13 20:43:48 +00:00
dveditz%netscape.com 1eae54e4e0 get VC5 Mozilla build back off the floor, a=granrose 2000-04-12 22:48:54 +00:00
troy%netscape.com 890549a10c b=35603, r=jinjin@pacbell.net Fix for blocker (crash when selecting
text)
2000-04-12 22:22:58 +00:00
troy%netscape.com a37259c6bd Fix for build bustage 2000-04-12 15:42:55 +00:00
troy%netscape.com 43ba4ad192 Added support for measuring text runs in ascii, and changed text transformer
to leave the text as ascii if possible
2000-04-12 14:54:43 +00:00
ftang%netscape.com 9cf267b815 mjudge at ftangs machine. last fix to stop crashing. still problem with event from external IME window not getting to ESM 2000-04-10 21:35:52 +00:00
ftang%netscape.com 43e62d6dfa mjudge checkin in from ftangs machine. fixing japanese lockup. this will not fix the strange loss of the commit event to the ESM however. that was making thisproblem obvious. 2000-04-10 21:02:25 +00:00
mjudge%netscape.com f7d9bfc8c0 a=leaf r=ftang. I will be more carefull with ime when doing selection.. I will be more carefull with ime... 2000-04-08 00:17:14 +00:00
mjudge%netscape.com 8132899a96 a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part 2000-04-07 19:32:46 +00:00
troy%netscape.com ac77c942fa 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
2000-04-04 14:14:47 +00:00
pierre%netscape.com e35773094b Use the system colors to paint the text selection (and added NS_DONT_CHANGE_COLOR to support the Mac selection scheme where colored text keeps its colors when selected). 2000-04-04 09:07:41 +00:00
scc%netscape.com e37740acdb making string conversions explicit 2000-04-03 11:39:09 +00:00
mjudge%netscape.com ad7071118d selecting generated content works now. subtree iterator and all. incredible... added new private method to nsTextFrame to factor out some things on getting correct offsets from generated frames. its a no-op almost for non generated frames 2000-04-02 05:05:31 +00:00
cls%seawood.org adf25840d6 Please use PR_TRUE & PR_FALSE. Not all C++ compilers support the keywords true & false. 2000-03-31 11:09:28 +00:00
mjudge%netscape.com 6ce1fbbb34 changed alot here having to do with get position. made it much faster for non-slow frames. (slow=char spacing ect) also removed some code to make the ::GetWidth call factored out so I can reuse it. selection now has a DrawSelectionIterator that spits out the next series of chars and their color ect when drawing selection. this allows us to combine many different types of selection. This also means that XOR is not used here any more. we will hook up selection colors to style shortly in the next week. 2000-03-31 07:26:07 +00:00
troy%netscape.com 3438f7ea3e Fix for divide by zero I accidently introduced 2000-03-31 05:40:35 +00:00
troy%netscape.com 380605b839 Fix non Win32 compiler bustage 2000-03-31 05:10:36 +00:00
troy%netscape.com fb978dd3bb Changed text measurement code to use the new rendering context function
that measures chunks or words. Because that function is only implemented
on Win32 the code is #ifdef _WIN32
2000-03-31 04:27:43 +00:00
jim_nance%yahoo.com dc0e139673 Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  r=troy@netscape.com
2000-03-30 03:21:26 +00:00
sfraser%netscape.com 80126fb4fa Fixes to nsTextFrame so that every text frame no longer AddRefs the blink timer, and tidyup of blink timer code. r=troy 2000-03-25 00:49:58 +00:00
troy%netscape.com 7007f487f2 Fixed problem with previous checkin. Made sure "mColumn" is set
correctly
2000-03-24 05:04:15 +00:00
troy%netscape.com d44a7da8ab No change in functionality. I factored out the loop that measures text into
member function MeasureIndividualWords()
2000-03-23 22:58:43 +00:00
mjudge%netscape.com ca22489c81 this should have NOT used ABS. if negative there is NO ROUNDING ERROR! ;)r=akkana 2000-03-22 02:10:37 +00:00
pierre%netscape.com 22030d523c 32252 "Small Caps font too small". Changed the ratio for small-caps from 0.7 to 0.8 (same as MacIE5). 2000-03-19 07:47:23 +00:00
pierre%netscape.com 4d43de09aa Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible). In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame. In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701. 2000-03-17 10:15:13 +00:00
troy%netscape.com dfd7864b4c b=30391 r=troy@netscape.com Patch from rbs@maths.uq.edu.au to add parens when
necessary to PR_ABS macro
2000-03-11 16:50:52 +00:00
buster%netscape.com 66696f0a23 bug 26840 r=mjudge 2000-02-14 01:54:20 +00:00
nisheeth%netscape.com 99f85886b8 r=Troy. We were specifying the incorrect child as a reflow dirty target in some cases. 2000-02-11 07:11:43 +00:00
mjudge%netscape.com 90364fa4e5 fix for memory leak bug 24332 2000-02-10 07:55:34 +00:00
mjudge%netscape.com b3444d6801 fix for bug 18528. fixing tabs controls in selection guessing. 2000-02-10 07:48:17 +00:00
ftang%netscape.com 2928361af0 r=nhotta, fix 24451. Change the IME hightlight code so
it won't draw out the clip boundary. It now draw by different color
instead of different hight.
2000-02-02 23:39:25 +00:00
pp%ludusdesign.com 58065dda04 Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot 2000-02-02 22:24:56 +00:00
troy%netscape.com 8a78d916a5 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
michael.lowe%bigfoot.com 6696fa133b Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan 2000-01-21 21:56:09 +00:00
nisheeth%netscape.com 1af2ec200b r=troy. Changed block, inline, and text frames to call the parent's ReflowDirtyChild() method instead of generating reflow commands. 2000-01-19 03:58:05 +00:00
rbs%maths.uq.edu.au 401406c143 [MATHML] Change of the character coordinate system of the bounding metrics 2000-01-17 07:34:24 +00:00
mjudge%netscape.com 118e690267 small changes for 22752 ctrl left and right. r=cmanske 2000-01-12 21:39:36 +00:00
mjudge%netscape.com 3ec359f588 bug 15982 r=cmanske. needed more places to add checks for style turning off normal selection. 2000-01-11 19:44:59 +00:00
mjudge%netscape.com dcbf3266bd r= kin. fix for another parameter. fixing m13 bug with multiple selection. 2000-01-08 00:31:32 +00:00
rbs%maths.uq.edu.au fb509ee983 [MATHML] Added code to enable Reflow() to return, if requested, the bounding metrics needed for precise MathML placements. This is a WIP approved by Troy. 2000-01-07 14:33:11 +00:00
sspitzer%netscape.com bfc18b87ab initialize some variables, fix a comment, fix a FMM 1999-12-22 00:41:38 +00:00
rginda%netscape.com 34a05a535b Adding check for null document. Prevents crash described in bug 20677.
r=brendan@mozilla.org
1999-12-07 22:04:52 +00:00
hyatt%netscape.com de2eaede42 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy
1999-12-04 23:49:50 +00:00
ftang%netscape.com 6773500b62 fix bug 18398. Make sure the startOffset and textWidth get reset in the while loop 1999-11-30 22:16:12 +00:00
tbogard%aol.net af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
mjudge%netscape.com d1b5f823f1 Fixing mac issue with selection dragging not working when above or below single line text. aka URL. mac has a different preference now. this may be done with look and feel object later. hyatt,cmanske(19191) 1999-11-24 01:10:22 +00:00
mjudge%netscape.com d7fbad6cea small fixes for BR frames getting correct offset. also one case of textframe not returning proper location (simply a missed change of a regressed call in PeekOffset) nsCaret was also too stringent on the limitation of text frames as the only frames to get the caret position. these were reviewed by a few people and i just dont remember. r=simon,cmanske,akkana and hyatt? 1999-11-23 20:30:21 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
kipp%netscape.com ca39ca7b10 r=vidur; bug=17372; found a case where a trailing shy character on a line would trigger an infinite loop iff the shy character was the only piece of text after a text frame had been continued 1999-11-04 19:34:36 +00:00
kipp%netscape.com c93281e841 r=troy; fixed bugs 2636 and 17636 - line layout issues for some more edge cases (nobr's with floaters in them) and handling of nbsp 1999-11-02 15:44:57 +00:00
troy%netscape.com 1585a751fb Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
kipp%netscape.com 80998e8d8c r=ftang (someday); fixed bug 17130 - the problem was that nbsp's were being mapped into spaces by the text-transformer which is normally good, but for the purposes of line-breaking look-ahead was bad. I added code to revert the post-transformed spaces into nbsp's before using the line-breaker 1999-11-01 15:36:02 +00:00
kin%netscape.com 74852c1b92 Fix for bug #16176: [DOGFOOD] need to annotate line frames with whitespace trim
layout/base/src/nsCaret.cpp
        - Modified DrawCaretWithContext so that we only
          adjust the caret position if we are within the
          frame's bounds.

    layout/html/base/src/nsTextFrame.cpp
        - Modified GetPointFromOffset() to add the width
          of a space if the offset is after a trailing space
          and it was trimmed off the frame.

r=sfraser@netscape.com
1999-10-29 13:43:11 +00:00
troy%netscape.com 87afecabc0 Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
ftang%netscape.com 0b2a09b76d fix not enough gap between IME selection problem. r=erik 1999-10-25 22:18:41 +00:00
troy%netscape.com 29963d8875 Changed nsTextFrame to be derived from nsFrame instead of nsSplittableFrame.
nsTextFrame now has only a next-in-flow pointer and no prev-in-flow pointer.
Subclass nsContinuingTextFrame is used for continuing text frames; it has a
prev-in-flow pointer. This saves 4 bytes
1999-10-23 23:19:14 +00:00
mjudge%netscape.com 7d0e807931 massive checkin for underlying implementation of key handling from javascript and home/end breakage and.. selecting around NON-text frames. like arrowing around an image for example. 16636,16655 and another i cannot find. r=kin r=hyatt a=me 1999-10-22 00:19:18 +00:00
ftang%netscape.com e1475842c4 change the input method highligh code from 2 style to 4 styles. r=mjudge 1999-10-21 22:01:18 +00:00
kipp%netscape.com 584976d119 r=troy; Optimize append text reflows to only reflow the new part of the text 1999-10-21 20:46:05 +00:00
kipp%netscape.com a03246a1e0 update to new nsTextTransformer api 1999-10-19 23:01:58 +00:00
kipp%netscape.com 15a0ec26fa r=troy; revised nsITextContent api to simplify it and the consumers; this is done as prep work for bug 9101 1999-10-15 23:36:07 +00:00
mjudge%netscape.com fc71fb36d1 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling. 1999-10-13 01:15:26 +00:00
kipp%netscape.com 02b64f135d r=kin,troy; Fixed reflow bug with optimization logic to avoid measuring text (no bug #) 1999-10-12 23:29:01 +00:00
troy%netscape.com 0d79fa2c78 Fix for blocker #15839. r=kipp@netscape.com,kin@netscape.com
Typing into a text area wasn't working properly. Problem was that when the text
changed we were reflowing the text frames with a resize reflow command and
we thought we could optimize the reflow. So I changed ContentChanged() to
mark each text frame dirty so we would know not to do the optimization
1999-10-08 22:04:31 +00:00
mjudge%netscape.com 54829b853b fixing optimizations for table selection as well as making sure all flags are turned on/off for text frames when one frame is selected.. 1999-09-29 20:36:00 +00:00
kin%netscape.com ca92ac282c First pass implementation of selection auto scrolling.
layout/base/public/nsIFrame.h
        - Added GetContentAndOffsetsFromPoint() method. This
          method will eventually replace GetPosition().

    layout/base/public/nsIFrameSelection.h
        - Added HandleDrag() and Start/StopAutoScrollTimer() methods.

    layout/base/src/nsRangeList.cpp
        - Added implementation for HandleDrag() and
          Start/StopAutoScrollTimer() methods.

    layout/html/base/src/nsBRFrame.cpp
        - Added implementation for GetContentAndOffsetsFromPoint().

    layout/html/base/src/nsFrame.cpp
    layout/html/base/src/nsFrame.h
        - Added implementation for GetContentAndOffsetsFromPoint().
        - Added GetClosestViewForFrame() utility method.
        - Modified HandleEvent() to call HandleRelease() which now
          stops the auto scrolling timers.
        - Modified HandleDrag() to call nsIFrameSelection's HandleDrag()
          and Start/StopAutoScrollTimer() methods.

    layout/html/base/src/nsTextFrame.cpp
        - Added implementation for GetContentAndOffsetsFromPoint().
1999-09-29 20:04:05 +00:00
mjudge%netscape.com 2c78141fa6 fixes for M11 a=shaver r=cmanske. this will add 1 enumerator value to en enum in nsIFrame so dont be scared. this is for tweaking selection should not affect anyone outside of selection/editor 1999-09-25 23:33:02 +00:00
mjudge%netscape.com e989c3be45 tweaked word left and word right again. got double click working on edge cases! yeah 1999-09-22 07:09:41 +00:00
mjudge%netscape.com 99dadf07b9 approved by Dagley. fixes for CTRL_LEFT and CTRL_RIGHT navigation and wrapping 1999-09-22 05:56:44 +00:00
mjudge%netscape.com 88c407b158 fixes for line/frame traversal. now we use more common code inside nsFrame rather than nsTextFrame specific code all the time. 1999-09-22 04:12:23 +00:00
kipp%netscape.com 574daaa6d8 Whoops, left some noise on 1999-09-22 00:41:13 +00:00
kipp%netscape.com 5a777fb9ed Fixed various bugs including part of 14486 and 14427; cleaned up the usage of stack based buffers to avoid future issues 1999-09-22 00:40:56 +00:00
mjudge%netscape.com 1e48363fd7 changes to selection code to stop a never ending loop 1999-09-21 22:58:14 +00:00
kipp%netscape.com 22df009a37 Bring TrimTrailingWhiteSpace back to life after troy's changes 1999-09-21 00:12:50 +00:00
mjudge%netscape.com 3c9065ac80 checking in fixes for selection around nodes where get primary frame will not lead to the discovery of all frames 1999-09-20 21:47:37 +00:00
troy%netscape.com f004ab4be8 Optimized Reflow() some more. In the case where we're not measuring text but
we need to peek ahead and so we need to know the length of the last word, if
there's only one word in the text run then we can avoid measuring
1999-09-19 04:42:54 +00:00
troy%netscape.com 0d253cf419 Backed out some changes that aren't needed and were fixed with a change
to the frame construction code
1999-09-19 00:59:38 +00:00
troy%netscape.com a3551f363b Optimized reflow to skip measuring of the text for a resize reflow (when
possible)
1999-09-18 16:22:34 +00:00
alecf%netscape.com 8bc490a93b fix a bunch of null-derefing problems when accessing http://webmail.netscape.com/ and add some assertions when these things happen 1999-09-18 01:00:43 +00:00
alecf%netscape.com d4a731ec92 fix dereferencing error on slashdot.org 1999-09-18 00:48:51 +00:00
kipp%netscape.com 2652daef33 Fixed a glitch in word-breaking look ahead that was using the wrong content to compute the next fragments width (whoops!) 1999-09-17 23:14:47 +00:00
troy%netscape.com a5d89af219 Minor changes to reduce the amount of unnecessary ref counting and speed
things up a little
1999-09-16 23:31:59 +00:00
mjudge%netscape.com d71f4104da changes for bug fixes for dogfood. finding frames left and right should find the correct frame and not give up so easily. nsTextFrame needed to change getpositionslowly. 1999-09-15 01:57:50 +00:00
mjudge%netscape.com 611e47bbd4 content iter not initing properly for reuse. text frame not selecting slowly properly, bad bounds checking :(. rangelist now traversing each node in a spaniter with a normal iter to make SURE we get all the children! 1999-09-14 23:16:22 +00:00
mjudge%netscape.com e2d1d73278 fixes for selection. up/down arrow behavior and also extending selection. all should be in peek offset ect. Also adding in a slight change to the hack (which should go away soon) that will stop the editor from scrolling when up/down left/right ect are clicked. when key events go in this code will be removed 1999-09-13 22:19:31 +00:00
mjudge%netscape.com eaa78b424a fixes for crasher in tree 1999-09-11 00:18:02 +00:00
mjudge%netscape.com 046cdcb844 changes for peekoffset removal of extra parameters. also fixing some ownership issues with nsIenumerator and the rangelist iterator. fixing also some hit tests for line frames. 1999-09-10 18:29:37 +00:00
mjudge%netscape.com a5ac5b186c adding in begin line and end line enums for selection movement. this allows peeking to the start and end of and like given a content offset for any frame. 1999-09-07 23:40:17 +00:00
ftang%netscape.com 31de89ab0f fix bug 13063 12881 1999-09-03 22:46:16 +00:00
mjudge%netscape.com fa5d3c3459 new selection code for dead areas. this is much better, trust me. the block frame now will look at its best line and look for a spot to select. if it finds another block frame now, it will continue the process in a while loop. each time looking for best x and y area. this reuses the code located in GetNextPrevLine. 1999-09-01 21:40:16 +00:00
kipp%netscape.com 7fe2679e86 Updated SizeOf methods to not waste space when doing a non-debug build 1999-09-01 01:02:16 +00:00
kipp%netscape.com f808fbb193 Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot 1999-08-31 03:09:40 +00:00
mjudge%netscape.com 5531d305c5 changes to allow selection in "dead" space between frames. still need work on "outside" and not in the window at all, but this is a very good chunk of the issue and it will solve many many bugs on my place. good for dogfood as well :) 1999-08-24 21:51:47 +00:00
ftang%netscape.com 5a577f62d9 implement word jump for non Ascii 1999-08-19 06:06:57 +00:00
ftang%netscape.com b71a536920 tune performance by elimate unnecessary reference to nsIWordBreaker in nsTexTransformer. Add NS_PRECONDITION code into nsTextTransformer to make code better 1999-08-10 07:23:56 +00:00
sfraser%netscape.com 0166147f3c Optimization so that moving a collapsed selection does not cause the frame to redraw. 1999-08-09 19:15:04 +00:00
ftang%netscape.com 67c7d1e316 fix bug 4240,5532,5529,7899 pass in current word buffer to ComputeWordWidth functions so we have the whole text that we can pass to line breaker. 1999-07-27 14:47:24 +00:00
brade%netscape.com 0621f4050e Implement InvertRect on Mac. r sfraser 1999-07-20 23:38:55 +00:00
ramiro%netscape.com 12f5c30340 Adding support for XOR selection. Updated nsIRenderingContext interface
to support InvertRect() for the XOR-ing of rectangles.  Makes selection
work as expected on windows and unix as opposed to the rectangle hack.
Stubs added for all other platforms.
1999-07-20 07:26:09 +00:00
troy%netscape.com c3e32b0b65 Added 'm' prefix to a couple more data members of nsHTMLReflowState struct 1999-07-20 03:51:46 +00:00
mjudge%netscape.com c0b1525970 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape. 1999-07-18 02:27:19 +00:00
sfraser%netscape.com 14f2e71bab Don't cast a char* to a PRUnichar* array when calling PaintTextDecorations. 1999-07-15 23:11:35 +00:00
mjudge%netscape.com f447570414 checkin for carpool for multiple seleciton/ime selection and api changes to nsIDOMselection 1999-07-15 18:19:03 +00:00
kipp%netscape.com 23518e9968 Removed compiler warnings 1999-07-14 17:30:22 +00:00
troy%netscape.com 84cc1d3e34 Changed Reflow() to invalidate bounds for an incremental reflow 1999-07-14 15:20:01 +00:00
kipp%netscape.com 457c3003fb Fixed bug 6574 - the problem was that the current color was being reset when the text decoration, in this case an underline, was being drawn so that the next chunk of text rendered in the smallcaps font was drawn in the wrong color 1999-07-08 19:52:57 +00:00
mjudge%netscape.com f98938bdfd up/down selection BRFrames dont allow selecting upon them for now. horizontal bars are now drawn selected. ect. 1999-06-19 20:36:44 +00:00
sfraser%netscape.com 99112db1a1 Fix for bug 8317 -- leaked caret causes crash. r mjudge, a leaf. 1999-06-16 23:55:48 +00:00
mjudge%netscape.com 24d312aeba minor changes to tweak fix from before. GetPositionSlowly was returning wrong thing causing small caps and other wierd spacing letters to be selected incorrectly. 1999-06-10 21:55:14 +00:00
mjudge%netscape.com 225111bf33 fixing table selection again. also adding parameter to nsIFocusTracker that allows us to get the current caret location. I am also stopping nsTableRowFrame from putting blue border around itself since cells are a high enough granularity. made a change to nsIFrame GetPosition to remove some useless parameters ect. this caused me to change nsDOMEvent.cpp and some other places.
MJ
1999-06-10 21:08:17 +00:00
kmcclusk%netscape.com 8479bc35a4 Replaced reference with pointer for accessing plainFont in nsTextFrame::Reflow. 1999-06-08 18:12:20 +00:00
joki%netscape.com 7e2352ba3a Adding new method to nsIDOMNSUIEvent to give event pos as range offset. 1999-06-08 02:19:26 +00:00
kmcclusk%netscape.com 7273a1f2b8 Modified TextStyle constructor to reuse the TextFrame's mFont rather than creating
a new font. The creation of the new font show up during profiling as a big hit.
1999-06-07 21:18:51 +00:00
mjudge%netscape.com 7b5035c20f fixes for selection and memory leaks 1999-06-04 23:00:24 +00:00
peterl%netscape.com cdd55f947d fixed warnings 1999-06-03 02:09:03 +00:00
mjudge%netscape.com 864e061209 new table selection code drag inside and outside of tables with ease. added some overriding methods to nsTableCellFrame and nsTableFrame to make selection "draw" correctly for those containers. 1999-06-01 23:04:13 +00:00
mjudge%netscape.com 4bff71e096 reviewed sfraser approved choffman 6771 6762 UMR and Extreemly inefficient table selection code fixed simply 1999-05-20 00:52:00 +00:00
mjudge%netscape.com abf1f5225c oops fogot default boolean for non start or end node selection 1999-05-18 22:29:27 +00:00
mjudge%netscape.com e36da4f13c wrong initial boolean value for redraw 1999-05-17 22:31:10 +00:00
mjudge%netscape.com d0b617b231 accidentally left out a parameter to GetPositionSlowly for small caps ect. 1999-05-17 19:50:29 +00:00
mjudge%netscape.com a15e7eb5ac adding in selection of non text frames in editor only 1999-05-17 00:21:18 +00:00
mjudge%netscape.com c0ad47dc75 adding back in keyboard navigation. removing const from peekoffset to stop the const creep. changing peekoffset to do the right thing for content based peeking... 1999-05-13 00:44:23 +00:00
kipp%netscape.com 4846f41f1f Reworked frame factory methods; fixed bug 4519 1999-05-11 22:03:29 +00:00
kipp%netscape.com 751e2a2073 Fixed bug 5255 and removed some compiler warnings 1999-05-03 20:55:12 +00:00
mjudge%netscape.com e60293b6e6 fixing bugs for unnecessary drawing in text fram as well as other assorted selection bugs. 1999-04-28 02:43:02 +00:00
mjudge%netscape.com a6a19b2656 fixing skippage of some frames during selection 1999-04-27 22:35:41 +00:00