180 Commits

Author SHA1 Message Date
mjudge%netscape.com
43a63010d1 small fixes for BR frames getting correct offset. also one case of textframe not returning proper location (simply a missed change of a regressed call in PeekOffset) nsCaret was also too stringent on the limitation of text frames as the only frames to get the caret position. these were reviewed by a few people and i just dont remember. r=simon,cmanske,akkana and hyatt?
git-svn-id: svn://10.0.0.236/trunk@54299 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 20:30:21 +00:00
pierre%netscape.com
47b0c08a9f 12520 "GFX select elements need to be able to turn off text". Changed nsFrame::DisplaySelection to use the parent's mUserSelect similarly to what we do with mCursor in nsFrame::GetCursor. r=mjudge.
git-svn-id: svn://10.0.0.236/trunk@54230 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:07:56 +00:00
troy%netscape.com
3f61543a91 WillReflow/DidReflow changes and changes to the way view positioning
and sizing works


git-svn-id: svn://10.0.0.236/trunk@53998 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 15:33:29 +00:00
kin%netscape.com
53798ca2b2 Fix for bug #17989: Selection AutoScrolling broken when using GFX Scrollbars
layout/base/src/nsRangeList.cpp
        - Added ConstrainFrameAndPointToAnchorSubtree() and various utility
          methods.
        - Modified HandleDrag() to call ConstrainFrameAndPointToAnchorSubtree().

    layout/html/base/src/nsFrame.cpp
        - Modified GetContentAndOffsetFromPoint() to skip over generated
          and anonymous content frames.

    layout/html/base/src/nsGfxScrollFrame.cpp
    layout/html/base/src/nsGfxScrollFrame.h
        - Override the default nsFrame::GetContentAndOffsetsFromPoint()
          implementation with a version that calls
          mInner->GetContentAndOffsetsFromPoint(). This prevents the
          scrollbar frames from being included in the search.

    view/src/nsScrollPortView.cpp
        - Fixed bug where GetContainerSize() was returning the size of the
          ScrollPortView instead of the ScrolledView.

r=evaughan@netscape.com


git-svn-id: svn://10.0.0.236/trunk@53893 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 19:40:52 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
mjudge%netscape.com
9252d81168 small fix from pierre on use of the style system. pierre reviewed.
git-svn-id: svn://10.0.0.236/trunk@52625 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 00:11:49 +00:00
troy%netscape.com
8c862baf0d Changed QueryInterface() to check for nsIFrameDebug
git-svn-id: svn://10.0.0.236/trunk@52516 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 05:49:11 +00:00
troy%netscape.com
3513334988 Moved a bunch of stuff out to a nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52427 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:12:45 +00:00
troy%netscape.com
88c4d96e2c Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up


git-svn-id: svn://10.0.0.236/trunk@52309 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:52:11 +00:00
mjudge%netscape.com
2dee462ae3 i cannot find the bug# it is for selecting inside forms. we need to turn off selection in certain frames based on the style. this sets up it to work once we figure out the style rule to set.
git-svn-id: svn://10.0.0.236/trunk@52288 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:07:07 +00:00
troy%netscape.com
fd1d6fc2a3 Changed view to be stored as a frame property instead of a member data
of nsFrame


git-svn-id: svn://10.0.0.236/trunk@51940 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 03:56:14 +00:00
troy%netscape.com
c04dab44f6 Change to some assertions in debug mode
git-svn-id: svn://10.0.0.236/trunk@51925 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:53:15 +00:00
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
troy%netscape.com
d79892b99d Changed nsTextFrame to be derived from nsFrame instead of nsSplittableFrame.
nsTextFrame now has only a next-in-flow pointer and no prev-in-flow pointer.
Subclass nsContinuingTextFrame is used for continuing text frames; it has a
prev-in-flow pointer. This saves 4 bytes


