99 Commits

Author SHA1 Message Date
pierre%netscape.com
cea0ffe123 Landing framesets changes. Numerous changes, essentially around mVisRegion and CalcWindowRegions(). Approved: choffmann. Bug #2236 et al.
git-svn-id: svn://10.0.0.236/trunk@29839 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 13:54:51 +00:00
saari%netscape.com
e6217f2eb2 Mac menu cleanup. No more holding onto the nsWebShell
git-svn-id: svn://10.0.0.236/trunk@29427 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 09:09:44 +00:00
danm%netscape.com
780878cdde Moving release of nsWindow object up from its Destroy method to its caller, nsMacEventHandler. This is a better remainder of a fix for bug 3676. r:saari a:chofmann.
git-svn-id: svn://10.0.0.236/trunk@24186 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 23:40:42 +00:00
sdagley%netscape.com
b25a5bd57a Had to temporarily back out danm's Release() hack from v1.95 as it causes a crash trying to load a new URL. While the hack did fix the problem with not being able to close the bookmark window my feeling is the crash is the less desirable behavior.
git-svn-id: svn://10.0.0.236/trunk@24157 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 03:18:05 +00:00
danm%netscape.com
2366297b1b adjusting refcount for menubars and deletion. deletion adjustment is a HACK for the impending milestone.
git-svn-id: svn://10.0.0.236/trunk@24108 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-14 08:22:43 +00:00
beard%netscape.com
5176ae5079 NS_NATIVE_PLUGIN_PORT
git-svn-id: svn://10.0.0.236/trunk@23880 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 04:33:29 +00:00
pierre%netscape.com
d711f26063 Improved SetCursor() to use the Appearance Mgr
git-svn-id: svn://10.0.0.236/trunk@22875 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 10:02:16 +00:00
pierre%netscape.com
15a6223e7e Put back the code but this time using the newly defined nsIBidirectionalEnumerator
git-svn-id: svn://10.0.0.236/trunk@21620 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 18:49:57 +00:00
pierre%netscape.com
be3111d1b5 Backed out part of the previous checkin to turn Tinderbox green again.
git-svn-id: svn://10.0.0.236/trunk@21606 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 16:30:31 +00:00
pierre%netscape.com
217fe9735b Fixed #3154 "Events don't work with fixed positioning". Fixed "clicks in vScrollBar down arrow are ignored".
git-svn-id: svn://10.0.0.236/trunk@21600 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 12:53:28 +00:00
pierre%netscape.com
e44999b362 Restored the v1.76 code for the loops through the children (no nsCOMPtr, no RTTI - today's problem was one too many). Updated comments.
git-svn-id: svn://10.0.0.236/trunk@21591 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 09:14:36 +00:00
warren%netscape.com
cb10d9f3a0 Cleaned up nsICollection and nsIEnumerator. Broke out nsIBidirectionalEnumerator. Added ISupportsArray enumerator. Cleaned nsISupportsArray.
git-svn-id: svn://10.0.0.236/trunk@21585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 08:10:24 +00:00
pinkerton%netscape.com
d47e32037c Temp fix for RTTI problems that are holding the tree closed. beard and pierre will discuss a real fix later. My comment at the top of this file summarizes the problem.
git-svn-id: svn://10.0.0.236/trunk@21528 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 01:28:25 +00:00
pierre%netscape.com
c5e9e52519 removed outdated comments
git-svn-id: svn://10.0.0.236/trunk@21457 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 10:20:39 +00:00
pierre%netscape.com
3e39d64a45 added nsDeleteObserver (#3147: crashes on mouseMoved or closeWindow)
git-svn-id: svn://10.0.0.236/trunk@21426 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-21 02:10:36 +00:00
saari%netscape.com
4966836d25 enable menus on mac
git-svn-id: svn://10.0.0.236/trunk@21317 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 18:17:24 +00:00
scc%netscape.com
66a0ecf87f changes for nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20888 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:29:19 +00:00
mcmullen%netscape.com
dcacbb662c Init the refcount.
git-svn-id: svn://10.0.0.236/trunk@20653 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:01:34 +00:00
pierre%netscape.com
99ffcc7501 Fixed more problems with nsCOMPtrs
git-svn-id: svn://10.0.0.236/trunk@20601 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:15:03 +00:00
saari%netscape.com
1f7957bbc7 fixed lame syntax error
git-svn-id: svn://10.0.0.236/trunk@19649 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:44:43 +00:00
saari%netscape.com
fc04cf4c17 ...fixing breakage...
git-svn-id: svn://10.0.0.236/trunk@19644 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:54:56 +00:00
saari%netscape.com
44aab19939 /m/pub/mozilla/widget/src/mac/nsWindow.cpp
/m/pub/mozilla/widget/src/motif/nsWindow.cpp
/m/pub/mozilla/widget/src/windows/nsWindow.cpp
- call nsMenuListener in DispatchEvent


git-svn-id: svn://10.0.0.236/trunk@18763 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 09:37:23 +00:00
pinkerton%netscape.com
8cad597409 Fix bug 2535 (memory leaks) with nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@18495 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 17:45:04 +00:00
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