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
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
joki%netscape.com
5ff7e26f51
Breaking nsIDOMEvent out into nsIDOMEvent and nsIDOMUIEvent.
...
git-svn-id: svn://10.0.0.236/trunk@32168 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:51:04 +00:00
mjudge%netscape.com
ff933f4f73
adding in selection of non text frames in editor only
...
git-svn-id: svn://10.0.0.236/trunk@31872 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:21:18 +00:00
cmanske%netscape.com
0992ccb525
Fixed isCollapsed not working for a selection with 1 range
...
git-svn-id: svn://10.0.0.236/trunk@31461 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:49:12 +00:00
warren%netscape.com
fe7d7e2e69
Fixed nsICollection (and Count in particular) to be xpidl friendly.
...
git-svn-id: svn://10.0.0.236/trunk@31413 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 04:56:04 +00:00
jfrancis%netscape.com
710bff6a24
updated to new iter behavior
...
git-svn-id: svn://10.0.0.236/trunk@31387 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:50:15 +00:00
mjudge%netscape.com
3eb321b254
fixing lame compiler bug in SunOS gcc we are using wont accept this template call in nsCOMPtr
...
git-svn-id: svn://10.0.0.236/trunk@31376 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 02:14:32 +00:00
mjudge%netscape.com
09deaec2f5
adding back in keyboard navigation. removing const from peekoffset to stop the const creep
...
git-svn-id: svn://10.0.0.236/trunk@31346 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:43:47 +00:00
mjudge%netscape.com
aa270a2af0
forgot checkin
...
git-svn-id: svn://10.0.0.236/trunk@30748 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:17:59 +00:00
mjudge%netscape.com
644a9e449d
massive checkin for selection modifications and removing static state variables for selection in nsFrame.h.
...
git-svn-id: svn://10.0.0.236/trunk@30744 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 21:12:59 +00:00
akkana%netscape.com
7665b5ba68
comment out annoying debug message
...
git-svn-id: svn://10.0.0.236/trunk@30431 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:24:58 +00:00
cyeh%netscape.com
3392afd90c
backout mjudge checkin against closed tree. it also breaks mac as well, so
...
mjudge will try again when tree reopens
git-svn-id: svn://10.0.0.236/trunk@30428 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:05:41 +00:00
mjudge%netscape.com
6249ea5e27
adding new state to nsRangeList to track mousedown and dragging criteria. much better than static variables in nsFrame.h!!
...
git-svn-id: svn://10.0.0.236/trunk@30424 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 22:32:58 +00:00
mjudge%netscape.com
266e1da5ec
m5 BUGS Choffman approved. simon reviewed. removing possible memory leak and getting anchor and focus frame to use the proper range instead of addreffing a node each! tested this afternoon
...
git-svn-id: svn://10.0.0.236/trunk@29801 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-29 20:24:21 +00:00
mjudge%netscape.com
1c6fe6802e
bug fix simon reviewed hoffman approved
...
git-svn-id: svn://10.0.0.236/trunk@29763 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 23:09:59 +00:00
sfraser%netscape.com
cd38b34ec8
Break out of the loop when iter->Next() fails (nil parent problem in the content iterator).
...
git-svn-id: svn://10.0.0.236/trunk@29723 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 06:38:19 +00:00