Commit Graph

154 Commits

Author SHA1 Message Date
evaughan%netscape.com
995d26d6bc 1) viewmanager2 optimizations -r troy, kevin
2) box fixes for Rod's gfx listbox
3) memory leak fixes
4) box fixes in prep for grid widget


git-svn-id: svn://10.0.0.236/trunk@64995 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 03:55:38 +00:00
kmcclusk%netscape.com
1bdb9de7c9 Added MOZ_PERF timer code to viewmanager to time rendering b=29308 r=attanasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@64238 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-27 22:00:19 +00:00
kmcclusk%netscape.com
c62cc9846a Added capability to view manager to offset its coordinate space b=32161 r=attanasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63930 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 23:49:18 +00:00
kmcclusk%netscape.com
e92c7a3168 Initialize the result value in nsViewManager::SetFrameRate b=32381 r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63620 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 21:47:50 +00:00
kmcclusk%netscape.com
876fb99ca4 #ifdef'ed out timer used to flush paints. It is not needed b=31407 r=attanasi@netscape.com
Changed mVMCount from PRUint32 to PRInt32 to make ASSERTION checking for a negative value in mWMCount valid
b=11674 r=attanasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@63326 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 22:27:26 +00:00
beard%netscape.com
846e3dedc9 bug 25050, fix incorrect usage of mPainting variable. r=jband
git-svn-id: svn://10.0.0.236/trunk@63174 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:55:42 +00:00
kmcclusk%netscape.com
4d0d56ea8d Added code to prevent invalidation of non-visible rectangles.
This is a performance enhancement for platforms where toolkit invalidate calls
are expensive. b=29847 r=rods@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@62960 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 01:20:07 +00:00
mkaply%us.ibm.com
53611f9e3a # 25555
r= beard@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61908 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 22:07:34 +00:00
beard%netscape.com
a876d9dda5 bug 25336, fixes incorrect usage of unsigned integer causing an infinite loop, r=jst@citec.fi (he originated the patch).
git-svn-id: svn://10.0.0.236/trunk@60940 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:11:31 +00:00
kmcclusk%netscape.com
31beeacc3d Prevent synchronous paints during reflows bug 20150; r=rods@netscape.com
Call SetTextAlign within SetupDC instead of in each DrawString on WIN32. bug 26973; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@60242 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 15:48:01 +00:00
waterson%netscape.com
21d5ec4c31 Undo the optimization: it breaks the addressing widget :-(.
git-svn-id: svn://10.0.0.236/trunk@59381 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:13:12 +00:00
waterson%netscape.com
ea2a5c3c7f Optimize MoveViewTo() to only move the view if aX != oldX and aY != oldY. This cuts out about 10% on large web pages that slam the status bar, because boxes seem to want to reposition the widget at the same place over and over. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@59337 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 01:14:49 +00:00
kmcclusk%netscape.com
5f7ac3effb Added support for widgetless viewmanager. Changed code pattern that assumed the root view
always has a nsIWidget instance to call viewmanager to get widget instance. b=22069; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@58838 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 23:04:40 +00:00
beard%netscape.com
c956c22a62 floating views. bug=21966, r=troy, rods, a=brendan
git-svn-id: svn://10.0.0.236/trunk@58504 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 01:53:34 +00:00
ftang%netscape.com
cfa1a18207 partial fix for bug 15533 (size part). 1. change the return value from nsPiont to nsRect. Change widget code to reflect the change. In Gtk, change XIM FontSet based on the rect height. r=cata a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56377 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 07:56:40 +00:00
ftang%netscape.com
199df01b45 add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550
git-svn-id: svn://10.0.0.236/trunk@55502 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 01:29:00 +00:00
beard%netscape.com
067dc9aa6f bug #20504: fix crash when printing. r=joki
git-svn-id: svn://10.0.0.236/trunk@55021 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 05:13:56 +00:00
beard%netscape.com
d2b4f7de3c bug #17574: fixed ResizeView() to generate an update for the bounding box of old and new bounds of the view, instead of the entire parent view (duh!). this can be optimized further by doing separate updates if old and new aren't overlapping. r=kin
git-svn-id: svn://10.0.0.236/trunk@54958 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:58:24 +00:00
beard%netscape.com
d8e63b5bf9 bug #13131, 18140: now accumulating paint requests into a region for each view that has a widget. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@54787 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:27:56 +00:00
tbogard%aol.net
081927560a Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*.
git-svn-id: svn://10.0.0.236/trunk@54391 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:10 +00:00
beard%netscape.com
c9334b0fcd partial reversion of view manager, to fix XP menu breakage on windows.
git-svn-id: svn://10.0.0.236/trunk@53448 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 05:47:00 +00:00
beard%netscape.com
fb2ed0031b fix VC5 bustage, needed to add const qualifiers to GetWidgetView, ViewToWidget.
git-svn-id: svn://10.0.0.236/trunk@53446 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 03:53:51 +00:00
beard%netscape.com
9a5f66247d pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov
git-svn-id: svn://10.0.0.236/trunk@53444 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 02:51:25 +00:00
beard%netscape.com
57aa5577da update just a touch more when resizing views. bug=17574, r=pavlov, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@52935 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 04:06:59 +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
kin%netscape.com
9af25b17a4 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


git-svn-id: svn://10.0.0.236/trunk@50786 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:29:30 +00:00
evaughan%netscape.com
b6c93b5c5c Integrated Gfx scrollbars.
git-svn-id: svn://10.0.0.236/trunk@50385 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:16:06 +00:00
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
warren%netscape.com
c9fbdb8075 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty.
git-svn-id: svn://10.0.0.236/trunk@50188 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:49:06 +00:00
kipp%netscape.com
54966bf91e r=beard; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49837 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:52:53 +00:00
peterl%netscape.com
e67f69dfde when hiding a view, invalidate the parent view since the hidden view will reject the invalidate
git-svn-id: svn://10.0.0.236/trunk@49284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:29:21 +00:00
pinkerton%netscape.com
5d38858c12 don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf.
git-svn-id: svn://10.0.0.236/trunk@49240 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:23:32 +00:00
pavlov%netscape.com
b5bbc1919b work to get drawing done based on regions and not rects a=shaver r=beard
git-svn-id: svn://10.0.0.236/trunk@49179 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:28:03 +00:00
beard%netscape.com
9062bea1a4 leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@49138 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:48:33 +00:00
beard%netscape.com
bbdb98bf69 bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. bug# 14601: assertion cleanup, using #ifdef instead of if (gsDebug). a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48938 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:55 +00:00
beard%netscape.com
bed21decdf bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager.
git-svn-id: svn://10.0.0.236/trunk@48231 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:51:41 +00:00
kin%netscape.com
06c17f0ef0 Fix for bug #13439: SelectAll Delete does not repaint entire edit area
- Removed all references to mUpdateBatchCnt
    in nsViewManager::UpdateView().

  - The methods Enable/DisableRefresh() now check to
    see if we are batching before executing their code.
    This will prevent any layout/parser code from turning
    on refresh before all Begin/EndUpdateViewBatch() calls
    are unwound.


git-svn-id: svn://10.0.0.236/trunk@47645 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:39:03 +00:00
danm%netscape.com
d178595658 reorder treatment of refcount during release. fixes bug 13556
git-svn-id: svn://10.0.0.236/trunk@47466 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 00:15:25 +00:00
beard%netscape.com
d498773668 bug #11637: using an nsIRegion to track already painted opaque views, to get around funky front to back -> back to front transitions. probably being overaggressive about this, will revisit. switched to NS_GET_IID() where possible. cleaned up some redundant local variables in RenderViews().
git-svn-id: svn://10.0.0.236/trunk@47010 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 03:27:14 +00:00
beard%netscape.com
a6ba4b075b bug #10261: fix for dropping calls to UpdateView, also now correctly handles calls to UpdateView(nsIView*, nsIRegion*, ...) with non-null nsIRegion*.
git-svn-id: svn://10.0.0.236/trunk@45812 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 02:27:40 +00:00
beard%netscape.com
a77676c65e removed min/max
git-svn-id: svn://10.0.0.236/trunk@45553 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 23:16:28 +00:00
beard%netscape.com
4bbe89dd79 bug #10715: rewrote nsViewManager::ResizeView() to correctly invalidate newly exposed/resized view. Assumes layout properly invalidates internal area.
git-svn-id: svn://10.0.0.236/trunk@45439 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 04:53:55 +00:00
tague%netscape.com
6bbc6c0935 Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX.
git-svn-id: svn://10.0.0.236/trunk@45252 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 01:20:32 +00:00
beard%netscape.com
ea97daa5fd removed USE_DISPLAY_LIST_ELEMENTS #ifdefs.
git-svn-id: svn://10.0.0.236/trunk@44740 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 04:02:55 +00:00
leaf%mozilla.org
6069cc033f Backing out change.
git-svn-id: svn://10.0.0.236/trunk@44171 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:23:00 +00:00
ramiro%netscape.com
ef4abc49f8 Fix for the rendering problem on unix after the NS_COPYBITS_TO_BACK_BUFFER
cleanup.


git-svn-id: svn://10.0.0.236/trunk@44061 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:54:41 +00:00
kmcclusk%netscape.com
e1083a6ab6 nsViewManager :: Refresh
Created explicit pointers to offscreen and onscreen rendering contexts.
Stop passing NS_COPYBITS_TO_BACK_BUFFER flag.


git-svn-id: svn://10.0.0.236/trunk@43874 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:48:56 +00:00
evaughan%netscape.com
fd72782f13 xpscrollbars
git-svn-id: svn://10.0.0.236/trunk@43717 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:16:23 +00:00
tague%netscape.com
ef7a140a36 Added support for mapping the reply of a textevent (i18n input support) back into platform coordinate space
git-svn-id: svn://10.0.0.236/trunk@42734 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 03:56:03 +00:00
beard%netscape.com
07c15f16a0 display list elements, ShowDisplayList() method.
git-svn-id: svn://10.0.0.236/trunk@41786 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 03:16:55 +00:00