63 Commits

Author SHA1 Message Date
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
rpotts
656e8a8c9c Made the destructors on some XPCOM objects virtual (and protected) to make sure everything gets cleaned up...
git-svn-id: svn://10.0.0.236/trunk@4315 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 18:44:06 +00:00
michaelp
3dc293a3fe killed debug code.
git-svn-id: svn://10.0.0.236/trunk@4303 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 17:50:19 +00:00
michaelp
c72c6f20c7 made led prettier.
git-svn-id: svn://10.0.0.236/trunk@4302 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 17:47:06 +00:00
michaelp
5e2a441d76 added ability to set behavior of scrollbars in scrollable views.
git-svn-id: svn://10.0.0.236/trunk@4252 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-23 00:53:56 +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
0c5cf13fbb added content quality indicator.
git-svn-id: svn://10.0.0.236/trunk@4203 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-21 01:23: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
spider
5eb2bf4c3b Fix previous runtime bustage by placing XP_UNIX ifdef correctly
git-svn-id: svn://10.0.0.236/trunk@4134 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 05:03:26 +00:00
spider
66cd6e3dd5 Unix fix as per mmp
git-svn-id: svn://10.0.0.236/trunk@4133 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 04:11:01 +00:00
michaelp
103248f21c painting fixes...
git-svn-id: svn://10.0.0.236/trunk@4129 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-19 02:46:25 +00:00
atotic
af6ec95cfa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@3925 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 21:39:13 +00:00
michaelp
3e60e0bb89 added method to nsIView to get offset from nearest window.
added method to nsIView to get nearest scroll offset.
killed AdjustChildWidgets in nsIView.
lots of painting fixes.
added support for scrolling subviews.
added beginning of back-to-front compositing pass.
views, views with widgets and views with specific clips will now have their
outlines rendered in different colors. to turn this off see the top of nsView.cpp.


git-svn-id: svn://10.0.0.236/trunk@3893 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 17:05:42 +00:00
spider
b6b71a9c97 Fixes to get viewer to render on Unix
git-svn-id: svn://10.0.0.236/trunk@3847 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-16 00:57:33 +00:00
kipp
5803f64ce5 Made View list a little more helpful about widget size and location
git-svn-id: svn://10.0.0.236/trunk@3248 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 20:02:30 +00:00
michaelp
225ca0d6a6 made scrolling views more self sufficient.
git-svn-id: svn://10.0.0.236/trunk@3156 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-04 02:02:08 +00:00
michaelp
ee11b8ede1 added support for handling transparent views to viewmanager. added
transparency query to nsIFrame.


git-svn-id: svn://10.0.0.236/trunk@3126 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 22:49:45 +00:00
michaelp
5365a33b57 added optimization so that as we render top->bottom, if the clip region ever
becomes empty, we stop rendering.


git-svn-id: svn://10.0.0.236/trunk@3108 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 21:30:51 +00:00
michaelp
3118124379 fixed bug bug in new region code where region was not Init()ed.
git-svn-id: svn://10.0.0.236/trunk@3078 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 18:13:12 +00:00
michaelp
6dabba1783 added support of irregular damage regions to viewmanager.
git-svn-id: svn://10.0.0.236/trunk@2999 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-03 03:12:52 +00:00
michaelp
8415266052 added additional protection against NULL parent views.
git-svn-id: svn://10.0.0.236/trunk@2960 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 22:06:29 +00:00
troy
b706f86e4e Added null pointer check for mRootView in Composite()
git-svn-id: svn://10.0.0.236/trunk@2949 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 21:05:00 +00:00
troy
0c4dc6781c Made damage rect passed to UpdateView() be a const
git-svn-id: svn://10.0.0.236/trunk@2916 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-02 05:26:42 +00:00
michaelp
a0d49e1458 webwidget now specifies a framerate of 25 fps rather than relying on a good
default value in the viewmanager. added synchronous updates if we timeout
before timer fires.


git-svn-id: svn://10.0.0.236/trunk@2852 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 22:02:02 +00:00
troy
1a852af754 Added additional parameter to nsIWidget Resize() member functions
git-svn-id: svn://10.0.0.236/trunk@2841 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-01 20:26:50 +00:00
karnaze
b7849c378e event improvements
git-svn-id: svn://10.0.0.236/trunk@2654 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-29 22:44:13 +00:00
michaelp
d4e2a5a20c added support for front-to-back view rendering.
git-svn-id: svn://10.0.0.236/trunk@2325 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:13:28 +00:00
kipp
2f9b3b6470 Including missing nsCoord
git-svn-id: svn://10.0.0.236/trunk@2211 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:11:42 +00:00
michaelp
1fd6c53148 killed nsRegion.h. added nsIRegion.h. added SetClipRegion() to rendering context.
modified APIs that had been referring to nsRegion to use nsIRegion.


