Commit Graph
195 Commits
Author SHA1 Message Date
troy@netscape.com 8e4e35d00b r=kipp@netscape.com Moved ownership of root frame (and frame hierarchy) over to
the frame manager
1999-10-18 22:20:37 +00:00
troy@netscape.com 765238374e b=16652, r=troy@netscape.com
Patch from Johnny Stenback that breaks a weak link reference
1999-10-18 19:00:49 +00:00
peterl@netscape.com 419e62fca8 Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy
1999-10-15 23:16:45 +00:00
kin@netscape.com bb2055d5c7 Fix for bug #15360: Drag Selecting, Clicking, then Clicking leaves caret cruft.
r=troy@netscape.com,kipp@netscape.com,evaughan@netscape.com,beard@netscape.com

layout/html/base/src/nsGfxScrollFrame.cpp
    - Renamed all occurrences of ScrollPositionChanged() to
      to ScrollPositionDidChange() to match changes made
      to nsIScrollPositionListener.
    - Added ScrollPositionWillChange() stub method.

layout/html/base/src/nsPresShell.cpp
    - Added PresShellViewEventListener class that implements the
      nsIScrollPositionListener and nsICompositeListener view
      interfaces. This allows us to turn caret rendering on and off
      when scrolling and repainting to prevent leaving caret cruft
      on the screen.
    - PresShellViewEventListener is created in InitialReflow(), and
      released in ~PresShell().

view/public/Makefile.in
view/public/makefile.win
view/public/MANIFEST
    - Added nsICompositeListener to list of files to be exported.

view/public/nsICompositeListener.h
    - New file. Implementers of this interface can register themselves
      with the view manager to receive notification before and after
      a view is composited/refreshed.

view/public/nsIScrollPositionListener.h
    - Added a ScrollPositionWillChange() method.
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().

view/public/nsIViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener methods.

view/src/nsScrollingView.cpp
view/src/nsScrollingView.h
    - Added NotifyScrollPositionWillChange() and
      NotifyScrollPositionDidChange() methods.
    - Modified HandleScrollEvent() to call NotifyScrollPositionWill/DidChange()
      methods. Added temporary offsetX and offsetY variables to allow us
      to calculate new offsets without changing mOffsetX and mOffsetY before
      notifications are sent out.

view/src/nsScrollPortView.cpp
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().
    - Modified ScrollTo() to call the listener's ScrollPositionWillChange()
      method.

view/src/nsViewManager.cpp
view/src/nsViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener() methods.
    - Added support for CompositeListener notifications in the Refresh()
      methods for regions and rects.
    - Fix for bug #15901: [DOGFOOD] Selected text does not clear when you type
      Modified UpdateView() so that rects with zero width and height are
      no longer added to our damage region.
      r=beard@netscape.com
1999-10-15 04:29:30 +00:00
peterl@netscape.com d498a484da fix return type for append reflow command (was returning PRBool for nsresult)
part of fix for 14134
r=pierre
1999-10-12 00:23:10 +00:00
nisheeth@netscape.com f96d427084 We now use the new RAPTOR_STOPWATCH_DEBUGTRACE macro to annotate all manipulations of the timers. 1999-10-11 23:42:56 +00:00
kipp@netscape.com ea36a75c90 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
warren@netscape.com 525b59f80b Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
kipp@netscape.com f94e418df8 Work around a crash by stubbing out some pointers that are weak links that are not to be used during shutdown 1999-10-07 00:31:21 +00:00
kipp@netscape.com 37136b1c58 r=troy; Added in ctor/dtor counting 1999-10-05 14:51:12 +00:00
nisheeth@netscape.com e99f7f9cef Use NSPR logging rather than printf's for stopwatch output. 1999-09-24 08:57:36 +00:00
nisheeth@netscape.com 4b9fd1184c bug 13630, r=troy, a=leaf, Added a null check to prevent a crash. 1999-09-24 01:58:32 +00:00
nisheeth@netscape.com d1e88d3551 Stop the stopwatches before you print them. 1999-09-22 01:49:31 +00:00
peterl@netscape.com 153d0d8d55 added calls to verify style tree 1999-09-21 07:53:49 +00:00
nisheeth@netscape.com be957dd725 Add prefix string to style resolution timer output. 1999-09-21 06:24:17 +00:00
nisheeth@netscape.com cd1903fc1f Include nsITimeRecorder.h in the pres shell. 1999-09-20 08:23:33 +00:00
nisheeth@netscape.com 25a984bcac Add calls to reset and print the stopwatch maintained by the styleset for tracking style resolution time. 1999-09-20 06:55:24 +00:00
nisheeth@netscape.com 35be888a2e Added measurement of reflow time and frame creation time during the loading of a page. 1999-09-17 07:16:42 +00:00
nisheeth@netscape.com 3bd463f86a Start of instrumentation of the presshell to calculate timing data for the reflow process. 1999-09-15 00:43:53 +00:00
kipp@netscape.com 1b1dfb307f Upgraded incremental reflow debugging support 1999-09-15 00:27:05 +00:00
sfraser@netscape.com 4ff0aa5f7c 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. 1999-09-14 23:43:35 +00:00
mjudge@netscape.com 864b771118 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 1999-09-13 22:19:31 +00:00
kipp@netscape.com 6bef1a8420 Tweaked incremental reflow support logic 1999-09-10 18:49:23 +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
bienvenu@netscape.com cc7fe23620 fix build bustage 1999-09-02 19:21:45 +00:00
joki@netscape.com 9c08da7d74 Fix for bug 12226, allow reentrant events 1999-09-02 18:14:01 +00:00
nisheeth@netscape.com d09bc57dbb - Added setter for history state to nsIPresShell
- Added capture/restore frame state methods to nsIFrameManager
- Added a getter for state type to nsIStatefulFrame.
- Changed the save/restore method parameters  in nsIStateful frame
  so that only the frame state gets passed to the stateful frame.
