Commit Graph

217 Commits

Author SHA1 Message Date
kmcclusk%netscape.com
1be2c2c7f2 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
dd45327b43 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
roc+%cs.cmu.edu
4ca1a2fbd6 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
4c09a29ac5 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
cls%seawood.org
bca014f1bb 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
evaughan%netscape.com
55816643f1 fix for [beta2] bugs:
37835
39085
32920

-r pinkerton, rods, hyatt
2000-05-26 06:42:29 +00:00
joki%netscape.com
a743e2b38b 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
troy%netscape.com
6b04c3b5fa 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
f6b930c9e6 backing out troy's changes to fix various ui not working blocker bugs. 2000-04-24 22:05:39 +00:00
troy%netscape.com
9b393faa48 Changes to bring clipping inline with upcoming CSS2 errata 2000-04-23 00:56:16 +00:00
kmcclusk%netscape.com
1945225950 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
21e503b111 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
kmcclusk%netscape.com
6131fcdb0b 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
87e19c9cef 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
cd6f5d237b 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
e9c67d9729 added Set/GetCompositorFlags(), which will eventually replace GetScratchPoint(). 2000-02-02 00:58:22 +00:00
kmcclusk%netscape.com
1996c7ecd8 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
eeeb109f4c 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
7226bc7257 floating views. bug=21966, r=troy, rods, a=brendan 2000-01-25 01:53:34 +00:00
rods%netscape.com
4cf3515a9b temprary fix for combobox dropdowns that jump all around.
r=beard a=chofmann bug 19416
1999-12-14 22:21:58 +00:00
tbogard%aol.net
4b3666e214 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. 1999-11-24 06:03:10 +00:00
beard%netscape.com
65a3476676 pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov 1999-11-14 02:51:25 +00:00
dmose%mozilla.org
5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
kin%netscape.com
6762dd27f5 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
evaughan%netscape.com
f3a2112f38 Integrated Gfx scrollbars. 1999-10-12 00:16:06 +00:00
beard%netscape.com
9ce828e930 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
331a31bd12 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
b4f1ed1265 Add new scroll method to allow scrolling to top or bottom of doc. 1999-09-21 14:15:53 +00:00
beard%netscape.com
211161b53d 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
4ba19f3a53 nsIScrollPositionListener support. 1999-09-18 04:42:11 +00:00
beard%netscape.com
4fca2fc2b8 Added nsIScrollPositionListener.h 1999-09-18 04:39:03 +00:00
beard%netscape.com
bb1ebef81d First Checked In. 1999-09-18 04:34:49 +00:00
beard%netscape.com
a74068ad1e switched to NS_DEFINE_STATIC_IID_ACCESSOR 1999-09-13 03:04:17 +00:00
beard%netscape.com
8fb6ba40fc switched to NS_DEFINE_STATIC_IID_ACCESSOR, removed extraneous AddRef, Release declarations. 1999-09-13 03:03:42 +00:00
briano%netscape.com
cb47ce30d1 Cleaned it up and eliminated the pointless #!gmake. 1999-09-02 00:30:07 +00:00
cyeh%netscape.com
1729151e74 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:24:51 +00:00
beard%netscape.com
297bc6feb1 Changed GetIID() to NS_DEFINE_STATIC_IID_ACCESSOR. 1999-08-28 03:01:32 +00:00
rods%netscape.com
891b176869 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
warren%netscape.com
bde10cf3a0 More necko changes. 1999-06-25 01:53:22 +00:00
buster%netscape.com
ef65d66461 added GetIID static methods to public interfaces. Code-reviewed by Kevin M. 1999-06-24 22:40:53 +00:00
kin%netscape.com
a1620436bb Added implementation of BeginUpdateViewBatch() and
EndUpdateViewBatch() to nsIViewManager and nsViewManager.
1999-05-26 21:13:06 +00:00
evaughan%netscape.com
a9d351ef30 Fixed some visibility bugs in order to make the tab widget work correctly. 1999-05-19 22:14:11 +00:00
troy%netscape.com
eb5d51399b Removed #define ALL_VIEW_FLAGS which is no longer used 1999-04-24 22:58:14 +00:00
troy%netscape.com
8c0f913db7 Added function GetClipView() 1999-04-24 02:52:58 +00:00
troy%netscape.com
0fdc37c34f Made a bunch of nsIView member functions "const" 1999-04-23 17:44:48 +00:00
troy%netscape.com
bfdac722ea Changed a comment a little 1999-04-21 21:22:22 +00:00
troy%netscape.com
3fb7a599a3 Added NS_VIEW_FLAG_DONT_BITBLT flag 1999-04-21 21:08:27 +00:00
michaelp%netscape.com
784b9cf50f a parting shot. 1999-04-16 21:22:45 +00:00
michaelp%netscape.com
fdc84978d8 added GetExtents(). 1999-04-16 04:50:02 +00:00
michaelp%netscape.com
46d4754a52 cleaned up view flags stuff. 1999-04-16 04:23:43 +00:00
michaelp%netscape.com
7269559974 added Set/GetLineHeight(). 1999-03-20 01:25:37 +00:00
michaelp%netscape.com
c73d71c2b4 added APIs for scrolling by page or line. 1999-03-20 00:11:35 +00:00
michaelp%netscape.com
2a2e262462 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
eedcdf698b 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
4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
joki%netscape.com
57e49aab2a Fix for frames not resizing. 1999-03-03 01:59:50 +00:00
michaelp%netscape.com
980ea68e38 added unknown content quality. fixed potential crash because of bug in timer
code. now uses rootscrollable for all scrollable view notifications.
1999-02-16 19:57:45 +00:00
michaelp%netscape.com
f8b4bc0d49 added Get/SetScrollableRoot() to nsIViewManager. fixed bug where maximizing
window would cause junk to be shown below/to the right of the real content
if the document was scrolled towards bottom/right. fixed flashing scrollbar
problem. made quality control work again.
1999-02-16 00:57:06 +00:00
troy%netscape.com
391a2f6747 Added GetScrollbarVisibility() 1999-02-03 04:25:31 +00:00
michaelp%netscape.com
9a30d47825 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.
1999-02-03 04:12:21 +00:00
joki%netscape.com
4513eb2392 Modifying view event flow to always start processing from top view, not enter at children 1999-02-01 22:45:59 +00:00
troy%netscape.com
8311b73428 Added additional parameter to Display() for specifying which view
should be displayed
1998-12-07 03:44:57 +00:00
ramiro%netscape.com
e2b921bf3c Add cvsignore entries for makefiles generated bu autoconf. 1998-12-05 09:07:33 +00:00
cyeh%netscape.com
65038e9551 Removing static makefiles as a part of the transition to Autoconf. I have taken great
care to only remove makefiles affailiated with building nglayout. I have also verified that
the build at this point in time succesfully builds with autoconf.

