371 Commits

Author SHA1 Message Date
kipp%netscape.com
ffbaac75aa Whoops, left some noise on
git-svn-id: svn://10.0.0.236/trunk@48687 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:41:13 +00:00
kipp%netscape.com
16349cdbd1 Fixed various bugs including part of 14486 and 14427; cleaned up the usage of stack based buffers to avoid future issues
git-svn-id: svn://10.0.0.236/trunk@48686 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:56 +00:00
mjudge%netscape.com
124711cde1 changes to selection code to stop a never ending loop
git-svn-id: svn://10.0.0.236/trunk@48665 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:58:14 +00:00
kipp%netscape.com
a1c8b975ba Bring TrimTrailingWhiteSpace back to life after troy's changes
git-svn-id: svn://10.0.0.236/trunk@48435 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:12:50 +00:00
mjudge%netscape.com
179e58ff5f checking in fixes for selection around nodes where get primary frame will not lead to the discovery of all frames
git-svn-id: svn://10.0.0.236/trunk@48406 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:47:37 +00:00
troy%netscape.com
9a25e04f8b 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


git-svn-id: svn://10.0.0.236/trunk@48240 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 04:42:54 +00:00
troy%netscape.com
545ba4350f Backed out some changes that aren't needed and were fixed with a change
to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@48233 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:59:38 +00:00
troy%netscape.com
28ffdcaf30 Optimized reflow to skip measuring of the text for a resize reflow (when
possible)


git-svn-id: svn://10.0.0.236/trunk@48189 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 16:22:34 +00:00
alecf%netscape.com
ca2cea5ccd fix a bunch of null-derefing problems when accessing http://webmail.netscape.com/ and add some assertions when these things happen
git-svn-id: svn://10.0.0.236/trunk@48133 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:00:43 +00:00
alecf%netscape.com
ee585f6ea5 fix dereferencing error on slashdot.org
git-svn-id: svn://10.0.0.236/trunk@48130 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:48:51 +00:00
kipp%netscape.com
b19648bac9 Fixed a glitch in word-breaking look ahead that was using the wrong content to compute the next fragments width (whoops!)
git-svn-id: svn://10.0.0.236/trunk@48049 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:14:47 +00:00
troy%netscape.com
590a741dbd Minor changes to reduce the amount of unnecessary ref counting and speed
things up a little


git-svn-id: svn://10.0.0.236/trunk@47864 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:31:59 +00:00
mjudge%netscape.com
f48fd77b70 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.
git-svn-id: svn://10.0.0.236/trunk@47495 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 01:57:50 +00:00
mjudge%netscape.com
8462665913 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!
git-svn-id: svn://10.0.0.236/trunk@47447 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:16:22 +00:00
mjudge%netscape.com
139d6944f4 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
git-svn-id: svn://10.0.0.236/trunk@47183 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 22:19:31 +00:00
mjudge%netscape.com
ad8dd5373b fixes for crasher in tree
git-svn-id: svn://10.0.0.236/trunk@46898 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 00:18:02 +00:00
mjudge%netscape.com
a29a744b14 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.
git-svn-id: svn://10.0.0.236/trunk@46783 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 18:29:37 +00:00
mjudge%netscape.com
3a2b08f57b 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.
git-svn-id: svn://10.0.0.236/trunk@46251 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 23:40:17 +00:00
ftang%netscape.com
c09727aebc fix bug 13063 12881
git-svn-id: svn://10.0.0.236/trunk@45955 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 22:46:16 +00:00
mjudge%netscape.com
d9a3b1a319 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.
git-svn-id: svn://10.0.0.236/trunk@45529 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 21:40:16 +00:00
kipp%netscape.com
eea3ab916a Updated SizeOf methods to not waste space when doing a non-debug build
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:02:16 +00:00
kipp%netscape.com
c9002f20df Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot
git-svn-id: svn://10.0.0.236/trunk@45274 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 03:09:40 +00:00
mjudge%netscape.com
72808fb95e 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 :)
git-svn-id: svn://10.0.0.236/trunk@44364 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:51:47 +00:00
ftang%netscape.com
bed550f28d implement word jump for non Ascii
git-svn-id: svn://10.0.0.236/trunk@43559 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:06:57 +00:00
ftang%netscape.com
d4536e263f tune performance by elimate unnecessary reference to nsIWordBreaker in nsTexTransformer. Add NS_PRECONDITION code into nsTextTransformer to make code better
git-svn-id: svn://10.0.0.236/trunk@42948 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 07:23:56 +00:00
sfraser%netscape.com
6a65d2857f Optimization so that moving a collapsed selection does not cause the frame to redraw.
git-svn-id: svn://10.0.0.236/trunk@42782 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:15:04 +00:00
ftang%netscape.com
8b4d6e129c 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.
git-svn-id: svn://10.0.0.236/trunk@41292 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 14:47:24 +00:00
brade%netscape.com
bbafb3d9ad Implement InvertRect on Mac. r sfraser
git-svn-id: svn://10.0.0.236/trunk@40365 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 23:38:55 +00:00
ramiro%netscape.com
3903eb4d89 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.