- Implemented all the new interface methods in the respective implementation classes.
1999-08-31 14:35:50 +00:00
nisheeth@netscape.com d66a640714 Added get/set document state API for use by session history. 1999-08-30 22:38:58 +00:00
kin@netscape.com 2206ab56b9 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.
1999-08-30 21:54:40 +00:00
kipp@netscape.com 36c66a102e Added hack code (for me) to allow for stack depth testing 1999-08-27 21:50:37 +00:00
jfrancis@netscape.com 4036bf65f9 making nsPresShell and nsDocument support weak references; using weak references to docs and pres shells within the editor 1999-08-25 10:51:55 +00:00
pinkerton@netscape.com 9a13c452d7 IDL-ifying nsITransferable, nsIDragService, nsIDragSession, nsIFormatConverter. 1999-08-25 08:35:06 +00:00
hyatt@netscape.com 04ce29b4c2 Fix for editor typing bustage (part 2). 1999-08-24 10:20:35 +00:00
hyatt@netscape.com 8a9bd2a027 Patching an error in the key event handling. 1999-08-24 00:42:02 +00:00
beard@netscape.com 7848d31f5a fixes a crasher triggered by test case of bug #5194. 1999-08-07 20:43:47 +00:00
troy@netscape.com 8bcc4415e2 Moved cantrenderreplacedelememt code over to the frame manager 1999-08-05 20:17:44 +00:00
troy@netscape.com a9cd805e30 Added NULL pointer checks in GetPrimaryFrameFor() and GetPlaceholderFrameFor() 1999-08-05 03:23:39 +00:00
troy@netscape.com d2e28c48a0 Changed frame construction code to use frame manager when modifying frame
model
1999-08-05 03:09:22 +00:00
buster@netscape.com ab00c39760 added GetCaretEnabled
cleaned up caret APIs according to coding convention
1999-08-04 20:46:16 +00:00
troy@netscape.com 3fa043f0ab Now uses frame manager 1999-08-04 04:02:40 +00:00
rods@netscape.com 7a6b6fe748 temporary fix for reentrancy bug in HandleEvent 1999-07-28 21:42:37 +00:00
joki@netscape.com 39b685f44a Event fixes to allow key event handling by GFX widgets and fixes for window.defaultStatus. 1999-07-26 15:02:19 +00:00
rods@netscape.com e42968d0ba Sending wrong length when putting data on the clipboards,
double byte chars need twice the space. Wrongly assummed nsString.Length()
return bytes instead of length in chars doubel or single.
1999-07-23 02:25:17 +00:00
troy@netscape.com d6f5216441 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
troy@netscape.com 73aa191b66 Changed ScrollFrameIntoView() to also do horizontal scrolling if necessary 1999-07-19 18:38:33 +00:00
mjudge@netscape.com 5003dfb491 cant query interface from frame selection to dom selection since we now have more than one type of dom selection implementations. you must ask for ANY dom selection then remove yourself as a listener or whatever you want to do. MJ 1999-07-19 18:04:35 +00:00
mjudge@netscape.com 8e4c13fcd1 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. 1999-07-18 02:27:19 +00:00
troy@netscape.com c55e5f77c8 Added code to make sure that posted events are removed when the frame they
refer to is destroyed
1999-07-16 23:27:46 +00:00
rods@netscape.com 1a9883406b XIF is now being put into the transferable as double byte 1999-07-16 14:20:59 +00:00
troy@netscape.com b4cd234466 Turned on the use of the digital search tree code 1999-07-16 03:32:09 +00:00