If you must recover one of these makefiles, you can use the static tag STATIC_MAKEFILES.
If I removed a makefile that you need, please e-mail cyeh@netscape.com.
1998-11-21 00:34:32 +00:00
michaelp%netscape.com
892909532f changes to support printing. 1998-11-14 01:58:34 +00:00
michaelp%netscape.com
dff35cf838 removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to
nsIScrollableView.
1998-11-04 04:14:10 +00:00
michaelp%netscape.com
d2b75b1ba9 changed nsIView::Init() so that it no longer takes an opacity value. this
allows the view manager to maintain global state re: opacity.
1998-11-03 06:36:36 +00:00
cls%seawood.org
411ab80ce3 New autoconf files for nglayout 1998-10-28 03:53:57 +00:00
michaelp%netscape.com
8e05ca2805 fleshed out view manager view clip setting and view depth arrangement methods. 1998-10-27 20:16:09 +00:00
michaelp%netscape.com
8963210ccb removed zindex from nsIView::Init(). 1998-10-27 03:36:49 +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
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
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
85cad5bf10 two pass compositing now works. 1998-10-11 01:00:59 +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
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
joki%netscape.com
557c476a3e Moving view selection for event handling into nsViewManager, Adding GrabMouseEvents and GrabKeyEvents 1998-08-19 05:35:20 +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
michaelp%netscape.com
2c8cb99518 documented GetClipView() API. 1998-07-27 21:30:14 +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
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
kipp%netscape.com
8282750246 Added ScrollTo method 1998-07-22 23:39:23 +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
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
michaelp
1b46e39ecd added ability to set behavior of scrollbars in scrollable views. 1998-06-23 00:53:56 +00:00
michaelp
6ad59f6a19 added content quality indicator. 1998-06-21 01:23:44 +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
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
33a0103e30 added support of irregular damage regions to viewmanager. 1998-06-03 03:12:52 +00:00
troy
1ac4ac9442 Made damage rect passed to UpdateView() be a const 1998-06-02 05:26:42 +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
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
3c1f4409eb scrolling views are now self-contained. preparations have been made for horizontal scrolling. 1998-05-07 23:07:10 +00:00
michaelp
a2a2bfdfee killed erroneous comments. 1998-05-01 03:11:47 +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
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
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
a67637dc6d changed SetContainerSize() to ComputeContainerSize(). 1998-04-23 23:21:37 +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
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