79 Commits

Author SHA1 Message Date
michaelp%netscape.com
9548d7fa85 work in progress for new compositor. not currently enabled, so it won't
affect anyone else. killed Paint() method of scrolling view since it
no longer does anything useful. made view manager destructor protected to
eliminate gcc warnings.


git-svn-id: svn://10.0.0.236/trunk@19406 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:12:21 +00:00
joki%netscape.com
f85ee98763 Modifying view event flow to always start processing from top view, not enter at children
git-svn-id: svn://10.0.0.236/trunk@19215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:45:59 +00:00
michaelp%netscape.com
a1dbc02252 when a clip is specified for a view, the clip now only affects the
view for which it is specified, not any of it's children or other
views stacked "behind" it.


git-svn-id: svn://10.0.0.236/trunk@17871 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 22:11:46 +00:00
sfraser%netscape.com
c1c7c84e7d Fix for 2161 -- if nsView::GetViewFor() is called with a null widget, just return a null view.
git-svn-id: svn://10.0.0.236/trunk@17388 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 21:31:56 +00:00
sfraser%netscape.com
e324dbae1d Assert on a null widget Ptr
git-svn-id: svn://10.0.0.236/trunk@16488 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:37:56 +00:00
michaelp%netscape.com
3fbc2c9f07 updated for new blending API.
git-svn-id: svn://10.0.0.236/trunk@15491 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 02:16:14 +00:00
michaelp%netscape.com
6ca45d2e06 backout changes i didn't want to commit.
git-svn-id: svn://10.0.0.236/trunk@15195 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:50:17 +00:00
michaelp%netscape.com
ddee55a0ed fixed display of black or garbage when resizing scrolled scrollingviews.
git-svn-id: svn://10.0.0.236/trunk@15194 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:43:08 +00:00
michaelp%netscape.com
e0cadc24c9 fixed bug where a view with opacity set to 0.0f would cause the area where it
is to never be drawn.


git-svn-id: svn://10.0.0.236/trunk@14910 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:50:28 +00:00
michaelp%netscape.com
1f112558cd changes to support printing.
git-svn-id: svn://10.0.0.236/trunk@14649 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:58:34 +00:00
rods%netscape.com
f3596d389e Made changes for GetBounds to GetClientBounds conversion
git-svn-id: svn://10.0.0.236/trunk@14104 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 21:46:00 +00:00
dcone%netscape.com
6b177d62cb have a new interface for the blends init
git-svn-id: svn://10.0.0.236/trunk@14082 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 17:34:19 +00:00
michaelp%netscape.com
43acfe6cc5 removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to
nsIScrollableView.


git-svn-id: svn://10.0.0.236/trunk@14036 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 04:14:10 +00:00
michaelp%netscape.com
fd21a37d46 changed nsIView::Init() so that it no longer takes an opacity value. this
allows the view manager to maintain global state re: opacity.


git-svn-id: svn://10.0.0.236/trunk@13955 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 06:36:36 +00:00
michaelp%netscape.com
29bd495725 changes to support nsIRenderingContext that conforms to COM conventions.
git-svn-id: svn://10.0.0.236/trunk@13703 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 02:08:25 +00:00
troy%netscape.com
74701acb12 Commented out some code in Init() that was causing problems for the scrolling
view code


git-svn-id: svn://10.0.0.236/trunk@13550 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-27 05:57:18 +00:00
michaelp%netscape.com
331c0397cf removed zindex from nsIView::Init().
git-svn-id: svn://10.0.0.236/trunk@13541 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-27 03:36:49 +00:00
michaelp%netscape.com
27d276091a added suport for alpha blending of views.
git-svn-id: svn://10.0.0.236/trunk@13384 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-23 17:58:44 +00:00
troy%netscape.com
e2209a9a18 Changed scrolling view to use a clip view and to slide the scrolled
view up and down rather than maintain a logical scrolled offset


git-svn-id: svn://10.0.0.236/trunk@13080 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-19 00:44:28 +00:00
troy%netscape.com
35c48dd63c Changed it so that we have a dirty region per view with a widget rather
than having just one dirty region. Also changed it so that we stop painting
when we get to a view that has a widget


git-svn-id: svn://10.0.0.236/trunk@12865 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-15 04:55:21 +00:00
michaelp%netscape.com
75b9d4a08c fixed troys' bug with scrolling frames. was actually not related to that, just
tickled a bug in the new compositor code.


git-svn-id: svn://10.0.0.236/trunk@12734 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-13 21:27:11 +00:00
michaelp%netscape.com
a532925345 two pass compositing now works.
git-svn-id: svn://10.0.0.236/trunk@12536 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-11 01:00:59 +00:00
kipp%netscape.com
98c2ef3acc Dump client-data too
git-svn-id: svn://10.0.0.236/trunk@11160 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-26 17:39:54 +00:00
warren%netscape.com
d623edaca1 Renamed NSRepository to nsRepository.
git-svn-id: svn://10.0.0.236/trunk@8922 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-01 00:26:28 +00:00
kostello%netscape.com
142620bced These changes match the Windows/Unix changes to methods to take a parameter instead of returning a value.
git-svn-id: svn://10.0.0.236/trunk@8876 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-31 19:09:55 +00:00
troy%netscape.com
fd0d7ccb59 Changes nsIView and nsIScrollableView interfaces to conform to
XPCOM conventions


