159 Commits

Author SHA1 Message Date
beard%netscape.com
a6ba4b075b bug #10261: fix for dropping calls to UpdateView, also now correctly handles calls to UpdateView(nsIView*, nsIRegion*, ...) with non-null nsIRegion*.
git-svn-id: svn://10.0.0.236/trunk@45812 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 02:27:40 +00:00
evaughan%netscape.com
fd72782f13 xpscrollbars
git-svn-id: svn://10.0.0.236/trunk@43717 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:16:23 +00:00
kmcclusk%netscape.com
7efa978483 Added code to prevent negative values from being passed to nsIWidget::Resize.
git-svn-id: svn://10.0.0.236/trunk@43046 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 22:20:53 +00:00
sfraser%netscape.com
5275ec0bd4 Zero out the return value from QI in case of failure.
git-svn-id: svn://10.0.0.236/trunk@42875 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:56:40 +00:00
rickg%netscape.com
31a098e241 removed two warnings from GFX library that sparky isn't likely to fix
git-svn-id: svn://10.0.0.236/trunk@41100 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 02:22:09 +00:00
evaughan%netscape.com
e737c85970 Fixed some visibility bugs in order to make the tab widget work correctly.
git-svn-id: svn://10.0.0.236/trunk@32341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:14:11 +00:00
beard%netscape.com
5ea7452f80 bug #5093: removed redundant calls to nsWidget::Invalidate(), fixed in nsScrollbar.cpp instead.
git-svn-id: svn://10.0.0.236/trunk@32096 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 21:45:46 +00:00
beard%netscape.com
56efb845cf bug #5093: added widget->Invalidate() calls after changing the position of scrollbar thumb. It may be more appropriate to fix this in nsScrollbar.cpp
git-svn-id: svn://10.0.0.236/trunk@31911 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:40:40 +00:00
joki%netscape.com
a158b164ef Adding scrolling fixes to fix bug #3999, A: chofmann
git-svn-id: svn://10.0.0.236/trunk@29867 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 19:38:39 +00:00
troy%netscape.com
be9de6ec14 Changed Scroll() to check if the scrolled view has the
NS_VIEW_PUBLIC_FLAG_DONT_BITBLT flag set


git-svn-id: svn://10.0.0.236/trunk@29086 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 22:49:28 +00:00
troy%netscape.com
d40fa73ba2 Added function GetClipView()
git-svn-id: svn://10.0.0.236/trunk@29020 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 02:52:58 +00:00
kipp%netscape.com
b979076229 Added a missing NS_RELEASE
git-svn-id: svn://10.0.0.236/trunk@28151 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 23:22:32 +00:00
kmcclusk%netscape.com
7102d1ac96 fix for bug#4325. ScrollingView's now manage their component's (mClipView, mHScrollBarView,
mVScrollBarView, mCornerView) visibility when the ScrollingView's visibility changes.


git-svn-id: svn://10.0.0.236/trunk@27877 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 19:18:30 +00:00
michaelp%netscape.com
d8c7e182c0 cleaned up view flags stuff.
git-svn-id: svn://10.0.0.236/trunk@27817 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 04:23:43 +00:00
joki%netscape.com
9a0d9abb24 Adding spacebar to list of keys that will scroll page.
git-svn-id: svn://10.0.0.236/trunk@26545 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 21:37:34 +00:00
kipp%netscape.com
639a6cdf02 Make SetWidget assertion more particular about when to bomb
git-svn-id: svn://10.0.0.236/trunk@26161 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-03 19:01:15 +00:00
troy%netscape.com
62df50c49d Fix for bug #4317. Changed SetPosition() to call AdjustChildWidgets() with
"this" as the second parameter instead of the scrolled view


git-svn-id: svn://10.0.0.236/trunk@25352 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-28 05:25:07 +00:00
michaelp%netscape.com
ed7c96c44c added Set/GetLineHeight().
git-svn-id: svn://10.0.0.236/trunk@24524 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 01:25:37 +00:00
michaelp%netscape.com
ab643ac84a ScrollTo() now blits wherever possible.
git-svn-id: svn://10.0.0.236/trunk@24518 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:47:08 +00:00
michaelp%netscape.com
bc79a637e9 added APIs for scrolling by page or line.
git-svn-id: svn://10.0.0.236/trunk@24504 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:11:35 +00:00
michaelp%netscape.com
53ce63ea80 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.


