shanjian@netscape.com
56fa0da0fe
#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
962ca3eb81
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
3a349643d6
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
0909469319
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
406097b1c5
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
aff3740c12
#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
8284397065
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
2d15c3f4b4
changes all usages of NS_NewTimer to CreateInstance
2000-05-17 02:49:35 +00:00
akkana@netscape.com
e58dc13225
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
d79b4a65ed
#7601
...
r = ftang
Fixed non-ascii forward wordjump problem.
2000-05-16 19:51:09 +00:00
mjudge@netscape.com
18b79d8767
fixing warnings and some redundant code
2000-05-13 20:47:42 +00:00
mjudge@netscape.com
5cf8a1c1fd
changing use of nsXIFConverter to nsIXifConverter
2000-05-13 08:10:25 +00:00
mjudge@netscape.com
9548dce1c6
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
3ff1f66429
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
43f3dd2c34
adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController
2000-05-08 03:59:53 +00:00
erik@netscape.com
8a9acc421c
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
f27d13ba3c
r: mjudge
...
table bacgrounds now sleected properly with disabled selection
(grey selection)
2000-04-30 18:56:26 +00:00
mjudge@netscape.com
7632ddddc7
change to move selection interfaces to nsISelectionController and away from nsIPresShell or nsIDocument
2000-04-28 06:21:31 +00:00
mjudge@netscape.com
2e85db0702
ender lite checkin.
2000-04-27 07:37:12 +00:00
anthonyd@netscape.com
92ce45366d
r: mjudge
...
bug fix for 34397, broken IME selection
2000-04-26 03:54:21 +00:00
anthonyd@netscape.com
1e0ecc86e8
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
526976891e
Add ifdef'ed Performance Reflow Counting code
2000-04-21 14:59:47 +00:00
anthonyd@netscape.com
2abd11ee91
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
e314a84485
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
dce90dfaff
making string conversions explicit
2000-04-15 21:18:29 +00:00
troy@netscape.com
ae28982d73
b=35749 Fixed Purify warning
2000-04-13 20:55:40 +00:00
troy@netscape.com
23b43d41d6
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
3192e42ee3
get VC5 Mozilla build back off the floor, a=granrose
2000-04-12 22:48:54 +00:00
troy@netscape.com
45645930ea
b=35603, r=jinjin@pacbell.net Fix for blocker (crash when selecting
...
text)
2000-04-12 22:22:58 +00:00
troy@netscape.com
8f5c40c23e
Fix for build bustage
2000-04-12 15:42:55 +00:00
troy@netscape.com
bcbbffb9c2
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
befc1e568d
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
d30c9a4408
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
8bb4cd8e0d
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
5fdc49544b
a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part
2000-04-07 19:32:46 +00:00
troy@netscape.com
b9a0eab4a2
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
8c6938418b
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
6bf2422246
making string conversions explicit
2000-04-03 11:39:09 +00:00
mjudge@netscape.com
e73ae83f43
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
b883f0be9c
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
f44483d233
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
fba2986948
Fix for divide by zero I accidently introduced
2000-03-31 05:40:35 +00:00
troy@netscape.com
b2519422a3
Fix non Win32 compiler bustage
2000-03-31 05:10:36 +00:00
troy@netscape.com
e51d26871b
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
112be9f648
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
b69b5e35fc
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
439b719de5
Fixed problem with previous checkin. Made sure "mColumn" is set
...
correctly
2000-03-24 05:04:15 +00:00
troy@netscape.com
414ddbf6b4
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
0f3a248c0a
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
1dcdbdaf29
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