git-svn-id: svn://10.0.0.236/trunk@1852 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:46:20 +00:00
kmcclusk
0e678cc344 Added widget specific init structs
git-svn-id: svn://10.0.0.236/trunk@1671 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:34:08 +00:00
michaelp
808a040fee made form elements scroll smoothly. added apis to widgets to support this.
git-svn-id: svn://10.0.0.236/trunk@1505 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:39:08 +00:00
kipp
ee0932b472 Declare nsIView just in case somebody else doesn't
git-svn-id: svn://10.0.0.236/trunk@1419 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:58:44 +00:00
michaelp
5f4ea5859a when switching documents, the scrollbars are reset.
git-svn-id: svn://10.0.0.236/trunk@1312 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:50:43 +00:00
michaelp
67a0e11240 we now have horizontal scrolling.
git-svn-id: svn://10.0.0.236/trunk@1275 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:11:57 +00:00
michaelp
5dd9734a48 scrolling views are now self-contained. preparations have been made for horizontal scrolling.
git-svn-id: svn://10.0.0.236/trunk@1261 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:07:10 +00:00
michaelp
96769227de API cleanup for images and drawing surfaces.
git-svn-id: svn://10.0.0.236/trunk@1161 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 22:11:50 +00:00
michaelp
5c52551637 ResizeView() now does the right thing.
git-svn-id: svn://10.0.0.236/trunk@1137 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:04:56 +00:00
michaelp
8796e9dab3 before releasing the timer in the destructor, we Cancel() the timer per vidur's
suggestion.


git-svn-id: svn://10.0.0.236/trunk@1134 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 17:29:08 +00:00
michaelp
f9b8d8ed34 made Composite() API in ViewManager work.
git-svn-id: svn://10.0.0.236/trunk@1095 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 17:41:57 +00:00
michaelp
4d46f24a23 InsertChild() with a zindex now does the right thing.
RemoveChild() now invalidates the area where the view was.
added NS_RELEASE() cleanup.


git-svn-id: svn://10.0.0.236/trunk@975 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:15:31 +00:00
michaelp
632082625a added NS_RELEASE() cleanup.
git-svn-id: svn://10.0.0.236/trunk@974 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:14:03 +00:00
michaelp
54953fa08e fixed various shutdown and linked list management bugs.
git-svn-id: svn://10.0.0.236/trunk@973 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:13:34 +00:00
michaelp
3a92d6d01c killed erroneous comments.
git-svn-id: svn://10.0.0.236/trunk@972 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:11:47 +00:00
spider
635953eb9a Fix crash if root view is not setup properly during window creation
git-svn-id: svn://10.0.0.236/trunk@966 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 02:18:39 +00:00
michaelp
228526d605 minor tweaks to UpdateView() in view manager. if you want to invalidate a whole
view, pass in nsnull for the nsRegion param.
viewmanager InsertChild() above/below now does the right thing.
fixed cujo's table thingie.


git-svn-id: svn://10.0.0.236/trunk@893 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 02:41:14 +00:00
michaelp
c7fe1544fe more cliprect api changes...
git-svn-id: svn://10.0.0.236/trunk@827 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 02:24:07 +00:00
michaelp
c7d6535311 changed clipping apis so that they take parameters in the same form that
clipping is expressed in layer tags and css-p.
added support for setting transforms in layers (untested and very likely
problematic if scales are applied).
changed event handling and painting apis in views to support inherited
visibility.
all parameters passed into view.Init() are now properly stored in the view.
view opacity apis are now real.


git-svn-id: svn://10.0.0.236/trunk@784 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 19:16:24 +00:00
michaelp
5173d3062e added back code that i killed in the previous checkin, but now it works.
git-svn-id: svn://10.0.0.236/trunk@729 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 02:05:46 +00:00
michaelp
c0821d3557 fixed bug i just introduced (by removing code i just added)!
git-svn-id: svn://10.0.0.236/trunk@725 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 01:00:00 +00:00
michaelp
da59bfa4f4 if a view does not have a clip, then we set the clip in the rc to
the bounds for the view.


git-svn-id: svn://10.0.0.236/trunk@724 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 00:42:58 +00:00