git-svn-id: svn://10.0.0.236/trunk@40252 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 07:26:09 +00:00
troy%netscape.com
8d07a8a962 Added 'm' prefix to a couple more data members of nsHTMLReflowState struct
git-svn-id: svn://10.0.0.236/trunk@40217 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 03:51:46 +00:00
mjudge%netscape.com
329d39ba11 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.
git-svn-id: svn://10.0.0.236/trunk@39971 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 02:27:19 +00:00
sfraser%netscape.com
507def446e Don't cast a char* to a PRUnichar* array when calling PaintTextDecorations.
git-svn-id: svn://10.0.0.236/trunk@39568 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 23:11:35 +00:00
mjudge%netscape.com
f9575d1f61 checkin for carpool for multiple seleciton/ime selection and api changes to nsIDOMselection
git-svn-id: svn://10.0.0.236/trunk@39541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 18:19:03 +00:00
kipp%netscape.com
921f8fba89 Removed compiler warnings
git-svn-id: svn://10.0.0.236/trunk@39309 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 17:30:22 +00:00
troy%netscape.com
d21da38397 Changed Reflow() to invalidate bounds for an incremental reflow
git-svn-id: svn://10.0.0.236/trunk@39265 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 15:20:01 +00:00
kipp%netscape.com
e892b41a7f 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
git-svn-id: svn://10.0.0.236/trunk@38808 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-08 19:52:57 +00:00
mjudge%netscape.com
571f2a1a16 up/down selection BRFrames dont allow selecting upon them for now. horizontal bars are now drawn selected. ect.
git-svn-id: svn://10.0.0.236/trunk@35903 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-19 20:36:44 +00:00
sfraser%netscape.com
53026171ea Fix for bug 8317 -- leaked caret causes crash. r mjudge, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35749 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:55:48 +00:00
mjudge%netscape.com
b2a2c02eac minor changes to tweak fix from before. GetPositionSlowly was returning wrong thing causing small caps and other wierd spacing letters to be selected incorrectly.
git-svn-id: svn://10.0.0.236/trunk@34654 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:55:14 +00:00
mjudge%netscape.com
21a15def92 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


git-svn-id: svn://10.0.0.236/trunk@34640 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:08:17 +00:00
kmcclusk%netscape.com
1395c98675 Replaced reference with pointer for accessing plainFont in nsTextFrame::Reflow.
git-svn-id: svn://10.0.0.236/trunk@34211 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:12:20 +00:00
joki%netscape.com
ee7a67a711 Adding new method to nsIDOMNSUIEvent to give event pos as range offset.
git-svn-id: svn://10.0.0.236/trunk@34162 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:19:26 +00:00
kmcclusk%netscape.com
ca984e0334 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.


git-svn-id: svn://10.0.0.236/trunk@34076 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:18:51 +00:00
mjudge%netscape.com
2b31837503 fixes for selection and memory leaks
git-svn-id: svn://10.0.0.236/trunk@33844 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:00:24 +00:00
peterl%netscape.com
dce2798cf1 fixed warnings
git-svn-id: svn://10.0.0.236/trunk@33478 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:09:03 +00:00
mjudge%netscape.com
45583c2b3d 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.
git-svn-id: svn://10.0.0.236/trunk@33352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:04:13 +00:00
mjudge%netscape.com
85ff7d2a69 reviewed sfraser approved choffman 6771 6762 UMR and Extreemly inefficient table selection code fixed simply
git-svn-id: svn://10.0.0.236/trunk@32354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:52:00 +00:00
mjudge%netscape.com
82364c7531 oops fogot default boolean for non start or end node selection
git-svn-id: svn://10.0.0.236/trunk@32116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:29:27 +00:00
mjudge%netscape.com
94695cd80a wrong initial boolean value for redraw
git-svn-id: svn://10.0.0.236/trunk@31961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:31:10 +00:00
mjudge%netscape.com
e064c576fa accidentally left out a parameter to GetPositionSlowly for small caps ect.
git-svn-id: svn://10.0.0.236/trunk@31912 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:50:29 +00:00