273 Commits

Author SHA1 Message Date
anthonyd%netscape.com
f4c17f81ff 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


git-svn-id: svn://10.0.0.236/trunk@77040 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 03:54:30 +00:00
kin%netscape.com
1e4907fd53 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


git-svn-id: svn://10.0.0.236/trunk@76486 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:12:19 +00:00
attinasi%netscape.com
e7b5464ded Text with 'whitespace:nowrap' no longer uses special Win32-only text measurement code becasue it didn't work. b=42832 r=waterson
git-svn-id: svn://10.0.0.236/trunk@76036 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:03:11 +00:00
mjudge%netscape.com
e5571b2bdf 29570 37393 42794 mac os fix for selecting out of frame bounds.
git-svn-id: svn://10.0.0.236/trunk@75915 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:33:03 +00:00
sfraser%netscape.com
7726da891c 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.
git-svn-id: svn://10.0.0.236/trunk@75830 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:38:00 +00:00
pierre%netscape.com
db5d911ba9 42864 ('user-select:none' should make children non-selectable)
git-svn-id: svn://10.0.0.236/trunk@75641 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:41:33 +00:00
shanjian%netscape.com
3a788283fa #14588 Ctrl+right arrow skips over nbsp (nbsp should be word break)
r = ftang a=ftang
changes made in word break and word jump.


git-svn-id: svn://10.0.0.236/trunk@75545 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:03:08 +00:00
anthonyd%netscape.com
d503a47c59 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


git-svn-id: svn://10.0.0.236/trunk@75532 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:30:47 +00:00
waterson%netscape.com
c607d4bc40 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.
git-svn-id: svn://10.0.0.236/trunk@75085 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 22:29:28 +00:00
waterson%netscape.com
86cf521ec9 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
git-svn-id: svn://10.0.0.236/trunk@74887 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 05:16:08 +00:00
mjudge%netscape.com
04f7c7cd04 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.
git-svn-id: svn://10.0.0.236/trunk@74807 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 11:31:12 +00:00
shanjian%netscape.com
ff9c87f68a #42422
Fix the crash, contentLen should not be extended futher than the
text fragment's length.


git-svn-id: svn://10.0.0.236/trunk@73957 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:32:54 +00:00
mjudge%netscape.com
e0e6694c78 bug = 34896. Fixing ender lite startup problem with caret. checking for inOffset<0. we checked for >mContentLength but not <0. r=churchil.
git-svn-id: svn://10.0.0.236/trunk@71213 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 01:00:15 +00:00
pavlov%netscape.com
a0feb91521 changes all usages of NS_NewTimer to CreateInstance
git-svn-id: svn://10.0.0.236/trunk@70249 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:49:35 +00:00
akkana%netscape.com
a24273164d Partial work on 16311, 32807, 16352: code reorganization/cleanup of word/line/paragraph selection.
git-svn-id: svn://10.0.0.236/trunk@70135 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:48:28 +00:00
shanjian%netscape.com
8afbbf4919 #7601
r = ftang
Fixed non-ascii forward wordjump problem.


git-svn-id: svn://10.0.0.236/trunk@70078 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 19:51:09 +00:00
mjudge%netscape.com
9f85d6b917 fixing warnings and some redundant code
git-svn-id: svn://10.0.0.236/trunk@69576 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 20:47:42 +00:00
mjudge%netscape.com
8dab9e6005 changing use of nsXIFConverter to nsIXifConverter
git-svn-id: svn://10.0.0.236/trunk@69546 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 08:10:25 +00:00
mjudge%netscape.com
2f9bd42697 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.
git-svn-id: svn://10.0.0.236/trunk@69180 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 04:25:43 +00:00
attinasi%netscape.com
febbf864d0 Tiny fix to avoid divide-by-zero when the AveCharWidth is 0. b=37577 r=dcone
git-svn-id: svn://10.0.0.236/trunk@68885 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 21:20:38 +00:00
mjudge%netscape.com
ef3e852f95 adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController
git-svn-id: svn://10.0.0.236/trunk@68626 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-08 03:59:53 +00:00
erik%netscape.com
7430aa9ab0 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


git-svn-id: svn://10.0.0.236/trunk@68421 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 21:04:36 +00:00
anthonyd%netscape.com
8922af96b4 r: mjudge
table bacgrounds now sleected properly with disabled selection
(grey selection)