git-svn-id: svn://10.0.0.236/trunk@8848 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-30 19:16:11 +00:00
troy%netscape.com
e9e900374e Changed nsIViewManager interface to conform to XPCOM conventions
git-svn-id: svn://10.0.0.236/trunk@8681 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 04:56:56 +00:00
michaelp%netscape.com
6702cf7961 changes to support viewobserver and troy's spankage of the device context.
git-svn-id: svn://10.0.0.236/trunk@8676 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-28 03:05:23 +00:00
michaelp%netscape.com
c6b1a0acee killed Set/GetRootWindow() methods in viewmanager. this is now inferred from
the root view. added ability to select painting in view resizing.


git-svn-id: svn://10.0.0.236/trunk@8553 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-26 21:24:58 +00:00
joki%netscape.com
f300c374d7 Moving view selection for event handling into nsViewManager, Adding GrabMouseEvents and GrabKeyEvents
git-svn-id: svn://10.0.0.236/trunk@8181 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 05:35:20 +00:00
michaelp%netscape.com
c340b6115c fixed crash where widgets would return null clientdata because they were going
away, but the view was assuming the clientdata was non-null.


git-svn-id: svn://10.0.0.236/trunk@7892 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 00:03:41 +00:00
michaelp%netscape.com
8eeb4425f1 merged changes from branch.
git-svn-id: svn://10.0.0.236/trunk@7609 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-08 19:21:40 +00:00
troy%netscape.com
06a522099a Change to object lifetime management. Views are no longer ref counted
git-svn-id: svn://10.0.0.236/trunk@7605 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-08 04:23:33 +00:00
pierre%netscape.com
90847ac95f fix build on Windows and Unix
git-svn-id: svn://10.0.0.236/trunk@7357 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 09:02:52 +00:00
pierre%netscape.com
f7ba479251 fix build on Mac
git-svn-id: svn://10.0.0.236/trunk@7344 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 08:23:13 +00:00
peterl%netscape.com
ac2ec1a340 rounding support
git-svn-id: svn://10.0.0.236/trunk@6999 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 23:34:45 +00:00
scullin%netscape.com
a3a8ac0459 Make widget tests work again, normalize widget api on UNIX and Win, and
add start of platform LAF interface.


git-svn-id: svn://10.0.0.236/trunk@6743 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:47:50 +00:00
michaelp%netscape.com
fa4330329c form elements, etc. (i.e. sub widgets) now scroll smoothly.
git-svn-id: svn://10.0.0.236/trunk@6494 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-26 04:24:42 +00:00
michaelp%netscape.com
d6b827040d re-added optimization with the ability to use it anywhere by setting the
NS_VMREFRESH_AUTO_DOUBLE_BUFFER when calling UpdateView().


git-svn-id: svn://10.0.0.236/trunk@6421 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:49:02 +00:00
michaelp%netscape.com
e54b780b41 backed out change for a moment.
git-svn-id: svn://10.0.0.236/trunk@6420 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:32:02 +00:00
michaelp%netscape.com
62cb870d39 re-added conditional double buffering based on screen area thresholding.
git-svn-id: svn://10.0.0.236/trunk@6419 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:29:47 +00:00
michaelp%netscape.com
b8cc27a234 added APIs to viewmanager to enable and disable all rendering.
made Refresh() APIs of viewmanager implementation private.


git-svn-id: svn://10.0.0.236/trunk@6417 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:05:50 +00:00
michaelp
408d13cd26 killed much hated borders on views...
git-svn-id: svn://10.0.0.236/trunk@5363 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 06:17:09 +00:00
michaelp
c907c2baed when a view is the root, it's position will now always be 0, 0.
git-svn-id: svn://10.0.0.236/trunk@5112 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 21:51:57 +00:00
joki
642b35a5e1 Move scrolling event code into new event handler to keep it out of DOM loop
git-svn-id: svn://10.0.0.236/trunk@4875 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 01:13:09 +00:00
kipp
49464f4fc7 Removed spurious includes of nsIPresShell
git-svn-id: svn://10.0.0.236/trunk@4581 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-26 16:23:48 +00:00
michaelp
c0d17b54f9 added init() method to prescontext.
creator of prescontext is responsible for initializing pres context.
devicecontext is now init()ed with a nsNativeWidget.
removed hacky X Display stuff from device context and font metrics.
removed hacky code from windows font metrics.
changed nsNativeWindow to be nsNativeWidget.
added more code for compositor back-to-front pass.
improved text performance on X.
changed nsHTMLTagContent.cpp so that it will build with MSVC 4.1.


git-svn-id: svn://10.0.0.236/trunk@4472 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-25 04:24:45 +00:00
joki
eedd7b9238 Change order of event handling to go children then view, not view then children.
git-svn-id: svn://10.0.0.236/trunk@4324 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 21:50:30 +00:00
spider
81d3b16346 Support for Optimized GC and Regions in Rendering
git-svn-id: svn://10.0.0.236/trunk@4211 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 07:02:44 +00:00
michaelp
65cd847520 fixed for real. yikes.
git-svn-id: svn://10.0.0.236/trunk@4146 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 17:44:03 +00:00