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

681 Коммитов

Автор SHA1 Сообщение Дата
troy%netscape.com f97e864dbf Commented out some code in Init() that was causing problems for the scrolling
view code
1998-10-27 05:57:18 +00:00
michaelp%netscape.com 8963210ccb removed zindex from nsIView::Init(). 1998-10-27 03:36:49 +00:00
troy%netscape.com 1c06413d95 Changed UpdateView() to call Update() to synchronoulsy repaint the
dirty area if NS_VMREFRESH_IMMEDIATE is specified
1998-10-27 00:17:54 +00:00
troy%netscape.com c59c1ebb94 Changed clip view to have an opacity of 0.0f and no transparent content 1998-10-26 20:53:36 +00:00
troy%netscape.com 1d54745569 Added a XXX comment about what's the correct value for the clip
view's opacity
1998-10-25 04:24:26 +00:00
troy%netscape.com e065f28fe7 Changed SetScrolledView() to mark the clip view as having transparent content
if the scrolled view has transparent content
1998-10-25 04:15:59 +00:00
michaelp%netscape.com e415ee4d2c added suport for alpha blending of views. 1998-10-23 17:58:44 +00:00
troy%netscape.com 10ad80b7d3 Made sure Refresh() sets NS_VIEW_FLAG_CLIP_SET so we don't try and set the
clip rect again. If Paint() sets it it will be incorrect...
1998-10-22 18:27:44 +00:00
troy%netscape.com 64234b8160 Added ability to control the insets used when positioning the scrollbars and
clip view
1998-10-21 16:07:55 +00:00
troy%netscape.com 1f1da864fd Added null pointer check in case the root view pointer is null 1998-10-19 22:12:29 +00:00
troy%netscape.com ccb611db9b Removed some code that's no longer needed now that the frames correctly
compute their size based on any absolutely positioned children they
have
1998-10-19 21:24:53 +00:00
troy%netscape.com c1ce2eb264 Added GetScrollPosition, removed some XXX comments that I should have
removed before checking in, and added some more documentation
1998-10-19 16:57:27 +00:00
troy%netscape.com e2b6409d3e Changed scrolling view to use a clip view and to slide the scrolled
view up and down rather than maintain a logical scrolled offset
1998-10-19 00:44:28 +00:00
troy%netscape.com 72631a7382 Changed UpdateDirtyViews() to clear the dirty region when invalidating
the window. This fixes a problem where some views with widgets, like
scrollbars, that we never receive a NS_PAINT for never cleared the dirty
region
1998-10-16 05:24:35 +00:00
troy%netscape.com 86e66bdd76 Corrected problem that was causing dirty rect to be incorrectly computed
when scrolling is involved
1998-10-16 05:05:09 +00:00
troy%netscape.com bcb0d2dd19 Removed NS_VMREFRESH_SCREEN_RECT update option 1998-10-15 20:57:43 +00:00
troy%netscape.com 6ad120c16d Changed GetWindowOffsets() to specify the view to check rather than assuming
the root view. This fixes scrolling problems when scrolling views are used
as a sub-view
1998-10-15 05:27:00 +00:00
troy%netscape.com 68659f29d8 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
1998-10-15 04:55:21 +00:00
michaelp%netscape.com 8c37405791 fixed troys' bug with scrolling frames. was actually not related to that, just
tickled a bug in the new compositor code.
1998-10-13 21:27:11 +00:00
michaelp%netscape.com 85cad5bf10 two pass compositing now works. 1998-10-11 01:00:59 +00:00
dcone%netscape.com 70467e4967 Fixed an offset problem 1998-10-07 17:55:57 +00:00
dcone%netscape.com 8199823d72 Fixed a mac problem, a variable scoping problem was fixed in the handle method. 1998-10-07 15:17:27 +00:00
kipp%netscape.com 9d21e25933 Dump client-data too 1998-09-26 17:39:54 +00:00
pierre%netscape.com 6b39e621ef re-enable the scrollbars on Mac, the widgets are now implemented 1998-09-23 09:19:55 +00:00
pierre%netscape.com aebdc87136 use PR_IntervalNow() for mLastRefresh 1998-09-19 01:39:47 +00:00
kostello%netscape.com 5f33e2d40d Changes implementation to match the new Widget interfaces i.e. t
he signature of many of the "getters" changed.
1998-09-14 20:54:38 +00:00
pierre%netscape.com 590bf92d17 temporarily disable the scrollbars on Mac, waiting for the widgets to be implemented 1998-09-03 06:20:12 +00:00
warren%netscape.com b89e7efaca Renamed NSRepository to nsRepository. 1998-09-01 00:26:28 +00:00
kostello%netscape.com f86a9e9223 These changes match the Windows/Unix changes to methods to take a parameter instead of returning a value. 1998-08-31 19:09:55 +00:00
troy%netscape.com ad9a20da0b Changes nsIView and nsIScrollableView interfaces to conform to
XPCOM conventions
1998-08-30 19:16:11 +00:00
troy%netscape.com 6cb09b5132 Changed nsIViewManager interface to conform to XPCOM conventions 1998-08-28 04:56:56 +00:00
michaelp%netscape.com 7686c7ec65 changes to support viewobserver and troy's spankage of the device context. 1998-08-28 03:05:23 +00:00
troy%netscape.com 6d2245e203 Combined GetScrollBarWidth/GetScrollBarHeight into one function
GetScrollBarDimensions
1998-08-27 18:30:55 +00:00
troy%netscape.com 0d39ae026f Changed nsIDeviceContext interface to conform [more] with COM conventions 1998-08-27 05:05:03 +00:00
michaelp%netscape.com 89a5d9929f killed Set/GetRootWindow() methods in viewmanager. this is now inferred from
the root view. added ability to select painting in view resizing.
1998-08-26 21:24:58 +00:00
michaelp%netscape.com f2dcddb933 added assert to warn you of recursive painting. 1998-08-19 20:56:52 +00:00
joki%netscape.com 557c476a3e Moving view selection for event handling into nsViewManager, Adding GrabMouseEvents and GrabKeyEvents 1998-08-19 05:35:20 +00:00
rods%netscape.com 292e621cb9 Added Page Up, Page Down, Arrow up and Arrow Down key processing. 1998-08-14 21:13:40 +00:00
michaelp%netscape.com b59035b2ae fixed crash where widgets would return null clientdata because they were going
away, but the view was assuming the clientdata was non-null.
1998-08-13 00:03:41 +00:00
michaelp%netscape.com aa7f5d1453 we now allocate a single offscreen buffer. 1998-08-12 21:17:52 +00:00
michaelp%netscape.com 02355fbfa6 merged changes from branch. 1998-08-08 19:21:40 +00:00
troy%netscape.com acaa6d2f0e Change to object lifetime management. Views are no longer ref counted 1998-08-08 04:23:33 +00:00
pierre%netscape.com 8324d3af87 fix build on Windows and Unix 1998-08-05 09:02:52 +00:00
pierre%netscape.com 3ec5da4957 fix build on Mac 1998-08-05 08:23:13 +00:00
pierre%netscape.com eb16b86a54 renamed NSGetFactory to build on Mac 1998-08-05 08:17:06 +00:00
peterl%netscape.com f65d571f7b sync to new unit conversion functions 1998-08-01 01:08:36 +00:00
peterl%netscape.com 714146a525 rounding support 1998-07-31 23:34:45 +00:00
scullin%netscape.com d850348fc1 Make widget tests work again, normalize widget api on UNIX and Win, and
add start of platform LAF interface.
1998-07-29 18:47:50 +00:00
rods%netscape.com b449e32a60 Removed a debug printf 1998-07-27 23:30:49 +00:00
rods%netscape.com c356e95b80 Added drag scrolling, and event processing for mouse events
outside the scrolling view.
1998-07-27 23:14:31 +00:00
michaelp%netscape.com 2c8cb99518 documented GetClipView() API. 1998-07-27 21:30:14 +00:00
troy%netscape.com 7da0401c3c Combined raptorgfx.dll and raptorgfxwin.dll into one DLL 1998-07-26 23:52:36 +00:00
michaelp%netscape.com a017cd9e13 a tiny fix for scrollbars in scrolling views made without a widget association. 1998-07-26 23:32:33 +00:00
michaelp%netscape.com 404c0a78e4 form elements, etc. (i.e. sub widgets) now scroll smoothly. 1998-07-26 04:24:42 +00:00
michaelp%netscape.com bc8f944b64 re-added optimization with the ability to use it anywhere by setting the
NS_VMREFRESH_AUTO_DOUBLE_BUFFER when calling UpdateView().
1998-07-24 21:49:02 +00:00
michaelp%netscape.com 3eacb94712 backed out change for a moment. 1998-07-24 21:32:02 +00:00
michaelp%netscape.com 4dadd2ca3d re-added conditional double buffering based on screen area thresholding. 1998-07-24 21:29:47 +00:00
michaelp%netscape.com 837d1a9ae0 added APIs to viewmanager to enable and disable all rendering.
made Refresh() APIs of viewmanager implementation private.
1998-07-24 21:05:50 +00:00
troy%netscape.com 448077e579 Changed MoveViewTo() so it doesn't do any painting unless the
origin actually changes
1998-07-23 04:21:05 +00:00
kipp%netscape.com 7a33936a82 Implement ScrollTo method 1998-07-22 23:39:56 +00:00
kipp%netscape.com 8282750246 Added ScrollTo method 1998-07-22 23:39:23 +00:00
michaelp 23c618c0a6 killed much hated borders on views... 1998-07-11 06:17:09 +00:00
rpotts d75cb80e9a Fixed circular reference problem between the nsScrollingView and its scrollbars... 1998-07-10 23:10:26 +00:00
rpotts 159c7ddd2c Fixed reference counting leak when processing mouse button down events... 1998-07-10 21:44:15 +00:00
michaelp f1f586a80e when a view is the root, it's position will now always be 0, 0. 1998-07-07 21:51:57 +00:00
joki 5d183e8a1e Move scrolling event code into new event handler to keep it out of DOM loop 1998-07-02 01:13:09 +00:00
kipp 47bf5a2bdb Removed spurious includes of nsIPresShell 1998-06-26 16:23:48 +00:00
michaelp ec4811f612 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.
1998-06-25 04:24:45 +00:00
joki 5ca1fc75a7 Change order of event handling to go children then view, not view then children. 1998-06-23 21:50:30 +00:00
rpotts 1d2f55011f Made the destructors on some XPCOM objects virtual (and protected) to make sure everything gets cleaned up... 1998-06-23 18:44:06 +00:00
michaelp 9234d7a8f4 killed debug code. 1998-06-23 17:50:19 +00:00
michaelp 63a3e93627 made led prettier. 1998-06-23 17:47:06 +00:00
michaelp 1b46e39ecd added ability to set behavior of scrollbars in scrollable views. 1998-06-23 00:53:56 +00:00
spider 1194519a26 Support for Optimized GC and Regions in Rendering 1998-06-21 07:02:44 +00:00
michaelp 6ad59f6a19 added content quality indicator. 1998-06-21 01:23:44 +00:00
michaelp b2e84057f2 fixed for real. yikes. 1998-06-19 17:44:03 +00:00
spider 1d25c373d2 Fix previous runtime bustage by placing XP_UNIX ifdef correctly 1998-06-19 05:03:26 +00:00
spider 0674410f06 Unix fix as per mmp 1998-06-19 04:11:01 +00:00
michaelp ec3f238ac8 painting fixes... 1998-06-19 02:46:25 +00:00
atotic 2b30eaf7bd First Checked In. 1998-06-16 21:39:13 +00:00
michaelp 97da4a6f90 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.
1998-06-16 17:05:42 +00:00
spider f16568df10 Fixes to get viewer to render on Unix 1998-06-16 00:57:33 +00:00
kipp d5d1307960 Made View list a little more helpful about widget size and location 1998-06-04 20:02:30 +00:00
michaelp ac85c09ee9 made scrolling views more self sufficient. 1998-06-04 02:02:08 +00:00
michaelp 9f71c8886e added support for handling transparent views to viewmanager. added
transparency query to nsIFrame.
1998-06-03 22:49:45 +00:00
michaelp 49c4d29e3f added optimization so that as we render top->bottom, if the clip region ever
becomes empty, we stop rendering.
1998-06-03 21:30:51 +00:00
michaelp 0e18cb791b fixed bug bug in new region code where region was not Init()ed. 1998-06-03 18:13:12 +00:00
michaelp 33a0103e30 added support of irregular damage regions to viewmanager. 1998-06-03 03:12:52 +00:00
michaelp b48e11c224 added additional protection against NULL parent views. 1998-06-02 22:06:29 +00:00
troy b37d19f730 Added null pointer check for mRootView in Composite() 1998-06-02 21:05:00 +00:00
troy 1ac4ac9442 Made damage rect passed to UpdateView() be a const 1998-06-02 05:26:42 +00:00
michaelp f2bdc12c1a 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.
1998-06-01 22:02:02 +00:00
troy 76258759a8 Added additional parameter to nsIWidget Resize() member functions 1998-06-01 20:26:50 +00:00
karnaze 4de74d7ac1 event improvements 1998-05-29 22:44:13 +00:00
michaelp b5140d2751 added support for front-to-back view rendering. 1998-05-27 02:13:28 +00:00
kipp 8869c3a9b9 Including missing nsCoord 1998-05-22 20:11:42 +00:00
michaelp 88085a23f5 killed nsRegion.h. added nsIRegion.h. added SetClipRegion() to rendering context.
modified APIs that had been referring to nsRegion to use nsIRegion.
1998-05-18 21:46:20 +00:00
kmcclusk 1d7e22a70f Added widget specific init structs 1998-05-14 21:34:08 +00:00
michaelp 936ee3ae67 made form elements scroll smoothly. added apis to widgets to support this. 1998-05-13 03:39:08 +00:00
kipp b6c980e68f Declare nsIView just in case somebody else doesn't 1998-05-11 22:58:44 +00:00
michaelp 07f184a0ef when switching documents, the scrollbars are reset. 1998-05-08 17:50:43 +00:00
michaelp daa82e0c89 we now have horizontal scrolling. 1998-05-08 01:11:57 +00:00
michaelp 3c1f4409eb scrolling views are now self-contained. preparations have been made for horizontal scrolling. 1998-05-07 23:07:10 +00:00
michaelp 926e979038 API cleanup for images and drawing surfaces. 1998-05-05 22:11:50 +00:00
michaelp 62d05bf514 ResizeView() now does the right thing. 1998-05-05 18:04:56 +00:00
michaelp f34c3cb961 before releasing the timer in the destructor, we Cancel() the timer per vidur's
suggestion.
1998-05-05 17:29:08 +00:00
michaelp 5dee72615b made Composite() API in ViewManager work. 1998-05-04 17:41:57 +00:00
michaelp e8a178d998 InsertChild() with a zindex now does the right thing.
RemoveChild() now invalidates the area where the view was.
added NS_RELEASE() cleanup.
1998-05-01 03:15:31 +00:00
michaelp 45ee8e1c7a added NS_RELEASE() cleanup. 1998-05-01 03:14:03 +00:00
michaelp ca92a841d3 fixed various shutdown and linked list management bugs. 1998-05-01 03:13:34 +00:00
michaelp a2a2bfdfee killed erroneous comments. 1998-05-01 03:11:47 +00:00
spider d5f8decf8e Fix crash if root view is not setup properly during window creation 1998-05-01 02:18:39 +00:00
michaelp 33997423e6 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.
1998-04-30 02:41:14 +00:00
michaelp 349aea1957 more cliprect api changes... 1998-04-29 02:24:07 +00:00
michaelp c8fa2102e0 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.
1998-04-28 19:16:24 +00:00
michaelp 66ead6fcea added back code that i killed in the previous checkin, but now it works. 1998-04-28 02:05:46 +00:00
michaelp d762a26035 fixed bug i just introduced (by removing code i just added)! 1998-04-28 01:00:00 +00:00
michaelp 7721fe5215 if a view does not have a clip, then we set the clip in the rc to
the bounds for the view.
1998-04-28 00:42:58 +00:00
michaelp 2bb2f10650 added support for setting clip rects in views.
removed paint_all_kids().
damage rect passed to frames is now properly translated into
coord space of containing view.
1998-04-27 23:51:57 +00:00
kipp b881d71f5b Fixed compiler bugs/warnings 1998-04-26 03:13:20 +00:00
kipp 6aac22187e Added trailing newline 1998-04-26 02:57:05 +00:00
karnaze 3943ad1a15 added radio groups, select/option, beter sizing. widgets take creation parms. 1998-04-24 21:37:30 +00:00
michaelp 7687494b21 more scrolling bugs. 1998-04-24 00:30:21 +00:00
michaelp 00a34bd0be fixed bug where scollbar itself was scrolled. 1998-04-23 23:32:59 +00:00
michaelp a67637dc6d changed SetContainerSize() to ComputeContainerSize(). 1998-04-23 23:21:37 +00:00
michaelp d4caef7672 added AddRef() to GetScrolledView(). 1998-04-23 21:54:47 +00:00
michaelp cbfb8c143d view no longer shows a scrollbar when we can't scroll.
added GetScrolledView().
1998-04-23 21:51:43 +00:00
kipp 59359e73b4 define win32_lean_and_mean 1998-04-23 16:47:26 +00:00
troy 3ce8e88882 Changed nsIFrame member functions to return a nsresult 1998-04-17 01:41:24 +00:00
michaelp 8628a9aa07 added docs. 1998-04-15 20:25:02 +00:00
kipp 098bef52b4 moved to pub 1998-04-13 20:24:54 +00:00