197 Commits

Author SHA1 Message Date
vidur%netscape.com
f1a9c3f401 Fix for bug 9140. Area elements now have event fired for them. r=joki
git-svn-id: svn://10.0.0.236/trunk@60399 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:24:59 +00:00
troy%netscape.com
05e293d03e r=vidur@netscape.com Performance. Added NS_FRAME_HAS_VIEW frame state flag
so we can quickly tell whether the frame has an associated view


git-svn-id: svn://10.0.0.236/trunk@59586 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:51:37 +00:00
troy%netscape.com
60471abd92 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.


git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
nisheeth%netscape.com
59dbaae9fb r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257.
git-svn-id: svn://10.0.0.236/trunk@57522 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 08:28:24 +00:00
rbs%maths.uq.edu.au
d5b174bfa7 [#ifdef MOZ_MATHML] Added extension to the reflow metrics to support the bounding metrics needed for precise MathML placements. This is a WIP approved by Troy.
git-svn-id: svn://10.0.0.236/trunk@57106 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-07 14:36:43 +00:00
troy%netscape.com
1fce58468f Work-in-progress for having maximum width (needed by tables) be updated
incrementally


git-svn-id: svn://10.0.0.236/trunk@56615 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-30 04:15:45 +00:00
troy%netscape.com
52084caad8 Change to how overflow is handled for absolutely positioned elements.
We no longer use nsIAraeFrame and now it's folded into the overflow
area in the reflow metrics


git-svn-id: svn://10.0.0.236/trunk@55424 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 15:49:53 +00:00
tbogard%aol.net
ae5a81e394 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +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
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
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
23e130e01b Added nsHTMLReflowState.h
git-svn-id: svn://10.0.0.236/trunk@52326 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:16: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
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
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
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
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
01e83014a6 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
git-svn-id: svn://10.0.0.236/trunk@50537 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:16:09 +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
peterl%netscape.com
eeb2ec5d3e removed ReResolveStyleContext
added flag for style tree verify


git-svn-id: svn://10.0.0.236/trunk@48545 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:48:34 +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
d97f7ef6e1 added content state changed (vs content changed) notification
git-svn-id: svn://10.0.0.236/trunk@46718 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:50:02 +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
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
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
kipp%netscape.com
b10be9c548 Added NS_FRAME_IS_UNFLOWABLE bit for handling frame trees that are too deep
git-svn-id: svn://10.0.0.236/trunk@44907 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 21:39:26 +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
troy%netscape.com
dd72d8029f Changed root frame class over to new reflow command handling
git-svn-id: svn://10.0.0.236/trunk@41287 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 14:15:42 +00:00
troy%netscape.com
ad761afe38 Defined it so that the NS_FRAME_IS_DIRTY flag is set for newly added frames in
SetInitialChildlist(), AppendFrames(), InsertFrames(), and ReplaceFrame()


git-svn-id: svn://10.0.0.236/trunk@40953 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 02:33:07 +00:00
troy%netscape.com
73690aa1c5 Added ReplaceFrame() member function to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@40599 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 04:32:31 +00:00
troy%netscape.com
947927e816 Renamed DeleteFrame() to Destroy()
git-svn-id: svn://10.0.0.236/trunk@40585 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 02:24:52 +00:00
troy%netscape.com
afd55b77d6 Added NS_FRAME_IS_DIRTY flag to the frame state flags
git-svn-id: svn://10.0.0.236/trunk@40547 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 23:47:01 +00:00
troy%netscape.com
25df555ae8 Removed IsTransparent() function from nsIFrame
git-svn-id: svn://10.0.0.236/trunk@40539 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 23:15:39 +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
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
joki%netscape.com
ee7a67a711 Adding new method to nsIDOMNSUIEvent to give event pos as range offset.
git-svn-id: svn://10.0.0.236/trunk@34162 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:19:26 +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
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
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
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
mjudge%netscape.com
0352ad75c6 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.
git-svn-id: svn://10.0.0.236/trunk@29153 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 04:02:04 +00:00
troy%netscape.com
1aee40e685 Added flag bit NS_FRAME_OUT_OF_FLOW, and changed the frame construction code
to set it for floated and absolutely positioned frames


git-svn-id: svn://10.0.0.236/trunk@29120 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 17:20:53 +00:00
kipp%netscape.com
98e242746b Added a bit to speed up frame destruction
git-svn-id: svn://10.0.0.236/trunk@27374 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 21:48:35 +00:00
troy%netscape.com
342a19bf71 Added NS_FRAME_GENERATED_CONTENT
git-svn-id: svn://10.0.0.236/trunk@26271 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 03:44:07 +00:00
peterl%netscape.com
436552bc30 added args to ReResolveStyle to capture style change info
git-svn-id: svn://10.0.0.236/trunk@25080 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 06:32:56 +00:00
mjudge%netscape.com
5876940d2e fixed memory leaks in nsRangelist.cpp. uninitialized memory in nsTextframe, simplified APIs in nsIFrame and the underlying implementations. see layout.checkins
git-svn-id: svn://10.0.0.236/trunk@23802 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 00:17:14 +00:00
kipp%netscape.com
8782ec3985 Removed global gLogModule
git-svn-id: svn://10.0.0.236/trunk@22123 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 16:59:57 +00:00
troy%netscape.com
b51e46e943 Removed nsIFrame::CreateContinuingFrame()
git-svn-id: svn://10.0.0.236/trunk@21866 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 05:31:15 +00:00