76 Commits

Author SHA1 Message Date
davidm%netscape.com
8ef5c8c436 2239 Crash when leaving test9
git-svn-id: svn://10.0.0.236/trunk@18248 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 01:49:08 +00:00
pierre%netscape.com
bfde531d65 Calls SetOrigin() in Invalidate(). Fixes the problem where on going to a new page the top of the html area gets drawn last. Thanks to Cyrus Harmon <cyrus@neomorphic.com>
git-svn-id: svn://10.0.0.236/trunk@18168 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 11:21:10 +00:00
pierre%netscape.com
f55ce79305 fixed Scroll() in case the caller passes a null clipRect
git-svn-id: svn://10.0.0.236/trunk@18022 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 19:29:43 +00:00
pierre%netscape.com
b4ea06ef45 added HandleUpdateEvent() and use ::BeginUpdate() in Update() in order to improve performance during live scrolling
git-svn-id: svn://10.0.0.236/trunk@18008 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 14:33:21 +00:00
pierre%netscape.com
47bd3bb6e7 Fixed the clip rgn in Scroll(): the scrollbars no longer flicker.
git-svn-id: svn://10.0.0.236/trunk@17997 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 04:29:08 +00:00
pierre%netscape.com
39b1681518 Paint only the damaged area instead of the whole widget. Reuse the rendering context to update the children. Scroll the children.
git-svn-id: svn://10.0.0.236/trunk@17977 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 00:02:51 +00:00
sfraser%netscape.com
db5ebeda1e No longer call the static method of nsFontMetricsMac in StartDraw; since nsMacControl implements SetFont now, this is no longer necessary.
git-svn-id: svn://10.0.0.236/trunk@17709 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 05:50:56 +00:00
pierre%netscape.com
9fe6003b44 Added a reminder to not always pass the entire widget rect in NS_PAINT_EVENTs
git-svn-id: svn://10.0.0.236/trunk@16728 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-20 13:14:29 +00:00
pierre%netscape.com
8f2719f5aa Update() no longer passes the rendering context to the children and ignore invisible widgets
git-svn-id: svn://10.0.0.236/trunk@16663 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 13:34:22 +00:00
pierre%netscape.com
925da68c47 don't dispatch Update event when the widget has drawn itself already
git-svn-id: svn://10.0.0.236/trunk@16409 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:03:38 +00:00
pierre%netscape.com
3b32ebb46e Fixed Resize() and Invalidate() to make xpfe apps much faster
git-svn-id: svn://10.0.0.236/trunk@16195 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:11:23 +00:00
pierre%netscape.com
e23f728ea6 redraw on Scroll()
git-svn-id: svn://10.0.0.236/trunk@16052 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 13:24:09 +00:00
pierre%netscape.com
1a05cbde32 A bunch of changes: removed saari's hacks, fixed origins, clipping, resize and update
git-svn-id: svn://10.0.0.236/trunk@16049 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:18:30 +00:00
pierre%netscape.com
65003d55c3 removed the NS_NATIVE_OFFSET_IN_PORT hacks
git-svn-id: svn://10.0.0.236/trunk@15899 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:37:15 +00:00
pierre%netscape.com
7fa140165d StartDraw() initializes the rendering context; it allows Update() to pass the rendering context to the children.
git-svn-id: svn://10.0.0.236/trunk@15872 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:37:46 +00:00
saari%netscape.com
5698cd65df Mac - Temporarly turning off the passing down of rendering contexts to children during updates to facilitate a hack that improves rendering. The hack is getting around the Windows centric XP code.
git-svn-id: svn://10.0.0.236/trunk@15677 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 04:26:46 +00:00
pierre%netscape.com
9acc3cde2c Update() receives the rendering context as a parameter and passes it to the children
git-svn-id: svn://10.0.0.236/trunk@15619 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 10:15:22 +00:00
saari%netscape.com
69c1d2263e This is the first in what will probably be a series of checkins addressing rendering on the Mac.
Changed files:
----------------------------------------
mozilla/gfx/src/mac/nsRenderingContextMac.h
mozilla/gfx/src/mac/nsRenderingContextMac.cpp 

- Major changes to the Mac rendering context implementation. nsRenderingContextMac now keeps the majority of its state in a GraphicsState object, not in member variables. Setting ports and origins is now a more tightly controlled process. Offscreen buffers don't work correctly yet.

To Do:
- Remove ::SetOrigin calls from most nsRenderingContextMac drawing methods
- Some old variables need to be fully obsoleted
- Offscreen GWorlds currently do not work correctly. This will be addressed shortly.

----------------------------------------

mozilla/widget/src/mac/nsMacWindow.cpp
- Line 112: fixed bug with rect bottom not being set correctly
----------------------------------------
mozilla/widget/public/nsIWidget.h
- Added some more #defines for GetNativeData. I don't like this and want to remove them ASAP.


/\/\/\/\/\//\

mozilla/widget/src/mac/nsWindow.h
mozilla/widget/src/mac/nsWindow.cpp
- Added mMacPortRelativeRegion
----------------------------------------
mozilla/widget/src/mac/nsScrollbar.cpp
- Support the new nsWindow constructs
----------------------------------------


