Граф коммитов

637 Коммитов

Автор SHA1 Сообщение Дата
kmcclusk%netscape.com 00f44bbe67 Defer invalidates using PL_event so they can be combined with reflow invalidates. This improves performances by reducing the number of paint messages and eliminates flicker bug 36849 sr=roc+moz@cs.cmu.edu r=rods@netscape.com 2001-01-20 04:59:39 +00:00
mkaply%us.ibm.com 42b0f95821 #65732
r=cls
Make SHORT_LIBNAMEs (used by OS/2 only) match Windows DLL names
2001-01-18 15:53:33 +00:00
bryner%uiuc.edu 6862b07fb9 Removing dead .toc files. Not part of build. a=sfraser. 2001-01-03 01:32:06 +00:00
cls%seawood.org 8bd122b3d5 Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org 2000-11-20 07:16:06 +00:00
dbaron%fas.harvard.edu 03855ea1ce Fix leak of gViewManagers nsVoidArray. r=roc+moz@cs.cmu.edu sr=brendan@mozilla.org b=58965 2000-11-08 03:04:02 +00:00
blizzard%redhat.com 3213a8d637 fix bustage 2000-11-07 06:17:38 +00:00
scc%mozilla.org 3d3c0bfa4a bug #39621, r=kmcclusky@netscape.com, sr=blizzard@mozilla.org. Enable the new view manager with a pref "nglayout.debug.enable_scary_view_manager". Just being the mac buddy for blizzard and roc. 2000-11-07 05:22:03 +00:00
warren%netscape.com 4189314fdb Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 4e1ac5ce9d Removed extra 0 arg 2000-10-27 23:21:30 +00:00
warren%netscape.com 6e35f97e31 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
mkaply%us.ibm.com a1e3b1f4e1 #56164
r=kmcclusk, a,sr=roc+moz@cs.cmu.edu
Comboboxes positioning incorrect on OS/2
2000-10-17 14:54:03 +00:00
kmcclusk%netscape.com 8d64023edc Added IsPainting method to return whether the viewmanager is currently painting. bug 56335 a=buster@netscape.com r=vidur@netscape.com 2000-10-17 05:03:45 +00:00
kmcclusk%netscape.com 3c200a5ad8 Added new method to control whether ViewManager and ViewManager2 double-buffer when rendering. bug 49743 a=roc+moz@cs.cmu.edu r=peterl@netscape.com 2000-09-26 05:04:53 +00:00
rayw%netscape.com 6cc70ebd6c Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
kmcclusk%netscape.com 7d81913b4d Revert back to old loop construct for dispatching events which is safer when the event destroys the current view bug 50335 r=attinasi@netscape.com 2000-08-31 02:31:17 +00:00
roc+%cs.cmu.edu e0e2eb7518 Bug 49175. Change O(n^2) child view traversal to O(n). Trim unused view painting code. O(n^2)->O(n) change submitted by alex@cendio.se. r=kmmclusk,a=brendan 2000-08-24 19:54:46 +00:00
roc+%cs.cmu.edu 224b1f0733 NOT PART OF THE BUILD. Bringing nsViewManager up to speed with nsViewManager2 changes. Also ensures all pixels are cleared even if some pixels are not covered by any opaque view. Bug 39621. 2000-08-24 02:35:00 +00:00
roc+%cs.cmu.edu 083cb4ee6b NOT PART OF BUILD. Checking in nsViewManager2 semi-rewrite as nsViewManager. Bug 39621. r=kmcclusk,a=waterson 2000-08-23 14:58:22 +00:00
kmcclusk%netscape.com 3f34406c57 Clear the backbuffer to white before rendering to it and copying forward b=34283 r=attinasi@netscape.com 2000-08-22 04:20:40 +00:00
kmcclusk%netscape.com 8b9332a035 Destroy offscreen surfaces using a singleton nsIRenderingContext instance instead of creating a nsIRenderingContext during shutdown b=48190 r=attinasi@netscape.com
Allways destroy the global array of ViewManager's when last view manager instance is destroyed b=45921 r=attinasi@netscape.com
2000-08-17 21:05:16 +00:00
roc+%cs.cmu.edu d854e17240 Adding new nsIView/nsIViewManager APIs so that a view can have a different parent for Z-order/clipping purposes than its geometric parent. Bug 39621. r,a=waterson 2000-08-12 19:05:52 +00:00
saari%netscape.com 00ad136b80 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner
2000-08-08 21:31:05 +00:00
dcone%netscape.com eef57439bf took ViewManager.cpp out of build. b=42845 r=kmcclusk. 2000-08-04 13:55:36 +00:00
kmcclusk%netscape.com 5705d1a18f Removed references to viewmanager1 in nsViewFactory. Removed ViewManager1 from the build on WIN32, and Linux. b=42845 r=attinasi@netscape.com. tested=win32,linux 2000-08-03 03:36:10 +00:00
pollmann%netscape.com b31bc7c547 Bug 42686: Remove an assertion which was preventing dogfood use on Mac. r=jst@netscape.com (thanks!) 2000-07-20 06:02:41 +00:00
mkaply%us.ibm.com 1641092c0c r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME
2000-07-10 21:08:54 +00:00
dcone%netscape.com ebd5695542 Printing now calls RenderViews instead of just the top view. R=rods. b= 44547 2000-07-06 14:06:47 +00:00
cls%seawood.org 33938e6100 Removing last vestiges of raptor from unix build. Since some libs were renamed, a 'make distclean' is recommeneded to remove the old copies of those libs. Bug #8228 r=bryner 2000-07-02 18:44:42 +00:00
cls%seawood.org e1e6c5760f Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
kmcclusk%netscape.com b9815aff40 Nested divs with overflow now correctly position their child divs which have negative translations (patch from Robert O'Callahan) b=41153 r=attinasi@netscape.com tested on WIN32, Linux 2000-06-23 00:27:12 +00:00
pinkerton%netscape.com ee612cb05b Add drag auto-scrolling to trees. bug#28226, r=hyatt. 2000-06-22 08:40:37 +00:00
kmcclusk%netscape.com e6ba9c479f Removed clipwidget used by ender-lite widgets. b=35740 r=rods@netscape.com 2000-06-16 22:11:43 +00:00
sspitzer%netscape.com f7da3358e6 workaround for smoketest blocker #42686
now we assert and gracefully continue, instead of crashing.
I'll go give this bug to a better owner.  a=brade, r=mscott
2000-06-15 21:20:19 +00:00
bryner%uiuc.edu 8258dead08 Fix bug 41270 - problems with the bounds checks for nsScrollingView. This
was causing mousewheel scrolling to "wrap around" in list boxes. r=pavlov.
2000-06-05 21:57:44 +00:00
mjudge%netscape.com ec271241d9 this was supposed to be checked in for someones pdt+ bug. this alters the view's destructor to remove itself from the viewmanagers mouse capture code. r= hyatt the bug had to do with OnClick on a view causing a web page reload. this became a must fix when joki checked in his event changes. 2000-06-01 00:38:57 +00:00
evaughan%netscape.com 4ab93afb2e fix for [beta2] bugs:
37835
39085
32920

-r pinkerton, rods, hyatt
2000-05-26 06:42:29 +00:00
sfraser%netscape.com 5dc891f626 Remove linkage with NetworkModular.shlb 2000-05-17 07:16:17 +00:00
pavlov%netscape.com 0c75802384 changes all usages of NS_NewTimer to CreateInstance 2000-05-17 02:49:35 +00:00
joki%netscape.com b2e873d830 Updating mozilla to DOM Level 2 events support. Fixes for bug 34722, 35378, 8411, 10330, plus some others that weren't filed. 2000-05-16 11:35:12 +00:00
mjudge%netscape.com 5b5583ec0a debug code for myself 2000-05-14 03:44:17 +00:00
kmcclusk%netscape.com f0ee8f96b4 Allow global offscreen to size bigger than a screen without creating a new offscreen each time and asserting. b=38847 r=rods@netscape.com tested=WIN32,Linux Removed compiler warnings in nsViewManager2 2000-05-10 22:45:33 +00:00
anthonyd%netscape.com 99457ba207 review: kmcclusk, mjudge
fix for invalid rootWidget in nsViewManager::GetWidgetBounds
2000-04-26 00:53:31 +00:00
evaughan%netscape.com d16b7355c7 1) StyleChange coelescing
2) Warning fixes
3) Table fixes
2000-04-25 07:10:48 +00:00
troy%netscape.com 8b0eb04e08 Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem
2000-04-25 04:43:11 +00:00
putterman%netscape.com 96f16854ec backing out troy's changes to fix various ui not working blocker bugs. 2000-04-24 22:05:39 +00:00
troy%netscape.com 73fc3dde30 Changes to bring clipping inline with upcoming CSS2 errata 2000-04-23 00:56:16 +00:00
kmcclusk%netscape.com 464132e50a Offscreen drawing surface now shrinks and expands in discrete increments of the screen size. b=20741 r=rods@netscape.com. tested on WIN32, Mac, Linux
Applied second half of patch to prevent invisible views from being painted (patch from Tomi.Leppikangas@oulu.fi) b=34466 r=rods@netscape tested on WIN32, Mac, Linux
2000-04-21 23:02:02 +00:00
kmcclusk%netscape.com fb31d1a466 Clip now applies to child views. b=11660 r=buster@netscape.com
Prevent the invalidation of hidden views (1/2 patch from <Tomi.Leppikangas@oulu.fi> b=34466 r=buster@netscape.com
Prevent ViewManager1 from getting into endless loops (patch from <jst@citec.fi> b=25336 r=buster@netscape.com
tested=WINNT, Linux, Mac
2000-04-13 21:56:27 +00:00
evaughan%netscape.com f03ff8d62c Grid fixes.
Memory leak fixes.
box cleanup.

-a ftang
2000-04-11 23:55:15 +00:00
cls%seawood.org b1f0544a6d Ugh, forgot another EXTRA_DSO_LIBS. 2000-04-04 11:06:30 +00:00
cls%seawood.org 372343f97f Fix for EXTRA_DSO_LIBS in rules.mk
OS/2 Makefile.in changes (Patch 4a).  Bug #34106
2000-04-04 07:37:50 +00:00
putterman%netscape.com 374e79203e fix for bugs 34303, 34301, 34296. a=leaf. r=evaughan. 2000-04-03 21:30:09 +00:00
evaughan%netscape.com b5b67ff285 Turned on widget move coelescing in view manager.
-r troy, kevin m
2000-04-03 04:57:42 +00:00
evaughan%netscape.com 36425cfe40 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
2000-04-03 03:55:38 +00:00
beard%netscape.com 79885a762f bug #33219: blendRect was incorrect, damageRect is sufficient. r=pavlov 2000-03-29 00:58:11 +00:00
kmcclusk%netscape.com a164aa00bf Added MOZ_PERF timer code to viewmanager to time rendering b=29308 r=attanasi@netscape.com 2000-03-27 22:00:19 +00:00
beard%netscape.com d350826a44 bug #33091, be more conservative about blend buffer dimensions, r=kmcclusk 2000-03-24 21:35:07 +00:00
kmcclusk%netscape.com 4fcfd42b15 Added capability to view manager to offset its coordinate space b=32161 r=attanasi@netscape.com 2000-03-23 23:49:18 +00:00
dbaron%fas.harvard.edu fd5dc605d2 Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161. 2000-03-22 02:43:08 +00:00
kmcclusk%netscape.com 8a4e27edea Initialize the result value in nsViewManager::SetFrameRate b=32381 r=rods@netscape.com 2000-03-21 21:47:50 +00:00
kmcclusk%netscape.com 21a6371d36 #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
2000-03-17 22:27:26 +00:00
beard%netscape.com 5fe9a8c26e bug 25050, fix incorrect usage of mPainting variable. r=jband 2000-03-16 22:55:42 +00:00
dcone%netscape.com 6aef4d77aa Support for Blending added. r=beard 2000-03-16 05:05:12 +00:00
kmcclusk%netscape.com 229a971907 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.
2000-03-15 01:20:07 +00:00
mkaply%us.ibm.com 3e11163089 # 25555
r= beard@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-02-29 22:07:34 +00:00
beard%netscape.com 8bb41a82a3 bug 20185 [PDT+], landing nsViewManager2, r=sfraser 2000-02-16 05:52:44 +00:00
beard%netscape.com b04083c75e bug 25336, fixes incorrect usage of unsigned integer causing an infinite loop, r=jst@citec.fi (he originated the patch). 2000-02-15 22:11:31 +00:00
kmcclusk%netscape.com 4d12d19a42 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
2000-02-09 15:48:01 +00:00
beard%netscape.com 4171449e71 added blending logic 2000-02-09 02:53:09 +00:00
beard%netscape.com d5b6fe133f OptimizeDisplayList() changes. 2000-02-08 03:05:00 +00:00
scc%netscape.com 5e041e830f Pro5 update 2000-02-07 23:06:04 +00:00
beard%netscape.com 14557e7e19 removed unused enums, turned double buffering back on, added test for opaque views that occlude other views. r=pavlov 2000-02-05 04:13:29 +00:00
beard%netscape.com a68ee30490 changed test of mClip from (left == right) && (top == bottom) to (left == 0) && (right == 0) && (top == 0) && (bottom == 0). Added test for empty clip rect, to avoid painting. Added an assert to make sure mClip is set to reasonable values. r=pavlov 2000-02-05 04:11:55 +00:00
beard%netscape.com aa3e59a88c made using nsViewManager2 depend on the preference "nglayout.view.useViewManager2". r=pavlov, kmcclusk 2000-02-05 03:02:10 +00:00
brade%netscape.com b174bf571d fix access paths for move to CW5 (bug #25949) 2000-02-02 22:45:39 +00:00
beard%netscape.com 856295af2a added IsClipView() predicate, preliminary support for the new front-to-back display list partitioner. 2000-02-02 01:00:23 +00:00
beard%netscape.com 1e3fbe74f7 added Set/GetCompositorFlags(), which will eventually replace GetScratchPoint(). 2000-02-02 00:58:22 +00:00
waterson%netscape.com dc8e227e93 Undo the optimization: it breaks the addressing widget :-(. 2000-02-01 08:13:12 +00:00
waterson%netscape.com f20d35770f 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 2000-02-01 01:14:49 +00:00
jdunn%netscape.com c895e4df41 changing static_cast to use NS_STATIC_CAST instead... 2000-01-31 15:37:51 +00:00
dbaron%fas.harvard.edu 5f259d3cf0 Fix bug 16200 (mostly) for both GFX and native scrollbars by rounding scroll requests to the nearest pixel and, from then on, only using that rounded value. Previously, disagreements (of a fraction of a pixel) between what was on the screen and what was supposed to be there caused rounding problems (particularly at less common logical resolutions). There is a chance this may not be necessary in the future, because transform changes may fix this.
r=dcone
2000-01-31 02:44:10 +00:00
kmcclusk%netscape.com 06e11f665b Added missing nsIViewManager methods to nsViewManager2.h and nsViewManger2.cpp.
bug=22069; r=attinasi@netscape.com
2000-01-27 02:23:34 +00:00
kmcclusk%netscape.com dc23d344e1 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
2000-01-26 23:04:40 +00:00
beard%netscape.com 84cbca2516 floating views. bug=21966, r=troy, rods, a=brendan 2000-01-25 01:53:34 +00:00
dougt%netscape.com fd69a2f423 Landing nsIFile. 2000-01-24 21:28:28 +00:00
michael.lowe%bigfoot.com 3326c2959e Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan 2000-01-21 21:56:09 +00:00
beard%netscape.com 3363634a2a USE_NEW_COMPOSITOR=1 for M13. r=vidur,troy a=jar 2000-01-21 02:06:22 +00:00
joki%netscape.com 21ac95443d Fix bug 24310 by backing out fix for 21304. a:chofmann 2000-01-19 22:34:47 +00:00
joki%netscape.com 5748dae41f fix bug 21304, hidden views stealing events. r:rods 2000-01-18 15:15:23 +00:00
beard%netscape.com 748854756f turned on usage of nsViewManager2, which seems to fix some important bugs on linux, such as #20185, and definitely #21405. r=pavlov 2000-01-17 00:52:39 +00:00
pavlov%netscape.com 4dda122dc2 build nsViewManager2.cpp on windows r=beard 2000-01-17 00:45:51 +00:00
pavlov%netscape.com 56b54c8278 build nsViewManager.cpp on linux r=beard 2000-01-17 00:43:57 +00:00
beard%netscape.com 42b28829ee cleaned up, removed NSGetFactory, added conditional usage of nsViewManager2, which will be turned on soon. r=pavlov 2000-01-17 00:43:36 +00:00
beard%netscape.com 7a05acf32d forward declaring nsIViewManager rather than including nsViewManager.h. r=pavlov 2000-01-17 00:43:02 +00:00
beard%netscape.com 9b5e1df359 Added nsViewManager2.cpp. r=sfraser 2000-01-16 23:08:50 +00:00
beard%netscape.com 22cd0091f5 Simple back to front compositor. 2000-01-16 22:28:28 +00:00
pp%ludusdesign.com 13efd9e8c6 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
rods%netscape.com 3fbe4a0a4c edge case PR_MAx should be against the insets sizes instead of zero
r=kmcclusk
1999-12-22 19:55:20 +00:00
ftang%netscape.com 1986cf104e 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 1999-12-22 07:56:40 +00:00
rods%netscape.com ccd12d79ec temprary fix for combobox dropdowns that jump all around.
r=beard a=chofmann bug 19416
1999-12-14 22:21:58 +00:00
evaughan%netscape.com 183d6249cf 1) created an nsIScrollableFrame interface make it possible for Chris K to fix PDP+ bug #12122
-r Troy
1999-12-07 03:36:05 +00:00
ftang%netscape.com 723af171cd 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 1999-12-07 01:29:00 +00:00
beard%netscape.com 93ef49ad08 bug #20504: fix crash when printing. r=joki 1999-12-02 05:13:56 +00:00
beard%netscape.com 53edb43c8a 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 1999-12-01 22:58:24 +00:00
beard%netscape.com ad651ca768 bug #13131, 18140: now accumulating paint requests into a region for each view that has a widget. r=pavlov 1999-11-30 22:27:56 +00:00
tbogard%aol.net 981b300078 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. 1999-11-24 06:03:10 +00:00
evaughan%netscape.com 5e417d8e52 Turned gfx scrollbars on by default. -r Mcaffe 1999-11-24 00:21:12 +00:00
kmcclusk%netscape.com 127fdb69dc Removed build warning in nsCornerView::Paint on Linux by overriding both overloaded Paints. r=buster@netscape.com 1999-11-22 21:11:46 +00:00
kin%netscape.com 655697a251 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
1999-11-18 19:40:52 +00:00
jdunn%netscape.com d70d78c6bf Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
beard%netscape.com 370a7248a4 partial reversion of view manager, to fix XP menu breakage on windows. 1999-11-14 05:47:00 +00:00
beard%netscape.com 30b8de3922 fix VC5 bustage, needed to add const qualifiers to GetWidgetView, ViewToWidget. 1999-11-14 03:53:51 +00:00
beard%netscape.com 54792d43d1 pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov 1999-11-14 02:51:25 +00:00
beard%netscape.com 10d0ac23b1 update just a touch more when resizing views. bug=17574, r=pavlov, a=chofmann 1999-11-08 04:06:59 +00:00
dmose%mozilla.org 42fc94a6ec updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
waterson%netscape.com f7d43ca50e Don't enable drag & drop on scrollbars. r=pink,hyatt 1999-11-02 21:03:46 +00:00
ramiro%fateware.com 233d11ef1a Link in raptorgfx dynamically to make the component properly loadable.
regxpcom was breaking on this one.  r=valeski
1999-10-22 05:06:39 +00:00
kin%netscape.com 2c6c5d65d1 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
mcafee%netscape.com 14b531cbd4 Better warning messages. r=pavlov. 1999-10-14 23:13:39 +00:00
waterson%netscape.com 5b02bdb168 Add nsScrollPortView.cpp to the build to get around undefined symbols at startup: looks like it got missed on Unix. 1999-10-12 04:41:07 +00:00
waterson%netscape.com ab20f5e245 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 02:10:08 +00:00
evaughan%netscape.com b460bf4aee added files: mozilla/view/src/nsScrollPortView.cpp 1999-10-12 00:16:34 +00:00
evaughan%netscape.com dd8734ed83 Integrated Gfx scrollbars. 1999-10-12 00:16:06 +00:00
dveditz%netscape.com 2b60c91417 Fixing 8.3 library name problems, bugs 10355, 10359,10364, 10365, 10372, 11796, 11791. Checking in for cathleen, r=dveditz 1999-10-10 01:32:59 +00:00
kipp%netscape.com b0dcc883f8 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
warren%netscape.com b90a06a288 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
kipp%netscape.com 24c5713f26 r=beard; Added in ctor/dtor counting 1999-10-05 14:52:53 +00:00
beard%netscape.com b547c2ffb0 changed from directly using "MSL DropInRuntime.Lib" to using "NSComponentStartup.o" to enable GC leak detector. r=smfr 1999-10-03 20:46:23 +00:00
peterl%netscape.com 0f9d0ccbd8 when hiding a view, invalidate the parent view since the hidden view will reject the invalidate 1999-09-29 03:29:21 +00:00
pinkerton%netscape.com 59dd7211e2 don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf. 1999-09-28 21:23:32 +00:00
pavlov%netscape.com 4046eb39d0 work to get drawing done based on regions and not rects a=shaver r=beard 1999-09-28 01:28:03 +00:00
dp%netscape.com 16d7fef8e3 raptorview into component 1999-09-28 00:58:35 +00:00
dp%netscape.com 6367598dad raptorview into component 1999-09-28 00:52:36 +00:00
dp%netscape.com c5202d45c3 Converting ViewFactory to nsIModule. 1999-09-27 23:55:05 +00:00
beard%netscape.com 2e2cfcbf8b leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr. 1999-09-27 17:48:33 +00:00
beard%netscape.com d24347f48f bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy 1999-09-23 23:26:57 +00:00
beard%netscape.com ea8c38f83a bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. bug# 14601: assertion cleanup, using #ifdef instead of if (gsDebug). a=leaf, r=troy 1999-09-23 23:26:55 +00:00
beard%netscape.com 470c87ef61 bug #7774: added new bit NS_VIEW_PUBLIC_FLAG_AUTO_ZINDEX, SetAutoZIndex/GetAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy 1999-09-23 23:26:54 +00:00
beard%netscape.com bc1b64915f bug #10503: override SetZIndex to propagate to child views. a=leaf, r=troy 1999-09-23 23:26:49 +00:00
beard%netscape.com b7379dd39c bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. a=leaf, r=troy 1999-09-23 23:26:47 +00:00
joki%netscape.com f3b8c1d1a2 Add new scroll method to allow scrolling to top or bottom of doc. 1999-09-21 14:15:53 +00:00
beard%netscape.com 6bb85f6f32 bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. 1999-09-19 00:51:41 +00:00
beard%netscape.com c86d588ad3 nsIScrollPositionListener support. 1999-09-18 04:42:11 +00:00
beard%netscape.com 09f6f6f97b Added nsIScrollPositionListener.h 1999-09-18 04:39:03 +00:00
beard%netscape.com 012a57794d First Checked In. 1999-09-18 04:34:49 +00:00
warren%netscape.com 632bd04454 Added missing rv initialization which was causing the component manager to fail under purify. Submitted bug #14130 to dp about the component manager problem. 1999-09-17 07:09:42 +00:00
briano%netscape.com e879c25e61 General cleanup. 1999-09-15 23:36:43 +00:00
kin%netscape.com 24ca45d86b 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.
1999-09-15 20:39:03 +00:00
kin%netscape.com ac18692ee6 Fix for bug #13440: Repaint problems when typing at the end of a document.
- modified nsScrollingView::ComputeScrollOffsets()
    so that it doesn't change the scrolled offsets
    just because the document size changed.
1999-09-15 20:38:53 +00:00
ramiro%netscape.com 26dd94b010 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
danm%netscape.com 27f5dbe488 reorder treatment of refcount during release. fixes bug 13556 1999-09-15 00:15:25 +00:00
beard%netscape.com 05f7f9f084 using generic factory for nsViewManager creation, removed extraneous calls to AddRef/Release of created views. 1999-09-13 03:34:56 +00:00
beard%netscape.com 6c8a1fae2a switched to NS_DEFINE_STATIC_IID_ACCESSOR 1999-09-13 03:04:17 +00:00
beard%netscape.com 798ac3c3f0 switched to NS_DEFINE_STATIC_IID_ACCESSOR, removed extraneous AddRef, Release declarations. 1999-09-13 03:03:42 +00:00
colin%theblakes.com 664183dfa7 Define EXTRA_DSO_LDOPTS as MOZ_TIMER_LIBS 1999-09-12 12:45:00 +00:00
beard%netscape.com 3f05013bc0 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(). 1999-09-12 03:27:14 +00:00
beard%netscape.com 6fb5b09fa1 switched to NS_GET_IID() where possible. fixed clipping bugs by making all widgets clip children and siblings. 1999-09-12 03:24:01 +00:00
beard%netscape.com 6752845fdb switched to NS_GET_IID() where possible. 1999-09-12 03:23:09 +00:00
beard%netscape.com d6fd62541c cleaned up CreateInstance to not use delete on interface pointers. Modernized implementation using NS_IMPL_ISUPPORTS1. 1999-09-12 03:22:29 +00:00
colin%theblakes.com 524f7f0188 Back out last change 1999-09-09 14:30:25 +00:00
colin%theblakes.com d00740719c Define EXTRA_DSO_LDOPTS as MOZ_TIMER_LIBS 1999-09-09 12:58:39 +00:00
beard%netscape.com 2e6af96bc5 bug #10261: fix for dropping calls to UpdateView, also now correctly handles calls to UpdateView(nsIView*, nsIRegion*, ...) with non-null nsIRegion*. 1999-09-03 02:27:40 +00:00
briano%netscape.com 64f859af0e Cleaned it up and eliminated the pointless #!gmake. 1999-09-02 00:30:07 +00:00
beard%netscape.com 4004be4f34 removed min/max 1999-09-01 23:16:28 +00:00
beard%netscape.com f2dcf61606 bug #10715: rewrote nsViewManager::ResizeView() to correctly invalidate newly exposed/resized view. Assumes layout properly invalidates internal area. 1999-09-01 04:53:55 +00:00
cyeh%netscape.com df37c0fb33 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:24:51 +00:00
tague%netscape.com d22744e0e1 Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX. 1999-08-31 01:20:32 +00:00
beard%netscape.com 102254690f Changed GetIID() to NS_DEFINE_STATIC_IID_ACCESSOR. 1999-08-28 03:01:32 +00:00
beard%netscape.com c3cb192148 removed USE_DISPLAY_LIST_ELEMENTS #ifdefs. 1999-08-27 04:02:55 +00:00
rods%netscape.com d222c86771 The method nsIView::CreateView has parameter that indicates whether D&D for the widget
should be turned on or not. This make it configurable from the outside,
it is needed for the editor
1999-08-26 14:41:18 +00:00
leaf%mozilla.org 2c18bbf874 Backing out change. 1999-08-24 00:23:00 +00:00
ramiro%netscape.com 514a651481 Fix for the rendering problem on unix after the NS_COPYBITS_TO_BACK_BUFFER
cleanup.
1999-08-22 13:54:41 +00:00
beard%netscape.com effcff9469 removed static library targets (view.o, viewDebug.o) 1999-08-21 22:13:21 +00:00
kmcclusk%netscape.com 0d24534039 nsViewManager :: Refresh
Created explicit pointers to offscreen and onscreen rendering contexts.
Stop passing NS_COPYBITS_TO_BACK_BUFFER flag.
1999-08-20 22:48:56 +00:00
evaughan%netscape.com e7ce4e691c xpscrollbars 1999-08-19 22:16:23 +00:00
troy%netscape.com 4be6afc2f7 Changed Paint() to leave the clip rect relative to the view's origin (and
not translate by the view's x and y-offset), because the view manager has already
translated into the view's local coodinate space before calling Paint()
1999-08-10 23:52:36 +00:00
kmcclusk%netscape.com 0f369ed7d3 Added code to prevent negative values from being passed to nsIWidget::Resize. 1999-08-10 22:20:53 +00:00
sfraser%netscape.com 99bb41007d Zero out the return value from QI in case of failure. 1999-08-10 00:56:40 +00:00
tague%netscape.com 877c563c5d Added support for mapping the reply of a textevent (i18n input support) back into platform coordinate space 1999-08-09 03:56:03 +00:00
beard%netscape.com ac2ef94299 display list elements, ShowDisplayList() method. 1999-08-02 03:16:55 +00:00
beard%netscape.com 8a8ffe2582 bug #10460: now handling negative z-index 1999-08-02 02:43:24 +00:00
hyatt%netscape.com 495ec505eb 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.
1999-08-01 18:44:24 +00:00
beard%netscape.com 6b9a746b68 turned off negative zindex check to see if it fixes XP menus. 1999-08-01 18:18:42 +00:00
beard%netscape.com 2222402457 Simplified CreateDisplayList() by removing startup conditions. Broke out display list printing code into separate method ShowDisplayList(). 1999-07-31 03:05:37 +00:00
beard%netscape.com 93673ee850 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. 1999-07-31 03:05:32 +00:00
pavlov%netscape.com c4c8efa098 don't do anything if SetDimentions is called with the same width and height.
approved by hyatt
1999-07-27 04:37:35 +00:00
rickg%netscape.com afd32f8e15 removed two warnings from GFX library that sparky isn't likely to fix 1999-07-26 02:22:09 +00:00
briano%netscape.com f9a8f2906a Fixed the logic and cleaned it up. 1999-07-19 23:15:25 +00:00
sspitzer%netscape.com b9424eb9cd hail mary bulletproofing fix for #10035 1999-07-19 19:57:30 +00:00
ramiro%netscape.com fecd737d22 Landing timer move on windows. 1999-07-17 15:52:01 +00:00
sspitzer%netscape.com 5a068b9fc6 fix warnings. 1999-07-03 00:25:42 +00:00
dveditz%netscape.com 4c4f269dd4 nakefile cleanups 1999-07-02 13:42:17 +00:00
rods%netscape.com 3a974c03d6 Removed drawing optimization because it causes flicker. 1999-07-01 20:44:05 +00:00
warren%netscape.com 6fc20cbcd6 More necko changes. 1999-06-25 01:53:22 +00:00
buster%netscape.com f77050318c added GetIID static methods to public interfaces. Code-reviewed by Kevin M. 1999-06-24 22:40:53 +00:00
dp%netscape.com 870873d855 Adding access paths to system header files due to new header dependency nsIComponentManager.h -> nsIFileSpec.h -[YUCK]-> nsFileSpec.h -> Files.h 1999-06-22 14:27:38 +00:00
pierre%netscape.com 032fed06b2 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. 1999-06-17 04:01:50 +00:00
joki%netscape.com b63a729e33 Fixing event coordinates to give screen based info. Also fixing direct reference to frames via their names. 1999-06-09 07:38:26 +00:00
bruce%cybersight.com 5e11e92ea9 Explicitly include prinrval.h here. (This will make be needed for some changes coming shortly after M7.) 1999-06-05 11:29:03 +00:00
mcmullen%netscape.com f4bd7dc337 Removed obsolete base.shlb/baseDebug.shlb 1999-05-27 21:40:58 +00:00
kin%netscape.com 5548735176 Added implementation of BeginUpdateViewBatch() and
EndUpdateViewBatch() to nsIViewManager and nsViewManager.
1999-05-26 21:13:06 +00:00
dp%netscape.com 0443b20e33 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
beard%netscape.com 7dc9041166 bugs #5062, #4703: have to create per view manager rendering contexts, even when the shared drawing surfaces are already big enough. a=chofmann 1999-05-19 23:23:47 +00:00
evaughan%netscape.com 2b76d2dc93 Fixed some visibility bugs in order to make the tab widget work correctly. 1999-05-19 22:14:11 +00:00
beard%netscape.com 1f6a97cdcb bug #5093: removed redundant calls to nsWidget::Invalidate(), fixed in nsScrollbar.cpp instead. 1999-05-18 21:45:46 +00:00
pierre%netscape.com e773b9ea97 Check mRootView in RenderViews to fix a crash with Photon. Patch from Jerry.Kirk@Nexwarecorp.com. 1999-05-18 14:37:57 +00:00
pierre%netscape.com e404475eb5 #5949 "Frequent resizing of window causes apprunner to stop drawing" 1999-05-18 13:14:46 +00:00
beard%netscape.com f7b9483a32 bug #5093: added widget->Invalidate() calls after changing the position of scrollbar thumb. It may be more appropriate to fix this in nsScrollbar.cpp 1999-05-17 19:40:40 +00:00
bruce%cybersight.com 5d5155d733 Fix ANSI C++ violation. (a=beard) 1999-05-15 22:53:57 +00:00
pollmann%netscape.com c3b9de36a8 Bug 5746: Check for null. 1999-05-15 01:36:39 +00:00
danm%netscape.com d24a43a3f4 HandleEvent holds onto the view's ViewObserver for the life of the method. Prevents early deletion of the view in some cases. Part of bug 5844. 1999-05-04 23:23:35 +00:00
joki%netscape.com 91c2b2ba1f Adding scrolling fixes to fix bug #3999, A: chofmann 1999-04-30 19:38:39 +00:00
kipp%netscape.com ccb405d714 Do not update views when refresh is disable 1999-04-30 00:09:04 +00:00
pierre%netscape.com 13b9034d6f fixed the display of some missing views on Mac (like the CornerView) 1999-04-27 05:34:05 +00:00
troy%netscape.com 6de54225e5 Removed #define ALL_VIEW_FLAGS which is no longer used 1999-04-24 22:58:14 +00:00
troy%netscape.com 2473482f28 Changed Scroll() to check if the scrolled view has the
NS_VIEW_PUBLIC_FLAG_DONT_BITBLT flag set
1999-04-24 22:49:28 +00:00
troy%netscape.com c1987aeb49 Added function GetClipView() 1999-04-24 02:52:58 +00:00
kipp%netscape.com 9254569a95 Removed obsolete include file 1999-04-23 19:52:36 +00:00
troy%netscape.com d279c12ec4 Made a bunch of nsIView member functions "const" 1999-04-23 17:44:48 +00:00
troy%netscape.com 2acb6b4e38 Changed a comment a little 1999-04-21 21:22:22 +00:00
troy%netscape.com be7c4f5b18 Added NS_VIEW_FLAG_DONT_BITBLT flag 1999-04-21 21:08:27 +00:00
pierre%netscape.com d19eff3089 expands the width and height independently from each other in GetDrawingSurface 1999-04-20 04:03:25 +00:00
kipp%netscape.com 38cee10456 Dump refcnts when listing views 1999-04-19 23:22:53 +00:00
kipp%netscape.com 3addd96216 Added a missing NS_RELEASE 1999-04-19 23:22:32 +00:00
michaelp%netscape.com 710117681b a parting shot. 1999-04-16 21:22:45 +00:00
michaelp%netscape.com 75ba17665d we no longer recurse into clip views. shoot me troy. so long folks. 1999-04-16 19:53:53 +00:00
kmcclusk%netscape.com db9cff3749 fix for bug#4325. ScrollingView's now manage their component's (mClipView, mHScrollBarView,
mVScrollBarView, mCornerView) visibility when the ScrollingView's visibility changes.
1999-04-16 19:18:30 +00:00
michaelp%netscape.com bb5128d844 oops. union works better than intersect... 1999-04-16 05:19:45 +00:00
michaelp%netscape.com 8a29649a56 added GetExtents(). 1999-04-16 04:50:02 +00:00
michaelp%netscape.com bda045ca40 cleaned up view flags stuff. 1999-04-16 04:23:43 +00:00
kipp%netscape.com 385b1f4293 Backed out yesterdays change as it broke framesets 1999-04-08 23:18:02 +00:00
kipp%netscape.com ee52f8eb41 Fixed not bother repositioning when coordinates don't change 1999-04-08 00:00:13 +00:00
joki%netscape.com 10e31a105f Adding spacebar to list of keys that will scroll page. 1999-04-06 21:37:34 +00:00
michaelp%netscape.com f73e02a9d0 enabling new compositor. 1999-04-05 22:45:32 +00:00
kipp%netscape.com e8646e33a2 Make SetWidget assertion more particular about when to bomb 1999-04-03 19:01:15 +00:00
kipp%netscape.com b87b244e39 Removed some compiler warnings... 1999-04-03 19:00:56 +00:00
troy%netscape.com 86e1f2ed4f Fix for bug #4317. Changed SetPosition() to call AdjustChildWidgets() with
"this" as the second parameter instead of the scrolled view
1999-03-28 05:25:07 +00:00
michaelp%netscape.com 3999fe2688 added Set/GetLineHeight(). 1999-03-20 01:25:37 +00:00
michaelp%netscape.com 0876709514 ScrollTo() now blits wherever possible. 1999-03-20 00:47:08 +00:00
michaelp%netscape.com 59c8f9b691 added APIs for scrolling by page or line. 1999-03-20 00:11:35 +00:00
michaelp%netscape.com a536bf85ef fixed bug where out of order computation of child view positions and scroll
offsets in layout, widgets could be in different places than their views.
made nsView::List() print out all units in app units.
1999-03-18 21:04:00 +00:00
michaelp%netscape.com 1980bf33d4 made compositor state an enum and macro to trace state transitions
for easier debugging. made offscreen to onscreen blit restricted to the
damage rect. added temporary hack so that new compositor works on linux.
1999-03-11 21:25:25 +00:00
michaelp%netscape.com 0e12b10231 fixed bug in underflow of state push count in new compositor. 1999-03-10 05:31:27 +00:00
michaelp%netscape.com d59a66c386 added nsIClipView.h
added support for getting/setting scroll properties in scrollable view so
that the app can control whether scrolling should be accomplished via
blitting or painting.
more work in progress for the new compositor.
1999-03-09 22:10:31 +00:00
warren%netscape.com c50687b845 nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
rods%netscape.com 2d8d9dd7ba Aded check for null parent to fix printing 1999-03-05 20:14:05 +00:00
rods%netscape.com 3fe47219f1 Added where a scrolled view sets the widget for the vertical scrollbar
into the window so the window can send the vertical scrollbar the appropriate
message.
1999-03-05 15:41:50 +00:00
michaelp%netscape.com bad7100d33 added return code check WRT off screen surface allocation.
part of mac fixes.
1999-03-05 01:43:06 +00:00
joki%netscape.com efafc46414 Fix for frames not resizing. 1999-03-03 01:59:50 +00:00
kmcclusk%netscape.com 52afc44421 gfx vs native widget rendering can now be specified in the viewer at run-time.
Added methods to GetWidgetRenderingMode and SetWidgetRenderingMode in nsPresContext
Removed NS_GFX_RENDER_FORM_ELEMENTS define, now it uses the GetWidgetRenderingMode
method on the rendering context.
Resurrected Rod's listbox frame-based widget code.
Added -moz-option-selected pseudo attribute to control the appearance of selected items for the listbox frame-based widget.
Added a style rule with attribute selector for -moz-option-selected to the ua.css style sheet.
Modifed nsView::SetVFlags to do a bitwise or instead of bitwise and to set flags.
Modified nsView::HandleEvent to compare mVFlags with NS_VIEW_FLAG_DONT_CHECK_CHILDREN
1999-03-02 22:43:26 +00:00