git-svn-id: svn://10.0.0.236/trunk@67671 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-30 18:56:26 +00:00
mjudge%netscape.com
1cc1a29d13 change to move selection interfaces to nsISelectionController and away from nsIPresShell or nsIDocument
git-svn-id: svn://10.0.0.236/trunk@67486 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:21:31 +00:00
mjudge%netscape.com
24b8f29c46 ender lite checkin.
git-svn-id: svn://10.0.0.236/trunk@67387 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:37:12 +00:00
anthonyd%netscape.com
e88fa00856 r: mjudge
bug fix for 34397, broken IME selection


git-svn-id: svn://10.0.0.236/trunk@67183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:54:21 +00:00
anthonyd%netscape.com
8b1598a468 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
git-svn-id: svn://10.0.0.236/trunk@66755 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:38:08 +00:00
rods%netscape.com
fbf8aca833 Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66719 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:59:47 +00:00
anthonyd%netscape.com
10a34f6e1b drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@66600 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:11:41 +00:00
buster%netscape.com
2fa9ad90e8 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


git-svn-id: svn://10.0.0.236/trunk@66201 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:40:46 +00:00
scc%netscape.com
b5432ec86e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66103 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:18:29 +00:00
troy%netscape.com
56f855481d b=35749 Fixed Purify warning
git-svn-id: svn://10.0.0.236/trunk@65864 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:55:40 +00:00
troy%netscape.com
1b1acabdc3 b=35312 Made sure we don't mesure in chunks if letter spacing is
specified


git-svn-id: svn://10.0.0.236/trunk@65862 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:43:48 +00:00
dveditz%netscape.com
1f18235a56 get VC5 Mozilla build back off the floor, a=granrose
git-svn-id: svn://10.0.0.236/trunk@65733 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:48:54 +00:00
troy%netscape.com
b6151e0baf b=35603, r=jinjin@pacbell.net Fix for blocker (crash when selecting
text)


git-svn-id: svn://10.0.0.236/trunk@65730 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:22:58 +00:00
troy%netscape.com
7f8c86cbc4 Fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@65723 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 15:42:55 +00:00
troy%netscape.com
b382c442f3 Added support for measuring text runs in ascii, and changed text transformer
to leave the text as ascii if possible


git-svn-id: svn://10.0.0.236/trunk@65721 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:54:43 +00:00
ftang%netscape.com
38e332d0be mjudge at ftangs machine. last fix to stop crashing. still problem with event from external IME window not getting to ESM
git-svn-id: svn://10.0.0.236/trunk@65566 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:35:52 +00:00
ftang%netscape.com
349c2130a1 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.
git-svn-id: svn://10.0.0.236/trunk@65563 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:02:25 +00:00
mjudge%netscape.com
5d8cfb2393 a=leaf r=ftang. I will be more carefull with ime when doing selection.. I will be more carefull with ime...
git-svn-id: svn://10.0.0.236/trunk@65516 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:17:14 +00:00
mjudge%netscape.com
4d25156406 a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part
git-svn-id: svn://10.0.0.236/trunk@65502 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 19:32:46 +00:00
troy%netscape.com
06a1e3a6e3 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


git-svn-id: svn://10.0.0.236/trunk@65191 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 14:14:47 +00:00
pierre%netscape.com
c774e17424 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).
git-svn-id: svn://10.0.0.236/trunk@65176 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 09:07:41 +00:00
scc%netscape.com
2255fe399e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@65030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 11:39:09 +00:00
mjudge%netscape.com
2fd774249a 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
git-svn-id: svn://10.0.0.236/trunk@64921 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 05:05:31 +00:00
cls%seawood.org
47bd6dc3cc Please use PR_TRUE & PR_FALSE. Not all C++ compilers support the keywords true & false.
git-svn-id: svn://10.0.0.236/trunk@64763 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 11:09:28 +00:00
mjudge%netscape.com
d50c11711c 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.
git-svn-id: svn://10.0.0.236/trunk@64723 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:26:07 +00:00
troy%netscape.com
b3c08e51a2 Fix for divide by zero I accidently introduced
git-svn-id: svn://10.0.0.236/trunk@64700 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 05:40:35 +00:00
troy%netscape.com
f8ad64e11a Fix non Win32 compiler bustage
git-svn-id: svn://10.0.0.236/trunk@64699 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 05:10:36 +00:00
troy%netscape.com
531ec45b9f 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


git-svn-id: svn://10.0.0.236/trunk@64698 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 04:27:43 +00:00