kipp%netscape.com
e18af2d0ee
Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
...
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
mjudge%netscape.com
007d73a460
fixing optimizations for table selection as well as making sure all flags are turned on/off for text frames when one frame is selected..
...
git-svn-id: svn://10.0.0.236/trunk@49352 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:36:00 +00:00
kin%netscape.com
1806b9519b
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().
git-svn-id: svn://10.0.0.236/trunk@49313 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:04:05 +00:00
mjudge%netscape.com
12908f2dd0
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
...
git-svn-id: svn://10.0.0.236/trunk@49076 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 23:33:02 +00:00
mjudge%netscape.com
e27650740e
approved by Dagley. fixes for CTRL_LEFT and CTRL_RIGHT navigation and wrapping
...
git-svn-id: svn://10.0.0.236/trunk@48797 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:56:44 +00:00
mjudge%netscape.com
99c8c76560
fixes for hint code
...
git-svn-id: svn://10.0.0.236/trunk@48777 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:11:38 +00:00
mjudge%netscape.com
f2a4076904
fix for nsRangeList get frame for node was not lookin at the node at the "offset" even if the parent node could have children. this would return invalid stuff when get primary frame for content was called.
...
git-svn-id: svn://10.0.0.236/trunk@48712 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:20:29 +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
akkana%netscape.com
a6365a4c87
Fix a warning
...
git-svn-id: svn://10.0.0.236/trunk@48606 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:29:12 +00:00
joki%netscape.com
62ad116aae
Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_*
...
git-svn-id: svn://10.0.0.236/trunk@48572 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:18:52 +00:00
cmanske%netscape.com
287a754d84
Adding CollapseToStart and CollapseToEnd to selection
...
git-svn-id: svn://10.0.0.236/trunk@48469 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:27:37 +00:00
akkana%netscape.com
c829a3cf49
Add ToString API to nsIDOMSelection
...
git-svn-id: svn://10.0.0.236/trunk@48386 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:05:01 +00:00
mjudge%netscape.com
cbf04231bb
adding change for selection. modifing inside out behavior for table selection. drawing tables being seleted different.
...
git-svn-id: svn://10.0.0.236/trunk@48081 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:33:39 +00:00
sfraser%netscape.com
4550cdda81
Remove some redundant caret methods in the pres shell, and use my funky new stack-based caret hider class to manage caret visibility during difficult times.
...
git-svn-id: svn://10.0.0.236/trunk@47457 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:43:35 +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
5620227d37
fixing memory leak. my bad what was i thinking. forgot to delete the new nsDOMSelection instantiations inside nsRangeList::nsRangeList
...
git-svn-id: svn://10.0.0.236/trunk@46834 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 19:25:12 +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
kin%netscape.com
072c7d8fb4
Added support for scrolling SELECTION_ANCHOR_REGION into view.
...
Renamed GetFocusNodeRect() to GetSelectionRegionRect().
Made code in GetPrimaryFrameForFocusNode() more generic and put it
in a method called GetPrimaryFrameForRangeEndpoint().
GetPrimaryFrameFor{Anchor,Focus}Node() now call GetPrimaryFrameForRangeEndpoint().
git-svn-id: svn://10.0.0.236/trunk@45769 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 21:59:51 +00:00
mjudge%netscape.com
6b3e46bd52
new tweak for selecting from disparate ranges to narrow ones in tables. works great now.
...
git-svn-id: svn://10.0.0.236/trunk@45615 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 01:36:49 +00:00
mjudge%netscape.com
109fab4085
new fix for table selection into and out. works great.
...
git-svn-id: svn://10.0.0.236/trunk@45595 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 00:48:15 +00:00
mjudge%netscape.com
b368b7d065
fixes for optimizing selection
...
git-svn-id: svn://10.0.0.236/trunk@45557 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 23:32:55 +00:00
kin%netscape.com
ea9db112f9
Fix for bugs #7153 , #10673 , #12066 , #12067 , and #12793 .
...
editor/base/nsEditorEventListeners.cpp
editor/base/nsEditorEventListeners.h
- Added code to scroll the selection into view
after processing key events.
- Commented out the hack that redraws the entire
view when the focus is gained and lost. Replaced
the hack code with calls to RepaintSelection().
layout/base/public/nsIFrameSelection.h
layout/base/public/nsIPresShell.h
layout/html/base/src/nsPresShell.cpp
- Added ScrollSelectionIntoView() and RepaintSelection() methods.
layout/base/src/nsRangeList.cpp
- Added implementation for ScrollSelectionIntoView() and
RepaintSelection().
- Check for NULL primary frame in GetFocusNodeRect()
to fix bug #12793 .
git-svn-id: svn://10.0.0.236/trunk@45163 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 21:54:40 +00:00
mjudge%netscape.com
e65c20550f
small fix in rangelist that will stop warnings or infinite loops
...
git-svn-id: svn://10.0.0.236/trunk@44540 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 22:04:54 +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
mccabe%netscape.com
f54a574f03
Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO.
...
git-svn-id: svn://10.0.0.236/trunk@44056 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:25:50 +00:00
kin%netscape.com
bf9c485fd3
Added ScrollRectIntoView() method and other utility methods
...
to fix several bugs related to scrolling the selection into view.
git-svn-id: svn://10.0.0.236/trunk@43586 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:20:11 +00:00
kin%netscape.com
c89294e709
Fixes for bug #10231 (crash making list after select all)
...
and bug #10815 (Crash deleting selected text and table)
mozilla/editor/base/nsHTMLEditRules.cpp
- Added check, in WillDeleteSelection(), to see if
endpoints of the range are in the body before calling
GetBlockNodeParent(). (Bug #10231 )
- Modified GetPromotedPoint() to check for NULL in the
case where aWhere == kEnd and GetChildAt() returns NULL.
(Bug #10815 )
mozilla/layout/base/src/nsGenericElement.cpp
- Modified RangeAdd() so that it doesn't add
a range if it's already in the list. (Bug #10231 )
mozilla/layout/base/src/nsRangeList.cpp
- Modified GetPrimaryFrameForFocusNode() to
initialize aReturnFrame and to return a failure
if ChildAt() returns NULL. (Bug #10231 )
git-svn-id: svn://10.0.0.236/trunk@42152 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 18:36:19 +00:00
akkana%netscape.com
8cdd3b1e3e
Fix selection bustage from yesterday
...
git-svn-id: svn://10.0.0.236/trunk@40686 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 19:42:21 +00:00
akkana%netscape.com
cf7c8e5dac
Add a working implementation for nsDOMSelection::ContainsNode, and use it in nsDocument::IsInSelection for XIF conversion
...
git-svn-id: svn://10.0.0.236/trunk@40518 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 21:29:29 +00:00
akkana%netscape.com
aa4de00332
Add new ContainsNode method to nsIDOMSelection
...
git-svn-id: svn://10.0.0.236/trunk@40344 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 23:08:22 +00:00
mjudge%netscape.com
4732ba9d55
fix for javascript calls to selection bad QI
...
git-svn-id: svn://10.0.0.236/trunk@40111 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 18:36:28 +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
buster%netscape.com
a7195e0ab2
a tiny bit of extra debug output, not enabled by default
...
git-svn-id: svn://10.0.0.236/trunk@39547 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 19:28:12 +00:00
mjudge%netscape.com
06c0b99efa
fix for assert problem. check pointer as well as return value
...
git-svn-id: svn://10.0.0.236/trunk@39544 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 19:08:11 +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
jfrancis%netscape.com
e29b5f2101
making nsRangeList be more like a model nsCOMPtr citizen...
...
git-svn-id: svn://10.0.0.236/trunk@37680 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 08:19:44 +00:00
scc%netscape.com
a2d0be4d64
|nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
...
git-svn-id: svn://10.0.0.236/trunk@37444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 21:01:31 +00:00
akkana%netscape.com
819c9d4ce0
Add some error checking, for robustness; fix some warnings
...
git-svn-id: svn://10.0.0.236/trunk@36347 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 21:45:00 +00:00
mjudge%netscape.com
83a23355fc
fix for crasher in browser. check for null
...
git-svn-id: svn://10.0.0.236/trunk@36310 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 19:41:41 +00:00
sfraser%netscape.com
60704ce592
Add a null check to avoid crashing when typing in the profile window text fields.
...
git-svn-id: svn://10.0.0.236/trunk@35952 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-20 00:15:40 +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
mjudge%netscape.com
8650f1059b
adding kins fix for the bitrotted addrange code. never was used before
...
git-svn-id: svn://10.0.0.236/trunk@34643 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:24:04 +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
bruce%cybersight.com
905a6365ef
Tokens may not follow '#endif'. This fixes the HP-UX build.
...
git-svn-id: svn://10.0.0.236/trunk@33916 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 11:35:36 +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
mjudge%netscape.com
cd7086a430
invalid != for unix I will investigate this later. What i am checkin in now SHOULD remove any ambiguity in the code.
...
git-svn-id: svn://10.0.0.236/trunk@33361 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:53:01 +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