git-svn-id: svn://10.0.0.236/trunk@15605 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:26:08 +00:00
mjudge%netscape.com
d999cf6a12 fix for mac no ')'
git-svn-id: svn://10.0.0.236/trunk@15552 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 21:39:13 +00:00
mjudge%netscape.com
82fc10e60f didnt check in the one file i needed!! not my day
git-svn-id: svn://10.0.0.236/trunk@15551 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 21:04:33 +00:00
mjudge%netscape.com
8c66b5b1ca casting like mad
git-svn-id: svn://10.0.0.236/trunk@15548 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:56:29 +00:00
mjudge%netscape.com
d5762e5956 fixing build bustage!
git-svn-id: svn://10.0.0.236/trunk@15547 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:28:34 +00:00
mjudge%netscape.com
a3ceb6c4f4 fixing mac build bustage
git-svn-id: svn://10.0.0.236/trunk@15545 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:17:01 +00:00
pinkerton%netscape.com
295a1367c6 Added SetCursor() override so that we will change the cursor when layout tells us.
git-svn-id: svn://10.0.0.236/trunk@14961 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:54:35 +00:00
beard%netscape.com
991d915062 Added ConvertToLocalCoordinates, WindowToLocalCoordinate for converting from window (device) coordinates to widget coordinates. Moved some calls from Destroy to the destructor to deal with a refcounting bug.
git-svn-id: svn://10.0.0.236/trunk@14730 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 23:31:37 +00:00
beard%netscape.com
33bc4f922b Changed COLOR8TOCOLOR16 to an inline function that simply returns (color8 << 8) | color8. This properly maps 0xFF to 0xFFFF, etc.
git-svn-id: svn://10.0.0.236/trunk@14726 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 21:56:40 +00:00
pierre%netscape.com
a6451b0f2c Initialize the 2 new fields of the nsSizeEvent (mWinWidth + mWinHeight) before dispatching the event. Fix a crash due to recursive calls in the sample viewer app.
git-svn-id: svn://10.0.0.236/trunk@14395 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 02:49:14 +00:00
pierre%netscape.com
78526b9f65 Set the coordinates ot the top-level object to (0,0) instead of its global coordinates.
Clipping and settting the origin is done in StartDraw() instead of Update().


git-svn-id: svn://10.0.0.236/trunk@14383 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:38:33 +00:00
pierre%netscape.com
7f91320a9f Added StartDraw() and EndDraw() + other fixes in Destroy()
git-svn-id: svn://10.0.0.236/trunk@14067 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 07:02:26 +00:00
rpotts%netscape.com
518fd29f37 Fix some build bustage...
git-svn-id: svn://10.0.0.236/trunk@13721 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 07:14:17 +00:00
pinkerton%netscape.com
7f1c53ffbd make sure we init mMenuBar to null.
git-svn-id: svn://10.0.0.236/trunk@13653 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-29 17:40:22 +00:00
pierre%netscape.com
3058b55651 Landing MacWidgets...
git-svn-id: svn://10.0.0.236/trunk@13651 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-29 14:06:26 +00:00
troy%netscape.com
336c7bc219 Added Update() member function which forces a synchronous repaint of any
dirty regions of the window


git-svn-id: svn://10.0.0.236/trunk@13524 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-27 00:16:59 +00:00
dcone%netscape.com
56adf83688 Small bug fix in resize
git-svn-id: svn://10.0.0.236/trunk@13403 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-23 21:29:17 +00:00
dcone%netscape.com
29a360ec69 Now checks the width and height before a NS_SIZE_EVENT is dispatched.
git-svn-id: svn://10.0.0.236/trunk@13387 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-23 18:02:38 +00:00
pierre%netscape.com
ea28d41d41 inherit from nsBaseWidget: removed lots of code
git-svn-id: svn://10.0.0.236/trunk@12986 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-16 09:21:23 +00:00
dcone%netscape.com
8d3cdccd9b added support to offset child window to correct location.
git-svn-id: svn://10.0.0.236/trunk@12700 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-13 16:33:39 +00:00
dcone%netscape.com
8a2b6ef6ab fixed some bugs
git-svn-id: svn://10.0.0.236/trunk@12452 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-09 21:46:30 +00:00
dcone%netscape.com
8317b5ebf6 updated the invalidate method
git-svn-id: svn://10.0.0.236/trunk@12424 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-09 15:18:26 +00:00
pierre%netscape.com
c4abb0434a fix build on mac after rods's changes in DispatchEvent
git-svn-id: svn://10.0.0.236/trunk@12260 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 02:00:23 +00:00
rods%netscape.com
071ff7bed5 Made an attempt at fixing the Mac port for the DispatchEvent change
git-svn-id: svn://10.0.0.236/trunk@12241 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 23:33:52 +00:00
dcone%netscape.com
1f2f92626a updated Dispatch to new interface.
git-svn-id: svn://10.0.0.236/trunk@12215 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 20:15:45 +00:00
dcone%netscape.com
e3ae8328f3 re-wrote the ConvertToDeviceCoordinates to offset the event point.
git-svn-id: svn://10.0.0.236/trunk@12203 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 17:59:26 +00:00
dcone%netscape.com
3132200b6b fixed offset problems
git-svn-id: svn://10.0.0.236/trunk@12191 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 15:13:19 +00:00
dcone%netscape.com
276f643418 fixed some offset bugs
git-svn-id: svn://10.0.0.236/trunk@12041 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-06 13:28:53 +00:00
michaelp%netscape.com
9402cfce2c font cache is no longer public.
git-svn-id: svn://10.0.0.236/trunk@11580 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 18:59:31 +00:00
kostello%netscape.com
7b2f4c649c Synch with Rod's changes to nsIWidget
git-svn-id: svn://10.0.0.236/trunk@11309 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 00:58:32 +00:00
dcone%netscape.com
a035d18976 fixed offset problems and parent heiarchy problems
git-svn-id: svn://10.0.0.236/trunk@11102 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 22:23:58 +00:00
dcone%netscape.com
74febbdf92 fixed some resizing issues
git-svn-id: svn://10.0.0.236/trunk@11036 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 15:12:55 +00:00
dcone%netscape.com
ed77d583c6 fixed resizing issues
git-svn-id: svn://10.0.0.236/trunk@10848 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 22:10:40 +00:00