136 Commits

Author SHA1 Message Date
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
beard%netscape.com
0109c98025 bug #10460: now handling negative z-index
git-svn-id: svn://10.0.0.236/trunk@41781 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 02:43:24 +00:00
hyatt%netscape.com
3055877ffd Backing out beard's changes completely and reverting to version 3.34 of
nsViewManager.cpp, and reverting to version 3.100 of nsViewManager.h.

Note that beard's backing out of the negative z-index code did NOT fix
the problem.  This means the bug lurks somewhere else in the file.


git-svn-id: svn://10.0.0.236/trunk@41768 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 18:44:24 +00:00
beard%netscape.com
d1758c698d turned off negative zindex check to see if it fixes XP menus.
git-svn-id: svn://10.0.0.236/trunk@41765 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 18:18:42 +00:00
beard%netscape.com
2a5c9681a3 bug #10460: now placing views with negative z-index after their parent in display list.
Lots of clean up, added DisplayListElement struct instead of storing views in every 3rd slot of the display list, #ifdef USE_DISPLAY_LIST_ELEMENTS. Simplified CreateDisplayList() by removing startup conditions. Broke out display list printing code into separate method ShowDisplayList(). More to come.


git-svn-id: svn://10.0.0.236/trunk@41676 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 03:05:32 +00:00
sspitzer%netscape.com
57c3f3bd87 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@38201 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-03 00:25:42 +00:00
rods%netscape.com
360e823201 Removed drawing optimization because it causes flicker.
git-svn-id: svn://10.0.0.236/trunk@37863 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 20:44:05 +00:00
pierre%netscape.com
76630b14c1 In GetDrawingSurface(), erase the drawing surface when it is re-used.
3455: [PP] mac/linux, dual toolbars appear after surfing.
6989: Multiple window drawing gets messed up.
6678: [PP]clipping/port problems in child dialogs.
5560: [PP] CornerView displays garbage.


git-svn-id: svn://10.0.0.236/trunk@35768 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:01:50 +00:00
joki%netscape.com
7cb2ba1a65 Fixing event coordinates to give screen based info. Also fixing direct reference to frames via their names.
git-svn-id: svn://10.0.0.236/trunk@34378 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 07:38:26 +00:00
kin%netscape.com
18516ebae7 Added implementation of BeginUpdateViewBatch() and
EndUpdateViewBatch() to nsIViewManager and nsViewManager.


git-svn-id: svn://10.0.0.236/trunk@32710 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:13:06 +00:00
beard%netscape.com
c7a927daba bugs #5062, #4703: have to create per view manager rendering contexts, even when the shared drawing surfaces are already big enough.
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@32346 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 23:23:47 +00:00
evaughan%netscape.com
e737c85970 Fixed some visibility bugs in order to make the tab widget work correctly.
git-svn-id: svn://10.0.0.236/trunk@32341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:14:11 +00:00
pierre%netscape.com
0619f79267 Check mRootView in RenderViews to fix a crash with Photon. Patch from Jerry.Kirk@Nexwarecorp.com.
git-svn-id: svn://10.0.0.236/trunk@32072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 14:37:57 +00:00
pierre%netscape.com
f46fadfca9 #5949 "Frequent resizing of window causes apprunner to stop drawing"
git-svn-id: svn://10.0.0.236/trunk@32070 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 13:14:46 +00:00
bruce%cybersight.com
95689446cf Fix ANSI C++ violation. (a=beard)
git-svn-id: svn://10.0.0.236/trunk@31790 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-15 22:53:57 +00:00
kipp%netscape.com
047d0484b8 Do not update views when refresh is disable
git-svn-id: svn://10.0.0.236/trunk@29816 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 00:09:04 +00:00
pierre%netscape.com
9110b95452 fixed the display of some missing views on Mac (like the CornerView)
git-svn-id: svn://10.0.0.236/trunk@29399 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 05:34:05 +00:00
kipp%netscape.com
aa32bf3a94 Removed obsolete include file
git-svn-id: svn://10.0.0.236/trunk@28919 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 19:52:36 +00:00
pierre%netscape.com
38e23d0391 expands the width and height independently from each other in GetDrawingSurface
git-svn-id: svn://10.0.0.236/trunk@28225 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 04:03:25 +00:00