git-svn-id: svn://10.0.0.236/trunk@24322 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-18 21:04:00 +00:00
michaelp%netscape.com
81f9258975 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.


git-svn-id: svn://10.0.0.236/trunk@23381 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 22:10:31 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
rods%netscape.com
e0396140b8 Aded check for null parent to fix printing
git-svn-id: svn://10.0.0.236/trunk@22909 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 20:14:05 +00:00
rods%netscape.com
704f4fa587 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.


git-svn-id: svn://10.0.0.236/trunk@22894 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 15:41:50 +00:00
michaelp%netscape.com
d1f2203c7c added unknown content quality. fixed potential crash because of bug in timer
code. now uses rootscrollable for all scrollable view notifications.


git-svn-id: svn://10.0.0.236/trunk@20823 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:57:45 +00:00
michaelp%netscape.com
1b2aa59d45 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.


git-svn-id: svn://10.0.0.236/trunk@20751 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:57:06 +00:00
troy%netscape.com
3ced68e7e0 Re-ordered the call to SetPosition(0) for the horizontal scrollbar,
because the way it was caused the scrollbar to be enabled when it should
be disabled...


git-svn-id: svn://10.0.0.236/trunk@19417 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 05:03:04 +00:00
troy%netscape.com
832f79717f Added GetScrollbarVisibility()
git-svn-id: svn://10.0.0.236/trunk@19409 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:31 +00:00
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
troy%netscape.com
a02386ecfe Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar
is no longer needed


git-svn-id: svn://10.0.0.236/trunk@19122 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 18:42:13 +00:00
michaelp%netscape.com
36e4ee9653 corner view now paints correctly again.
git-svn-id: svn://10.0.0.236/trunk@18956 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:37:16 +00:00
troy%netscape.com
05ab551aaa Changed clip-view to clip sibling windows
git-svn-id: svn://10.0.0.236/trunk@18923 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:07:21 +00:00
michaelp%netscape.com
8b6acf11bf fixed bug where CreateWidget() was called twice for the ClipView and zero
times for the CornerView.


git-svn-id: svn://10.0.0.236/trunk@18903 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:04:43 +00:00
joki%netscape.com
b39d75f877 Move focus shifting code from nsScrollingView.cpp to nsEventStateManager.cpp
git-svn-id: svn://10.0.0.236/trunk@17387 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 21:13:59 +00:00
michaelp%netscape.com
9708832dd7 the corner view works again, and thanks to michael.lowe@bigfoot.com it paints
in the correct system specified "background" color.


git-svn-id: svn://10.0.0.236/trunk@16704 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-19 06:20:36 +00:00
michaelp%netscape.com
72b9fbb09b we not put the responsibility for managing damage regions into the widget
code instead of doing it in the viewmanager. this allows us to paint much
more optimally.


git-svn-id: svn://10.0.0.236/trunk@16417 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:47:25 +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
05a6bdf469 fixed bug where computing *need* for vert/horz scrollbar did not take into
account the fact that there might be a need for the other scrollbar too.
it used to be that if it knew that it *did* need a vert/horz scrollbar it
would take the other one into account properly. it was just in making the
initial decision that there was an error.


git-svn-id: svn://10.0.0.236/trunk@15290 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 03:32:00 +00:00
michaelp%netscape.com
6313915e19 reduced scollbar flashing.
git-svn-id: svn://10.0.0.236/trunk@15196 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:06:46 +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
bff62c7d82 fixed problem with vertical scrollbar not always appearing.
git-svn-id: svn://10.0.0.236/trunk@14744 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:42:53 +00:00
vidur%netscape.com
a9e72c3c46 Temporary fix when scroll frame is created unsized. The real fix will come from michaelp.
git-svn-id: svn://10.0.0.236/trunk@14573 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:50:24 +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
36841b7bfb Fixed positioning of horizontal scrollbar to be inside of the control
rect, and added missing curly braces around if stmt and else clause


git-svn-id: svn://10.0.0.236/trunk@13601 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-28 06:12:36 +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
troy%netscape.com
5129708072 Changed clip view to have an opacity of 0.0f and no transparent content
git-svn-id: svn://10.0.0.236/trunk@13476 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 20:53:36 +00:00