git-svn-id: svn://10.0.0.236/trunk@51664 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 23:19:14 +00:00
troy%netscape.com
d16381b6f3 Removed 5 convenience functions from nsIFrame
git-svn-id: svn://10.0.0.236/trunk@51531 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:53:52 +00:00
kipp%netscape.com
2ed3a3fc6a Removed some more warnings
git-svn-id: svn://10.0.0.236/trunk@51530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:51:41 +00:00
mjudge%netscape.com
64c9150aab massive checkin for underlying implementation of key handling from javascript and home/end breakage and.. selecting around NON-text frames. like arrowing around an image for example. 16636,16655 and another i cannot find. r=kin r=hyatt a=me
git-svn-id: svn://10.0.0.236/trunk@51467 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:19:18 +00:00
peterl%netscape.com
bba68903df Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:16:45 +00:00
mjudge%netscape.com
dcd63f4da3 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling.
git-svn-id: svn://10.0.0.236/trunk@50536 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:15:26 +00:00
troy%netscape.com
5132f68d26 b=15509, r=peterl@netscape.com
If the frame has visible content that extends outside its content area,
then the view needs to be marked as having transparent content


git-svn-id: svn://10.0.0.236/trunk@50535 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:02:53 +00:00
kipp%netscape.com
51d691cc02 Port to new nsILineIterator api
git-svn-id: svn://10.0.0.236/trunk@50508 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:25:19 +00:00
kipp%netscape.com
a4aa98059e r=troy; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49833 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:51:12 +00:00
peterl%netscape.com
f6d5221996 removing dead style change code
r=troy


git-svn-id: svn://10.0.0.236/trunk@49651 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:24:20 +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
peterl%netscape.com
12c3349911 manage view visibility better, hide collapsed views and hidden views with widgets
git-svn-id: svn://10.0.0.236/trunk@49293 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:37:02 +00:00
troy%netscape.com
e5689ac462 Fixes for bug #2552 and bug #10961
git-svn-id: svn://10.0.0.236/trunk@49106 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 20:40:29 +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
7971bfb7e6 more tweaks for line boundaries. previous
git-svn-id: svn://10.0.0.236/trunk@48833 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:26:37 +00:00
mjudge%netscape.com
b8eaf7bac4 tweaked word left and word right again. got double click working on edge cases! yeah
git-svn-id: svn://10.0.0.236/trunk@48829 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:09:41 +00:00
mjudge%netscape.com
6b1af498fe recursion failing finding the same frame we started with sometimes with generated content from style. simple 2 line check to avoind this. dagley said ok to check in red tree since not hurting anyone.
git-svn-id: svn://10.0.0.236/trunk@48812 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:12:44 +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
807d5be104 fixes for line/frame traversal. now we use more common code inside nsFrame rather than nsTextFrame specific code all the time.
git-svn-id: svn://10.0.0.236/trunk@48778 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:12:23 +00:00
joki%netscape.com
1042dd0a3f Adding support for event.clickCount, obsoleting old dblclick event.
git-svn-id: svn://10.0.0.236/trunk@48743 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:29:33 +00:00
mjudge%netscape.com
8558ff33bb fix for going to correct offset in selection with keyboard navigation
git-svn-id: svn://10.0.0.236/trunk@48708 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:19:04 +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
peterl%netscape.com
5e304ecf23 removed ReResolveStyleContext
added style tree verify flag


git-svn-id: svn://10.0.0.236/trunk@48549 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:51:52 +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
kipp%netscape.com
9383047642 formatting sillyness
git-svn-id: svn://10.0.0.236/trunk@47643 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:42 +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
kipp%netscape.com
1f521f4dc8 Removed MoveInSpaceManager
git-svn-id: svn://10.0.0.236/trunk@47475 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 00:26:39 +00:00
sfraser%netscape.com
35a5e1d106 Fix a warning.
git-svn-id: svn://10.0.0.236/trunk@47456 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:41:49 +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
peterl%netscape.com
23a88bfb49 added content state changed notification
git-svn-id: svn://10.0.0.236/trunk@46723 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:52:23 +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
mjudge%netscape.com
a0c73b5f81 Had a loop that did not reset one variable for "next" iteration. this will fix arrow up/down ya.
git-svn-id: svn://10.0.0.236/trunk@46191 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 18:47:01 +00:00
peterl%netscape.com
b5634c8488 added accessors to additional style contexts
git-svn-id: svn://10.0.0.236/trunk@45964 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:35:14 +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