Commit Graph

1130 Commits

Author SHA1 Message Date
mjudge@netscape.com
7c7030fcf2 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling. get position not a valid call anymore to nsIFrame.h 1999-10-13 01:16:09 +00:00
kin@netscape.com
76a460de09 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
5db385ca1d 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
peterl@netscape.com
1b9f0a7401 removed ReResolveStyleContext
added flag for style tree verify
1999-09-21 07:48:34 +00:00
mjudge@netscape.com
c59f7fd9c7 fixes for crasher in tree 1999-09-11 00:18:02 +00:00
mjudge@netscape.com
86e3b61de7 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
peterl@netscape.com
359b802313 added content state changed (vs content changed) notification 1999-09-10 05:50:02 +00:00
mjudge@netscape.com
d3912a1766 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
peterl@netscape.com
e5cede04c9 added accessors to additional style contexts 1999-09-03 23:35:14 +00:00
kipp@netscape.com
3dbd670c62 Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot 1999-08-31 03:09:40 +00:00
kipp@netscape.com
a12f027be4 Added NS_FRAME_IS_UNFLOWABLE bit for handling frame trees that are too deep 1999-08-27 21:39:26 +00:00
mjudge@netscape.com
399f8a6195 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
troy@netscape.com
5c81e70106 Changed root frame class over to new reflow command handling 1999-07-27 14:15:42 +00:00
troy@netscape.com
0e0a723228 Defined it so that the NS_FRAME_IS_DIRTY flag is set for newly added frames in
SetInitialChildlist(), AppendFrames(), InsertFrames(), and ReplaceFrame()
1999-07-24 02:33:07 +00:00
troy@netscape.com
3dd72d0e69 Added ReplaceFrame() member function to nsIFrame 1999-07-22 04:32:31 +00:00
troy@netscape.com
d6f5216441 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
troy@netscape.com
0c1d0440da Added NS_FRAME_IS_DIRTY flag to the frame state flags 1999-07-21 23:47:01 +00:00
troy@netscape.com
68b53a1be4 Removed IsTransparent() function from nsIFrame 1999-07-21 23:15:39 +00:00
mjudge@netscape.com
e9e5ebf31b 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
mjudge@netscape.com
d36c31368a 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
joki@netscape.com
477422b696 Adding new method to nsIDOMNSUIEvent to give event pos as range offset. 1999-06-08 02:19:26 +00:00
mjudge@netscape.com
2c77f1b613 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
d1520ed3dc adding in selection of non text frames in editor only 1999-05-17 00:21:18 +00:00
mjudge@netscape.com
46e5dd964d adding back in keyboard navigation. removing const from peekoffset to stop the const creep 1999-05-13 00:43:47 +00:00
mjudge@netscape.com
fa251da6bc massive checkin for selection modifications and removing static state variables for selection in nsFrame.h. 1999-05-07 21:12:59 +00:00
mjudge@netscape.com
40459a892f selection changes for new model of content only. frames no longer contain variables referring to selection state outside of 1 bit. keyboard selection will now be disabled until i can get it working in the new selection world order. 1999-04-26 04:02:04 +00:00
troy@netscape.com
5ba717719f Added flag bit NS_FRAME_OUT_OF_FLOW, and changed the frame construction code
to set it for floated and absolutely positioned frames
1999-04-25 17:20:53 +00:00
kipp@netscape.com
6ef3921bbc Added a bit to speed up frame destruction 1999-04-13 21:48:35 +00:00
troy@netscape.com
93597e2b41 Added NS_FRAME_GENERATED_CONTENT 1999-04-05 03:44:07 +00:00
peterl@netscape.com
b1cd6b9b18 added args to ReResolveStyle to capture style change info 1999-03-25 06:32:56 +00:00
mjudge@netscape.com
90b5efff4a fixed memory leaks in nsRangelist.cpp. uninitialized memory in nsTextframe, simplified APIs in nsIFrame and the underlying implementations. see layout.checkins 1999-03-12 00:17:14 +00:00
kipp@netscape.com
cc88cd7522 Removed global gLogModule 1999-02-26 16:59:57 +00:00
troy@netscape.com
ca28eafb7d Removed nsIFrame::CreateContinuingFrame() 1999-02-25 05:31:15 +00:00
troy@netscape.com
7f63268a34 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
troy@netscape.com
b2d859edbe Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
mjudge@netscape.com
598947a424 adding parameter to nsIFrame for ::PeekOffset to be aware of the state of jumping a word. eating WS ect. also, nsRangeList sends the proper parameter for above change. 1999-02-22 04:57:44 +00:00
kipp@netscape.com
03afe99e6c Removed obsolete GetAutoMarginSize method 1999-02-18 03:19:02 +00:00
troy@netscape.com
71e147b038 Added NS_FRAME_REPLACED_ELEMENT 1999-02-13 05:58:28 +00:00
sfraser@netscape.com
231eebc995 Add two new methods needed for caret support (and other things): GetPointFromOffset, to get frame-relative coordinates of a given content offset, and GetChildFrameContainingOffset, to find the child frame that really contains the given content offset 1999-02-12 00:02:31 +00:00
mjudge@netscape.com
ec19bd6e4d Keyboard navigation, removing nsICollection(not used) adding PeekOffset to have the nsIFrame tell us where to go when moving a character ect. adding nsFrameTraversal to traverse frames, based on nsIEnumerator. mjudge x4661 1999-02-10 18:55:25 +00:00
troy@netscape.com
87805c7a92 Changed GetNextSibling() to use a pointer argument instead of a reference 1999-02-10 06:13:38 +00:00
troy@netscape.com
655e2cab93 Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy@netscape.com
18893d3961 Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references
1999-02-10 04:17:06 +00:00
troy@netscape.com
c63560927c Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&
1999-02-10 02:25:01 +00:00
troy@netscape.com
48040900a7 Changed GetParent() to use ** instead of *& 1999-02-10 01:36:30 +00:00
troy@netscape.com
b4f8c0fbbe Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
troy@netscape.com
2c8f46e6c4 Added GetFrameType() member function 1999-02-09 05:44:13 +00:00
mjudge@netscape.com
8129dccd65 commas trailing on enum illegal even if vc50 says its ok 1999-02-02 01:16:57 +00:00
mjudge@netscape.com
ae1818857e keyboard navigation of selection. adding API for nsIFrame. fixing nsFrame and nstextframe to reflect the implementations of the nsIFrame API. nsRangeList implements the handlekeyevent now. 1999-02-02 00:23:40 +00:00
kipp@netscape.com
d186480d6c Cleaned up comments; removed ReplaceFrame from the API 1999-02-01 17:25:30 +00:00