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

180 Коммитов

Автор SHA1 Сообщение Дата
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