Commit Graph

241 Commits

Author SHA1 Message Date
rods%netscape.com
862718ccb1 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.
1999-03-05 15:41:50 +00:00
michaelp%netscape.com
60711f3cab added return code check WRT off screen surface allocation.
part of mac fixes.
1999-03-05 01:43:06 +00:00
joki%netscape.com
57e49aab2a Fix for frames not resizing. 1999-03-03 01:59:50 +00:00
kmcclusk%netscape.com
82dac76411 gfx vs native widget rendering can now be specified in the viewer at run-time.
Added methods to GetWidgetRenderingMode and SetWidgetRenderingMode in nsPresContext
Removed NS_GFX_RENDER_FORM_ELEMENTS define, now it uses the GetWidgetRenderingMode
method on the rendering context.
Resurrected Rod's listbox frame-based widget code.
Added -moz-option-selected pseudo attribute to control the appearance of selected items for the listbox frame-based widget.
Added a style rule with attribute selector for -moz-option-selected to the ua.css style sheet.
Modifed nsView::SetVFlags to do a bitwise or instead of bitwise and to set flags.
Modified nsView::HandleEvent to compare mVFlags with NS_VIEW_FLAG_DONT_CHECK_CHILDREN
1999-03-02 22:43:26 +00:00
kipp%netscape.com
c7764aadc0 use macro to get operator new correct 1999-02-26 19:57:18 +00:00
warren%netscape.com
44cae3cd3f Changes for RDF component registration using nsRepository. Also changed args to NSGetFactory and friends. 1999-02-26 10:17:14 +00:00
sfraser%netscape.com
3a123c982b Mac project changes -- link with MSLDropInRuntime, instead of MSLShLibRuntime, and fix link order. 1999-02-26 00:54:57 +00:00
michaelp%netscape.com
88248b4267 work in progress for new compositor. 1999-02-25 18:44:45 +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
5f525464c3 turned off timers when our damage count goes to zero. 1999-02-16 02:25:20 +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
55bbd0f8fa 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...
1999-02-03 05:03:04 +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
d05af532a2 Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar
is no longer needed
1999-01-31 18:42:13 +00:00
michaelp%netscape.com
937965f4d0 corner view now paints correctly again. 1999-01-28 22:37:16 +00:00
troy%netscape.com
10b772e4b3 Changed clip-view to clip sibling windows 1999-01-28 17:07:21 +00:00
michaelp%netscape.com
c6c7e67d41 fixed bug where CreateWidget() was called twice for the ClipView and zero
times for the CornerView.
1999-01-28 05:04:43 +00:00
sudu%netscape.com
c94385ee94 OJI MozClassic to raptor merge 1999-01-25 08:05:00 +00:00
michaelp%netscape.com
803a36dc65 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.
1999-01-15 22:11:46 +00:00
sfraser%netscape.com
6b37d2bc99 Fix for 2161 -- if nsView::GetViewFor() is called with a null widget, just return a null view. 1999-01-08 21:31:56 +00:00
joki%netscape.com
d798c3e079 Move focus shifting code from nsScrollingView.cpp to nsEventStateManager.cpp 1999-01-08 21:13:59 +00:00
pierre%netscape.com
fa82921b1c Improve performance on Mac: disable the Composite timer (temporary code - see comments) 1998-12-20 13:15:41 +00:00
michaelp%netscape.com
c9e3b38acd the corner view works again, and thanks to michael.lowe@bigfoot.com it paints
in the correct system specified "background" color.
1998-12-19 06:20:36 +00:00
pierre%netscape.com
3de5def19a Enable double buffering on Mac 1998-12-18 13:33:55 +00:00
sfraser%netscape.com
f2222d9e1d Assert on a null widget Ptr 1998-12-16 03:37:56 +00:00
michaelp%netscape.com
ca4f2f41f7 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.
1998-12-15 05:47:25 +00:00
beard%netscape.com
18984e5a80 First Checked In. 1998-12-13 05:01:04 +00:00
sfraser%netscape.com
b2b751eef5 Convert AppleSingle->binary format. 1998-12-10 03:22:27 +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
pierre%netscape.com
535feac07a temporarily defines NO_DOUBLE_BUFFER if XP_MAC (waiting for the offscreen code to be fixed) 1998-12-06 00:37:25 +00:00
ramiro%netscape.com
e2b921bf3c Add cvsignore entries for makefiles generated bu autoconf. 1998-12-05 09:07:33 +00:00
troy%netscape.com
eb69c1ae25 Changed InsertChild() to use <= (instead of <) for zindex check, and changed
iteration to use sibling pointers
1998-12-04 21:28:52 +00:00
michaelp%netscape.com
faf05a8557 updated for new blending API. 1998-12-01 02:16:14 +00:00
beard%netscape.com
c0c7bc482d Mac shared library migration. 1998-11-30 22:15:00 +00:00
beard%netscape.com
7b2b7b599d First Checked In. 1998-11-30 22:14:25 +00:00
michaelp%netscape.com
52d7df63eb 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.
1998-11-25 03:32:00 +00:00
michaelp%netscape.com
b866bc5b7f reduced scollbar flashing. 1998-11-24 00:06:46 +00:00
michaelp%netscape.com
cf92a49a1a backout changes i didn't want to commit. 1998-11-23 23:50:17 +00:00
michaelp%netscape.com
efb83d40d2 fixed display of black or garbage when resizing scrolled scrollingviews. 1998-11-23 23:43:08 +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
jfrancis%netscape.com
9a2fdbcf24 missed a source file. added nsView.cpp to project 1998-11-20 06:28:50 +00:00
jfrancis%netscape.com
0a79ab51d4 mac shared lib conversion, phase 1 1998-11-20 05:02:56 +00:00
jfrancis%netscape.com
ff7ac2c693 First Checked In. 1998-11-20 05:02:20 +00:00
michaelp%netscape.com
592c97be68 fixed bug where a view with opacity set to 0.0f would cause the area where it
is to never be drawn.
1998-11-18 23:50:28 +00:00
michaelp%netscape.com
c8bf7f056d fixed problem with vertical scrollbar not always appearing. 1998-11-16 19:42:53 +00:00
michaelp%netscape.com
892909532f changes to support printing. 1998-11-14 01:58:34 +00:00
vidur%netscape.com
0c66d39047 Temporary fix when scroll frame is created unsized. The real fix will come from michaelp. 1998-11-13 02:50:24 +00:00
rods%netscape.com
54919e4b4d Made changes for GetBounds to GetClientBounds conversion 1998-11-04 21:46:00 +00:00
dcone%netscape.com
356b053d66 have a new interface for the blends init 1998-11-04 17:34:19 +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
michaelp%netscape.com
70d500d6c5 fixed bug where changing view opacity or transparency would not trigger
a refresh.
1998-11-03 01:49:30 +00:00
michaelp%netscape.com
380eeea4ea fixed leak of shared offscreen drawing surface. 1998-11-02 22:35:55 +00:00
michaelp%netscape.com
fc225bf7c1 changes to support nsIRenderingContext that conforms to COM conventions. 1998-10-30 02:08:25 +00:00
troy%netscape.com
697d10d512 Changed Refresh() to use the dimensions of the widget associated with
theview being repainted, rather than the dimensions of the root widget
1998-10-29 19:47:19 +00:00
troy%netscape.com
0e721ffef3 Fixed positioning of horizontal scrollbar to be inside of the control
rect, and added missing curly braces around if stmt and else clause
1998-10-28 06:12: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
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