Compare commits

..

2184 Commits

Author SHA1 Message Date
(no author)
dc6a03abd8 This commit was manufactured by cvs2svn to create tag 'Test'.
git-svn-id: svn://10.0.0.236/tags/Test@16560 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 07:00:19 +00:00
fur%netscape.com
6fdf35b4ee Adding SportModel, Warren Harris' partially complete garbage collector
code for the ElectricalFire JIT.


git-svn-id: svn://10.0.0.236/trunk@16558 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 07:00:17 +00:00
fur%netscape.com
d6c51785c1 Added Todd Proebsting's BURG to the tree, now that it's in the public domain.
git-svn-id: svn://10.0.0.236/trunk@16557 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 06:36:50 +00:00
wtc%netscape.com
00716e9f00 BSD/OS 4.0 fix, contributed by Bert Driehuis <driehuis@playbeing.org>.
git-svn-id: svn://10.0.0.236/trunk@16556 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 06:26:24 +00:00
sar%netscape.com
1d24e667da remove Mozilla from the list of cared about trees
git-svn-id: svn://10.0.0.236/trunk@16555 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 06:02:45 +00:00
sfraser%netscape.com
b49dbf5343 Add ; after class definition
git-svn-id: svn://10.0.0.236/trunk@16552 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 01:42:02 +00:00
law%netscape.com
e5f25e41f7 New bootstrapping code
git-svn-id: svn://10.0.0.236/trunk@16551 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 01:41:50 +00:00
sfraser%netscape.com
53f91a8d74 Add flag to clobber existing libraries and SYM files before building each project.
git-svn-id: svn://10.0.0.236/trunk@16548 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 01:24:37 +00:00
sfraser%netscape.com
2fdcede511 File Removed.
git-svn-id: svn://10.0.0.236/trunk@16547 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 01:21:56 +00:00
rods%netscape.com
a26d808264 Changed GetStyleHintForAttributeChange to return NS_STYLE_HINT_CONTENT
when there is a widget and return NS_STYLE_HINT_REFLOW when there isn't


git-svn-id: svn://10.0.0.236/trunk@16546 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 00:24:58 +00:00
buster%netscape.com
56e65bc685 use default constructor and destructor
git-svn-id: svn://10.0.0.236/trunk@16545 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 00:19:43 +00:00
hyatt%netscape.com
6156f1b8bc Fixing build bustage. Sorry!
git-svn-id: svn://10.0.0.236/trunk@16544 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 00:07:23 +00:00
hyatt%netscape.com
5ecb5d5e3e Fixing build bustage. Sorry!
git-svn-id: svn://10.0.0.236/trunk@16543 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 00:05:06 +00:00
mcmullen%netscape.com
9d22403d39 Set the error log file type so that it's a CodeWarrior file.
git-svn-id: svn://10.0.0.236/trunk@16542 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 23:48:55 +00:00
buster%netscape.com
ae77c06acc an encapsulation of border information
git-svn-id: svn://10.0.0.236/trunk@16541 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 23:42:22 +00:00
despotdaemon%netscape.com
3fcf8b76d0 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16540 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 23:16:22 +00:00
terry%netscape.com
1689e5634a Applied patch by cbaldwin@siara.com -- make sorting by "importance"
use "severity" as a secondary sort.  Fixes bug 1907.


git-svn-id: svn://10.0.0.236/trunk@16539 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 23:13:19 +00:00
hyatt%netscape.com
87091d27c8 Added code for hit detection. (Can now detect a hit on the trigger and tell
which row/column was hit.)


git-svn-id: svn://10.0.0.236/trunk@16538 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 23:02:30 +00:00
buster%netscape.com
14d33feee0 oops, there were duplicate entries for border collapse values. Now there's not.
git-svn-id: svn://10.0.0.236/trunk@16537 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 22:20:44 +00:00
buster%netscape.com
81b46aab62 WIP collapsing border work
git-svn-id: svn://10.0.0.236/trunk@16536 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 22:19:23 +00:00
hyatt%netscape.com
69cb7363fc Modifications for rollover color support.
git-svn-id: svn://10.0.0.236/trunk@16535 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 22:06:26 +00:00
davidm%netscape.com
dc02d2f159 Add mac code to get NSPR event queue for dispatching of link click events
git-svn-id: svn://10.0.0.236/trunk@16534 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 22:05:04 +00:00
davidm%netscape.com
beb59c3753 First pass at adding nspr event queue on the mac so that clicking on links works properly
git-svn-id: svn://10.0.0.236/trunk@16533 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 22:03:18 +00:00
sfraser%netscape.com
5fdb6c621c Fix the target name for building XPAppViewer.mcp
git-svn-id: svn://10.0.0.236/trunk@16532 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 21:45:20 +00:00
alecf%netscape.com
c6293b5192 don't use straight Makefiles
git-svn-id: svn://10.0.0.236/trunk@16531 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 19:23:08 +00:00
guha%netscape.com
e044ea58c6 more search stuff for opendir
git-svn-id: svn://10.0.0.236/trunk@16530 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 19:20:49 +00:00
wtc%netscape.com
1ea155fbbe Removed the #ifndef NO_NSPR_10_SUPPORT around the _PR_MD_GET_SP
macro definition.  This macro is used internally by NSPR20.


git-svn-id: svn://10.0.0.236/trunk@16529 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:56:01 +00:00
kin%netscape.com
54a8daa36c Turning on txmgr in the Unix and Windows builds.
git-svn-id: svn://10.0.0.236/trunk@16528 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:54:30 +00:00
kin%netscape.com
b8de20feb4 Backout previous changes to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@16527 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:52:23 +00:00
mjudge%netscape.com
5f09556bb7 write now takes ints instead of unsigned ints
git-svn-id: svn://10.0.0.236/trunk@16526 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:43:13 +00:00
kmcclusk%netscape.com
69c1a49b16 Fix for Linux build
git-svn-id: svn://10.0.0.236/trunk@16525 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:39:48 +00:00
akkana%netscape.com
b3419765c0 Adding public routine ComparePoints for mjudge
git-svn-id: svn://10.0.0.236/trunk@16524 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:36:48 +00:00
kmcclusk%netscape.com
6b50236c51 Added files to do postscript output.
git-svn-id: svn://10.0.0.236/trunk@16523 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:30:12 +00:00
kmcclusk%netscape.com
538ee8b859 Moved most of the printer paint code to nsFormControlFrame. Added
autodoc compatible comments.


git-svn-id: svn://10.0.0.236/trunk@16522 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:12:55 +00:00
dcone%netscape.com
47cce4fecb fixed resoluton problem for printing.
git-svn-id: svn://10.0.0.236/trunk@16521 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:02:38 +00:00
buster%netscape.com
7e9d6c54cd WIP on collapsing borders
git-svn-id: svn://10.0.0.236/trunk@16519 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 17:05:14 +00:00
cls%seawood.org
1ebcf35498 Apparently, nsIURL::GetSpec changed...
git-svn-id: svn://10.0.0.236/trunk@16518 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 11:33:33 +00:00
ramiro%netscape.com
6e143bcac4 Change #include "nsIHttpUrl.h" to #include "nsIHttpURL.h" for case sensitive
anality.


git-svn-id: svn://10.0.0.236/trunk@16517 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 10:27:49 +00:00
warren%netscape.com
fffed9ce8f Obsolete
git-svn-id: svn://10.0.0.236/trunk@16514 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 09:51:02 +00:00
warren%netscape.com
6a28c25b6f Removed nsURL.cpp
git-svn-id: svn://10.0.0.236/trunk@16513 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 09:50:19 +00:00
beard%netscape.com
41965931a0 Fixed case of nsIHttpURL.h
git-svn-id: svn://10.0.0.236/trunk@16511 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:56:10 +00:00
warren%netscape.com
614cfa76f7 Added include of autoconf.mk
git-svn-id: svn://10.0.0.236/trunk@16510 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:48:06 +00:00
warren%netscape.com
f1f63fd300 Fixed EXPORTS
git-svn-id: svn://10.0.0.236/trunk@16509 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:22:04 +00:00
warren%netscape.com
e7c800bb2f Fixed EXPORTS
git-svn-id: svn://10.0.0.236/trunk@16508 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:21:31 +00:00
warren%netscape.com
1dea681a6e Fixed some unsigned problems for the Mac.
git-svn-id: svn://10.0.0.236/trunk@16507 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 08:03:53 +00:00
warren%netscape.com
2fd20eda7f Added network/public/Makefile
git-svn-id: svn://10.0.0.236/trunk@16506 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 07:58:15 +00:00
sfraser%netscape.com
35363b3286 Fix the target name for building viewer.mcp
git-svn-id: svn://10.0.0.236/trunk@16505 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 06:50:27 +00:00
beard%netscape.com
55e404d5a1 Added new files.
git-svn-id: svn://10.0.0.236/trunk@16504 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 06:42:28 +00:00
buster%netscape.com
dd4dfe439e clean up, removed some obsolete methods
git-svn-id: svn://10.0.0.236/trunk@16503 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 06:33:15 +00:00
beard%netscape.com
a0fd7823b6 Fixed up exports.
git-svn-id: svn://10.0.0.236/trunk@16502 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 06:06:51 +00:00
beard%netscape.com
51b339a051 Removed nsIPostToServer.h (moved to public dir).
git-svn-id: svn://10.0.0.236/trunk@16501 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:59:42 +00:00
wtc%netscape.com
49b19a1a67 Replaced all but one use of IRIX5_3 by feature-based macros.
(Thanks to Brian Ostrom <briano@netscape.com>.)
Modified files: IRIX.mk and irix.c.


git-svn-id: svn://10.0.0.236/trunk@16500 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:58:43 +00:00
warren%netscape.com
83e04dcd25 new
git-svn-id: svn://10.0.0.236/trunk@16499 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:50:21 +00:00
wtc%netscape.com
1476b01c77 Include protypes.h only if NO_NSPR_10_SUPPORT is not defined.
Also, always define the data types PRWord and PRUword but
warn people not to use these two undocumented types in new code.


git-svn-id: svn://10.0.0.236/trunk@16498 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:46:32 +00:00
warren%netscape.com
fd5d879803 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener.
git-svn-id: svn://10.0.0.236/trunk@16497 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:46:06 +00:00
troy%netscape.com
70e0a8cddb Fixed a crash when display www.sjmercury.com paginated, because we thought
we could re-use our cached cell desired info and we couldn't because there
was a next-in-flow frame and so we needed to reflow the cell frame and pull-up
its next-in-flow child frames


git-svn-id: svn://10.0.0.236/trunk@16496 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:41:57 +00:00
warren%netscape.com
5f54c1af03 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener.
git-svn-id: svn://10.0.0.236/trunk@16495 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:40:20 +00:00
troy%netscape.com
a8a9f7aeaa Changed SetRowIndex() to be inline and non-virtual
git-svn-id: svn://10.0.0.236/trunk@16494 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 04:31:38 +00:00
troy%netscape.com
37b2438c51 Removed InitRowData() member function which is now obsolete
git-svn-id: svn://10.0.0.236/trunk@16493 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 04:08:36 +00:00
cltbld%netscape.com
73c80e1f09 do not decend into xpfe if there is nothing to do there.
git-svn-id: svn://10.0.0.236/trunk@16492 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:59:13 +00:00
sfraser%netscape.com
3f462d434b Have pull{all} set all the other pull{}s.
git-svn-id: svn://10.0.0.236/trunk@16491 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:47:14 +00:00
troy%netscape.com
45e2d974e8 Some improvements to the row splitting code
git-svn-id: svn://10.0.0.236/trunk@16490 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:46:03 +00:00
sfraser%netscape.com
ef4f88d1b7 Ensure that default is to build all.
git-svn-id: svn://10.0.0.236/trunk@16489 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:44:58 +00:00
sfraser%netscape.com
e324dbae1d Assert on a null widget Ptr
git-svn-id: svn://10.0.0.236/trunk@16488 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:37:56 +00:00
sfraser%netscape.com
0e0e29c9c8 Remove bad ;
git-svn-id: svn://10.0.0.236/trunk@16487 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:37:13 +00:00
sfraser%netscape.com
5ba63fa656 Fix target and output libary names.
git-svn-id: svn://10.0.0.236/trunk@16486 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:34:58 +00:00
sfraser%netscape.com
86c67555dc Add more granularity to build options, make new routine to reconcile and build a project and make the aliases.
git-svn-id: svn://10.0.0.236/trunk@16485 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:31:18 +00:00
sfraser%netscape.com
f8738e790b Add more granularity to build options, fix the {all} flag to really pull/build everything.
git-svn-id: svn://10.0.0.236/trunk@16484 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:30:39 +00:00
sfraser%netscape.com
93175a9d1a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16483 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:28:54 +00:00
sfraser%netscape.com
04825239b5 Make sure the port is initialized before being used.
git-svn-id: svn://10.0.0.236/trunk@16482 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:59:31 +00:00
toshok%hungry.com
1716bebdaa (at least for GNUC platforms) don't rely on nasty division-by-zero tricks to generate +-inf and nan. instead borrow the bitlevel twiddling javascript uses. I would imagine that this would work for all platforms that use IEEE floats (which is necessarily all platforms for which EF will work), but someone else needs to figure out if windows will work with this code.
git-svn-id: svn://10.0.0.236/trunk@16481 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:38:18 +00:00
troy%netscape.com
3c043772bd Removed SetColIndex() which wasn't being used
git-svn-id: svn://10.0.0.236/trunk@16480 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:35:25 +00:00
ramiro%netscape.com
b251e7edab Yank xpviewer from the build on unix and win.
git-svn-id: svn://10.0.0.236/trunk@16479 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:33:41 +00:00
toshok%hungry.com
9829ca641c clear up screw up in previous commit.
git-svn-id: svn://10.0.0.236/trunk@16478 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:30:14 +00:00
toshok%hungry.com
7bb90048a0 install shared libs in dist/ARCH/bin, not dist/ARCH/lib - following the same convention as the mozilla tree.
git-svn-id: svn://10.0.0.236/trunk@16477 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:28:17 +00:00
toshok%hungry.com
0344418064 build shared libs with CC instead of LD.
git-svn-id: svn://10.0.0.236/trunk@16476 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:26:49 +00:00
guha%netscape.com
c2b7286754 more shit for opendir
git-svn-id: svn://10.0.0.236/trunk@16475 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:25:37 +00:00
gordon%netscape.com
436dd5e622 Update table of contents for files added to layout and rdf. This is only used by Patrick's build system changes.
git-svn-id: svn://10.0.0.236/trunk@16474 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:22:53 +00:00
toshok%hungry.com
be3cf9b82e dist is not one directory higher than ef.
git-svn-id: svn://10.0.0.236/trunk@16473 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 01:13:05 +00:00
donm%netscape.com
aa2eff126c backing out Shaver's changes. -donm
git-svn-id: svn://10.0.0.236/trunk@16472 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 00:49:36 +00:00
jfrancis%netscape.com
35b781edaa ComparePointToRange() now reuses IsIncreasing functionality; also fixed a for loop in DeleteContents()
git-svn-id: svn://10.0.0.236/trunk@16471 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 23:58:09 +00:00
michaelp%netscape.com
ce7a472f74 we now call GetNearestColor() in 16bpp when creating brushes and pens.
git-svn-id: svn://10.0.0.236/trunk@16470 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 23:13:59 +00:00
despotdaemon%netscape.com
48d7cbdc95 Pseudo-automatic update of changes made by ppandit@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16469 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 23:04:38 +00:00
waterson%netscape.com
f027e45add Fixed extra root node.
git-svn-id: svn://10.0.0.236/trunk@16468 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:55:59 +00:00
kmcclusk%netscape.com
392927ef69 Added more form elements to printer test
git-svn-id: svn://10.0.0.236/trunk@16467 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:51:49 +00:00
mcmullen%netscape.com
ab3213f20d Made all this build on Unix, using Macros up the wazoo
git-svn-id: svn://10.0.0.236/trunk@16466 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:45:09 +00:00
brade%netscape.com
0be011b818 typing hack extended to get it working on Macintosh
git-svn-id: svn://10.0.0.236/trunk@16465 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:34:54 +00:00
brade%netscape.com
afc9ac03c5 remove unnecessary functions which are in imglib
git-svn-id: svn://10.0.0.236/trunk@16464 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:27:03 +00:00
brade%netscape.com
1c0b61001a remove unnecessary files (including nspr group) and macToBeImplemented.cp
git-svn-id: svn://10.0.0.236/trunk@16463 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:25:45 +00:00
dcone%netscape.com
990c1c17d6 fixed the scaling bug
git-svn-id: svn://10.0.0.236/trunk@16462 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:22:40 +00:00
brade%netscape.com
dde36d487c fix compiler warning / bug: initialize index to 0 (reviewed peterl@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@16461 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:19:04 +00:00
sfraser%netscape.com
4348f6321d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16460 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:17:48 +00:00
shaver%netscape.com
a0097337f4 Make apprunner link dynamically.
Sprinkle Makefile.ins with NO_STATIC_LIB to speed the build and reduce the disk
requirements.


git-svn-id: svn://10.0.0.236/trunk@16459 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:17:14 +00:00
despotdaemon%netscape.com
c0a95f1d82 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@16458 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 22:15:18 +00:00
sfraser%netscape.com
85c73e1f43 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16457 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 21:59:40 +00:00
terry%netscape.com
e31b2db976 Oops; the magic partition is named 'despotaccess'.
git-svn-id: svn://10.0.0.236/trunk@16456 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 21:44:16 +00:00
troy%netscape.com
a6cb99357c Removed an assert that was being triggered in a caseI didn't expect
git-svn-id: svn://10.0.0.236/trunk@16455 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 21:26:05 +00:00
sfraser%netscape.com
c3693fede6 Make it build.
git-svn-id: svn://10.0.0.236/trunk@16454 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:13:41 +00:00
sfraser%netscape.com
c505b460e7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16453 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:12:50 +00:00
rods%netscape.com
d239199ee1 Added Pseudo-element styles for the scrollbar "look"
git-svn-id: svn://10.0.0.236/trunk@16452 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:11:57 +00:00
kmcclusk%netscape.com
8b74b7b8fe Fix for the Mac.
git-svn-id: svn://10.0.0.236/trunk@16451 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:08:50 +00:00
rods%netscape.com
ea9f077c63 Added painting methods for printing
git-svn-id: svn://10.0.0.236/trunk@16450 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:03:36 +00:00
kmcclusk%netscape.com
c36571afa1 Added code to render button using GFX for printing.
git-svn-id: svn://10.0.0.236/trunk@16449 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 18:50:21 +00:00
akkana%netscape.com
fb81fd89e2 Initial stab at CloneContents implementation
git-svn-id: svn://10.0.0.236/trunk@16448 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 18:47:44 +00:00
terry%netscape.com
cb4a178ce1 Patch from Ashley Clark <aclark@CS.UH.EDU>, which hopefully fixes bug 1499.
git-svn-id: svn://10.0.0.236/trunk@16447 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 18:13:12 +00:00
kipp%netscape.com
17c732418d Removed bogus null pointer check
git-svn-id: svn://10.0.0.236/trunk@16446 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 17:59:49 +00:00
kipp%netscape.com
5c3396dcd0 Added absmiddle to table halign values
git-svn-id: svn://10.0.0.236/trunk@16445 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 17:58:59 +00:00
kipp%netscape.com
150e5ffcba Map align=center to auto side margins
git-svn-id: svn://10.0.0.236/trunk@16444 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 17:58:45 +00:00
dcone%netscape.com
b18c392afc fixed some scaling issues for the mac, more to come
git-svn-id: svn://10.0.0.236/trunk@16443 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 16:56:53 +00:00
troy%netscape.com
e02d2dc1c0 Work-in-progress for splitting of table row frames
git-svn-id: svn://10.0.0.236/trunk@16442 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 16:39:09 +00:00
shaver%netscape.com
9e90a70671 Add --enable-debug=module1,module2 to selective turn on debugging.
Remove --enable-dom, because Mariner is dead (sob).
Rename some MODULE= lines to make the afore-mentioned --enable-debug
technique actually useful.  Feel free to recategorize.
Fix libraptorhtml.so link bogosity by disabling shared lib generation for the
sub-archives (libraptor*_s.a), so that we can put bin before lib in the
library path and still get the right effect.  We could disable static-lib
generation in most other places and cut the build time down a fair bit, too.
[NOTE: I'm getting on a train...msw@gimp.org has agreed to be my tinderbox
buddy.  Thanks, Matt!]


git-svn-id: svn://10.0.0.236/trunk@16441 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 16:32:37 +00:00
waterson%netscape.com
85f23406df Added nsStreamDataSource to the factory.
git-svn-id: svn://10.0.0.236/trunk@16434 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:49:03 +00:00
waterson%netscape.com
94e78ef4fe Added code to handle columns specified by an RDF sequence.
git-svn-id: svn://10.0.0.236/trunk@16433 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:48:22 +00:00
waterson%netscape.com
84459dcc40 Changed columns to use a sequence. Bug fix for bookmark names.
git-svn-id: svn://10.0.0.236/trunk@16432 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:48:01 +00:00
waterson%netscape.com
8fbc761b21 Removed #if 1's left around from mjudge's selection changes.
git-svn-id: svn://10.0.0.236/trunk@16431 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:47:10 +00:00
waterson%netscape.com
ad0ce1c24d Added factory function for nsStreamDataSource.
git-svn-id: svn://10.0.0.236/trunk@16430 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:46:22 +00:00
waterson%netscape.com
7ca2eba892 Silly bug fixes.
git-svn-id: svn://10.0.0.236/trunk@16429 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:45:25 +00:00
waterson%netscape.com
1197d3600f Added utility routines to create RDF Sequence and Bag objects. Added prototype for RDF container cursor. Added some comments.
git-svn-id: svn://10.0.0.236/trunk@16428 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:44:40 +00:00
waterson%netscape.com
cbdcab6dab Added utility routines to create RDF Sequence and Bag objects. Expanded rdf_IsContainer() to accept sequences.
git-svn-id: svn://10.0.0.236/trunk@16427 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:44:11 +00:00
waterson%netscape.com
8bf4e3b0b0 Added nsContainerCursor and nsStreamDataSource to the build.
git-svn-id: svn://10.0.0.236/trunk@16426 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:42:18 +00:00
waterson%netscape.com
550a0137e7 Added StreamDataSource CID.
git-svn-id: svn://10.0.0.236/trunk@16425 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:40:29 +00:00
ramiro%netscape.com
ddbc3a26e0 Rename 'libdbm' to 'libmozdbm' and 'libutil' to 'libmozutil.
This will fix the problem many people are reporting wrt conflicts with
system libraries that have the same names.


git-svn-id: svn://10.0.0.236/trunk@16424 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:37:32 +00:00
ramiro%netscape.com
9f6c27385c Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@16423 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:32:11 +00:00
ramiro%netscape.com
e4a1b5c41f Make it link again.
git-svn-id: svn://10.0.0.236/trunk@16422 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 07:31:57 +00:00
vidur%netscape.com
290921df31 Enabled asynchronous loading of SCRIPT SRC=, STYLE SRC= and LINK elements for style sheets. Changed nsIScriptContext to not be dependent on JavaScript.
git-svn-id: svn://10.0.0.236/trunk@16421 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 06:10:59 +00:00
raman%netscape.com
b40d7ccdf1 Checking in changes from Bob Glickstein
git-svn-id: svn://10.0.0.236/trunk@16420 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:53:19 +00:00
michaelp%netscape.com
3d6d1f72b8 added ability to create a drawing surface from an HDC under windows.
git-svn-id: svn://10.0.0.236/trunk@16419 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:51:30 +00:00
michaelp%netscape.com
5f60004b2a made damagearea management more aggressive as a temporary fix until
individual classes can to the right thing.


git-svn-id: svn://10.0.0.236/trunk@16418 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:49:48 +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
22e651792f we no longer tell the widgets to paint themselves as a result of
a resize operation.


git-svn-id: svn://10.0.0.236/trunk@16416 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:45:05 +00:00
michaelp%netscape.com
5c2ef95d1e we now pass the damage region given to us in BeginPaint() into the
rendering context for better damage management.


git-svn-id: svn://10.0.0.236/trunk@16415 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:44:21 +00:00
jfrancis%netscape.com
c429df6955 implemented toString() + minor fixmeups
git-svn-id: svn://10.0.0.236/trunk@16414 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:42:29 +00:00
kipp%netscape.com
154911fa72 Added NS_FRAME_IS_REPLACED macro
git-svn-id: svn://10.0.0.236/trunk@16413 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:21:56 +00:00
kipp%netscape.com
2e8adddd5b Fixed up absolute and floating frame types to support replaced variants
git-svn-id: svn://10.0.0.236/trunk@16412 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:21:28 +00:00
kipp%netscape.com
d2b528951f Moved floater reflow out of PlaceFloater and into AddFloater so that floaters are only reflowed during reflow, not during placement; Added code to support css 10.3.5; reflow floaters more often so that % width values are recomputed properly
git-svn-id: svn://10.0.0.236/trunk@16411 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:20:54 +00:00
waterson%netscape.com
c42397f0f7 Added nsStreamDataSource.cpp and nsContainerCursor.cpp to the build.
git-svn-id: svn://10.0.0.236/trunk@16410 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:14:12 +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
waterson%netscape.com
c7807b0694 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@16408 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:03:24 +00:00
pierre%netscape.com
17ee92de4e added OnPaint() to return 'false' and notify nsWindow not to dispatch the Update event
git-svn-id: svn://10.0.0.236/trunk@16407 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:03:09 +00:00
wtc%netscape.com
cdaaa17945 In ntio.c, w95io.c, _PR_MD_OPEN, handle all combinations of
PR_CREATE_FILE and PR_TRUNCATE correctly.


git-svn-id: svn://10.0.0.236/trunk@16406 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:58:53 +00:00
waterson%netscape.com
03e5647e91 Added additional comments to clarify the API.
git-svn-id: svn://10.0.0.236/trunk@16405 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:49:36 +00:00
cls%seawood.org
4c418bae35 Added build option for idl tool. Thanks to Tague Griffith <tague@netscape.com> for the patch and the patience while I fumbled this patch. :)
git-svn-id: svn://10.0.0.236/trunk@16404 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:24:59 +00:00
cls%seawood.org
ee193ef351 Fixed redefinition warning
git-svn-id: svn://10.0.0.236/trunk@16403 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:21:23 +00:00
sfraser%netscape.com
b855c2224f Fixed Show() to store a full UNIX path to the selected file
git-svn-id: svn://10.0.0.236/trunk@16402 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:11:59 +00:00
sfraser%netscape.com
5c2a49946c Add nsFileSpec.h and nsFileStream.h
git-svn-id: svn://10.0.0.236/trunk@16401 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:08:57 +00:00
pierre%netscape.com
b3260e79f3 added nsDialog.cpp ans nsLabel.cpp
git-svn-id: svn://10.0.0.236/trunk@16400 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:05:50 +00:00
pierre%netscape.com
44872cb156 support nsDialog ans nsLabel
git-svn-id: svn://10.0.0.236/trunk@16399 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:05:06 +00:00
pierre%netscape.com
daec709396 fixed bug where the Find dialog would not show up again after being dismissed
git-svn-id: svn://10.0.0.236/trunk@16398 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:04:22 +00:00
pierre%netscape.com
d4a2037c77 support dialogs
git-svn-id: svn://10.0.0.236/trunk@16397 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:03:10 +00:00
pierre%netscape.com
6ddaa74f65 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16396 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 03:00:25 +00:00
kin%netscape.com
0d2bb86e8d Added OPTIMIZATION comment.
git-svn-id: svn://10.0.0.236/trunk@16395 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 02:12:25 +00:00
kin%netscape.com
0f65caf3dd Added tests for SetMaxTransactionCount().
git-svn-id: svn://10.0.0.236/trunk@16394 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 02:11:53 +00:00
kin%netscape.com
7018fe3720 Removed ';' in IID defines. This was causing a problem on the Mac.
git-svn-id: svn://10.0.0.236/trunk@16393 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 02:11:17 +00:00
kipp%netscape.com
b079346b21 Landed a patch from bobg@zanshin.com
git-svn-id: svn://10.0.0.236/trunk@16392 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 01:34:36 +00:00
mcafee%netscape.com
202af650d9 Adding Unix makefile
git-svn-id: svn://10.0.0.236/trunk@16391 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 01:27:04 +00:00
pierre%netscape.com
9b0e44bc06 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16390 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 01:06:58 +00:00
guha%netscape.com
f0571c2a80 Another try at search
git-svn-id: svn://10.0.0.236/trunk@16389 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:47:13 +00:00
pinkerton%netscape.com
d1317f2880 add nsHTToolbarContentModel.cpp to obj's as well as src's. Doh!
git-svn-id: svn://10.0.0.236/trunk@16388 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:42:55 +00:00
kipp%netscape.com
2ce3039b2f Print out state bits in hex too
git-svn-id: svn://10.0.0.236/trunk@16387 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:16:32 +00:00
kipp%netscape.com
a7b5b1756b #ifdef'd out the outside-children state methods
git-svn-id: svn://10.0.0.236/trunk@16386 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:16:21 +00:00
kipp%netscape.com
24118eb742 Reworked line-height handling: correctly implements the spec; use value computed by nsHTMLReflowState::CalcLineHeight
git-svn-id: svn://10.0.0.236/trunk@16385 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:16:00 +00:00
kipp%netscape.com
d37bc79ff0 Removed CalcLineHeightFor
git-svn-id: svn://10.0.0.236/trunk@16384 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:15:11 +00:00
kipp%netscape.com
6d68b31e76 Added CalcLineHeight and store it in mLineHeight
git-svn-id: svn://10.0.0.236/trunk@16383 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:14:56 +00:00
kipp%netscape.com
4e857157a0 Added CalcLineHeight and apply it to inline non-replaced elements as a constrained height
git-svn-id: svn://10.0.0.236/trunk@16382 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:14:36 +00:00
cyeh%netscape.com
61412b1a29 latest script used to power autoconf builds of raptor. this script
doesn't use a config file, and is used for example purposes only with no support


git-svn-id: svn://10.0.0.236/trunk@16381 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:14:25 +00:00
kipp%netscape.com
c2218cb81a Fixed rendering problems with lines with outside children; repaired code (currently unused an ifdef'd) to compute the lines outside children state
git-svn-id: svn://10.0.0.236/trunk@16380 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:14:09 +00:00
guha%netscape.com
9e0c533ef7 add search to the big graph
git-svn-id: svn://10.0.0.236/trunk@16379 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:11:09 +00:00
locka%iol.ie
196afe06c1 Added more event handlers and diagnostics
git-svn-id: svn://10.0.0.236/trunk@16378 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:05:28 +00:00
pinkerton%netscape.com
0fda51f903 don't build xpfeViewer anymore (obsolete).
git-svn-id: svn://10.0.0.236/trunk@16377 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:54:23 +00:00
pinkerton%netscape.com
fb8232ca54 add nsHTToolbarContentModel.cpp
git-svn-id: svn://10.0.0.236/trunk@16376 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:51:34 +00:00
pinkerton%netscape.com
ceee8b0c9e minor tweaks to nsBasicStyleInfo struct.
git-svn-id: svn://10.0.0.236/trunk@16375 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:51:04 +00:00
pinkerton%netscape.com
59448b1e96 Talk to new nsHTToolbarDataModel
git-svn-id: svn://10.0.0.236/trunk@16374 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:50:34 +00:00
kin%netscape.com
171b21fb37 Added TestTransactionFactory classes. Got rid of duplicate test/stress
functions.


git-svn-id: svn://10.0.0.236/trunk@16373 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:50:27 +00:00
pinkerton%netscape.com
1ce1ff99f0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16372 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:50:02 +00:00
wtc%netscape.com
ca19426d30 Removed unnecessary -L/lib.
git-svn-id: svn://10.0.0.236/trunk@16371 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:30:43 +00:00
akkana%netscape.com
d58d0a3921 Tracking jfrancis' iterator check-in
git-svn-id: svn://10.0.0.236/trunk@16370 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:18:46 +00:00
jfrancis%netscape.com
1c1c6429fe adding nsContentIterator
git-svn-id: svn://10.0.0.236/trunk@16369 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:17:52 +00:00
jfrancis%netscape.com
fee6efbada First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16368 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 23:16:31 +00:00
brade%netscape.com
c0fb04fc5f (per macdev mtg) always turn on RTTI in all projects
git-svn-id: svn://10.0.0.236/trunk@16367 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 22:57:45 +00:00
wtc%netscape.com
d1ce96d0b6 Minor cleanup/fix in DoScanf.
git-svn-id: svn://10.0.0.236/trunk@16366 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 22:49:47 +00:00
guha%netscape.com
3f23052215 Add mail.c to the repository (not referenced from anywhere yet)
git-svn-id: svn://10.0.0.236/trunk@16365 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 22:49:29 +00:00
wtc%netscape.com
7c5994a202 Misc. changes for Digital Unix and pthreads. Digital Unix's ld does
not understand the -h option but has an equivalent -soname option.
Check for the symbol pthread_attr_init instead of pthread_create in
libpthread because DCE threads also has the symbol pthread_create.


git-svn-id: svn://10.0.0.236/trunk@16364 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 22:48:03 +00:00
pnunn%netscape.com
6592ea720c fix to squelch some mac warnings. -pnunn.
git-svn-id: svn://10.0.0.236/trunk@16363 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 22:42:06 +00:00
guha%netscape.com
cfdde8ce49 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@16362 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 20:51:53 +00:00
mjudge%netscape.com
3820937d83 updating txmgr..
git-svn-id: svn://10.0.0.236/trunk@16361 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 20:38:36 +00:00
waterson%netscape.com
b122062afc Add NameSpaceManagerCID to list of registered CIDs.
git-svn-id: svn://10.0.0.236/trunk@16360 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 19:50:57 +00:00
waterson%netscape.com
75bbf4231c Make sure to attach the newly created column element to the right place.
git-svn-id: svn://10.0.0.236/trunk@16359 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 19:50:18 +00:00
mjudge%netscape.com
73b2bc6983 caps strikes again
git-svn-id: svn://10.0.0.236/trunk@16355 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 19:10:37 +00:00
shaver%netscape.com
483f66118d Now use MODULE instead of MODULE_NAME.
Update README for new libIDL version.
Add -o basename option and use proper output.
Eradicate some final stdout references.
Pretty printing, whee.
New |operator delete| and |IID| stuff for scc.
Support for raw codefrags (``%{ C++\n ... \n%}\n'') and more bufmgmt debugging.
Use IDL_file_set everywhere.


git-svn-id: svn://10.0.0.236/trunk@16354 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:47:39 +00:00
mjudge%netscape.com
6e0b2ad629 txmgr changes not built yet
git-svn-id: svn://10.0.0.236/trunk@16353 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:46:13 +00:00
cyeh%netscape.com
8f536c20d5 fix path problem (that could cause OpenErrorLog() to die) and also
change log name to something more meaningful and to something that
won't collide with a compile log from a previous run


git-svn-id: svn://10.0.0.236/trunk@16352 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:41:44 +00:00
kin%netscape.com
0b5f55908a Removed src directory from list of includes.
git-svn-id: svn://10.0.0.236/trunk@16351 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:39:33 +00:00
kin%netscape.com
fb5695338a Removed src directory from includes list.
git-svn-id: svn://10.0.0.236/trunk@16350 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:39:14 +00:00
kin%netscape.com
5bb6af4f01 Added LLIBS and MISCDEP.
git-svn-id: svn://10.0.0.236/trunk@16349 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:37:46 +00:00
mjudge%netscape.com
5f6331ba4d fixing registry for the range class
git-svn-id: svn://10.0.0.236/trunk@16348 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:34:34 +00:00
mjudge%netscape.com
e19079121c adding in selection
git-svn-id: svn://10.0.0.236/trunk@16347 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:34:14 +00:00
mjudge%netscape.com
68159176d3 adding focus tracker
git-svn-id: svn://10.0.0.236/trunk@16346 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:31:13 +00:00
ramiro%netscape.com
7a71f65f31 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@16345 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 16:27:13 +00:00
pierre%netscape.com
72531f0b59 Fix resource path of throbber images
git-svn-id: svn://10.0.0.236/trunk@16344 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 06:42:02 +00:00
troy%netscape.com
0e65aac3d0 Tables now clear the isTopOfPage when appropriate
git-svn-id: svn://10.0.0.236/trunk@16343 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 01:24:11 +00:00
guha%netscape.com
5aaac3f56b bunch of fixes to make it run properly under Solaris
git-svn-id: svn://10.0.0.236/trunk@16342 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 23:45:53 +00:00
beard%netscape.com
73e5094949 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16341 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 23:27:52 +00:00
beard%netscape.com
f4eea4abb9 Added .log files, and modification date comparison. Should make average case build times unchanged. This is still not enabled. The MRO and sort scripting additions need to be added to the build suite.
git-svn-id: svn://10.0.0.236/trunk@16340 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 23:24:01 +00:00
mcafee%netscape.com
f7b0720a2d Adding -l build/autoconf flag to autoconf, per cls's comment in the aclocal.m4 log
git-svn-id: svn://10.0.0.236/trunk@16339 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 22:34:17 +00:00
av%netscape.com
e8905988f4 Making object tag to display alternative context
git-svn-id: svn://10.0.0.236/trunk@16338 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:44:55 +00:00
locka%iol.ie
73013502d6 Added Debug menu and menu option to list the IOleCommandTarget supported commands on each control
git-svn-id: svn://10.0.0.236/trunk@16337 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:43:25 +00:00
locka%iol.ie
78980b8e5b Tweaked QueryInterface implementation
git-svn-id: svn://10.0.0.236/trunk@16336 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:41:46 +00:00
locka%iol.ie
f46aba1bae Modified IOleCommandTarget to support the same commands as IE
git-svn-id: svn://10.0.0.236/trunk@16335 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:41:04 +00:00
locka%iol.ie
284bd9d1ad Added preliminary support for windowless controls
git-svn-id: svn://10.0.0.236/trunk@16334 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:39:46 +00:00
beard%netscape.com
0ffd6d37da First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16333 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:12:19 +00:00
beard%netscape.com
7a87a8d596 Now does a list compare of target files before performing a merge pass.
git-svn-id: svn://10.0.0.236/trunk@16332 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 21:11:47 +00:00
beard%netscape.com
bcecb262db Now includes.exp files.
git-svn-id: svn://10.0.0.236/trunk@16331 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 18:33:00 +00:00
beard%netscape.com
560940ca2f Regenerated with GenToc.
git-svn-id: svn://10.0.0.236/trunk@16330 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 18:15:37 +00:00
beard%netscape.com
d0e372deb7 Mac project reconciliation. MANIFESTO.pm is currently disabled.
git-svn-id: svn://10.0.0.236/trunk@16329 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 07:11:44 +00:00
beard%netscape.com
c716c4a913 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16328 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 05:14:29 +00:00
beard%netscape.com
ec4c624a54 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16327 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 05:08:00 +00:00
beard%netscape.com
a4edceb665 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16326 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 05:01:04 +00:00
hyatt%netscape.com
c213bf9385 Fixing a minor drawing bug (filling in of the blank lines in the tree).
git-svn-id: svn://10.0.0.236/trunk@16325 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-13 01:20:35 +00:00
kipp%netscape.com
21b1837275 When verify-reflow-all is enabled, update the display after each reflow and pause for a while
git-svn-id: svn://10.0.0.236/trunk@16323 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:21:05 +00:00
kipp%netscape.com
c8a7ca5e0b Factored out whitespace trimming from horizontal alignment
git-svn-id: svn://10.0.0.236/trunk@16322 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:20:35 +00:00
kipp%netscape.com
79aff1475c Made ListTag more usable for all frame types, not just derivations of nsFrame
git-svn-id: svn://10.0.0.236/trunk@16321 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:20:10 +00:00
kipp%netscape.com
82c8bb51be Moved a #if 0 to get rid of a compiler warning
git-svn-id: svn://10.0.0.236/trunk@16320 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:19:48 +00:00
kipp%netscape.com
85576f2757 Reworked incremental reflow floater handling to place floaters as their state is recovered instead of moving them
git-svn-id: svn://10.0.0.236/trunk@16319 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:19:11 +00:00
kipp%netscape.com
23fbf960e6 Factored out floater sliding from SlideFrames; Added the dy value to the RecoverState method
git-svn-id: svn://10.0.0.236/trunk@16318 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:18:28 +00:00
kipp%netscape.com
ac10ae1a6e Revised ClearFloaters to loop so that all appropriate floaters are cleared
git-svn-id: svn://10.0.0.236/trunk@16317 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:17:58 +00:00
troy%netscape.com
0f21502444 Changed comments to conform to CSS2 guidelines for C-style comments
git-svn-id: svn://10.0.0.236/trunk@16316 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:07:38 +00:00
troy%netscape.com
6d649a1f27 Changed inline and block reflow code to reset reflow state's isTopOfPage
data member based on whether IsAdjacentWithTop() is true


git-svn-id: svn://10.0.0.236/trunk@16315 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 17:59:30 +00:00
troy%netscape.com
5b41f50a55 Changed Reflow() to set isTopOfPage in reflow state
git-svn-id: svn://10.0.0.236/trunk@16314 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 17:58:18 +00:00
troy%netscape.com
40180a9345 Added isTopOfPage to nsIFrameReflow
git-svn-id: svn://10.0.0.236/trunk@16313 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 17:57:47 +00:00
rth%cygnus.com
b6e23e71e1 Detect and handle overloaded methods.
git-svn-id: svn://10.0.0.236/trunk@16312 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 08:21:25 +00:00
rth%cygnus.com
3a6c1f822f Re-implement for your legal protection.
git-svn-id: svn://10.0.0.236/trunk@16311 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 08:20:30 +00:00
rth%cygnus.com
602715aa5d Add missing java class include files.
git-svn-id: svn://10.0.0.236/trunk@16310 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 08:18:07 +00:00
rth%cygnus.com
4ff48ea3da Insert directory entries into a SortedTree for searching.
git-svn-id: svn://10.0.0.236/trunk@16309 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 05:23:36 +00:00
rth%cygnus.com
c4a9714f3e (EF_LIBS): Add DebuggerChannel and EFDisassemble.
(JAVAH): Set LD_LIBRARY_PATH.


git-svn-id: svn://10.0.0.236/trunk@16308 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:10:43 +00:00
rth%cygnus.com
47a1d7b033 (MKSHLIB): Must use gcc, not ld, to create shared libraries w/ constructors.
(NSPR_THREAD_LIBS): New.


git-svn-id: svn://10.0.0.236/trunk@16307 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:09:28 +00:00
rth%cygnus.com
e4d95b9e00 (LIBRARY_NAME): Change to EFDisassemble.
git-svn-id: svn://10.0.0.236/trunk@16306 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:08:12 +00:00
rth%cygnus.com
b8c872a73d (DIRS): Wildcard on the cpu, so that processors that do not have
disassemblers can still build.


git-svn-id: svn://10.0.0.236/trunk@16305 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:07:44 +00:00
rth%cygnus.com
32c02678df Use local labels as needed.
git-svn-id: svn://10.0.0.236/trunk@16304 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:06:58 +00:00
rth%cygnus.com
8981c7a2bd (GetPassedException): Abort. The existing "mov ecx,E" thing can not work.
Plus it generated invalid assembly.


git-svn-id: svn://10.0.0.236/trunk@16303 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:06:26 +00:00
rth%cygnus.com
6b2df5a9e9 Streamline INLINE_GET_EBP.
Error if this file is used on anything except x86.


git-svn-id: svn://10.0.0.236/trunk@16302 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:04:01 +00:00
rth%cygnus.com
c103052793 ANSI C++ disallows reinterpret_cast between objects and functions.
git-svn-id: svn://10.0.0.236/trunk@16301 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:02:56 +00:00
rth%cygnus.com
812e904367 Make sure nsinstall gets built before make export tries to use it.
git-svn-id: svn://10.0.0.236/trunk@16300 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 04:02:05 +00:00
cls%seawood.org
33093a91fe Updated to most recent versions from automake 1.2b so that libtool will work properly
git-svn-id: svn://10.0.0.236/trunk@16299 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 03:13:46 +00:00
kipp%netscape.com
4b719d4fb1 Repaired the background image rendering code to properly factor in the dirty-rect with background-position handling (bug #912)
git-svn-id: svn://10.0.0.236/trunk@16298 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 03:06:02 +00:00
kipp%netscape.com
2008c897f6 I disabled selection rendering until it works again
git-svn-id: svn://10.0.0.236/trunk@16297 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 03:05:24 +00:00
cls%seawood.org
42ddaac986 Moved gtk macros into separate file to make way for new macros with conflicting licenses. Requires that autoconf be called with '-l build/autoconf'.
git-svn-id: svn://10.0.0.236/trunk@16296 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 02:41:17 +00:00
cls%seawood.org
f5724875cf Start enforcing the requirement of autoconf 2.12 or higher.
git-svn-id: svn://10.0.0.236/trunk@16295 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 02:39:21 +00:00
leaf%mozilla.org
a034770e1f Adding fix to apprunner link problem. (from braddr@portland.puremagic.com)
git-svn-id: svn://10.0.0.236/trunk@16294 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 02:28:56 +00:00
mcmullen%netscape.com
30f968dd50 Deal with the case of a null string.
git-svn-id: svn://10.0.0.236/trunk@16293 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 02:07:11 +00:00
leaf%mozilla.org
42314a8047 Adding NSPR and client.mak for windows builds, and MozillaLicense just because
git-svn-id: svn://10.0.0.236/trunk@16292 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 02:02:57 +00:00
guha%netscape.com
bd2a632853 another pass at dynamic generation of open directory pages
git-svn-id: svn://10.0.0.236/trunk@16291 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 01:58:15 +00:00
beard%netscape.com
9beefb1f0e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16290 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 01:33:27 +00:00
law%netscape.com
54ddc73d23 Minor fix in operator=
git-svn-id: svn://10.0.0.236/trunk@16289 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 01:28:28 +00:00
scc%netscape.com
6ae6d4c919 VC++4.2 can't use a declaration expression as a test. Oh well. Moved declaration to outside the test.
git-svn-id: svn://10.0.0.236/trunk@16288 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 01:26:11 +00:00
law%netscape.com
06a4324063 Add NS_BASE to cause export from dll on Windows
git-svn-id: svn://10.0.0.236/trunk@16287 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 01:25:32 +00:00
cyeh%netscape.com
342f0ee7ff fix annoying little bug where if you specify an invalid log path, the open file call would fail, and you would silently get no build log.
now we check to see if open() succeeded, and if not, die accordingly.


git-svn-id: svn://10.0.0.236/trunk@16286 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 00:02:38 +00:00
mcmullen%netscape.com
9858d9f31a More windows stuff.
git-svn-id: svn://10.0.0.236/trunk@16285 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:52:31 +00:00
scc%netscape.com
622699edf5 wrong file checked in, checking in the real one (just in case)
git-svn-id: svn://10.0.0.236/trunk@16284 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:49:04 +00:00
scc%netscape.com
0dfcb344e8 Significantly upgraded functionality to automatically call QueryInterface when assigning in incompatible pointers.
git-svn-id: svn://10.0.0.236/trunk@16283 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:43:00 +00:00
mjudge%netscape.com
2f44b6d466 changing the calling to the editor factory
git-svn-id: svn://10.0.0.236/trunk@16282 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:40:01 +00:00
mjudge%netscape.com
700ea1ddd8 adding iid to generated file. this is ok we need this for COM ptrs
git-svn-id: svn://10.0.0.236/trunk@16281 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:38:30 +00:00
mjudge%netscape.com
1bf5aab121 adding iid to the interfaces to support auto query interface
git-svn-id: svn://10.0.0.236/trunk@16280 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:36:35 +00:00
mjudge%netscape.com
264ea86016 adding IID to auto generated files
git-svn-id: svn://10.0.0.236/trunk@16279 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:36:04 +00:00
mjudge%netscape.com
65e0597fad adding IID for now, auto generate will duplicate work that is ok
git-svn-id: svn://10.0.0.236/trunk@16278 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:35:46 +00:00
mcmullen%netscape.com
d634634ab5 More windows tweaks
git-svn-id: svn://10.0.0.236/trunk@16277 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:05:24 +00:00
hyatt%netscape.com
2bd2fc024d Fixing the content model structure and correcting a drawing error
in the tree view.


git-svn-id: svn://10.0.0.236/trunk@16276 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 23:01:09 +00:00
kipp%netscape.com
3c1b246951 Compute correct Y coordinate after clear floaters; fixed bullet positioning bug when placing a bullet next to a block frame that has a carried-out top margin
git-svn-id: svn://10.0.0.236/trunk@16275 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 22:26:45 +00:00
kipp%netscape.com
a29aa1b885 When dealing with a percentage-width HR, don't let it impact the max-element-size.width inappropriately
git-svn-id: svn://10.0.0.236/trunk@16274 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 22:23:18 +00:00
kipp%netscape.com
02d3e99208 Futzed with list item handling a bit
git-svn-id: svn://10.0.0.236/trunk@16273 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 22:22:29 +00:00
waterson%netscape.com
5ee212993e Got rid of NS_DYNAMIC_CAST() macro at scc's prodding.
git-svn-id: svn://10.0.0.236/trunk@16272 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 21:39:18 +00:00
terry%netscape.com
0c80c991ae Added Mac System 8.5.
git-svn-id: svn://10.0.0.236/trunk@16271 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 21:33:36 +00:00
waterson%netscape.com
95c6ebeff9 Got rid of NS_DYNAMIC_CAST() macro -- it's bogus.
git-svn-id: svn://10.0.0.236/trunk@16270 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 20:32:22 +00:00
jfrancis%netscape.com
517982ca42 more preperation for adding tx mgr stuff to mac build
git-svn-id: svn://10.0.0.236/trunk@16269 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 19:25:48 +00:00
buster%netscape.com
be457e5620 fixed a minor bug in incremental reflow where the reflow state's "widthConstraint" wasn't getting set
git-svn-id: svn://10.0.0.236/trunk@16268 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:54:58 +00:00
rth%cygnus.com
f857e60a6a The arch bits call for Linux{ver} not LinuxELF{ver}.
git-svn-id: svn://10.0.0.236/trunk@16267 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:49:27 +00:00
rth%cygnus.com
c5788fe90b Re-implement for your legal protection.
git-svn-id: svn://10.0.0.236/trunk@16266 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:37:20 +00:00
rth%cygnus.com
c3a25ce396 Use a proper sigcontext for Linux, just as is done for BSD.
git-svn-id: svn://10.0.0.236/trunk@16265 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:35:52 +00:00
rth%cygnus.com
eeae032cab Fix bogus gcc x86 asms.
git-svn-id: svn://10.0.0.236/trunk@16264 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:33:48 +00:00
mcmullen%netscape.com
ddd96eff8f And again.
git-svn-id: svn://10.0.0.236/trunk@16263 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:17:22 +00:00
jfrancis%netscape.com
708dad24a0 getting transaction manager ready for addition to mac build
git-svn-id: svn://10.0.0.236/trunk@16262 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:13:11 +00:00
vidur%netscape.com
b0dbe3d498 Work in progress of async loading of SCRIPT and STYLE with SRC attributes. Content sinks can now return a BLOCK_PARSER return code, forcing the parser to block. nsIParser::EnableParser can be used to unblock. Also introduced nsIContentSink::SetParser.
git-svn-id: svn://10.0.0.236/trunk@16261 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 17:02:37 +00:00
pinkerton%netscape.com
7e05adc4f3 Explanation of why this file is obsolete but still in the tree.
git-svn-id: svn://10.0.0.236/trunk@16260 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:39:29 +00:00
pinkerton%netscape.com
1176055d5e Tree view is no longer an nsITreeView but an nsIContentConnector.
git-svn-id: svn://10.0.0.236/trunk@16259 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:36:21 +00:00
pinkerton%netscape.com
5bfa89ff0f use NS_STATIC_CAST.
git-svn-id: svn://10.0.0.236/trunk@16258 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:35:48 +00:00
pinkerton%netscape.com
1fc8a6851a fix a cast with the tree view because nsITreeView doesn't exist anymore.
git-svn-id: svn://10.0.0.236/trunk@16257 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:35:33 +00:00
pinkerton%netscape.com
8787f20110 make tree view implement nsIContentConnector, obsoleting nsITreeView
git-svn-id: svn://10.0.0.236/trunk@16256 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:35:08 +00:00
pinkerton%netscape.com
e389e79aad Make toolbar manager implement nsIContentConnector and prepare for nsIToolbarManager to go away.
git-svn-id: svn://10.0.0.236/trunk@16255 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:34:46 +00:00
pinkerton%netscape.com
4025e77255 Make toolbar implement nsIContentConnector and prepare for nsIToolbar to go away.
git-svn-id: svn://10.0.0.236/trunk@16254 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:34:25 +00:00
pinkerton%netscape.com
657877c4c1 Export nsIContentConnector.h instead of nsITreeView.h
git-svn-id: svn://10.0.0.236/trunk@16253 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:33:40 +00:00
pinkerton%netscape.com
31b61316a8 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16252 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:32:39 +00:00
dcone%netscape.com
2cd6154e04 minor fix for the printers port
git-svn-id: svn://10.0.0.236/trunk@16251 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:09:28 +00:00
dcone%netscape.com
88dfff190c moved the begindocument() so things can be set up before the device context is inited and the size of the printer page is needed.
git-svn-id: svn://10.0.0.236/trunk@16250 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:07:10 +00:00
dcone%netscape.com
a1329a49b0 Fixed it so that a control handle is not made unless a valid windowptr is passed in. This is needed for the printer port.
git-svn-id: svn://10.0.0.236/trunk@16249 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:05:54 +00:00
dcone%netscape.com
1bd5ea0c99 Added an init routine for the Graphic state that takes an nsDrawingSurface so the state will not be initialized to null.
git-svn-id: svn://10.0.0.236/trunk@16248 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:04:23 +00:00
dcone%netscape.com
2ba4d4bfa5 Update routines for creating a rendering context, and fixed the printer routines.
git-svn-id: svn://10.0.0.236/trunk@16247 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 16:03:10 +00:00
kipp%netscape.com
ab5cde8c0a Tweaked reflow status to be legible
git-svn-id: svn://10.0.0.236/trunk@16246 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:53:03 +00:00
kipp%netscape.com
bbdafa23dc Changed breaking behavior so that empty frames don't trigger a break even if the horizontal space is already over committed
git-svn-id: svn://10.0.0.236/trunk@16245 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:50:12 +00:00
kipp%netscape.com
d8afc6ef07 Removed bogus assert that was tripping on spacer-frames; fixed up justification behavior (thanks harish!)
git-svn-id: svn://10.0.0.236/trunk@16244 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:49:07 +00:00
kipp%netscape.com
f4ed82cc78 Repaired frame-util CID
git-svn-id: svn://10.0.0.236/trunk@16243 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:47:23 +00:00
kipp%netscape.com
c52ed4e844 Repaired frame-util IID
git-svn-id: svn://10.0.0.236/trunk@16242 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:47:09 +00:00
kipp%netscape.com
792c1cd7f2 Added FrameUtil IIDs
git-svn-id: svn://10.0.0.236/trunk@16241 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 15:18:39 +00:00
amusil%netscape.com
0a1130270c Adding #ifdefs for USE_CACHE on #includes
git-svn-id: svn://10.0.0.236/trunk@16238 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 05:17:50 +00:00
amusil%netscape.com
cf16810525 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@16237 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 05:12:58 +00:00
amusil%netscape.com
9913e6cdf2 Added support for the NuCache - used in cases where the stream type is specified "AsFile" (or "AsFileOnly").
#define USE_CACHE in nsPluginHostImpl.cpp to enable.


git-svn-id: svn://10.0.0.236/trunk@16236 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:50:57 +00:00
toshok%hungry.com
72d49f0cd4 we need to fix this, but to get things building i've made the copy constructors public and provided an implementation of them that just PR_ASSERT(0)'s.
git-svn-id: svn://10.0.0.236/trunk@16235 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:41:05 +00:00
toshok%hungry.com
ea272eaf71 anything greater than gcc 2.8 should have terminate already.
git-svn-id: svn://10.0.0.236/trunk@16234 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:10:21 +00:00
toshok%hungry.com
65aff93c06 XDisAsmTable.c is not included in the distribution (for licensing reasons.) don't reference it in the Makefile.
git-svn-id: svn://10.0.0.236/trunk@16233 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:04:19 +00:00
toshok%hungry.com
a34ea1260f add freebsd support.
git-svn-id: svn://10.0.0.236/trunk@16232 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:03:33 +00:00
toshok%hungry.com
0036e5a7c2 allow building without jvmdi
git-svn-id: svn://10.0.0.236/trunk@16231 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:03:13 +00:00
toshok%hungry.com
11e1103860 add FreeBSD support.
git-svn-id: svn://10.0.0.236/trunk@16230 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:01:07 +00:00
toshok%hungry.com
5eddfaefc6 cleanup
git-svn-id: svn://10.0.0.236/trunk@16229 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:00:52 +00:00
toshok%hungry.com
e0eda77346 always turn on BATCH_COMPILATION (ef won't build without it.) and allow building without jvmdi support. to enable jvmdi support, install the jvmdi.h file in ef/Debugger and setenv USE_JVMDI 1
git-svn-id: svn://10.0.0.236/trunk@16228 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 04:00:14 +00:00
toshok%hungry.com
e87e4810ec add support for FreeBSD
git-svn-id: svn://10.0.0.236/trunk@16227 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 03:57:33 +00:00
toshok%hungry.com
9961f53f40 file needed for freebsd port.
git-svn-id: svn://10.0.0.236/trunk@16226 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 03:57:00 +00:00
peterl%netscape.com
781098bb4e added nsNameSpaceManager.cpp & nsCSSStyleAtoms.cpp
git-svn-id: svn://10.0.0.236/trunk@16225 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 03:38:37 +00:00
mcmullen%netscape.com
e0be47d98f More tweaks.
git-svn-id: svn://10.0.0.236/trunk@16224 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 03:17:47 +00:00
guha%netscape.com
004db7d894 first version of dynamic pages for open directory should work now
git-svn-id: svn://10.0.0.236/trunk@16223 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 03:02:20 +00:00
wtc%netscape.com
ffbb8b067f Need to encode the fd type in the NSPR_INHERIT_FDS environment string,
so that in the child process we know whether it is a file, TCP socket,
or UDP socket.


git-svn-id: svn://10.0.0.236/trunk@16222 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:58:31 +00:00
peterl%netscape.com
d713987b42 moved name space management to name space manager, tweaked apis
git-svn-id: svn://10.0.0.236/trunk@16221 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:53:49 +00:00
peterl%netscape.com
ab36157598 added css atoms
git-svn-id: svn://10.0.0.236/trunk@16220 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:51:05 +00:00
peterl%netscape.com
f336f79552 added support for CSS2 selector syntax
git-svn-id: svn://10.0.0.236/trunk@16219 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:50:43 +00:00
peterl%netscape.com
5e907ae2f2 support for CSS2 selector systax
git-svn-id: svn://10.0.0.236/trunk@16218 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:50:01 +00:00
peterl%netscape.com
f289f4b663 added case sensativity switch
git-svn-id: svn://10.0.0.236/trunk@16217 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:48:40 +00:00
toshok%hungry.com
019795499b Fix the burm_STATE_LABEL thing, since the version of burg that I have (and that I assume we'll be using) doesn't use SET_STATE_LABEL - it makes assignments to STATE_LABEL.
git-svn-id: svn://10.0.0.236/trunk@16216 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:48:32 +00:00
peterl%netscape.com
1708b522be sync css selector output to new selector syntax
git-svn-id: svn://10.0.0.236/trunk@16215 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:48:00 +00:00
peterl%netscape.com
eaccb954c9 handle inline style sheet better
git-svn-id: svn://10.0.0.236/trunk@16214 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:47:25 +00:00
peterl%netscape.com
fed2ce07ee fixed base href for inline style sheets
set case sensativity in CSS parser


git-svn-id: svn://10.0.0.236/trunk@16213 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:46:25 +00:00
peterl%netscape.com
6280234f0b backed out prevoius change (not ready for it)
git-svn-id: svn://10.0.0.236/trunk@16212 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:45:25 +00:00
peterl%netscape.com
fe71a331fb added namespace support
git-svn-id: svn://10.0.0.236/trunk@16211 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:42:38 +00:00
toshok%hungry.com
c3757648b3 reorder member initialization to quiet warning.
git-svn-id: svn://10.0.0.236/trunk@16210 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:39:50 +00:00
peterl%netscape.com
59edc94473 removed pseudo class atoms (moved to css atoms)
git-svn-id: svn://10.0.0.236/trunk@16209 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:36:36 +00:00
peterl%netscape.com
2b172a49cd added namespace manager
git-svn-id: svn://10.0.0.236/trunk@16208 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:35:54 +00:00
peterl%netscape.com
5c40f60db7 added name space manager
git-svn-id: svn://10.0.0.236/trunk@16207 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:35:06 +00:00
peterl%netscape.com
f7c42b14ed changed style selector api
git-svn-id: svn://10.0.0.236/trunk@16206 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:33:23 +00:00
peterl%netscape.com
f1b91bd635 fixed default value of vertical align
git-svn-id: svn://10.0.0.236/trunk@16205 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:33:03 +00:00
peterl%netscape.com
8917b0149d added name space atoms
git-svn-id: svn://10.0.0.236/trunk@16204 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:31:51 +00:00
peterl%netscape.com
3b15182d29 added namespace interfaces
git-svn-id: svn://10.0.0.236/trunk@16203 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:30:59 +00:00
peterl%netscape.com
44d27498d4 added namespace manager accessor
git-svn-id: svn://10.0.0.236/trunk@16202 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:30:23 +00:00
peterl%netscape.com
087c4b9fd9 added namespace accessor
git-svn-id: svn://10.0.0.236/trunk@16201 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:30:08 +00:00
peterl%netscape.com
dd4b87c389 added namespace IIDs
git-svn-id: svn://10.0.0.236/trunk@16200 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:29:14 +00:00
peterl%netscape.com
73ba709cb4 switched to new name space APIs
git-svn-id: svn://10.0.0.236/trunk@16199 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 02:28:27 +00:00
mcmullen%netscape.com
f057f1160a Some more tweaks to suit various compilers and platforms.
git-svn-id: svn://10.0.0.236/trunk@16198 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:42:04 +00:00
mjudge%netscape.com
a3d406763f changing symantecs around and making the enumerator return the proper nsISupports
git-svn-id: svn://10.0.0.236/trunk@16197 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:40:01 +00:00
jj%netscape.com
b421b7c102 . Fixed error log file path
. Swapped OpenErrorLog and StopForErrors calls.
r=cyeh


git-svn-id: svn://10.0.0.236/trunk@16196 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:34:18 +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
mjudge%netscape.com
4459d111f7 initializing the refcount
git-svn-id: svn://10.0.0.236/trunk@16194 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:04:54 +00:00
mjudge%netscape.com
cee4bdaa4e fixing factory issues
git-svn-id: svn://10.0.0.236/trunk@16193 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 01:03:12 +00:00
nisheeth%netscape.com
bc46c631a2 Added a new method, GetStyleHintForAttributeChange() to nsIHTMLContent.
git-svn-id: svn://10.0.0.236/trunk@16192 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:52:55 +00:00
cls%seawood.org
28d3ec4b12 Make the build optimized by default
git-svn-id: svn://10.0.0.236/trunk@16191 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:29:48 +00:00
kin%netscape.com
2595e48ef9 We no longer statically link libtxmgr.a.
git-svn-id: svn://10.0.0.236/trunk@16190 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:26:05 +00:00
kin%netscape.com
f87d102bdb Modified tests to call nsServiceManager::GetService() to create an
nsITransactionManager.


git-svn-id: svn://10.0.0.236/trunk@16189 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:25:33 +00:00
kin%netscape.com
e46884dd07 Initialize mRefCnt in constructor. Removed useless white space. Commented
out references to NS_TRANSACTIONMANAGER.


git-svn-id: svn://10.0.0.236/trunk@16188 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:24:29 +00:00
kin%netscape.com
cda2c71048 Added EXTRA_DSO_LDOPTS.
git-svn-id: svn://10.0.0.236/trunk@16187 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:23:25 +00:00
kin%netscape.com
8bd500c732 Added SetMaxTransactionCount() method to nsITransactionManager and
nsTransactionManager. Replaced all !NS_SUCCEEDED with NS_FAILED.


git-svn-id: svn://10.0.0.236/trunk@16186 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 00:22:34 +00:00
nisheeth%netscape.com
51147256cd Added a new method, GetStyleHintForAttributeChange() to nsIHTMLContent and implemented it in all the HTML content classes. The method is used by the HTML style sheet to get a style change hint from the content object when an attribute of the content object changes.
git-svn-id: svn://10.0.0.236/trunk@16185 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 23:52:46 +00:00
nisheeth%netscape.com
fef1fc5b4d Changed nsHTMLStyleSheetImpl::AttributeChanged() so that it asks the
content objects for style change hint.  Removed tag specific code in this function.


git-svn-id: svn://10.0.0.236/trunk@16184 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 23:49:13 +00:00
despotdaemon%netscape.com
eed9dc9652 Pseudo-automatic update of changes made by rth@cygnus.com.
git-svn-id: svn://10.0.0.236/trunk@16183 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 23:30:47 +00:00
despotdaemon%netscape.com
3603ef22e0 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16182 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 22:54:36 +00:00
despotdaemon%netscape.com
eba59fcffa Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16181 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 22:51:47 +00:00
terry%netscape.com
ff7a1f2243 Added support for creating owners.html from despot.
git-svn-id: svn://10.0.0.236/trunk@16180 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 22:42:36 +00:00
akkana%netscape.com
623cf5add3 Fix win32 build
git-svn-id: svn://10.0.0.236/trunk@16179 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 20:15:25 +00:00
wtc%netscape.com
e2964d1a20 In PR_JoinThread, we need to call pthread_detach after pthread_join
under DCE threads because DCE threads' pthread_detach does not reclaim
the terminated thread's resources.


git-svn-id: svn://10.0.0.236/trunk@16178 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:58:23 +00:00
buster%netscape.com
0117f09401 support for CSS2 style property "empty-cells"
git-svn-id: svn://10.0.0.236/trunk@16177 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:57:42 +00:00
kmcclusk%netscape.com
5a8fd0f06d Added button to test_pr.html
git-svn-id: svn://10.0.0.236/trunk@16176 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:43:59 +00:00
terry%netscape.com
75fe0bb1e5 Old values for the column-header-cookie could cause problems when trying to tweak several bugs at once.
git-svn-id: svn://10.0.0.236/trunk@16175 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:41:30 +00:00
wtc%netscape.com
8821854755 Adjusted comments and white space.
git-svn-id: svn://10.0.0.236/trunk@16174 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:40:48 +00:00
wtc%netscape.com
a54e16096f Removed redundant #include "macsocket.h" (already included
by prinet.h).


git-svn-id: svn://10.0.0.236/trunk@16173 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:33:28 +00:00
wtc%netscape.com
499507333a Implemented the PR_APPEND and PR_TRUNCATE flags
for PR_Open.


git-svn-id: svn://10.0.0.236/trunk@16172 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 19:19:03 +00:00
akkana%netscape.com
e869ed3096 Clone and CloneContents
git-svn-id: svn://10.0.0.236/trunk@16171 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:58:49 +00:00
kmcclusk%netscape.com
9266103e2b Added test_pr to the set of sample file. test_pr is used to test printing of
form controls.


git-svn-id: svn://10.0.0.236/trunk@16170 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:55:45 +00:00
kmcclusk%netscape.com
7c89b4af6b Removed temporary ReflowWithNoWidget method from nsFormControlFrame.
Reflow without a widget is now handled by the standard Reflow method.


git-svn-id: svn://10.0.0.236/trunk@16169 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:47:02 +00:00
kin%netscape.com
24376dda52 Added nsTransactionManagerFactory.cpp to list of files to build.
git-svn-id: svn://10.0.0.236/trunk@16168 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:25:12 +00:00
kin%netscape.com
215c02c8e0 Added nsTransactionManagerCID.h to list of exports.
git-svn-id: svn://10.0.0.236/trunk@16167 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:24:18 +00:00
kin%netscape.com
6c47e9a11c Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@16166 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:23:04 +00:00
kipp%netscape.com
57d57e34c2 Added automated regression testing support to the crawler
git-svn-id: svn://10.0.0.236/trunk@16165 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:05:59 +00:00
kipp%netscape.com
5c1319daaa Added -rd argument handling
git-svn-id: svn://10.0.0.236/trunk@16164 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:05:35 +00:00
kipp%netscape.com
c753afb5f6 Added FrameUtil
git-svn-id: svn://10.0.0.236/trunk@16163 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:05:06 +00:00
jfrancis%netscape.com
37fb4bca3f adding nsFrameUtil.cpp
git-svn-id: svn://10.0.0.236/trunk@16162 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:04:52 +00:00
kipp%netscape.com
2ab19d9126 Added factory CID and impl to create instances of nsIFrameUtil
git-svn-id: svn://10.0.0.236/trunk@16161 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:04:37 +00:00
kipp%netscape.com
2703d3ecab Added nsFrameUtil to the build
git-svn-id: svn://10.0.0.236/trunk@16160 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:04:18 +00:00
kipp%netscape.com
4cb4b05d3c Added nsIFrameUtil to the exports
git-svn-id: svn://10.0.0.236/trunk@16159 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:03:26 +00:00
kipp%netscape.com
b3aeaa58df Added nsIFrameUtil.h
git-svn-id: svn://10.0.0.236/trunk@16158 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:01:29 +00:00
rods%netscape.com
60fe4ee625 Added printing methods
git-svn-id: svn://10.0.0.236/trunk@16157 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:53:34 +00:00
kipp%netscape.com
f39da4fc73 Added some code to handle illegal color values more compatabibly
git-svn-id: svn://10.0.0.236/trunk@16156 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:50:43 +00:00
kipp%netscape.com
3d945293a9 Fixed border drawing to not draw zero sized borders
git-svn-id: svn://10.0.0.236/trunk@16155 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:50:11 +00:00
wtc%netscape.com
6824069144 Removed obsolete file macsockclient.c.
git-svn-id: svn://10.0.0.236/trunk@16154 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:44:35 +00:00
kmcclusk%netscape.com
4f4f08da7c Changes to actually print checkbox's and radiobuttons under Windows.
No longer need special offset's during printing. nsFormControlFrame now detects
when to gfx render the widgets.


git-svn-id: svn://10.0.0.236/trunk@16153 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:29:13 +00:00
karnaze%netscape.com
d4a59c0626 fixed bug 1806
git-svn-id: svn://10.0.0.236/trunk@16152 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:22:31 +00:00
wtc%netscape.com
3cff93e11d Made the second argument for PR_Writev a const pointer
(const PRIOVec *iov).
Modified files: prio.h, _unixos.h, primpl.h, rcfileio.cpp, rcfileio.h,
rcio.h, rcnetio.cpp, rcnetio.h, priometh.c, prlayer.c, prsocket.c,
macsockotpt.c, os2sock.c, solaris.c, unix.c, ntio.c, w16sock.c,
w95sock.c, ptio.c.


git-svn-id: svn://10.0.0.236/trunk@16151 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:09:48 +00:00
despotdaemon%netscape.com
d9d9589af3 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16150 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:07:29 +00:00
pinkerton%netscape.com
13f3951615 fix alias creation of AppShell debug shlb by appending the $D to the name.
git-svn-id: svn://10.0.0.236/trunk@16149 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 16:59:42 +00:00
toshok%hungry.com
aef3a93e3a fix warnings by providing empty virtual destructors for classes that needed them, reordering initialization of member variables, and by giving the type uint to all the 'const nFooTypes;' variables.
git-svn-id: svn://10.0.0.236/trunk@16148 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 11:52:47 +00:00
toshok%hungry.com
70f4e55bd6 do it right this time.
git-svn-id: svn://10.0.0.236/trunk@16147 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 11:27:43 +00:00
toshok%hungry.com
9ea5326bfe reverse initialization order to get around compiler warning.
git-svn-id: svn://10.0.0.236/trunk@16146 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 11:25:31 +00:00
toshok%hungry.com
dd142f3cc7 remove trigraph
git-svn-id: svn://10.0.0.236/trunk@16145 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 11:17:47 +00:00
toshok%hungry.com
01dd607e8f add a special rule so that make doesn't attempt on successive builds to compile PrimitiveOperations from PrimitiveOperations.cpp
git-svn-id: svn://10.0.0.236/trunk@16144 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 11:03:29 +00:00
toshok%hungry.com
ef349d84a9 correct (rather serious) warning.
git-svn-id: svn://10.0.0.236/trunk@16143 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 10:51:45 +00:00
waterson%netscape.com
7934068503 Made sure to treat attribute value case-insenstively. Fixed QueryInterface() call.
git-svn-id: svn://10.0.0.236/trunk@16142 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 10:06:37 +00:00
waterson%netscape.com
f2f124c46b Changed assumptions about where to find column info in the content model: specifically, removed the explicit <column> group required for every item. Hyatt, we'll need to talk about this.
git-svn-id: svn://10.0.0.236/trunk@16141 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 10:05:32 +00:00
waterson%netscape.com
d1dac79672 Made sure that attributes keys get tracked case-insensitively. Fixed return values from GetAttribute().
git-svn-id: svn://10.0.0.236/trunk@16140 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 10:03:52 +00:00
waterson%netscape.com
e2228a0485 Added columns. Made some tweaks to use common utility functions.
git-svn-id: svn://10.0.0.236/trunk@16139 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:49:57 +00:00
waterson%netscape.com
80376456c8 Fixed some content model bugs as we start hooking this up to the tree. Added code to generate columns in the content model.
git-svn-id: svn://10.0.0.236/trunk@16138 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:48:17 +00:00
waterson%netscape.com
1ed8a257b1 Added a reminder to do nsIDOMDocument someday.
git-svn-id: svn://10.0.0.236/trunk@16137 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:47:18 +00:00
waterson%netscape.com
02ecfa8eca Created a ton of utility functions to make life easier.
git-svn-id: svn://10.0.0.236/trunk@16136 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:46:32 +00:00
waterson%netscape.com
ffa4be56d2 Added some comments.
git-svn-id: svn://10.0.0.236/trunk@16135 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:45:52 +00:00
waterson%netscape.com
4017ce049c Changed the DEFINE_RDF_VOCAB macro to use char* instead of char[].
git-svn-id: svn://10.0.0.236/trunk@16134 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:45:25 +00:00
waterson%netscape.com
bed6ef42c2 Iterate through children of the <COLUMNS> node, not the original node.
git-svn-id: svn://10.0.0.236/trunk@16133 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:31:52 +00:00
waterson%netscape.com
acc6954db5 Make sure to get the children of the <CHILDREN> node, not the original node.
git-svn-id: svn://10.0.0.236/trunk@16132 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:30:59 +00:00
waterson%netscape.com
ea4b313af5 Make sure to addref the content node in the constructor.
git-svn-id: svn://10.0.0.236/trunk@16131 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:30:18 +00:00
waterson%netscape.com
cc28cd0da3 Force the tree demo to dump the content model before displaying the tree.
git-svn-id: svn://10.0.0.236/trunk@16130 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:29:14 +00:00
toshok%hungry.com
339df3db4c add FREEBSD
git-svn-id: svn://10.0.0.236/trunk@16129 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:09:06 +00:00
toshok%hungry.com
50525701e7 trim down Makefile.
git-svn-id: svn://10.0.0.236/trunk@16128 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:07:31 +00:00
toshok%hungry.com
015b6f10f4 get the Compiler/CodeGenerator/md stuff compiling
git-svn-id: svn://10.0.0.236/trunk@16127 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:06:25 +00:00
toshok%hungry.com
3968183322 the object files for EF are put in $(DIST)/modules/EF/ now. track this change.
git-svn-id: svn://10.0.0.236/trunk@16126 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:04:55 +00:00
toshok%hungry.com
1988f8da64 remove the manifest.mn and rules.mk files, folding them into the Makefile.
git-svn-id: svn://10.0.0.236/trunk@16125 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:04:18 +00:00
toshok%hungry.com
1e5ed62c47 phew. ok. get the config stuff at least limping along. i've used freebsd for this, but linux ought to work as well (even the freebsd stuff isn't perfect yet.)
git-svn-id: svn://10.0.0.236/trunk@16124 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:03:50 +00:00
toshok%hungry.com
a35c8545a2 use the mkdepend from the normal mozilla tree. it's got more portability foo in it.
git-svn-id: svn://10.0.0.236/trunk@16123 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 08:02:59 +00:00
toshok%hungry.com
ceeb2e1e6d fix a warning in generated code.
git-svn-id: svn://10.0.0.236/trunk@16122 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 07:59:47 +00:00
toshok%hungry.com
89d1c68897 add md stuff for freebsd.
git-svn-id: svn://10.0.0.236/trunk@16121 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 07:56:37 +00:00
toshok%hungry.com
e031e3f1b5 add the npl/copyright foo
git-svn-id: svn://10.0.0.236/trunk@16120 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 04:56:00 +00:00
despotdaemon%netscape.com
2cd96d1927 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16119 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 04:52:08 +00:00
sfraser%netscape.com
e86e6a6910 Convert AppleSingle->binary format.
git-svn-id: svn://10.0.0.236/trunk@16118 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 03:22:27 +00:00
troy%netscape.com
6a4e7032a9 Minor change to the flow of control to make it more readable
git-svn-id: svn://10.0.0.236/trunk@16117 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 03:20:31 +00:00
sfraser%netscape.com
f502b21879 Convert AppleSingle -> binary format
git-svn-id: svn://10.0.0.236/trunk@16116 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 03:20:07 +00:00
troy%netscape.com
09c5c0329a Added print options for controlling whether odd and even pages are printed
git-svn-id: svn://10.0.0.236/trunk@16115 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 03:07:11 +00:00
troy%netscape.com
6a5358e387 Changes to nsPrintOptions
git-svn-id: svn://10.0.0.236/trunk@16114 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 03:06:30 +00:00
davidm%netscape.com
07afcb65be First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16113 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 01:23:18 +00:00
troy%netscape.com
55cb5a040c Fix for bug 1831 where an auto horizontal scrollbar was causing a vertical
scrollbar to be displayed even though it wasn't needed


git-svn-id: svn://10.0.0.236/trunk@16112 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:52:58 +00:00
kipp%netscape.com
4e8cd20aad new
git-svn-id: svn://10.0.0.236/trunk@16111 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:33:07 +00:00
kipp%netscape.com
78fe4cf1a1 Only zero out the height/ascent/descent if the empty text is not a pre-formatted piece of empty text, otherwise blank lines in PRE sections disappear
git-svn-id: svn://10.0.0.236/trunk@16110 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:30:52 +00:00
cmanske%netscape.com
64b1aaca89 Building Editor GUI Manager turned on in Windows build
git-svn-id: svn://10.0.0.236/trunk@16109 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:24:40 +00:00
hyatt%netscape.com
e08a99eb10 Nodes now track their correct indentation levels (from the content model).
git-svn-id: svn://10.0.0.236/trunk@16108 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:21:44 +00:00
kipp%netscape.com
aae87bb6cc Compute percentage base properly
git-svn-id: svn://10.0.0.236/trunk@16107 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:51:39 +00:00
buster%netscape.com
ad5a50d3d6 an even cleaner implementation of InsertRow
git-svn-id: svn://10.0.0.236/trunk@16105 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:30:06 +00:00
akkana%netscape.com
7a2989e97c Turn on guimgr in Unix build
git-svn-id: svn://10.0.0.236/trunk@16104 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:24:42 +00:00
buster%netscape.com
e8c6b1d306 fixed nsHTMLTableElement::InsertRow()
git-svn-id: svn://10.0.0.236/trunk@16103 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:19:12 +00:00
troy%netscape.com
ef6dcd06c6 Changed StartDocument/EndDocument to use the correct device context
git-svn-id: svn://10.0.0.236/trunk@16102 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:12:56 +00:00
guha%netscape.com
9963eb6172 Add opendir files to the repository
git-svn-id: svn://10.0.0.236/trunk@16101 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:08:59 +00:00
hyatt%netscape.com
4e2228aac7 Columns are now grabbed from the content model.
git-svn-id: svn://10.0.0.236/trunk@16100 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 23:08:32 +00:00
troy%netscape.com
4694f541a3 Moved StartDocument/EndDocument calls to document viewer impl's Print() member
function. This fits better with the Mac's printing model


git-svn-id: svn://10.0.0.236/trunk@16099 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 22:36:57 +00:00
troy%netscape.com
56e6a45664 Moved StartDocument/EndDocument calls from page sequence frame to Print(). This
fits better with the Mac printing model


git-svn-id: svn://10.0.0.236/trunk@16098 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 22:36:17 +00:00
cmanske%netscape.com
ab584d15ac Fixing build bustage?
git-svn-id: svn://10.0.0.236/trunk@16097 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 22:19:41 +00:00
jfrancis%netscape.com
b437dbe832 checking in a bit more of deleteContents; hard part still not done.
git-svn-id: svn://10.0.0.236/trunk@16096 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 22:07:00 +00:00
cmanske%netscape.com
ea8761c29b Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@16094 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 21:22:17 +00:00
hyatt%netscape.com
58afbb9b75 My previous checkin is going to break Linux. This checkin should fix the
build bustage.


git-svn-id: svn://10.0.0.236/trunk@16093 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:50:27 +00:00
sfraser%netscape.com
88a68ec8f5 Convert AppleSingle -> binary
git-svn-id: svn://10.0.0.236/trunk@16092 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:48:54 +00:00
sfraser%netscape.com
29b6e1b70d Convert AppleSingle -> binary, turn on debug info, fix library creator.
git-svn-id: svn://10.0.0.236/trunk@16091 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:47:46 +00:00
davidm%netscape.com
912989eaf3 Add code to build XPAppShell to build list
git-svn-id: svn://10.0.0.236/trunk@16090 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:43:50 +00:00
davidm%netscape.com
28fdf086c6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16089 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:42:35 +00:00
davidm%netscape.com
2389083d3b Updated to use Mac shared libraries
git-svn-id: svn://10.0.0.236/trunk@16088 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:40:18 +00:00
davidm%netscape.com
752b704af0 modifiy initialize to return nsresult rather than an implicit int
git-svn-id: svn://10.0.0.236/trunk@16087 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:39:51 +00:00
sfraser%netscape.com
d5c9b867c7 Turn on debug info in debug target. Shlb creator -> MOZZ
git-svn-id: svn://10.0.0.236/trunk@16086 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:27:00 +00:00
sfraser%netscape.com
53dedba1d6 Convert from AppleSingle to binary format.
git-svn-id: svn://10.0.0.236/trunk@16085 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 20:24:51 +00:00
hyatt%netscape.com
c7cb6abc3b Modifications to make the tree widget talk to nsIContent.
git-svn-id: svn://10.0.0.236/trunk@16084 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:57:15 +00:00
cmanske%netscape.com
0b219df90c Fixed build problems with Editor Gui Manager
git-svn-id: svn://10.0.0.236/trunk@16083 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:57:09 +00:00
hyatt%netscape.com
b348c5d2bc Modified the tree view interface so a content root can be set.
git-svn-id: svn://10.0.0.236/trunk@16082 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:56:55 +00:00
hyatt%netscape.com
338233b8f9 Modifications to make the tree view speak to RDF.
git-svn-id: svn://10.0.0.236/trunk@16081 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:56:30 +00:00
kin%netscape.com
5f2cac374d Modified Undo() and Redo() to throw an error if there is a transaction
on the Do stack.


git-svn-id: svn://10.0.0.236/trunk@16080 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:53:31 +00:00
radha%netscape.com
d9a87cd6eb Added appshell and bootstrap Makefiles to the list
git-svn-id: svn://10.0.0.236/trunk@16079 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:48:49 +00:00
akkana%netscape.com
6d0f552ce0 Fix C++ comment in C file
git-svn-id: svn://10.0.0.236/trunk@16078 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:46:38 +00:00
kin%netscape.com
c712081325 Added aggregation_test(), stress_test(), and aggregation_stress_test().
git-svn-id: svn://10.0.0.236/trunk@16077 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:28:58 +00:00
terry%netscape.com
6217e65ae5 Got rid of some harmless warning messages.
git-svn-id: svn://10.0.0.236/trunk@16076 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:27:37 +00:00
cmanske%netscape.com
230961099c Modified makefiles for new filenames
git-svn-id: svn://10.0.0.236/trunk@16074 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:24:31 +00:00
cmanske%netscape.com
a580001f06 Added new files for Editor Gui Manager
git-svn-id: svn://10.0.0.236/trunk@16073 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:23:49 +00:00
cmanske%netscape.com
ec65f22f1b Changed name of file
git-svn-id: svn://10.0.0.236/trunk@16072 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:23:01 +00:00
akkana%netscape.com
060cfafd1c implementation for CompareEndPoints
git-svn-id: svn://10.0.0.236/trunk@16071 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:21:49 +00:00
sfraser%netscape.com
41ffc846a9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@16070 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:08:54 +00:00
cmanske%netscape.com
cc4786b82e Modified makefiles for Editor Gui Manager
git-svn-id: svn://10.0.0.236/trunk@16069 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:04:11 +00:00
cmanske%netscape.com
ef41f2f2f7 Added Editor GuiManager source files
git-svn-id: svn://10.0.0.236/trunk@16068 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 19:00:35 +00:00
cmanske%netscape.com
796505baac Added public headers for Editor Gui Manager
git-svn-id: svn://10.0.0.236/trunk@16067 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 18:59:31 +00:00
cmanske%netscape.com
4ddb6588f8 Added Gui Manager makefiles
git-svn-id: svn://10.0.0.236/trunk@16066 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 18:56:39 +00:00
akkana%netscape.com
1e7ab9d594 Update Range spec
git-svn-id: svn://10.0.0.236/trunk@16065 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 18:44:26 +00:00
ramiro%netscape.com
ab3a800524 Remove duplicate entries for :
mozilla/Makefile.in
mozilla/configure.in


git-svn-id: svn://10.0.0.236/trunk@16064 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 17:45:13 +00:00
wtc%netscape.com
add34905f7 Removed mention of MAC in the makefile. Mac doesn't use makefles.
git-svn-id: svn://10.0.0.236/trunk@16063 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 17:43:00 +00:00
wtc%netscape.com
57b4ef036a Removed the temporary depend:clean hack.
git-svn-id: svn://10.0.0.236/trunk@16062 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 17:42:06 +00:00
wtc%netscape.com
e476b7f876 Added build support for the C++ wrappers in pr/src/cplus.
Set USE_CPLUS=1 to recurse into that directory.


git-svn-id: svn://10.0.0.236/trunk@16061 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 17:39:37 +00:00
kin%netscape.com
d52fc03869 Fixed off by 1 error that occurs in PopBack() when
(mOrigin + mSize) >= mCapacity.


git-svn-id: svn://10.0.0.236/trunk@16060 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 17:07:20 +00:00
wtc%netscape.com
36f6c7c683 Temporary depend:clean hack to make sure the Tinderbox depend continuous
builds work after a major checkin.


git-svn-id: svn://10.0.0.236/trunk@16058 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 16:45:36 +00:00
wtc%netscape.com
4c71f93c90 This checkin consists on three things:
1. File descriptor inheritance
2. Set thread->md.handle on Win32 for attached native threads.
3. Miscellaneous code cleanup.


git-svn-id: svn://10.0.0.236/trunk@16057 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 16:37:26 +00:00
ramiro%netscape.com
26ae5aef25 Make the get config dir hack more robust. This thing is probably going away
in the xpfe world.
Thanks to rth@cygnus.com (Richard Henderson) for pointing this out.


git-svn-id: svn://10.0.0.236/trunk@16056 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 15:28:19 +00:00
ramiro%netscape.com
3a5245952b Fix bugzilla bug 1822.
Memory clobber on 64-bit host.
Thanks to rth@cygnus.com for catching this and providing a fix.


git-svn-id: svn://10.0.0.236/trunk@16055 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 15:13:42 +00:00
pierre%netscape.com
c43e0c95ac Implemented scrollbars as native controls. Still some bugs, should have live-scrolling, should be proportionnal under 8.5.
git-svn-id: svn://10.0.0.236/trunk@16054 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 13:26:49 +00:00
pierre%netscape.com
fbec6c5006 don't draw when not visible
git-svn-id: svn://10.0.0.236/trunk@16053 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 13:24:26 +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
shaver%netscape.com
3704af165d Fixed usage-string typo.
Update to 0.5.7 IDL_tree_property_get API.
Reworked input callback for cleanliness.
Add (not-yet-working) infrastructure for %{ C %} raw blocks.


git-svn-id: svn://10.0.0.236/trunk@16051 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 13:08:29 +00:00
pierre%netscape.com
ea8b8fc593 removed saari's hacks
git-svn-id: svn://10.0.0.236/trunk@16050 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:18:50 +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
c8c24c8ec4 don't draw when not visible and don't draw in SetThumbSize() in order to fix a flicker of the horizontal sbar on resize when the text fits into the page
git-svn-id: svn://10.0.0.236/trunk@16048 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:18:03 +00:00
pierre%netscape.com
7915c018e6 removed saari's hack
git-svn-id: svn://10.0.0.236/trunk@16047 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:17:31 +00:00
pierre%netscape.com
ce57119548 A bunch of changes: removed saari's hacks, fixed origins, fixed clipping, fixed offscreen (for simple use like in the ImageButtons only, not for multiple offscreen surfaces like the Blender in the ViewManager), fixed a bug in some drawing functions (DrawEllipse, FillEllipse, DrawArc)
git-svn-id: svn://10.0.0.236/trunk@16046 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:17:06 +00:00
pierre%netscape.com
aab0e25c0f Fixed the "GrowWindow" from DRAW_ON_RESIZE in order to have a minimum window size (Viewer and maybe XPViewer don't support very narrow windows). Added a WaitNextEvent for update events during the DRAW_ON_RESIZE after having fixed a related bug in nsWindow.
git-svn-id: svn://10.0.0.236/trunk@16045 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:16:35 +00:00
pierre%netscape.com
0b48a12c5b Removed the last of the Mac specific hacks added last week
git-svn-id: svn://10.0.0.236/trunk@16044 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:16:15 +00:00
pierre%netscape.com
ca47f2ae5a Copied SetAlphaMask() from Windows in an attempt to fix some problems (it did not but I'm leaving it there because it cannot hurt).
git-svn-id: svn://10.0.0.236/trunk@16043 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:15:44 +00:00
pierre%netscape.com
2883145fe2 Use a better looking font on the Mac
git-svn-id: svn://10.0.0.236/trunk@16042 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:15:22 +00:00
pierre%netscape.com
30222ada44 Removed some include files
git-svn-id: svn://10.0.0.236/trunk@16041 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:14:46 +00:00
pierre%netscape.com
aed880d6cc Added several MakeAlias for xSym files
git-svn-id: svn://10.0.0.236/trunk@16040 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 10:14:06 +00:00
mcmullen%netscape.com
5585c8bf96 Trying to make this build on unix gcc compilers, I have removed all references to std::string, using char* instead. This almost made me cry (not just because of all the work I had to do over again).
git-svn-id: svn://10.0.0.236/trunk@16039 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 08:47:30 +00:00
wtc%netscape.com
b0441c2895 Initial checkin of NSPR C++ wrapper classes (pr/src/cplus).
git-svn-id: svn://10.0.0.236/trunk@16038 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:54:06 +00:00
buster%netscape.com
415d59aa67 tables can now have independent horizontal and vertical cell spacing
("cellspacing" HTML attribute == "border-spacing" CSS property, go figure...)


git-svn-id: svn://10.0.0.236/trunk@16037 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:37:18 +00:00
buster%netscape.com
a85d3c902d cellspacing split out into x and y, HTML attribute sets both to same value
git-svn-id: svn://10.0.0.236/trunk@16036 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:36:32 +00:00
buster%netscape.com
91804a7b1d added implementation for CSS-2 style attributes border-collapse, border-spacing, empty-cells, caption-side
git-svn-id: svn://10.0.0.236/trunk@16035 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:24:50 +00:00
buster%netscape.com
88bb687497 added implementation for CSS-2 style attributes border-collapse, border-spacing, empty-cells, caption-side
this is sufficient for now, but incomplete.  It doesn't handle inherit properly.


git-svn-id: svn://10.0.0.236/trunk@16034 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:24:27 +00:00
fur%netscape.com
5a98423bb8 Moved Win32 build instructions to mozilla.org
git-svn-id: svn://10.0.0.236/trunk@16033 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 05:57:20 +00:00
troy%netscape.com
0a0b7ae6b0 Added new atoms to nsLayoutAtoms for additional named frame child lists
git-svn-id: svn://10.0.0.236/trunk@16032 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 05:30:17 +00:00
mcmullen%netscape.com
0588941742 Tried to make this a little more gcc friendly - created some NS_USING_NAMESPACE/ NS_NAMESPACE ugliness. Sigh.
git-svn-id: svn://10.0.0.236/trunk@16031 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 05:09:28 +00:00
troy%netscape.com
c9e7bd13c8 Fixed a crash when resizing the print preview window
git-svn-id: svn://10.0.0.236/trunk@16029 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 04:26:42 +00:00
waterson%netscape.com
7b2c6f451a Initial revision. Not currently in the build.
git-svn-id: svn://10.0.0.236/trunk@16028 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:51:50 +00:00
kipp%netscape.com
a048610ac8 Backed out one change
git-svn-id: svn://10.0.0.236/trunk@16027 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:40:42 +00:00
kipp%netscape.com
7d60f51dd7 new
git-svn-id: svn://10.0.0.236/trunk@16026 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:40:03 +00:00
mcmullen%netscape.com
54c41190bf Removing because checked into this directory by mistake.
git-svn-id: svn://10.0.0.236/trunk@16025 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:35:52 +00:00
kipp%netscape.com
55710f3285 new
git-svn-id: svn://10.0.0.236/trunk@16024 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:31:08 +00:00
waterson%netscape.com
c1b015aaa9 Content model changes to get the tree widget alive.
git-svn-id: svn://10.0.0.236/trunk@16023 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 03:25:33 +00:00
gagan%netscape.com
d1075553b3 This was causing part of the disappearing cache objects problem. This is now internally handled in the new cache.
git-svn-id: svn://10.0.0.236/trunk@16022 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 02:58:50 +00:00
amusil%netscape.com
e59f502108 Fix for Bug# 1771. Re-ordered the calling into the plugin entry point. Initialize()
for 4x plugin now happens in CreatePlugin().


git-svn-id: svn://10.0.0.236/trunk@16021 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 02:47:03 +00:00
gagan%netscape.com
2bd31be77d Cache changes, bug fixes, etc.
git-svn-id: svn://10.0.0.236/trunk@16020 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 02:43:16 +00:00
pinkerton%netscape.com
0012f434c9 Remove PLStringFuncs.o for new universal headers.
git-svn-id: svn://10.0.0.236/trunk@16019 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:56:57 +00:00
pinkerton%netscape.com
9606099d46 fix for new universal headers. Don't use PLstringfuncs and add an inline helper to the helper namespace which does the same things.
git-svn-id: svn://10.0.0.236/trunk@16018 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:56:36 +00:00
sfraser%netscape.com
53224b3fc9 Fix part of build bustage. (Strange, this built fine with my tools).
git-svn-id: svn://10.0.0.236/trunk@16017 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:30:42 +00:00
dougt%netscape.com
04e9501977 New makefile.win for standalone registry target.
git-svn-id: svn://10.0.0.236/trunk@16016 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:10:28 +00:00
dougt%netscape.com
f5705cdc6e removed standalone references since we now have a fancy new target one
dir above us.


git-svn-id: svn://10.0.0.236/trunk@16015 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:09:21 +00:00
dougt%netscape.com
4b96b224b6 added standalone target. r.leaf
git-svn-id: svn://10.0.0.236/trunk@16014 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:08:28 +00:00
law%netscape.com
f434dd9914 Added Windoze support
git-svn-id: svn://10.0.0.236/trunk@16013 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 01:04:53 +00:00
sfraser%netscape.com
c78482348a Adding nsBlockBandData.cpp
git-svn-id: svn://10.0.0.236/trunk@16012 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 00:26:56 +00:00
sfraser%netscape.com
58f98a359a Fix the timer compare function (need an extra dereference).
git-svn-id: svn://10.0.0.236/trunk@16011 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 00:08:41 +00:00
sfraser%netscape.com
ced13cc404 Remove access path to the root of the mozilla tree, which caused this thing to take forever to load in the IDE.
git-svn-id: svn://10.0.0.236/trunk@16010 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 23:58:23 +00:00
cltbld%netscape.com
cd400f55ba add nsBlockBandData.h per kipp's addition
git-svn-id: svn://10.0.0.236/trunk@16009 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 23:25:30 +00:00
despotdaemon%netscape.com
15f972aef0 Pseudo-automatic update of changes made by davidm@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@16008 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 23:07:26 +00:00
despotdaemon%netscape.com
3eddb5fb7f Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@16007 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 23:03:54 +00:00
sar%netscape.com
05dc3133d1 add RaptorAll modules for tinderbox, also clean up a little formatting cruft
git-svn-id: svn://10.0.0.236/trunk@16006 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 23:03:11 +00:00
radha%netscape.com
0ec1a9da0f Add appshell and bootstrap to DIRS list
git-svn-id: svn://10.0.0.236/trunk@16005 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:47:16 +00:00
radha%netscape.com
64cb0235fd Initial checkin
git-svn-id: svn://10.0.0.236/trunk@16004 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:46:35 +00:00
radha%netscape.com
56af85ca53 Initial Checkin
git-svn-id: svn://10.0.0.236/trunk@16003 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:45:58 +00:00
mcmullen%netscape.com
cf8dafefa3 Polished the interfaces, added long comments in the headers.
The next step is checking by Bill Law and Steve Lamm for Win and Unix.  Then it's open season.


git-svn-id: svn://10.0.0.236/trunk@16002 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:45:42 +00:00
mcmullen%netscape.com
a1b4ed0f62 Added nsFileStream.cpp to this project.
Polished the interfaces, added long comments in the headers.

The next step is checking by Bill Law and Steve Lamm for Win and Unix.  Then it's open season.


git-svn-id: svn://10.0.0.236/trunk@16001 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:45:38 +00:00
radha%netscape.com
81a1403853 Initial checkin. Stubs for the unix apprunner
git-svn-id: svn://10.0.0.236/trunk@16000 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:44:55 +00:00
mcmullen%netscape.com
963a718dd7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15999 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:43:57 +00:00
radha%netscape.com
ae0d8d70da Load the unix nsappshell.so in to the registry
git-svn-id: svn://10.0.0.236/trunk@15998 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:43:52 +00:00
radha%netscape.com
c92f782b69 Initial checkin for Unix apprunner
git-svn-id: svn://10.0.0.236/trunk@15997 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:43:20 +00:00
raman%netscape.com
ede3cc4a41 Bug fix to make ftp:// protocol to work with the new cache code.
git-svn-id: svn://10.0.0.236/trunk@15996 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:11:05 +00:00
kin%netscape.com
5ab61098d8 Fixed bug that prevented transaction item children from being redone.
git-svn-id: svn://10.0.0.236/trunk@15995 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 22:05:23 +00:00
kipp%netscape.com
5f8a1a12d4 new
git-svn-id: svn://10.0.0.236/trunk@15993 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 21:44:22 +00:00
kipp%netscape.com
59ad825d3e Added some debug checks to sizes; keep zero sized items on the same line whenever possible
git-svn-id: svn://10.0.0.236/trunk@15992 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 21:43:42 +00:00
kipp%netscape.com
5014326024 Factored out the block-band-data class; fixed a bug with treating block objects that weren't really nsBlockFrame's like they were (bug #1713)
git-svn-id: svn://10.0.0.236/trunk@15991 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 21:43:15 +00:00
kipp%netscape.com
c79140ae51 Added nsBlockBandData
git-svn-id: svn://10.0.0.236/trunk@15990 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 21:42:35 +00:00
despotdaemon%netscape.com
e2c6346a96 Pseudo-automatic update of changes made by msanz@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15989 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 20:16:12 +00:00
akkana%netscape.com
5bbb9bbf32 GetOwnerDocument should return NS_ERROR_NOT_IMPLEMENTED if it's not going to modify its input
git-svn-id: svn://10.0.0.236/trunk@15986 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:53:25 +00:00
pnunn%netscape.com
7c942df448 update to png version 1.0.2. -pnunn.
git-svn-id: svn://10.0.0.236/trunk@15985 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:44:02 +00:00
pinkerton%netscape.com
927f043691 Don't build NavServices stuff because it doesn't work with the 3.2 universal headers (apple changed a struct).
git-svn-id: svn://10.0.0.236/trunk@15984 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:42:52 +00:00
pnunn%netscape.com
5d972fec0f update to png version 1.0.2. -pnunn. Note: gamma is temporarily disabled.
git-svn-id: svn://10.0.0.236/trunk@15983 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:41:25 +00:00
buster%netscape.com
ab0a080e21 fixed a minor glitch I introduced where nested tables cells were getting
robbed of a few pixels in width in some cases.


git-svn-id: svn://10.0.0.236/trunk@15982 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:18:33 +00:00
waterson%netscape.com
57daa111ab Obsolete.
git-svn-id: svn://10.0.0.236/trunk@15981 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 19:14:43 +00:00
akkana%netscape.com
2d6147c177 Remove old selection code (and fix linux build)
git-svn-id: svn://10.0.0.236/trunk@15980 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:55:00 +00:00
danm%netscape.com
dee66bb417 removed nsSelection.cpp, nsSelectionPoint.cpp, nsSelectionRange.cpp. yell at mjudge if this causes problems.
git-svn-id: svn://10.0.0.236/trunk@15979 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:34:59 +00:00
mjudge%netscape.com
d40094a5a2 changes to default to new selection
git-svn-id: svn://10.0.0.236/trunk@15978 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:26:34 +00:00
mjudge%netscape.com
03ace6e2d1 chagnes to selection
git-svn-id: svn://10.0.0.236/trunk@15977 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:26:06 +00:00
mjudge%netscape.com
a60c78a903 changes to selection
git-svn-id: svn://10.0.0.236/trunk@15976 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:25:47 +00:00
mjudge%netscape.com
3b8b44ad07 changes to remove selection
git-svn-id: svn://10.0.0.236/trunk@15975 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:25:27 +00:00
troy%netscape.com
f40c33432f Initial table pagination support
git-svn-id: svn://10.0.0.236/trunk@15974 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 17:57:45 +00:00
raman%netscape.com
3ca530cf7c Bug fix for 928. Check for null address in the URL_s structure.
git-svn-id: svn://10.0.0.236/trunk@15973 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 17:55:03 +00:00
kipp%netscape.com
3e00c5832e backed out last changes
git-svn-id: svn://10.0.0.236/trunk@15972 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 17:33:28 +00:00
kipp%netscape.com
fb782a13db Fix a cut-paste coding error
git-svn-id: svn://10.0.0.236/trunk@15971 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 17:19:17 +00:00
kipp%netscape.com
83eafe11c2 Fixed an improper use of NS_RELEASE
git-svn-id: svn://10.0.0.236/trunk@15970 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 16:08:44 +00:00
kipp%netscape.com
b1ee8580db Updated to latest nsIWebShellContainer API
git-svn-id: svn://10.0.0.236/trunk@15969 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 15:51:42 +00:00
waterson%netscape.com
a6cb66db1e Cleaned up data source construction, made more consistent with other NGLayout modules.
git-svn-id: svn://10.0.0.236/trunk@15968 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 06:53:49 +00:00
waterson%netscape.com
8a398a690e Changed nsRDFDataSource::Initialize to Init to be consistent with the rest of the world.
git-svn-id: svn://10.0.0.236/trunk@15967 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 06:28:36 +00:00
waterson%netscape.com
1db3f68a17 Some stuff to the TO DO list.
git-svn-id: svn://10.0.0.236/trunk@15966 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 06:24:28 +00:00
waterson%netscape.com
95952ef887 Some horrible hackery to get hyatt started on debugging the tree with a real content model.
git-svn-id: svn://10.0.0.236/trunk@15965 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 05:10:35 +00:00
waterson%netscape.com
0d4d36b993 Added CID for RDF tree document.
git-svn-id: svn://10.0.0.236/trunk@15964 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 04:56:10 +00:00
waterson%netscape.com
11fc399841 Fixed a missing refcount.
git-svn-id: svn://10.0.0.236/trunk@15963 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 04:55:25 +00:00
kipp%netscape.com
14ec540a13 Fixed bug #1621 - if a floater was too wide and it was right aligned it would end up positioned off the left edge of the block
git-svn-id: svn://10.0.0.236/trunk@15961 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 03:57:12 +00:00
waterson%netscape.com
76280043c8 Moved the RDF document interfaces out into the open. Added some stuff to make it easier to construct a data source from outside of normal channels.
git-svn-id: svn://10.0.0.236/trunk@15960 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 03:49:14 +00:00
kipp%netscape.com
9e360eec32 Removed check for a band count of when when clearing floaters because if the floater is large the band may only have one trapezoid in it
git-svn-id: svn://10.0.0.236/trunk@15959 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 03:47:44 +00:00
kipp%netscape.com
2898a86645 new
git-svn-id: svn://10.0.0.236/trunk@15958 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 03:36:34 +00:00
kipp%netscape.com
264d8928b8 Implement new NewWebShell API
git-svn-id: svn://10.0.0.236/trunk@15957 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:39:48 +00:00
jfrancis%netscape.com
7d28e05c79 removing tabs; started deleteContents() imp
git-svn-id: svn://10.0.0.236/trunk@15956 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:26:15 +00:00
mcmullen%netscape.com
62ce39a5db Added nsFileSpec.cpp to this project (you also get nsFileStream, but this is all done with templates in a header - this may need to be revisited).
This is the first real checkin of nsFileSpec.*, and the first ever checkin of nsFileStream.h.  This provides typesafe file specifications, interconversions, and full Standard Library support for iostreams, based on these specifications.

The next step is checking by Bill Law and Steve Lamm for Win and Unix.  Then it's open season.


git-svn-id: svn://10.0.0.236/trunk@15955 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:24:19 +00:00
mcmullen%netscape.com
7612b35bc7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15954 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:22:54 +00:00
sfraser%netscape.com
ec62691775 Added Debug and Tools menus, and hooked up some of the menu items. They don't all work yet.
git-svn-id: svn://10.0.0.236/trunk@15953 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:16:42 +00:00
mcmullen%netscape.com
ce9cf0d08e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15952 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:15:50 +00:00
sfraser%netscape.com
c9a0831caa Don't crash when failing to create dialogs (which we don't have a widget for yet on Mac).
git-svn-id: svn://10.0.0.236/trunk@15951 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 02:15:21 +00:00
kipp%netscape.com
5238173304 Implement new NewWebShell API
git-svn-id: svn://10.0.0.236/trunk@15950 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 01:57:40 +00:00
kipp%netscape.com
4214d0534b Added 2 more arguments to NewWebShell so that new top-level windows could be created properly
git-svn-id: svn://10.0.0.236/trunk@15949 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 01:57:00 +00:00
kipp%netscape.com
923f08db82 Pass in chrome and visibility during web-shell creation
git-svn-id: svn://10.0.0.236/trunk@15948 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 01:56:31 +00:00
pierre%netscape.com
4ff8ec2ffe optimized and cleaned up
git-svn-id: svn://10.0.0.236/trunk@15947 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 01:47:04 +00:00
buster%netscape.com
119726a491 fixed a bug in table-layout:fixed mode
fixed bug fixed a few small bugs


git-svn-id: svn://10.0.0.236/trunk@15946 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 01:00:14 +00:00
buster%netscape.com
bd36f4fc76 fixed default cellspacing and cellpadding
git-svn-id: svn://10.0.0.236/trunk@15945 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 00:59:15 +00:00
kipp%netscape.com
b3d40caef9 new
git-svn-id: svn://10.0.0.236/trunk@15944 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 00:57:45 +00:00
troy%netscape.com
d0f172e81d Improved height calculation when there are floaters. Now we check against
the content area y-most rather than the frame bounds y-most. This ensures
that border and padding are respected along the bottom edge


git-svn-id: svn://10.0.0.236/trunk@15942 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 00:01:12 +00:00
law%netscape.com
182b2b0393 Accept URL on command line
git-svn-id: svn://10.0.0.236/trunk@15941 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 23:35:02 +00:00
waterson%netscape.com
f646a5ae5c Removed obsolete file.
git-svn-id: svn://10.0.0.236/trunk@15940 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 23:18:11 +00:00
kipp%netscape.com
bc8d0e6224 Made image documents layout again
git-svn-id: svn://10.0.0.236/trunk@15939 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 22:29:13 +00:00
kipp%netscape.com
2c0c8a72a7 Disabled fixed height/width ignoring code for shrink-wrap blocks; fixed crash bug with premature deleting of a line
git-svn-id: svn://10.0.0.236/trunk@15938 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 22:28:55 +00:00
kipp%netscape.com
2c7beba568 Added DeleteLine method
git-svn-id: svn://10.0.0.236/trunk@15937 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 22:28:23 +00:00
akkana%netscape.com
38c4a010d7 Change NULL to 0 in NS_RELEASE and NS_IF_RELEASE macros.
This is illegal C++ (at least on machines where NULL == (void*)0)
and breaks some compilers, issues warnings in others.


git-svn-id: svn://10.0.0.236/trunk@15936 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 21:57:57 +00:00
raman%netscape.com
08c4b8f0d0 Bug fix for 1741. For XP_FILE_READ_BIN permission types, set mode as nsRead.
git-svn-id: svn://10.0.0.236/trunk@15935 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 21:49:29 +00:00
shaver%netscape.com
459587fe77 remove dead code, tweak whitespace
git-svn-id: svn://10.0.0.236/trunk@15934 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 20:23:37 +00:00
waterson%netscape.com
042cf627d5 Cleaned up content model generation.
git-svn-id: svn://10.0.0.236/trunk@15933 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 20:09:30 +00:00
kipp%netscape.com
d596ead678 Slightly better handling of left/right block margins
git-svn-id: svn://10.0.0.236/trunk@15932 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:34:41 +00:00
dcone%netscape.com
9f0879552a Changed some attributes on the printer items for the menus
git-svn-id: svn://10.0.0.236/trunk@15931 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:14:33 +00:00
harishd%netscape.com
bf95de173e changed the code that previously accessed mBorderStyle and mBordercolor
with new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15930 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:07:45 +00:00
harishd%netscape.com
9e86b8e8b4 Changed code that previously accessed mBorderStyle and mBorderColor with
new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15929 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:06:55 +00:00
harishd%netscape.com
1abffa47d3 Changed code that previously accessed mBorderStyle and mBorderColor
with new mehtods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15928 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:05:40 +00:00
harishd%netscape.com
1f271c4b88 Included a new DrawDashedSide() function prototype and modified DrawSide() function.
git-svn-id: svn://10.0.0.236/trunk@15927 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:04:39 +00:00
harishd%netscape.com
992a69972a Changed code that previously accessed mBorderStyle and mBorderColor
with new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15926 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:02:13 +00:00
harishd%netscape.com
3184560d3b No change
git-svn-id: svn://10.0.0.236/trunk@15925 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 19:00:45 +00:00
harishd%netscape.com
010e4bd873 Changed code that previously accessed mBorderStyle and mBorderColor
with new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15924 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:56:29 +00:00
harishd%netscape.com
2845bf2e91 Changed code that previously accessed mBorderStyle and mBorderColor
with the new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15923 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:55:19 +00:00
harishd%netscape.com
5928b4de66 Changed all the places that previously accessed mBorderStyle and mBorderColor
with the new methods added in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15922 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:53:07 +00:00
harishd%netscape.com
6642c7f122 changed all the places that previously accessed mBorderStyle and mBorderColor
with the new methods defined in nsStyleSpacing


git-svn-id: svn://10.0.0.236/trunk@15921 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:51:26 +00:00
harishd%netscape.com
7b2eca6c86 Added NS_STYLE_HAS_BORDER_COLOR (0x80)
git-svn-id: svn://10.0.0.236/trunk@15920 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:46:02 +00:00
troy%netscape.com
cf9c18e0c5 Changed wrapping of floated elements so the wrapping happens inside of
ConstructFrameByDisplayType(), and now we only wrap frames of display
type 'block' and 'inline'


git-svn-id: svn://10.0.0.236/trunk@15919 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:44:40 +00:00
harishd%netscape.com
d0a00e5aa9 Made mBorderStyle and mBorderColor arrays as protected members
and added functions GetBorderStyle(), GetBorderColor(), SetBorderStyle(),
SetBorderColor(), and ClearBorderStyleHightBit() in nsStyleSpacing.


git-svn-id: svn://10.0.0.236/trunk@15918 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 18:44:02 +00:00
jfrancis%netscape.com
d4a218b353 fixing IsSameDocument by including nsIDOMDocument.h
git-svn-id: svn://10.0.0.236/trunk@15917 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 17:53:59 +00:00
kipp%netscape.com
e5335645a8 Removed bogus ISupports support
git-svn-id: svn://10.0.0.236/trunk@15916 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 16:17:10 +00:00
kipp%netscape.com
be94800e1a Removed bogus cast
git-svn-id: svn://10.0.0.236/trunk@15915 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 16:16:46 +00:00
jfrancis%netscape.com
64e6b5e6e7 implemetned ComparePointToRange() and IsPointInRange(). Stopped caching ancestor lists. Added standard copy constructor/assignment operator prohibition.
git-svn-id: svn://10.0.0.236/trunk@15914 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 16:11:52 +00:00
rhp%netscape.com
e807c333c6 This is to export the function for stream converter registration in
netlib. This is a temporary change until the XP-COM interface is in
place for this functionality.


git-svn-id: svn://10.0.0.236/trunk@15913 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 13:51:23 +00:00
rhp%netscape.com
5f6b7c7a9f This change is to add a file association for .EML files. These
extensions are setup under WinXX for all RFC822 messages.


git-svn-id: svn://10.0.0.236/trunk@15912 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 13:27:47 +00:00
ramiro%netscape.com
ca40fec6e8 Include "gtklayout.h" only for gtk+ < 1.1.6
git-svn-id: svn://10.0.0.236/trunk@15911 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 06:52:42 +00:00
ramiro%netscape.com
f097a21a0c widget/tests/scribble/Makefile.in:
- Link with -lpwcac -ldbm on all platforms, not just Linux, FreeBSD, and
SunOS.
- Correct linking order: $(PNG_LIBS) needs to be after -limg.

widget/tests/scribble/main.cpp
- Declare extern "C" for the XP_ReBuffer stub.
- Declare main to return int because it does return a value.

Thanks to wtc@netscape.com (Wan-Teh Chang) for the fix.


git-svn-id: svn://10.0.0.236/trunk@15910 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 06:51:26 +00:00
ramiro%netscape.com
9c079a8bd4 Remove accidentally checked in file.
git-svn-id: svn://10.0.0.236/trunk@15909 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 06:49:04 +00:00
ramiro%netscape.com
1480b26681 Ignore the generated makefile
git-svn-id: svn://10.0.0.236/trunk@15908 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 06:45:39 +00:00
beard%netscape.com
6b7b83d3c5 Initial cut at GetReferrer, GetDomain methods. Some enhancements to nsIURL may be needed to do this right.
git-svn-id: svn://10.0.0.236/trunk@15907 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 06:10:12 +00:00
msw%gimp.org
ed6c31de48 Resizing works again, but resizes seem behind by one step.
git-svn-id: svn://10.0.0.236/trunk@15906 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 05:08:00 +00:00
troy%netscape.com
385b6f14aa Initial check-in
git-svn-id: svn://10.0.0.236/trunk@15905 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 04:05:12 +00:00
ramiro%netscape.com
dcc6aa9dd2 Add depend.mk.
git-svn-id: svn://10.0.0.236/trunk@15904 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:58:05 +00:00
troy%netscape.com
4c8f073007 Changed Print() to use nsIPageSequenceFrame. Now we can print to multiple
pages


git-svn-id: svn://10.0.0.236/trunk@15903 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:45:30 +00:00
troy%netscape.com
dcfe7f9e75 Added additional parameter to Display() for specifying which view
should be displayed


git-svn-id: svn://10.0.0.236/trunk@15902 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:44:57 +00:00
troy%netscape.com
a2f34c611a Added support for printing multiple pages
git-svn-id: svn://10.0.0.236/trunk@15901 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:43:02 +00:00
pierre%netscape.com
a0f3334c86 rewrote the GraphicState handling
git-svn-id: svn://10.0.0.236/trunk@15900 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:38:58 +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
ramiro%netscape.com
22dbfb815d Completely yank the inline check and blurb as suggested by wtc.
git-svn-id: svn://10.0.0.236/trunk@15898 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:32:51 +00:00
beard%netscape.com
03f544c401 Implemented SetTitle using nsString::ToCString. Will need to revisit when UNICODE window titles are supported.
git-svn-id: svn://10.0.0.236/trunk@15897 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:08:07 +00:00
ramiro%netscape.com
21ec4ce15e Fix the depend noise redirection.
Thanks to Tom Lane <tgl@sss.pgh.pa.us> for suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@15896 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 02:32:25 +00:00
wtc%netscape.com
2ef081b6ea Apply the patch submitted by Joe Keane <jgk@jgk.org> to PR_Poll
so that we use a struct pollfd array allocated on the stack
when caller's poll descriptor array can fit in it.  This avoids
the cost of a malloc and a free call when the poll descriptor
arrays are small.


git-svn-id: svn://10.0.0.236/trunk@15895 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 01:39:48 +00:00
wtc%netscape.com
6e752045ee In _MD_unix_map_open_error, map EOVERFLOW to PR_FILE_TOO_BIG_ERROR.
git-svn-id: svn://10.0.0.236/trunk@15894 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 01:22:31 +00:00
leaf%mozilla.org
d0f6034d92 clobber and checkout rules should work now, but they still need some cleaning.
git-svn-id: svn://10.0.0.236/trunk@15893 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 00:07:54 +00:00
leaf%mozilla.org
392f97db62 making set-timebomb.pl work with shaver's hack in
xfe/xpviewer/src/nsViewerApp.cpp to implement a timebomb.


git-svn-id: svn://10.0.0.236/trunk@15892 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 00:06:19 +00:00
leaf%mozilla.org
052f1129eb shaver's hacked timebomb code; prefs should be made to do this Right.
git-svn-id: svn://10.0.0.236/trunk@15891 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 00:04:14 +00:00
rickg%netscape.com
d48b237993 improvements to fix a table bug for cujo.
git-svn-id: svn://10.0.0.236/trunk@15890 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 20:29:29 +00:00
shaver%netscape.com
5d7c8750fd Added varargs support (produces "..." in C++ until we figure out what
nsIVarargs should look like).
IDL return value now becomes a final (but before varargs!) out parameter
_retval in C++.
Prettied up some whitespace.


git-svn-id: svn://10.0.0.236/trunk@15889 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 19:52:21 +00:00
shaver%netscape.com
f176ff7946 Update usage message.
Add #include processing.
Generate #define NS_IFOO_IID_STR for kipp.
More header-generation niceties: #ifndef __nsIFoo_h__, DO NOT EDIT warning
now mentions source filename.
Generate #include in header to match #include in IDL, not by grovelling for
referenced interfaces.
(XXX: Need to polish up memory management.)


git-svn-id: svn://10.0.0.236/trunk@15888 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 18:41:44 +00:00
pavlov%pavlov.net
d1163274af remove all references to TRUE and FALSE and replace them with PR_TRUE and
PR_FALSE (for consistancy)  fix nsTextAreaWidget so that it doesn't default to ReadOnly


git-svn-id: svn://10.0.0.236/trunk@15887 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 15:56:43 +00:00
pavlov%pavlov.net
fda7f9ae59 indent these files so they conform to the style and fix read only and password
fields.


git-svn-id: svn://10.0.0.236/trunk@15886 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 15:42:28 +00:00
pavlov%pavlov.net
9d0eeb338f build TextWidget's correctly.
git-svn-id: svn://10.0.0.236/trunk@15885 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 15:40:48 +00:00
pavlov%pavlov.net
4d6ee6e898 removed unused variables (this one compiles) in nsTextAreaWidget.[ch]
commented out size_allocate in nsWindow.cpp as this doesn't appear to be
needed any more


git-svn-id: svn://10.0.0.236/trunk@15884 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 14:32:20 +00:00
wtc%netscape.com
00941fcdb7 In nsMenu::GetNativeParent, use the GTK_WIDGET macro (defined in
<gtk/gtkwidget.h>) to convert (void *) to (GtkWidget *).


git-svn-id: svn://10.0.0.236/trunk@15883 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 07:08:33 +00:00
ramiro%netscape.com
c4af2d1726 Slowly working towards getting mozilla compiled/linking properly
using the Solaris native compilers.  This patch to configure.in
changes how we create shared libraries for Solaris from "ld" to
"CC", which can deal with templates and other C++ nastiness.

The other change removes the "inline" check, as the results of it
where being used in the wrong way.  It would see that "cc" didn't
understand "inline" and then force a "-Dinline=" option in the
CFLAGS, which are used for both C and C++ compile lines.  As you
can imagine, removing the "inline" keyword from the C++ compiles
was Bad News(tm).

Thanks to Tim Rowley <tor@boojum.cs.brown.edu> for the fix.


git-svn-id: svn://10.0.0.236/trunk@15882 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 07:07:56 +00:00
ramiro%netscape.com
06d94b8e05 Make makedepend less noisy.
git-svn-id: svn://10.0.0.236/trunk@15881 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 07:03:16 +00:00
ramiro%netscape.com
5dcde7cf7d Undo my previous screwup. I thought I was helping...
git-svn-id: svn://10.0.0.236/trunk@15880 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 06:23:31 +00:00
ramiro%netscape.com
1498a660af Fix Pavlov's bustage.
Thanks to Steve Morrison <smorrison@gte.com> for the fix.


git-svn-id: svn://10.0.0.236/trunk@15879 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 06:07:04 +00:00
ramiro%netscape.com
947c778f9f Added a type cast.
Thanks to Wan-Teh Chang <wtc@netscape.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@15878 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 05:32:57 +00:00
pavlov%pavlov.net
efbddb159f nsText* removed unused class variables.
nsWidget use the nsLookAndFeel values instead of defining the colors again.


git-svn-id: svn://10.0.0.236/trunk@15877 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 04:31:13 +00:00
pavlov%pavlov.net
5a2b6bd4d7 set the horizontal scrollbars to the same size size as the verticle ones
git-svn-id: svn://10.0.0.236/trunk@15876 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 03:48:00 +00:00
pavlov%pavlov.net
cfc7015655 set texts for text boxes correctly. impliment InsertText.
git-svn-id: svn://10.0.0.236/trunk@15875 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 03:14:23 +00:00
wtc%netscape.com
a74070c357 Removed inclusion of MacMemAllocator.h, which is not needed
and will be obsolete.  Also removed unused enum definition.


git-svn-id: svn://10.0.0.236/trunk@15874 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 01:52:20 +00:00
pierre%netscape.com
4f305cff94 Moved the Mac Toolbox initialization from nsToolkit to nsAppShell, the reason being that nsAppShell is destined to be replaced by embedding applications while nsToolkit isn't.
git-svn-id: svn://10.0.0.236/trunk@15873 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:51:16 +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
pierre%netscape.com
11b0da96a2 temporarily defines NO_DOUBLE_BUFFER if XP_MAC (waiting for the offscreen code to be fixed)
git-svn-id: svn://10.0.0.236/trunk@15871 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:37:25 +00:00
pierre%netscape.com
4f1ccf811f Init() does some clipping and initializes the Pen and TextMode (it's related to changes in nsWindow::StartDraw()). In all the drawing functions, replaced SetPort/SetClip/SetOrigin with StartDraw/EndDraw. More changes to come soon.
git-svn-id: svn://10.0.0.236/trunk@15870 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:37:00 +00:00
pierre%netscape.com
ad57465ba3 added StartDraw(), EndDraw() and mCurrentBuffer. More changes to come soon.
git-svn-id: svn://10.0.0.236/trunk@15869 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:36:35 +00:00
pierre%netscape.com
418f104580 removed the ::IdleControl() stuff (it was intended for edit fields but they have been implemented as LPeriodicals)
git-svn-id: svn://10.0.0.236/trunk@15868 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:36:15 +00:00
troy%netscape.com
6e173bf400 Added nsIPrintStatusCallback
git-svn-id: svn://10.0.0.236/trunk@15867 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-06 00:30:51 +00:00
sfraser%netscape.com
742a738b0d Change BlockZero to memset.
git-svn-id: svn://10.0.0.236/trunk@15866 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:41:14 +00:00
sfraser%netscape.com
f102df4c04 Update project files to remove old mem allocator code, and include new allocators. Also made static debug target for testing purposes.
git-svn-id: svn://10.0.0.236/trunk@15865 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:05:23 +00:00
sfraser%netscape.com
a4f2af2a2b Allocators now use shared heap zones, for better temp mem use. Other minor changes.
git-svn-id: svn://10.0.0.236/trunk@15864 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:04:36 +00:00
sfraser%netscape.com
0f49470216 Adjust prefix files for the new allocators.
git-svn-id: svn://10.0.0.236/trunk@15863 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:03:38 +00:00
sfraser%netscape.com
8e28e511cc Remove all but the basic exports.
git-svn-id: svn://10.0.0.236/trunk@15862 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:02:58 +00:00
sfraser%netscape.com
0133d979ad Remove the Flush_ calls, and tidy up new().
git-svn-id: svn://10.0.0.236/trunk@15861 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:02:10 +00:00
sfraser%netscape.com
c6e76c4b0c Remove the extern Flush_Allocate, and replace call with a malloc.
git-svn-id: svn://10.0.0.236/trunk@15860 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:01:30 +00:00
sfraser%netscape.com
801cd3efdb No longer export FlushAllocator.h. MacMemAllocator.h should also go away when NSPR is fixed.
git-svn-id: svn://10.0.0.236/trunk@15859 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:01:00 +00:00
sfraser%netscape.com
4955f3602d Add a #error to warn that this file should no longer be used. I can't remove it, because NSPR still includes it.
git-svn-id: svn://10.0.0.236/trunk@15858 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 22:00:24 +00:00
sfraser%netscape.com
8c835bf710 Remove XP_MAC include, and commented out call to CallCacheFlushers, which no longer lives in the Mac memory allocators. This needs to be hooked up (by XPapps?) in the new world.
git-svn-id: svn://10.0.0.236/trunk@15857 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 21:58:54 +00:00
sfraser%netscape.com
5a79aa8906 Removed XP_MAC include which is no longer necessary.
git-svn-id: svn://10.0.0.236/trunk@15856 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 21:55:53 +00:00
sfraser%netscape.com
4a69091e53 Adding nsBlockReflowContext.cpp, nsBulletFrame.cpp, nsLineBox.cpp to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@15855 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 21:17:05 +00:00
kipp%netscape.com
8853d35209 nuked
git-svn-id: svn://10.0.0.236/trunk@15854 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 19:21:03 +00:00
kipp%netscape.com
05c833dab3 new
git-svn-id: svn://10.0.0.236/trunk@15853 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 19:13:58 +00:00
kipp%netscape.com
4444943d58 Moved the starting url back to what it was
git-svn-id: svn://10.0.0.236/trunk@15852 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:06:38 +00:00
kipp%netscape.com
7dbf7f2ea1 Removed an unwanted DidReflow call
git-svn-id: svn://10.0.0.236/trunk@15851 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:06:14 +00:00
kipp%netscape.com
5e7cf3bb10 Setup first-letter-style to be off by default
git-svn-id: svn://10.0.0.236/trunk@15850 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:05:52 +00:00
kipp%netscape.com
c45965fd71 Removed handling of block frames (its done by nsBlockReflowContext now)
git-svn-id: svn://10.0.0.236/trunk@15849 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:05:23 +00:00
kipp%netscape.com
0a2fa0e309 Spanked to be a subclass of the nsBaseIBFrame class
git-svn-id: svn://10.0.0.236/trunk@15848 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:04:46 +00:00
kipp%netscape.com
ebbfcde3ed Removed carried-out-margin-flags
git-svn-id: svn://10.0.0.236/trunk@15847 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:04:33 +00:00
kipp%netscape.com
84b644509f Renamed a variable to (hopefully) be more clear what it is
git-svn-id: svn://10.0.0.236/trunk@15846 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:03:53 +00:00
kipp%netscape.com
0f01e4d9fa Made IndentBy public
git-svn-id: svn://10.0.0.236/trunk@15845 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:03:07 +00:00
kipp%netscape.com
ee6282c56c Use FirstChild so the method is more reusable
git-svn-id: svn://10.0.0.236/trunk@15844 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:02:43 +00:00
kipp%netscape.com
fb280caf3e Moved to new Init/ctor seperation
git-svn-id: svn://10.0.0.236/trunk@15843 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:02:26 +00:00
kipp%netscape.com
6771fa0a98 Major spankage; refactored code; common base class for block/inline frames
git-svn-id: svn://10.0.0.236/trunk@15842 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:02:08 +00:00
kipp%netscape.com
850e4ad32e nit
git-svn-id: svn://10.0.0.236/trunk@15841 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:01:41 +00:00
kipp%netscape.com
7bf1ab8bdd Made dtor obviously virtual instead of inherited virtual
git-svn-id: svn://10.0.0.236/trunk@15840 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:01:28 +00:00
kipp%netscape.com
04bd3565f5 Updated
git-svn-id: svn://10.0.0.236/trunk@15839 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:01:11 +00:00
kipp%netscape.com
2692c506e9 Added new source files
git-svn-id: svn://10.0.0.236/trunk@15838 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:00:56 +00:00
kipp%netscape.com
f8097d636a Support variable sized paging again, but only if an nspr log variable is defined
git-svn-id: svn://10.0.0.236/trunk@15837 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 15:58:09 +00:00
kipp%netscape.com
2e8fccc650 Start enums at zero so that debug noise can map them to strings safely
git-svn-id: svn://10.0.0.236/trunk@15836 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 15:57:40 +00:00
ramiro%netscape.com
589595f1b0 This patch set just makes sure that all functions that are
supposed to return values actually do so, to keep the Solaris
native compiler happy.

Thanks to Tim Rowley <tor@cs.brown.edu> for the fix.


git-svn-id: svn://10.0.0.236/trunk@15835 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 11:54:00 +00:00
ramiro%netscape.com
6808efdc69 Add a return to a function which is supposed to return a value,
to keep the Solaris native compiler happy.

Thanks to Tim Rowley <tor@cs.brown.edu> for the fix.


git-svn-id: svn://10.0.0.236/trunk@15834 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 11:50:32 +00:00
ramiro%netscape.com
10fb626733 Comment out the "Building in the srcdir is not supported!" test/warning.
This is no longer needed, since the classic build system is dead.  The
original purpose of this test was for the autoconf build not to clobber the
classic makefiles and them someone checkin them in by mistake.  No longer a
problem.


git-svn-id: svn://10.0.0.236/trunk@15833 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 11:27:50 +00:00
ramiro%netscape.com
e8595e93b6 Have cvs ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@15832 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 11:07:45 +00:00
ramiro%netscape.com
342f381cae Ignore files generated by autoconf.
git-svn-id: svn://10.0.0.236/trunk@15831 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 10:39:46 +00:00
ramiro%netscape.com
7880da4526 Add cvsignore entries for makefiles generated bu autoconf.
git-svn-id: svn://10.0.0.236/trunk@15829 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 09:07:33 +00:00
ramiro%netscape.com
e95667bce5 Remove extraneous Makefile files.
git-svn-id: svn://10.0.0.236/trunk@15828 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 08:19:05 +00:00
wtc%netscape.com
d3cba401e5 Fixed a bug in _MD_Open that incorrectly translates PR_WRONLY to
fsRdPerm.  Thanks to John McMullen <mcmullen@netscape.com> for
reporting this problem.


git-svn-id: svn://10.0.0.236/trunk@15827 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 06:51:33 +00:00
buster%netscape.com
9b1c517bdf fixed cellspacing and cellpadding handling
default cellspacing and cellpadding now comes from the table frame itself
other frames on longer look at the "tableStyle" struct for these values


git-svn-id: svn://10.0.0.236/trunk@15824 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 05:27:21 +00:00
pavlov%pavlov.net
ddde7a7583 Fix some code... its late isn't it? no more random looping due to resizing
code.


git-svn-id: svn://10.0.0.236/trunk@15823 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 03:54:30 +00:00
raman%netscape.com
9c6058cce0 Bug fix for 1420. Get filename from HashTable if fileTok is not NULL. If fileTok is NULL return aName for now. Approved by gagan
git-svn-id: svn://10.0.0.236/trunk@15822 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 03:10:43 +00:00
akkana%netscape.com
d12aa9a2fe Implement InSameDoc
git-svn-id: svn://10.0.0.236/trunk@15821 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 02:19:01 +00:00
wtc%netscape.com
58ce42d7a1 The second argument for GetStyleData needs to be 'const'.
git-svn-id: svn://10.0.0.236/trunk@15820 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 01:47:37 +00:00
wtc%netscape.com
5e71862c5b Miscellaneous porting changes from Brian Ostrom <briano@netscape.com>.
git-svn-id: svn://10.0.0.236/trunk@15819 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 01:41:18 +00:00
toshok%hungry.com
9d21df48aa remove this stragler.
git-svn-id: svn://10.0.0.236/trunk@15818 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 01:37:01 +00:00
kin%netscape.com
9ce78f012e Added transient and coalescing test cases.
git-svn-id: svn://10.0.0.236/trunk@15817 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 01:15:40 +00:00
pierre%netscape.com
6803bae2db Fix optimized build: use png.o instead of pngDebug.o in non-debug target
git-svn-id: svn://10.0.0.236/trunk@15816 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 00:23:29 +00:00
hyatt%netscape.com
35f5abe4cd Oops. Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@15815 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:55:48 +00:00
terry%netscape.com
8c77919f41 Add "OS/2" to the op_sys field.
git-svn-id: svn://10.0.0.236/trunk@15814 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:52:20 +00:00
troy%netscape.com
d6d9c0b157 Temporary change to make sure we don't wrap floated tables in a BODY frame
git-svn-id: svn://10.0.0.236/trunk@15813 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:51:16 +00:00
kin%netscape.com
4b75331b5b Added support for nsITransaction::GetIsTransient() method.
git-svn-id: svn://10.0.0.236/trunk@15812 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:09:55 +00:00
hyatt%netscape.com
75dec8692f Tweaks.
git-svn-id: svn://10.0.0.236/trunk@15811 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 23:05:50 +00:00
kmcclusk%netscape.com
26d8496fe2 Added Windows printing code for radio buttons.
git-svn-id: svn://10.0.0.236/trunk@15810 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:53:45 +00:00
toshok%hungry.com
ccabd40013 wrap -include with ifneq
git-svn-id: svn://10.0.0.236/trunk@15809 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:50:22 +00:00
toshok%hungry.com
ca1b4f9323 get rid of the remaining manifest, rules.mk, and config.mk files.
git-svn-id: svn://10.0.0.236/trunk@15808 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:37:15 +00:00
despotdaemon%netscape.com
63f4415435 Pseudo-automatic update of changes made by cathleen@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15807 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:18:25 +00:00
hyatt%netscape.com
3f6f1f7c0c Added support for vertical dividers.
git-svn-id: svn://10.0.0.236/trunk@15806 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:15:47 +00:00
kin%netscape.com
ba7e3a029e Implemented RecoverFromUndoError() and RecoverFromRedoError().
git-svn-id: svn://10.0.0.236/trunk@15805 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:50:09 +00:00
akkana%netscape.com
d64cbe00fc Waterson's definitions to fix Irix build.
git-svn-id: svn://10.0.0.236/trunk@15804 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:36:56 +00:00
pinkerton%netscape.com
391519224a Changed it so that triangle is drawn with lines instead of polygon
because of differences in gfx between platforms.


git-svn-id: svn://10.0.0.236/trunk@15803 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:36:43 +00:00
akkana%netscape.com
f703a277e0 base/src/nscore.h
git-svn-id: svn://10.0.0.236/trunk@15802 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:36:23 +00:00
kin%netscape.com
905266e217 Added test case for error during a redo. Added checks to make sure all
transaction destruction happens in the order we expect.


git-svn-id: svn://10.0.0.236/trunk@15801 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:32:47 +00:00
troy%netscape.com
9fad935195 Changed InsertChild() to use <= (instead of <) for zindex check, and changed
iteration to use sibling pointers


git-svn-id: svn://10.0.0.236/trunk@15800 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:28:52 +00:00
troy%netscape.com
16560ce56e Moved creation of first page frame to frame construction code, and changed
it so the page frame has a view. This makes printing faster and easier


git-svn-id: svn://10.0.0.236/trunk@15799 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 21:04:56 +00:00
sar%netscape.com
9de3d614fc fix build_number target. put build number in this dir instead of in ..\build
git-svn-id: svn://10.0.0.236/trunk@15798 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 20:00:31 +00:00
sar%netscape.com
415aaee658 add build_number target
git-svn-id: svn://10.0.0.236/trunk@15797 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 19:56:48 +00:00
sar%netscape.com
9347a9ee95 add config dir to dirs being traversed
git-svn-id: svn://10.0.0.236/trunk@15796 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 19:55:37 +00:00
kmcclusk%netscape.com
296a0f01fa Added some comments
git-svn-id: svn://10.0.0.236/trunk@15795 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 19:16:58 +00:00
kmcclusk%netscape.com
903dc7d289 Fix for MAC build
git-svn-id: svn://10.0.0.236/trunk@15794 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 19:07:46 +00:00
troy%netscape.com
89bd61bdf7 Moved view creation to frame construction code. Also moved wrapping of
floated and absolutely positioned elements to frame construction code


git-svn-id: svn://10.0.0.236/trunk@15793 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 19:03:44 +00:00
kmcclusk%netscape.com
7f340e3206 Added code to GFX-render checkbox's under Windows when printing.
git-svn-id: svn://10.0.0.236/trunk@15792 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:33:34 +00:00
jfrancis%netscape.com
4e5b7ef4d1 fixing up start/end setters, other details
git-svn-id: svn://10.0.0.236/trunk@15791 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:21:52 +00:00
kin%netscape.com
33a2cdeec8 Added more test cases.
git-svn-id: svn://10.0.0.236/trunk@15790 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:09:06 +00:00
karnaze%netscape.com
6160068f25 added code provided by Micahel Lowe to get system colors for frameset borders (bug 1763)
git-svn-id: svn://10.0.0.236/trunk@15789 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:05:30 +00:00
despotdaemon%netscape.com
aea16896a0 Pseudo-automatic update of changes made by cbegle@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15787 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 16:54:06 +00:00
pinkerton%netscape.com
4c90823d92 now draws triangle in upper right to indicate this button has a menu. Draws in gray when the button is disabled.
git-svn-id: svn://10.0.0.236/trunk@15786 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 16:34:56 +00:00
dcone%netscape.com
6af09fc750 Changed some attributes on the printer items for the menus
git-svn-id: svn://10.0.0.236/trunk@15785 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:10:07 +00:00
dcone%netscape.com
f14e81cfda Added some printer support
git-svn-id: svn://10.0.0.236/trunk@15784 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:08:18 +00:00
dcone%netscape.com
34fe19e310 added the nsDeviceContextSpec and factory support for printing support
git-svn-id: svn://10.0.0.236/trunk@15783 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:04:30 +00:00
dcone%netscape.com
60967d461c Added the nsDeviceContextSpecFactory and nsDeviceContextSpec support
git-svn-id: svn://10.0.0.236/trunk@15782 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:03:41 +00:00
dcone%netscape.com
0aea51cac2 Added printing support
git-svn-id: svn://10.0.0.236/trunk@15781 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:02:57 +00:00
dcone%netscape.com
31b62e1cdd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15780 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 15:02:26 +00:00
waterson%netscape.com
924122b79e Added utility files. Split nsRDFDocument into two subclasses.
git-svn-id: svn://10.0.0.236/trunk@15771 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 10:02:17 +00:00
waterson%netscape.com
cb39a2dc4c Changed RDF document CID.
git-svn-id: svn://10.0.0.236/trunk@15770 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 10:01:42 +00:00
waterson%netscape.com
3327b73315 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@15769 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 10:00:13 +00:00
waterson%netscape.com
e9f3b8d629 Moved child creation over into the document. Added some subclasses to deal with it.
git-svn-id: svn://10.0.0.236/trunk@15768 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 09:59:09 +00:00
waterson%netscape.com
efae90afc3 Split the RDFDocument CID into RDFHTMLDocument and RDFTreeDocument.
git-svn-id: svn://10.0.0.236/trunk@15767 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 09:58:35 +00:00
waterson%netscape.com
288f838db5 Remove #ifdef XP_MAC stuff that was excluding the RDF DLL.
git-svn-id: svn://10.0.0.236/trunk@15766 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 08:58:26 +00:00
waterson%netscape.com
cafbddc21f Add RDF to build.
git-svn-id: svn://10.0.0.236/trunk@15765 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 06:17:10 +00:00
troy%netscape.com
88f9a59ca3 Added a comment about view creation
git-svn-id: svn://10.0.0.236/trunk@15764 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 06:13:18 +00:00
troy%netscape.com
086be65468 Changed view creation to occur when frame initialization occurs
git-svn-id: svn://10.0.0.236/trunk@15763 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 05:56:06 +00:00
ramiro%netscape.com
fcc53f9f48 Add support for 'native' dependancies on systems that include the 'makedepend'
binary by default.  For example, linux freebsd and other unices that have
X11 installed in a reasonable fashion.  The commercial unices will continue
to suck as usual.


git-svn-id: svn://10.0.0.236/trunk@15762 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 05:07:01 +00:00
waterson%netscape.com
09b4935ee9 Cleaned up the last couple of fancy C++ casts. Implemented nsRDFElement::IndexOf().
git-svn-id: svn://10.0.0.236/trunk@15761 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 03:59:54 +00:00
troy%netscape.com
ab5a31d3a8 Removed some commented out old code
git-svn-id: svn://10.0.0.236/trunk@15760 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 03:46:59 +00:00
waterson%netscape.com
2b04d96272 Added nsSelection header files: this is temporary pending mjudge landing new selection stuff, but I need it now to get RDF building on Mac.
git-svn-id: svn://10.0.0.236/trunk@15759 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 03:45:00 +00:00
troy%netscape.com
1595471494 Added NS_RELEASE of col frame pseudo element style context. This fixes a memory leak
git-svn-id: svn://10.0.0.236/trunk@15758 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 03:39:05 +00:00
troy%netscape.com
016e99912d Changed table frame code to call DeleteFrameList() so that the col group
frames are deleted


git-svn-id: svn://10.0.0.236/trunk@15757 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 03:14:28 +00:00
sfraser%netscape.com
3bbad8c38d Dumping out my latest memory manager changes. Still not being built yet. New code includes stats collection, but no way to write out stats at the moment.
git-svn-id: svn://10.0.0.236/trunk@15756 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 02:21:19 +00:00
troy%netscape.com
3b547e08e4 Moved logic that created a BODY frame that forms the cell's content from the
table frame code to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@15755 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 02:08:51 +00:00
waterson%netscape.com
1a3cd25a71 Bunch of whackage. Changed C++ style casts to a macro. Changed NULL to nsnull. Changed the nsRDFDocument to its own class, independent of raptor (black box re-uses raptor parts).
git-svn-id: svn://10.0.0.236/trunk@15754 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 01:54:23 +00:00
pinkerton%netscape.com
195a59af67 lighten the widget bg colors so this things finally looks like macNavigator again.
git-svn-id: svn://10.0.0.236/trunk@15753 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 01:39:36 +00:00
waterson%netscape.com
b909a19ffb Added macros for fancy C++ casts.
git-svn-id: svn://10.0.0.236/trunk@15752 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 01:13:21 +00:00
slamm%netscape.com
81b85141cb Add support for hyatt's treeview.
git-svn-id: svn://10.0.0.236/trunk@15751 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 01:06:58 +00:00
slamm%netscape.com
15f0c43dad Build hyatt's treeview on Unix.
git-svn-id: svn://10.0.0.236/trunk@15750 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 01:06:53 +00:00
despotdaemon%netscape.com
ff536acd28 Pseudo-automatic update of changes made by chuang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15749 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 00:06:02 +00:00
mjudge%netscape.com
e13b418aa0 that didnt work... mac croaked
git-svn-id: svn://10.0.0.236/trunk@15748 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 00:01:09 +00:00
hyatt%netscape.com
e6b24661dd Adding an #ifdef XP_MAC on the window destroy for the tree widget (just to keep
Windows from crashing).


git-svn-id: svn://10.0.0.236/trunk@15747 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:57:44 +00:00
hyatt%netscape.com
569ce3d786 Tweaked the tree colors.
git-svn-id: svn://10.0.0.236/trunk@15746 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:55:15 +00:00
mjudge%netscape.com
e75f4b14dd removing NULL replacing with nsnull
git-svn-id: svn://10.0.0.236/trunk@15745 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:46:36 +00:00
mjudge%netscape.com
61da02c81e changing NULL to nsnull
git-svn-id: svn://10.0.0.236/trunk@15744 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:40:06 +00:00
beard%netscape.com
559a2f1990 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15743 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:34:34 +00:00
beard%netscape.com
8735046452 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15742 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:29:19 +00:00
despotdaemon%netscape.com
adaf914114 Pseudo-automatic update of changes made by chuang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15741 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:25:03 +00:00
despotdaemon%netscape.com
6b5b269bf6 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@15740 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 23:13:39 +00:00
jfrancis%netscape.com
f28b0461fe more work on grungy range details
git-svn-id: svn://10.0.0.236/trunk@15739 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:59:07 +00:00
beard%netscape.com
62f0aa37fa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15738 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:36:55 +00:00
kin%netscape.com
2dc88481c6 Added the editor/txmgr makefiles to the list of editor makefiles.
git-svn-id: svn://10.0.0.236/trunk@15737 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:20:34 +00:00
beard%netscape.com
84c016dd2f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15736 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:17:06 +00:00
hyatt%netscape.com
77ff46f4f9 The tree view column pushers disable properly. Hidden/shown columns remember
their desired widths.


git-svn-id: svn://10.0.0.236/trunk@15735 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:15:51 +00:00
waterson%netscape.com
0b35f3e964 Changed upper case RDF to lower case rdf to make consistent with the rest of the builds.
git-svn-id: svn://10.0.0.236/trunk@15734 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:07:16 +00:00
pinkerton%netscape.com
9beb110348 make sure the port is set correctly before we call ::SetOrigin on mouse events.
git-svn-id: svn://10.0.0.236/trunk@15733 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:05:49 +00:00
pinkerton%netscape.com
b0af80a5e7 handle NS_DESTROY message in tree window event handler.
git-svn-id: svn://10.0.0.236/trunk@15732 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 22:05:17 +00:00
waterson%netscape.com
bc334f6a33 Added mozilla/layout/html/style/src to the list of MANIFEST-ed directories. This makes sure that nsIHTMLStyleSheet and nsIHTMLCSSStyleSheet are exported.
git-svn-id: svn://10.0.0.236/trunk@15731 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:48:45 +00:00
mjudge%netscape.com
bcb1a29e8f new selection change to come ifdefs going in
git-svn-id: svn://10.0.0.236/trunk@15730 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:48:32 +00:00
mjudge%netscape.com
a7016e173a changed call for editor to include a call for the classid editor as well
git-svn-id: svn://10.0.0.236/trunk@15729 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:47:22 +00:00
mjudge%netscape.com
0b731fb2af new enumerator interface change
git-svn-id: svn://10.0.0.236/trunk@15728 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:46:51 +00:00
mjudge%netscape.com
7cfb36e5d7 changing enumerator interface again
git-svn-id: svn://10.0.0.236/trunk@15727 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:46:27 +00:00
mjudge%netscape.com
046ac87d8d changing enumerator interface
git-svn-id: svn://10.0.0.236/trunk@15726 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:46:06 +00:00
mjudge%netscape.com
f19d69e4a0 changing use of selection
git-svn-id: svn://10.0.0.236/trunk@15725 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:45:26 +00:00
mjudge%netscape.com
307185c34e new use of enumerator class changed IsDone to return NS_COMFALSE if not done
git-svn-id: svn://10.0.0.236/trunk@15724 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:44:54 +00:00
mjudge%netscape.com
383bba0f13 changing exports of new CIDs for selection
git-svn-id: svn://10.0.0.236/trunk@15723 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:44:12 +00:00
mjudge%netscape.com
e68a9d1ff0 changing selection code
git-svn-id: svn://10.0.0.236/trunk@15722 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:43:32 +00:00
mjudge%netscape.com
56057bdbde new collection export instead of nsISelection
git-svn-id: svn://10.0.0.236/trunk@15721 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:42:58 +00:00
mjudge%netscape.com
91ee1e24fd exporting new cid files
git-svn-id: svn://10.0.0.236/trunk@15720 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:41:07 +00:00
fur%netscape.com
8a43aa3ae0 Initial check-in of ElectricalFire, a Java JIT compiler.
git-svn-id: svn://10.0.0.236/trunk@15719 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:10:47 +00:00
waterson%netscape.com
b0eacc489e A better fix.
git-svn-id: svn://10.0.0.236/trunk@15718 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:50:21 +00:00
waterson%netscape.com
b9ca3d1232 Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@15717 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:47:01 +00:00
waterson%netscape.com
7005ad4675 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15716 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:28:15 +00:00
waterson%netscape.com
a4f4d45462 File Removed.
git-svn-id: svn://10.0.0.236/trunk@15715 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:26:33 +00:00
leaf%mozilla.org
a1ca7300c3 readding the xpcom/tools/Makefile rule. xpcom/tools needs to be made before
xpcom/tools/idl/Makefile.


git-svn-id: svn://10.0.0.236/trunk@15714 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:26:22 +00:00
waterson%netscape.com
57bc8c82e6 Expose nsWellFormedDTD via the factory.
git-svn-id: svn://10.0.0.236/trunk@15713 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:22:19 +00:00
waterson%netscape.com
85034a850f Export style sheets, nsPresShell, and nsTextNode via the factory.
git-svn-id: svn://10.0.0.236/trunk@15712 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:21:40 +00:00
waterson%netscape.com
ddfb3f25e0 Added initializers that can be used from the repository. Export nsIHTMLStyleSheet.h.
git-svn-id: svn://10.0.0.236/trunk@15711 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:20:35 +00:00
waterson%netscape.com
c4b7624c9b Added initializer that can be used from the repository.
git-svn-id: svn://10.0.0.236/trunk@15710 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:19:46 +00:00
buster%netscape.com
28547e48be minor optimizations and cleanup. removed constructors that did nothing.
git-svn-id: svn://10.0.0.236/trunk@15709 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:19:01 +00:00
pollmann%netscape.com
dbed102059 Allow option groups to contain options when building the content model
git-svn-id: svn://10.0.0.236/trunk@15708 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 19:33:12 +00:00
hyatt%netscape.com
b62fdf33fb Improvements to tree widget tester.
git-svn-id: svn://10.0.0.236/trunk@15707 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 19:13:53 +00:00
jfrancis%netscape.com
d87021fc1a adding nsRange.cpp to the project, again. it's always better the second time around.
git-svn-id: svn://10.0.0.236/trunk@15706 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 18:21:45 +00:00
buster%netscape.com
8b5b151f2d added table pseudo-style contenxts
git-svn-id: svn://10.0.0.236/trunk@15705 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 18:03:28 +00:00
buster%netscape.com
104395fa1f the inner table frame now maintains 2 child lists: the main child lists that holds rowgroups and unknown frame
types, and mColGroups. Besides being cleaner and easier to maintain, this should speed some things up slightly
     because I don't have to check display types every time I iterate through colgroup frames.  I *know*
     mColGroups contains only colgroups.  I might do the same for rowgroups (that is, keep unknown frame types
     in their own list as well.)  But that's optional.
the inner table frame used to incorrectly create actual content objects for anonymous colgroups and cols.  Now,
     it just creates frames as appropriate, not content.  To support this, I added some pseudo style contexts and
     related atoms.


git-svn-id: svn://10.0.0.236/trunk@15704 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 18:01:35 +00:00
buster%netscape.com
46aa659021 added atoms for table pseudo style contexts
git-svn-id: svn://10.0.0.236/trunk@15703 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 18:00:42 +00:00
pinkerton%netscape.com
eb08a77817 turn on tree view command for win and macos.
git-svn-id: svn://10.0.0.236/trunk@15702 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 17:59:25 +00:00
pinkerton%netscape.com
91b0f90740 handle view source and tree view file menu commands.
git-svn-id: svn://10.0.0.236/trunk@15701 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 17:59:13 +00:00
pinkerton%netscape.com
eb562f6887 added view source and view tree menu items for demo purposes.
git-svn-id: svn://10.0.0.236/trunk@15700 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 17:58:44 +00:00
shaver%netscape.com
f5b3bec414 Add generated file warning.
Remove excessive #include "nsISupports.h" generation.
Interfaces are public:, accessors are pure (= 0).


git-svn-id: svn://10.0.0.236/trunk@15699 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 17:38:55 +00:00
jfrancis%netscape.com
5fbc38d8cc fixing bad goto (as if there were good ones?)
git-svn-id: svn://10.0.0.236/trunk@15698 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 17:25:00 +00:00
troy%netscape.com
5dc9f4f4a8 Added NS_RELEASE to fix leak of a HTML style element
git-svn-id: svn://10.0.0.236/trunk@15697 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 16:46:56 +00:00
terry%netscape.com
d60bb4659d Fixed bug 1746 -- make it say "Submit query" instead of "Submit".
git-svn-id: svn://10.0.0.236/trunk@15696 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 16:31:10 +00:00
terry%netscape.com
671a288996 Reworked the rep_platform and op_sys fields. BEWARE; this includes
some changes to the database schema!


git-svn-id: svn://10.0.0.236/trunk@15695 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 16:10:52 +00:00
jfrancis%netscape.com
9c7b15c912 adding some private helper functionality that is going to change soon...
git-svn-id: svn://10.0.0.236/trunk@15694 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 15:02:37 +00:00
leaf%mozilla.org
cb1d23c2aa Removed some kruft and added a pull_config to pull_all so pull_nglayout doesn't
die. More splitting needs to be done (taking up some of the things that nglayout.mak
does but shouldn't be doing)... but that's for another early morning.


git-svn-id: svn://10.0.0.236/trunk@15693 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 12:28:26 +00:00
hyatt%netscape.com
a600c5fcb5 Hacked the viewer so that the tree widget can be launched from the File menu.
Only works on Windows currently.


git-svn-id: svn://10.0.0.236/trunk@15692 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 10:12:30 +00:00
jfrancis%netscape.com
c6102dbf54 putting Akkana's implementation back in; fixed compile-time errors
git-svn-id: svn://10.0.0.236/trunk@15691 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 09:51:05 +00:00
jfrancis%netscape.com
19234409ed taking out the factory extern cruft that we only needed before we had shared libs working on the mac. Long live the shared lib conversion!
git-svn-id: svn://10.0.0.236/trunk@15690 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 09:35:38 +00:00
jfrancis%netscape.com
5312ddf123 cleaning up library dependencies, and added xpcom.shlb
git-svn-id: svn://10.0.0.236/trunk@15689 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 09:34:37 +00:00
leaf%mozilla.org
e5639c0739 there's no xpcom/toolsMakefile.in , so don't try and make the Makefile
git-svn-id: svn://10.0.0.236/trunk@15687 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 08:44:14 +00:00
troy%netscape.com
4edf9f0135 Removed explict call of base class constructor
git-svn-id: svn://10.0.0.236/trunk@15686 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 07:22:31 +00:00
troy%netscape.com
f511034628 Removed explicit call of base class constructor because it was
making Unix compilers unhappy


git-svn-id: svn://10.0.0.236/trunk@15685 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 07:20:59 +00:00
wtc%netscape.com
0e55a232b4 Added a static cast from void* to GtkWidget*.
git-svn-id: svn://10.0.0.236/trunk@15684 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:35:05 +00:00
shaver%netscape.com
8accf45608 Fix indentation, which was my fault and not andrewv's.
Add nsISupports to the always-include list.
Clean up interface generation code, and then mess it up again with
IID handling.


git-svn-id: svn://10.0.0.236/trunk@15683 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:33:59 +00:00
troy%netscape.com
01f27b2a31 Added Init() member function to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@15682 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:31:43 +00:00
wtc%netscape.com
2c8f8fff45 The GetFont method of nsIFontMetrics takes a const pointer reference
as argument, so we must pass a const pointer reference to it.


git-svn-id: svn://10.0.0.236/trunk@15681 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:29:56 +00:00
despotdaemon%netscape.com
f8d265ea3f Pseudo-automatic update of changes made by dawn@cannibal.mi.org.
git-svn-id: svn://10.0.0.236/trunk@15680 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:07:21 +00:00
despotdaemon%netscape.com
5e302713d5 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15679 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:01:59 +00:00
despotdaemon%netscape.com
7710d61b16 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15678 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:00:01 +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
nisheeth%netscape.com
a769382e80 Added /FR flag for WIN32 builds to generate code browsing info if
MOZ_BROWSE_INFO is set in the environment.


git-svn-id: svn://10.0.0.236/trunk@15676 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 04:26:40 +00:00
nisheeth%netscape.com
a93af06938 Added a browse_info target to the windows make file to support
generation of the .BSC browse info file from all the .SBR files
that get generated by the MSVC compiler.


git-svn-id: svn://10.0.0.236/trunk@15675 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 04:25:14 +00:00
saari%netscape.com
dec07bc825 Mac only hackery to make rendering better.
git-svn-id: svn://10.0.0.236/trunk@15674 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 04:24:54 +00:00
joki%netscape.com
053d2832d4 Fix cursor bug which caused cursor to be set once per child view on each mousemove
git-svn-id: svn://10.0.0.236/trunk@15673 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 03:07:16 +00:00
pinkerton%netscape.com
c781700b61 replace NS_IMETHOD with expanded version to make vc6 happy.
git-svn-id: svn://10.0.0.236/trunk@15672 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:45:40 +00:00
rpotts%netscape.com
169eccca7e Temp file to populate the repository (until it becomes persistent...
git-svn-id: svn://10.0.0.236/trunk@15671 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:38:19 +00:00
rpotts%netscape.com
0a9440f28b Application launcher...
git-svn-id: svn://10.0.0.236/trunk@15670 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:37:46 +00:00
rpotts%netscape.com
bd56204091 Windows makefile...
git-svn-id: svn://10.0.0.236/trunk@15669 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:37:24 +00:00
rpotts%netscape.com
cb02290217 public headers for the Application SHell services...
git-svn-id: svn://10.0.0.236/trunk@15668 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:36:47 +00:00
rpotts%netscape.com
14c137e472 Application Shell services...
git-svn-id: svn://10.0.0.236/trunk@15667 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:35:53 +00:00
pinkerton%netscape.com
55d40f31ea move the tree and toolbar files into their own group.
git-svn-id: svn://10.0.0.236/trunk@15666 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:27:41 +00:00
pinkerton%netscape.com
9af474e202 general cleanup, change PaintLines() to PaintRows(), cleaned up cntr.
git-svn-id: svn://10.0.0.236/trunk@15665 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:27:24 +00:00
pinkerton%netscape.com
fe975b655e make the toolbar inherit from the dataModelWidget class like the trees.
git-svn-id: svn://10.0.0.236/trunk@15664 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:26:39 +00:00
pinkerton%netscape.com
fa6414062a clean up a warning and some comments.
git-svn-id: svn://10.0.0.236/trunk@15663 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:26:10 +00:00
pinkerton%netscape.com
724463c7a0 moved eDMImageLoaded constant here because this is the only place it is used.
git-svn-id: svn://10.0.0.236/trunk@15662 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:25:50 +00:00
pinkerton%netscape.com
24277cfac1 reshuffled some things to remove include dependancies, etc.
git-svn-id: svn://10.0.0.236/trunk@15661 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:25:26 +00:00
rpotts%netscape.com
ba6ba6906a Windows makefile...
git-svn-id: svn://10.0.0.236/trunk@15660 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:17:32 +00:00
pierre%netscape.com
ce14f70107 Making nsMacRepository.h obsolete: the shared lib conversion is done.
git-svn-id: svn://10.0.0.236/trunk@15659 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 01:06:00 +00:00
sfraser%netscape.com
af6b5cff3e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15658 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:45:32 +00:00
kin%netscape.com
86a31102c0 Fixed crash bug when calling PeekUndoStack() or PeekRedoStack() when the stacks
are empty. Fixed bug that allowed mMaxLevelsOfUndo + 1 entries on the undo
stack.


git-svn-id: svn://10.0.0.236/trunk@15657 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:41:44 +00:00
pinkerton%netscape.com
aa2bbcf32f added nsJSUtils.cpp to base for vidur.
git-svn-id: svn://10.0.0.236/trunk@15656 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:36:06 +00:00
vidur%netscape.com
c0cd474b21 Fixed unitialized value problem.
git-svn-id: svn://10.0.0.236/trunk@15655 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:34:44 +00:00
vidur%netscape.com
8675dc74ce Slimmed down DOM code by creating a few utility functions for conversion, etc. Fixed bug 1656 - bug in generator with an enum value of 0.
git-svn-id: svn://10.0.0.236/trunk@15654 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:33:00 +00:00
sfraser%netscape.com
e09a7f3f67 File Removed.
git-svn-id: svn://10.0.0.236/trunk@15653 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 00:26:44 +00:00
hyatt%netscape.com
f6f73127c3 Removal of the mutable keyword (to keep VC4.2 happy), and a fix to make
sure the folder and trigger images load for everyone.


git-svn-id: svn://10.0.0.236/trunk@15652 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 23:04:55 +00:00
leaf%mozilla.org
362a53efb2 fixed mismatched quotes.
git-svn-id: svn://10.0.0.236/trunk@15651 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 22:30:52 +00:00
leaf%mozilla.org
304afd24c1 backing out bad change
git-svn-id: svn://10.0.0.236/trunk@15650 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 22:24:09 +00:00
leaf%mozilla.org
9700526d67 we must descend editor/ no matter what now.
git-svn-id: svn://10.0.0.236/trunk@15649 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 22:13:21 +00:00
leaf%mozilla.org
00349f60b8 adding the editor/public header export makefiles to the default makefile list
git-svn-id: svn://10.0.0.236/trunk@15648 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 22:08:05 +00:00
leaf%mozilla.org
a9c6dd2da4 adding the editor/Makefile.in and editor/public to SeaMonkeyBrowser
git-svn-id: svn://10.0.0.236/trunk@15647 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 21:50:19 +00:00
kin%netscape.com
df6b542687 Fix for build bustage on Unix. Put in missing '$'.
git-svn-id: svn://10.0.0.236/trunk@15646 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 21:25:41 +00:00
kin%netscape.com
c142f19e2d Fix for Unix build bustage. We only build the editor core code if
MOZ_EDITOR is set, otherwise, we just export the editor interfaces.


git-svn-id: svn://10.0.0.236/trunk@15645 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 21:24:25 +00:00
pavlov%pavlov.net
dd963bbea3 removed extranious #include "gtklayout.h"'s and #ifndef GTK_HAVE_FEATURES_1_1_6
in gtklayout.c and nsWidget.h so that we use the gtklayout from gtk 1.1.6 if
available.


git-svn-id: svn://10.0.0.236/trunk@15643 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:54:34 +00:00
shaver%netscape.com
0913f32ec7 Updated README.
Better arg handling and now lower-case mode flags.
andrewv's fixes to lose dependency on IDLN_ enum order (but not his changes
to indentation settings!).


git-svn-id: svn://10.0.0.236/trunk@15642 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:53:27 +00:00
pinkerton%netscape.com
bc13eb0ae4 add the files to build the xpfe tree view.
git-svn-id: svn://10.0.0.236/trunk@15641 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:49:27 +00:00
pinkerton%netscape.com
39aa690f7a export the tree view.
git-svn-id: svn://10.0.0.236/trunk@15640 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:49:06 +00:00
pinkerton%netscape.com
1f78dc5000 add the tree view to the widget factory.
git-svn-id: svn://10.0.0.236/trunk@15639 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:48:55 +00:00
pinkerton%netscape.com
3224d9619e fix PRBool and an unwanted assignment in an if().
git-svn-id: svn://10.0.0.236/trunk@15638 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 19:48:28 +00:00
kin%netscape.com
942aef5be1 Fix for build bustage on Unix.
git-svn-id: svn://10.0.0.236/trunk@15637 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 18:02:06 +00:00
mjudge%netscape.com
5be79f43a9 forgot one file for ngEditor
git-svn-id: svn://10.0.0.236/trunk@15636 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:59:03 +00:00
kin%netscape.com
548f97b224 Added GetTransaction() method.
git-svn-id: svn://10.0.0.236/trunk@15635 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:40:56 +00:00
kin%netscape.com
c499a4300e Updated TestTransaction methods to match changes to nsITransaction interface.
Started implementation of simple test.


git-svn-id: svn://10.0.0.236/trunk@15634 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:40:25 +00:00
kin%netscape.com
3cf483c706 Fix for build bustage on Unix.
git-svn-id: svn://10.0.0.236/trunk@15633 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:39:40 +00:00
kin%netscape.com
8d81669ab7 Added implementations for new Clear(), PeekUndoStack(), and PeekRedoStack()
interface methods. Added support for transaction merging/coalescing, and
max number of undos.


git-svn-id: svn://10.0.0.236/trunk@15632 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:39:09 +00:00
kin%netscape.com
79b9defb35 Added Clear(), PeekUndoStack(), and PeekRedoStack() methods to interface.
git-svn-id: svn://10.0.0.236/trunk@15631 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:37:16 +00:00
kin%netscape.com
4eed82b09a Added Merge() method to interface.
git-svn-id: svn://10.0.0.236/trunk@15630 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:36:46 +00:00
akkana%netscape.com
16b950c06e For mjudge: Remove NGEDITOR defines
git-svn-id: svn://10.0.0.236/trunk@15629 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 17:20:54 +00:00
wtc%netscape.com
cb295c0441 Added extern "C" for XP_ReBuffer().
git-svn-id: svn://10.0.0.236/trunk@15628 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:52:08 +00:00
wtc%netscape.com
773ba841c6 Link with -lpwcac -ldbm on all platforms, not just FreeBSD, Linux, and
SunOS.


git-svn-id: svn://10.0.0.236/trunk@15627 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:51:45 +00:00
wtc%netscape.com
bc83a7b897 Link with -lpwcac -ldbm on all platforms, not just on FreeBSD, Linux,
and SunOS.


git-svn-id: svn://10.0.0.236/trunk@15626 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:49:27 +00:00
wtc%netscape.com
d45ab8ecf7 This checkin (under mozilla/layout) is all about 'const'. Digital Unix's
C++ compiler is strict about getting 'const' right.  Most of the changes
are to add 'const' to the type casts for the second argument of the
GetStyleData method, which wants a const reference.


git-svn-id: svn://10.0.0.236/trunk@15625 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:45:20 +00:00
dcone%netscape.com
b5ce78f2af Changed the name so the file can be used on the Mac
git-svn-id: svn://10.0.0.236/trunk@15624 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:06:31 +00:00
chuckb%netscape.com
793e08b58b two bug fixes.
git-svn-id: svn://10.0.0.236/trunk@15623 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 10:56:43 +00:00
pierre%netscape.com
cda7b1f93b Make an alias of the WASTELib library in the 'dist' directory
git-svn-id: svn://10.0.0.236/trunk@15622 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 10:17:36 +00:00
pierre%netscape.com
b26e325161 changed eMetric_TextFieldHeight to 16 from 30
git-svn-id: svn://10.0.0.236/trunk@15621 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 10:15:55 +00:00
pierre%netscape.com
b2b5f6973f removed the 2 Resize() methods
git-svn-id: svn://10.0.0.236/trunk@15620 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 10:15:41 +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
hyatt%netscape.com
fbb73d31d8 Eliminated my usage of the "mutable" keyword, since VC4.2 chokes on it.
git-svn-id: svn://10.0.0.236/trunk@15618 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 07:20:39 +00:00
saari%netscape.com
ae67adc529 Fix build breakage.
Added mozilla/layout/base/nsPringContext.cpp to layout.mcp to mirror Troy's addition to the build today.


git-svn-id: svn://10.0.0.236/trunk@15617 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 04:59:15 +00:00
saari%netscape.com
ad5ae66745 Fixing build breakage.
nsRegionMac API changed on me.


git-svn-id: svn://10.0.0.236/trunk@15616 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 04:26:16 +00:00
troy%netscape.com
26a1c5f759 Added ID for nsIPageSequenceFrame
git-svn-id: svn://10.0.0.236/trunk@15614 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 03:53:01 +00:00
troy%netscape.com
f8f4d4ce45 Changed Print() to use a print context instead of a galley mode
context


git-svn-id: svn://10.0.0.236/trunk@15613 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 03:26:37 +00:00
troy%netscape.com
d7e61a86d5 Added PrintContext class and changed document viewer impl to use it instead
of a galley mode context


git-svn-id: svn://10.0.0.236/trunk@15612 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 03:21:55 +00:00
saari%netscape.com
2788df097d fixed hand merge error
git-svn-id: svn://10.0.0.236/trunk@15611 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:51:48 +00:00
saari%netscape.com
cfbf3d475a ----------------------------------------
mozilla/widget/public/nsIWidget.h
- Added some more #defines for GetNativeData. I don't like this and want to remove them ASAP.


git-svn-id: svn://10.0.0.236/trunk@15610 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:45:08 +00:00
saari%netscape.com
69e1ee819d ----------------------------------------
mozilla/widget/src/mac/nsMacWindow.cpp
- Line 112: fixed bug with rect bottom not being set correctly


git-svn-id: svn://10.0.0.236/trunk@15609 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:43:19 +00:00
saari%netscape.com
297d9f5ae5 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@15608 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:42:19 +00:00
wtc%netscape.com
a155e44fc1 The mktime routine in MetroWerks MSL C Runtime Library on the Mac
uses midnight 1 Jan 1900 as the epoch.  So we need to adjust its
return value to the NSPR epoch.  Thanks to Brendan Eich and Chris
Yeh for this fix.


git-svn-id: svn://10.0.0.236/trunk@15607 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:35:27 +00:00
sar%netscape.com
1ca4c61fe1 add needed top level makefiles to SeamonkeyCore for win and linux --sarah
git-svn-id: svn://10.0.0.236/trunk@15606 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:29:11 +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
joki%netscape.com
2973fa0b43 Fix mouseover/mouseout firing crash when hitting bad frame.
git-svn-id: svn://10.0.0.236/trunk@15604 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:14:58 +00:00
waterson%netscape.com
624c0b68fb Added rdf to LINCS.
git-svn-id: svn://10.0.0.236/trunk@15603 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 02:13:49 +00:00
hyatt%netscape.com
7884d6c986 Fixing the widget factory for tree views.
git-svn-id: svn://10.0.0.236/trunk@15602 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:45:15 +00:00
hyatt%netscape.com
2d805bdda3 Fixing the widget factory for the tree view.
git-svn-id: svn://10.0.0.236/trunk@15601 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:44:53 +00:00
hyatt%netscape.com
3f71118adc The tree view interface.
git-svn-id: svn://10.0.0.236/trunk@15600 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:44:24 +00:00
hyatt%netscape.com
07509a869b Initial checkin of the tree widget and the data model architecture (that will
be used for toolbars and trees).


git-svn-id: svn://10.0.0.236/trunk@15599 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:43:26 +00:00
waterson%netscape.com
d6b5ad35ae #ifdef out XP_MAC stuff for now.
git-svn-id: svn://10.0.0.236/trunk@15598 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:42:17 +00:00
hyatt%netscape.com
b3bdab2165 Deletion of outdated tree widget and toolbar interfaces and updating of
the appropriate makefiles.


git-svn-id: svn://10.0.0.236/trunk@15597 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:38:54 +00:00
wtc%netscape.com
dc6fc49a76 In the struct-emulated version of LL_I2L, added a PRInt32 cast
to make sure we are right shifting a signed integer (in case
someone passes in an unsigned).


git-svn-id: svn://10.0.0.236/trunk@15596 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:37:59 +00:00
michaelp%netscape.com
a7bf3aae35 fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@15595 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:08:43 +00:00
briano%netscape.com
48e5eec02e Fix for NetBSD. Bugzilla#1421.
git-svn-id: svn://10.0.0.236/trunk@15594 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:08:00 +00:00
waterson%netscape.com
b52159df93 Added rdf dir to pull_lizard.
git-svn-id: svn://10.0.0.236/trunk@15593 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:57:34 +00:00
waterson%netscape.com
2c2e4e2e6f Added mozilla/rdf to the pull.
git-svn-id: svn://10.0.0.236/trunk@15592 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:50:42 +00:00
peterl%netscape.com
5a6b69acb5 Added nsLayoutAtoms.cpp
git-svn-id: svn://10.0.0.236/trunk@15591 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:49:52 +00:00
briano%netscape.com
3d2cb56ff4 Fix for OpenBSD. Bugzilla#1407.
git-svn-id: svn://10.0.0.236/trunk@15590 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:45:24 +00:00
peterl%netscape.com
2709b267b2 added inline style sheet support for contained HTML
git-svn-id: svn://10.0.0.236/trunk@15589 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:39:10 +00:00
peterl%netscape.com
d2cbd9f116 changed media type to atom
moved body fixup rule to body element


git-svn-id: svn://10.0.0.236/trunk@15588 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:38:33 +00:00
peterl%netscape.com
da11cf6bba changed media type to atom
git-svn-id: svn://10.0.0.236/trunk@15587 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:38:14 +00:00
peterl%netscape.com
121ee0330e added media support to child sheet iteration
changed medium type to atoms


git-svn-id: svn://10.0.0.236/trunk@15586 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:37:32 +00:00
michaelp%netscape.com
55952d5861 added GetNativeRegion() and GetRegionComplexity() methods.
git-svn-id: svn://10.0.0.236/trunk@15585 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:36:56 +00:00
peterl%netscape.com
87cce2df33 added media support to import
git-svn-id: svn://10.0.0.236/trunk@15584 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:36:37 +00:00
michaelp%netscape.com
f7f8b8ea47 added FlushFontCache() method.
git-svn-id: svn://10.0.0.236/trunk@15583 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:36:08 +00:00
peterl%netscape.com
4c21a94564 changed medium type to atom
git-svn-id: svn://10.0.0.236/trunk@15582 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:36:00 +00:00
peterl%netscape.com
69b84cb501 added inline style sheet accessor
git-svn-id: svn://10.0.0.236/trunk@15581 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:35:41 +00:00
peterl%netscape.com
c57d0b3d20 fixed decoration style of del
git-svn-id: svn://10.0.0.236/trunk@15580 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:35:26 +00:00
peterl%netscape.com
69005e00ea changed media to uppercase atoms
git-svn-id: svn://10.0.0.236/trunk@15579 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:35:03 +00:00
peterl%netscape.com
949754eac9 added inline style rule accessor
git-svn-id: svn://10.0.0.236/trunk@15578 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:34:31 +00:00
peterl%netscape.com
5683510533 moved body fixup rule into content
git-svn-id: svn://10.0.0.236/trunk@15577 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:34:06 +00:00
peterl%netscape.com
f6827b4dbf added inline style accessor
git-svn-id: svn://10.0.0.236/trunk@15576 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:33:12 +00:00
peterl%netscape.com
49167d870c added nsLayoutAtoms
git-svn-id: svn://10.0.0.236/trunk@15575 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:32:20 +00:00
peterl%netscape.com
fb4e7e9f66 added medium type
git-svn-id: svn://10.0.0.236/trunk@15574 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:31:31 +00:00
peterl%netscape.com
360a98a0b6 added media support
git-svn-id: svn://10.0.0.236/trunk@15573 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:30:42 +00:00
peterl%netscape.com
b5041bf15f added nslayoutatoms.h
git-svn-id: svn://10.0.0.236/trunk@15572 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:29:42 +00:00
waterson%netscape.com
ebd8214cae Allow nsWellFormedDTD to handle text/rdf.
git-svn-id: svn://10.0.0.236/trunk@15571 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:29:31 +00:00
peterl%netscape.com
5e0087b970 new file
git-svn-id: svn://10.0.0.236/trunk@15570 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:29:29 +00:00
peterl%netscape.com
4cd6b9a5c2 changed medium type to atom
git-svn-id: svn://10.0.0.236/trunk@15569 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:29:16 +00:00
waterson%netscape.com
6302648ac7 Added CIDs and register factory hacks for RDF classes.
git-svn-id: svn://10.0.0.236/trunk@15568 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:28:58 +00:00
peterl%netscape.com
c46cc4c8bd added medium accessor
git-svn-id: svn://10.0.0.236/trunk@15567 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:28:57 +00:00
waterson%netscape.com
d689488fcf Added factory method for RDF documents.
git-svn-id: svn://10.0.0.236/trunk@15566 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:28:27 +00:00
waterson%netscape.com
f05115f79d Added text/rdf as a valid mimetype.
git-svn-id: svn://10.0.0.236/trunk@15565 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:27:46 +00:00
waterson%netscape.com
720efb2c9f Added rdf directory to the build.
git-svn-id: svn://10.0.0.236/trunk@15564 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:23:18 +00:00
waterson%netscape.com
d304426918 Added rdf to the build.
git-svn-id: svn://10.0.0.236/trunk@15563 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:22:44 +00:00
waterson%netscape.com
8abda9e59d Added mozilla/rdf/include, mozilla/layout/xml/document/public, and mozilla/layout/xml/content/public to list of dirs that get manifested. Still not adding rdf to the Mac build due to linkage problems that need to be sorted out.
git-svn-id: svn://10.0.0.236/trunk@15562 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:21:44 +00:00
waterson%netscape.com
45b40ebd32 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15561 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:20:07 +00:00
guha%netscape.com
4ddb6e500b More Comments
git-svn-id: svn://10.0.0.236/trunk@15560 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 23:51:27 +00:00
guha%netscape.com
ffce913f89 Comments, fix for MSVC 4.2
git-svn-id: svn://10.0.0.236/trunk@15559 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 23:43:06 +00:00
waterson%netscape.com
84e0a4e62c Exposed nsCSSParser via layout factory.
git-svn-id: svn://10.0.0.236/trunk@15558 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 23:29:16 +00:00
beard%netscape.com
77c537c697 Moved to shared libraries, building in mozilla/dist, linking against many fewer libraries.
git-svn-id: svn://10.0.0.236/trunk@15557 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 22:25:36 +00:00
jfrancis%netscape.com
a9ae7e0fa1 moving nsRangeList.cpp to the right place in the project
git-svn-id: svn://10.0.0.236/trunk@15556 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 22:05:27 +00:00
jfrancis%netscape.com
34c2754f49 moving nsDocumentfragment.cpp to the right place in the project
git-svn-id: svn://10.0.0.236/trunk@15555 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 22:00:18 +00:00
wtc%netscape.com
e2b7d6fd95 Undefine _PR_HAVE_SOCKADDR_LEN because struct sockaddr doesn't have
the sa_len field on NEXTSTEP/OPENSTEP.  Thanks to Balazs Pataki for
<pataki@ovid.aszi.sztaki.hu> for confirming this.


git-svn-id: svn://10.0.0.236/trunk@15554 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 21:53:37 +00:00
despotdaemon%netscape.com
078a6cfb9a Pseudo-automatic update of changes made by sfraser@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15553 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 21:48:31 +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
dba04650ad fixing mac build bustages
git-svn-id: svn://10.0.0.236/trunk@15550 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:58:53 +00:00
despotdaemon%netscape.com
1d60fe6ee0 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@15549 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:57:48 +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
44945155f0 fixing bug in windows code for build
git-svn-id: svn://10.0.0.236/trunk@15546 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:20:40 +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
beard%netscape.com
fcb872004a Uses shared libraries, targets get built in mozilla/dist/viewer[Debug].
git-svn-id: svn://10.0.0.236/trunk@15544 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 20:00:35 +00:00
waterson%netscape.com
f2455e1b1d Fixed some bugs in the content sink that'd been introduced when I pulled the simple content sink out of the document content sink.
git-svn-id: svn://10.0.0.236/trunk@15543 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:58:24 +00:00
waterson%netscape.com
4b0c6d9d96 Added RemoveDataSource() to the database interface in preparation for doing db management with XML processing instructions.
git-svn-id: svn://10.0.0.236/trunk@15542 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:57:49 +00:00
waterson%netscape.com
69723cfd45 Fixed some reference counting bugs.
git-svn-id: svn://10.0.0.236/trunk@15541 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:57:36 +00:00
troy%netscape.com
b16b9b9f48 Removed hack of having page size based on viewport size
git-svn-id: svn://10.0.0.236/trunk@15540 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:38:29 +00:00
akkana%netscape.com
ad036d51d2 nsIRangeList shouldn't have been here. Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@15539 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:34:50 +00:00
mjudge%netscape.com
dac2ae4941 including proper thing
git-svn-id: svn://10.0.0.236/trunk@15538 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:18:52 +00:00
akkana%netscape.com
9f5d2a5f08 Change Element to Node
git-svn-id: svn://10.0.0.236/trunk@15537 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:15:00 +00:00
mjudge%netscape.com
a9dc677a36 need to include the nsIDOMElement.h dont know why this worked on windows
git-svn-id: svn://10.0.0.236/trunk@15536 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:14:18 +00:00
leaf%mozilla.org
da35f4a530 adding nsIRangeList.h to exports list
git-svn-id: svn://10.0.0.236/trunk@15535 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 19:08:02 +00:00
kin%netscape.com
017db1e661 Implemented transaction aggregation, modified code to use nsTransactionItem.
git-svn-id: svn://10.0.0.236/trunk@15534 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 18:38:52 +00:00
kin%netscape.com
224e02e4d8 Initial version of file.
git-svn-id: svn://10.0.0.236/trunk@15533 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 18:35:49 +00:00
akkana%netscape.com
ff2b34c29a Fix IDOMRange spec
git-svn-id: svn://10.0.0.236/trunk@15532 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 18:21:05 +00:00
akkana%netscape.com
5d4099f328 Pull and build the editor as well as the browser
git-svn-id: svn://10.0.0.236/trunk@15531 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 18:20:03 +00:00
mjudge%netscape.com
55ee01fd41 changes nsRangeList to be an implementation of nsICollection
git-svn-id: svn://10.0.0.236/trunk@15530 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 18:00:02 +00:00
mjudge%netscape.com
4e5b37987c fixing tests to use the enumerator correctly
git-svn-id: svn://10.0.0.236/trunk@15529 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:58:50 +00:00
mjudge%netscape.com
ba58fd80a6 fixing enumerator to do the right thing
git-svn-id: svn://10.0.0.236/trunk@15528 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:58:27 +00:00
mjudge%netscape.com
b3753f3f95 changes enumerator to do the right thing
git-svn-id: svn://10.0.0.236/trunk@15527 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:58:10 +00:00
mjudge%netscape.com
9e56baf6ba changing nsIRangeList to nsICollection
git-svn-id: svn://10.0.0.236/trunk@15526 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:57:42 +00:00
mjudge%netscape.com
75c2f03476 removing nsIRangeList.h
git-svn-id: svn://10.0.0.236/trunk@15525 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:56:56 +00:00
mjudge%netscape.com
d3096f7ed2 removing nsIRangeList.h
git-svn-id: svn://10.0.0.236/trunk@15524 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:55:58 +00:00
mjudge%netscape.com
9972f8c67c making big changes to enumerator class and adding nsICollection
git-svn-id: svn://10.0.0.236/trunk@15523 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:55:08 +00:00
mjudge%netscape.com
d3fcc0bcb7 collection interface
git-svn-id: svn://10.0.0.236/trunk@15522 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 17:50:57 +00:00
kipp%netscape.com
0bbef0f75e new
git-svn-id: svn://10.0.0.236/trunk@15521 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 16:13:49 +00:00
chuckb%netscape.com
a0c58ff4a6 Parsers for controls returned by password policy
git-svn-id: svn://10.0.0.236/trunk@15520 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 11:16:37 +00:00
chuckb%netscape.com
be850ead5b removeValue does not work
git-svn-id: svn://10.0.0.236/trunk@15519 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 11:12:11 +00:00
chuckb%netscape.com
dc79edd3fb bug fix
git-svn-id: svn://10.0.0.236/trunk@15518 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 11:08:34 +00:00
chuckb%netscape.com
1eac6a342c Parsers for controls returned by password policy
git-svn-id: svn://10.0.0.236/trunk@15517 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 11:06:52 +00:00
chuckb%netscape.com
f22c209229 Generic parser for a control containing only a string
git-svn-id: svn://10.0.0.236/trunk@15516 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 11:06:26 +00:00
waterson%netscape.com
c7c31d1f6e Added some comments on the factory methods.
git-svn-id: svn://10.0.0.236/trunk@15515 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 10:54:12 +00:00
waterson%netscape.com
5af73a8a75 Factored the RDF content sink into a document content sink (used with the NGLayout content model) and a simple content sink (which can be used without a document).
git-svn-id: svn://10.0.0.236/trunk@15514 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 10:52:38 +00:00
wtc%netscape.com
e63535aece Corrected a typo. The "1" (one) in "armv41" should be an "l" (ell).
Thanks to Brian Ostrom <briano@netscape.com> for pointing this out.


git-svn-id: svn://10.0.0.236/trunk@15513 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 08:30:02 +00:00
wtc%netscape.com
646c6edb93 We also need to define the poll-related error reporting functions
if we are using our emulated poll().  This patch is contributed by
Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@15512 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 07:31:15 +00:00
wtc%netscape.com
2c43676866 Undefine _PR_POLL_AVAILABLE for pthreads. libc_r doesn't have
poll().  The poll() in libc is not thread-safe, so we can't use
it with pthreads.  This patch is contributed by Jeremy Lea
<reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@15511 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 07:25:28 +00:00
waterson%netscape.com
b3809c1004 Updated MANIFEST for landing of RDF_19981124_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@15510 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 06:18:25 +00:00
waterson%netscape.com
feedbd576c Got RDF compiling and running on Linux.
git-svn-id: svn://10.0.0.236/trunk@15509 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 06:10:18 +00:00
waterson%netscape.com
edda2a753c Fixed some cruft that egcs didn't like.
git-svn-id: svn://10.0.0.236/trunk@15508 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 06:09:23 +00:00
gagan%netscape.com
657a985e84 Delayed the cache cleanup to 15 minutes periodicity.
git-svn-id: svn://10.0.0.236/trunk@15507 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 05:40:16 +00:00
troy%netscape.com
8cdbd84223 Changed to handle StyleChanged incremental reflow command
git-svn-id: svn://10.0.0.236/trunk@15506 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 05:17:12 +00:00
gagan%netscape.com
0f3b93aeb6 Was not pulling in env changes from config.mak because of the missing include.
git-svn-id: svn://10.0.0.236/trunk@15505 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 04:46:24 +00:00
gagan%netscape.com
2e43bbedea Switching on NU_CACHE by default. Use set NO_NU_CACHE=1 to switch it off. Windows only.
git-svn-id: svn://10.0.0.236/trunk@15504 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 04:44:31 +00:00
gagan%netscape.com
57fd48f904 Switching on NU_CACHE by default. Use set NO_NU_CACHE=1 to switch it off.
git-svn-id: svn://10.0.0.236/trunk@15503 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 04:43:46 +00:00
fur%netscape.com
687f1ec19e Compiler-generated file shouldn't be checked in
git-svn-id: svn://10.0.0.236/trunk@15502 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 04:23:35 +00:00
beard%netscape.com
cb9ba7b0e8 Fixed non-debug target to build in mozilla/dist/viewer.
git-svn-id: svn://10.0.0.236/trunk@15501 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 04:03:47 +00:00
waterson%netscape.com
8a5dd554af Removed obsolete files.
git-svn-id: svn://10.0.0.236/trunk@15500 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:51:09 +00:00
waterson%netscape.com
a93768c259 Obsolete.
git-svn-id: svn://10.0.0.236/trunk@15499 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:48:33 +00:00
waterson%netscape.com
0d67609952 Cleaned up unnecessary stuff that was being exported.
git-svn-id: svn://10.0.0.236/trunk@15498 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:47:35 +00:00
waterson%netscape.com
866c72398c Initial revision.
git-svn-id: svn://10.0.0.236/trunk@15497 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:27:53 +00:00
waterson%netscape.com
09e224434a Added NPL. Removed tests dir for now.
git-svn-id: svn://10.0.0.236/trunk@15496 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:26:17 +00:00
michaelp%netscape.com
de4186f177 fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@15495 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:20:31 +00:00
waterson%netscape.com
a3506cd378 Landed changes from RDF_19981124_BRANCH. This is still not in the build.
git-svn-id: svn://10.0.0.236/trunk@15494 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:01:35 +00:00
raman%netscape.com
72c8c66977 Deleted unnecessary nsCCapsManager:: from the prototype
git-svn-id: svn://10.0.0.236/trunk@15493 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 03:00:42 +00:00
wtc%netscape.com
c509066038 Checked in Patrick Beard's temporary workaround (to use GetSharedLibrary
instead of NSGetSharedLibrary) because NSGetSharedLibrary is broken.


git-svn-id: svn://10.0.0.236/trunk@15492 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 02:56:29 +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
5a970927aa revised blending APIs.
git-svn-id: svn://10.0.0.236/trunk@15490 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 02:15:44 +00:00
wtc%netscape.com
f40b5e2f3c Temporarily commented out the poll() wrapper for Linux, because
glibc 2.0.7 on Debian 2.0 Linux doesn't have __syscall_poll defined.
This problem was reported by Adam Sulmicki <adam@cfar.umd.edu>.


git-svn-id: svn://10.0.0.236/trunk@15489 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 02:10:44 +00:00
beard%netscape.com
ead1995fea Build bustage, was referencing non-debug libraries in debug target.
git-svn-id: svn://10.0.0.236/trunk@15488 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:55:01 +00:00
beard%netscape.com
6fd1db89c0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15487 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:51:22 +00:00
jfrancis%netscape.com
825ac7ea0e The first step to good mental health is to realize that you have a build problem.
redo'ing NSRuntime.shlb includes to use debug in debug target, opt in opt target.


git-svn-id: svn://10.0.0.236/trunk@15486 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:22:13 +00:00
michaelp%netscape.com
7164868c5a fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@15485 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:18:32 +00:00
beard%netscape.com
7f1c280849 More build bustage fixes.
git-svn-id: svn://10.0.0.236/trunk@15484 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:17:03 +00:00
beard%netscape.com
4be58ddc21 More build bustage fixes.
git-svn-id: svn://10.0.0.236/trunk@15483 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:06:33 +00:00
beard%netscape.com
a042fb01d9 Trying to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@15482 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 01:02:32 +00:00
beard%netscape.com
3cc3dcdf67 Mac shared library migration. Fixed some entries that were pointing to the debug build. Argh.
git-svn-id: svn://10.0.0.236/trunk@15481 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 00:44:07 +00:00
cyeh%netscape.com
5aedad152f applied fix from Bruce Mitchener (bruce@cybersight.com) to fix test
for --with-fullcircle. AC_TRY_LINK is still busted though, don't know why


git-svn-id: svn://10.0.0.236/trunk@15480 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 23:51:08 +00:00
beard%netscape.com
9ec220b936 Mac shared library migration. Moved PowerPlant earlier.
git-svn-id: svn://10.0.0.236/trunk@15479 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 23:39:17 +00:00
locka%iol.ie
de14ab7fe2 Added binary flag for icons in build broke on other machines
git-svn-id: svn://10.0.0.236/trunk@15478 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:59:43 +00:00
locka%iol.ie
ec309b6d17 Added binary flag for icons in build broke on other machines
git-svn-id: svn://10.0.0.236/trunk@15477 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:57:21 +00:00
locka%iol.ie
b2cc66ade7 Changed project to statically link to MFC
git-svn-id: svn://10.0.0.236/trunk@15476 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:53:49 +00:00
karnaze%netscape.com
070596fafe fixed bug 1613 (leak in nsFrameSetFrame::CalculateRowCol)
git-svn-id: svn://10.0.0.236/trunk@15475 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:37:52 +00:00
beard%netscape.com
810f6cfdf2 Mac shared library migration.
git-svn-id: svn://10.0.0.236/trunk@15474 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:15:00 +00:00
beard%netscape.com
57c4d48cc4 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15473 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 22:14:25 +00:00
waterson%netscape.com
ad06dd696e Fix Unix bustage.
git-svn-id: svn://10.0.0.236/trunk@15472 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 21:17:59 +00:00
sar%netscape.com
55bd7b2825 fix seaMonkeyEditor module some, and add SeaMonkeyAll that tinderbox and Bonsai can track
git-svn-id: svn://10.0.0.236/trunk@15471 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 19:48:39 +00:00
buster%netscape.com
9fef29179c fixed a bug for tables with complicated colspans and fixed widths
git-svn-id: svn://10.0.0.236/trunk@15470 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 19:06:33 +00:00
karnaze%netscape.com
a937455d91 fixed bug 1696
git-svn-id: svn://10.0.0.236/trunk@15466 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 18:19:21 +00:00
pinkerton%netscape.com
755d662e57 added nsDocumentFragment.cpp to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@15465 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 17:51:01 +00:00
buster%netscape.com
826b9af0fe fixed some nested table layout problems
git-svn-id: svn://10.0.0.236/trunk@15463 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 15:10:20 +00:00
cls%seawood.org
2428418e65 Tweaks to allow building SeaMonkeyBrowser w/o the editor.
git-svn-id: svn://10.0.0.236/trunk@15462 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 10:39:37 +00:00
vidur%netscape.com
2c5fe78039 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@15457 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 08:47:27 +00:00
mjudge%netscape.com
2bacfb39ef blah
git-svn-id: svn://10.0.0.236/trunk@15456 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 08:36:47 +00:00
mjudge%netscape.com
228419a714 factory needs work
git-svn-id: svn://10.0.0.236/trunk@15455 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 08:35:45 +00:00
mjudge%netscape.com
d9467a0b51 fixing problem in editfactory
git-svn-id: svn://10.0.0.236/trunk@15454 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 08:25:44 +00:00
mjudge%netscape.com
6706cc4291 bug in editor. blowing up a little :(
git-svn-id: svn://10.0.0.236/trunk@15453 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 08:05:45 +00:00
vidur%netscape.com
b5d3af627a docfrag test
git-svn-id: svn://10.0.0.236/trunk@15452 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 07:59:37 +00:00
vidur%netscape.com
a8e89e05c1 Moved nsGenericElement to base directory. Added basic support for document fragments.
git-svn-id: svn://10.0.0.236/trunk@15451 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 07:59:11 +00:00
cls%seawood.org
f83fb62ba0 Call motif_detect scripts only if building with motif toolkit. Thanks to bert hubert <ahu@vvtp.tn.tudelft.nl> for the suggestion.
Fixed $CC evaluation problem when calling motif_detect scripts.  It should now work for multi-word $CC.
Removed extraneous gtk version variables.


git-svn-id: svn://10.0.0.236/trunk@15450 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 06:42:36 +00:00
mjudge%netscape.com
a254701232 do not try to link the ender library
git-svn-id: svn://10.0.0.236/trunk@15449 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 06:15:54 +00:00
msw%gimp.org
1df8ed18a5 Rewrote the resize handler. This fixes the crashes at startup. There are
still conditions to make this go into infinite loop.
All callbacks/event handlers now return proper values.


git-svn-id: svn://10.0.0.236/trunk@15448 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 05:53:17 +00:00
mjudge%netscape.com
1166ec86f8 adding nsRangeList.cpp to list of files to compile
git-svn-id: svn://10.0.0.236/trunk@15447 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 05:29:53 +00:00
mjudge%netscape.com
d1e65e0250 need to go into the editor dir. autoconf messed me up
git-svn-id: svn://10.0.0.236/trunk@15446 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 04:57:29 +00:00
mjudge%netscape.com
5ec37a3f55 added the editor directory to the unix builds
git-svn-id: svn://10.0.0.236/trunk@15444 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 04:04:49 +00:00
mjudge%netscape.com
2236aabe4b added editor as an include dir
git-svn-id: svn://10.0.0.236/trunk@15443 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 04:00:19 +00:00
jfrancis%netscape.com
66122f1a54 [sfraser checking in as jfrancis]
Temporarily comment out EDITOR_DLL-related stuff until Mac is building editor, to fix build bustage.


git-svn-id: svn://10.0.0.236/trunk@15442 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 03:04:00 +00:00
jfrancis%netscape.com
62c9b472da [sfraser checking in as jfrancis]
added nsRangeList.cpp, turned on debug info for debug targets, as build bustage fixage.


git-svn-id: svn://10.0.0.236/trunk@15441 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 03:02:52 +00:00
mjudge%netscape.com
8cd09d02d4 added nsRange to unix
git-svn-id: svn://10.0.0.236/trunk@15440 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 03:00:26 +00:00
mjudge%netscape.com
74937901fd export this header for nsIRangeList
git-svn-id: svn://10.0.0.236/trunk@15439 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 02:57:59 +00:00
mjudge%netscape.com
fd2aad9c57 should fix unix
git-svn-id: svn://10.0.0.236/trunk@15433 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 02:11:00 +00:00
mjudge%netscape.com
d5e3a66787 should be fixed
git-svn-id: svn://10.0.0.236/trunk@15432 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 02:01:00 +00:00
msw%gimp.org
142c2bdecf Really fix Unix build bustage. r,a=shaver@netscape.com
git-svn-id: svn://10.0.0.236/trunk@15431 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-30 00:29:45 +00:00
jfrancis%netscape.com
e1ca11a4a3 adding edtor lib entrty, even though we aren't actually linking it in yet.
git-svn-id: svn://10.0.0.236/trunk@15430 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 23:57:59 +00:00
jfrancis%netscape.com
6e9d095783 adding editor MANIFEST
git-svn-id: svn://10.0.0.236/trunk@15429 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 23:52:10 +00:00
jfrancis%netscape.com
e61a2c1e87 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15428 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 23:50:20 +00:00
mjudge%netscape.com
0035bfa567 fixing files for stupid hack in nsComFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@15427 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 23:19:24 +00:00
jfrancis%netscape.com
8e6753a6a9 adding nsIRangeList.h
git-svn-id: svn://10.0.0.236/trunk@15426 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:45:27 +00:00
mjudge%netscape.com
e85b747984 nsIRangeList.h
git-svn-id: svn://10.0.0.236/trunk@15425 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:35:13 +00:00
mjudge%netscape.com
4521f79b15 adding editor to the build
git-svn-id: svn://10.0.0.236/trunk@15424 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:30:29 +00:00
mjudge%netscape.com
62a90ef301 updating to add editor as a directory
git-svn-id: svn://10.0.0.236/trunk@15423 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:20:42 +00:00
mjudge%netscape.com
fd249a3e63 adding editor to the build
git-svn-id: svn://10.0.0.236/trunk@15422 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:13:27 +00:00
mjudge%netscape.com
1822ec4f9e new rangelist.cpp file
git-svn-id: svn://10.0.0.236/trunk@15421 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:12:27 +00:00
mjudge%netscape.com
70a6c4541a need to make rangelist.cpp
git-svn-id: svn://10.0.0.236/trunk@15420 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:11:49 +00:00
mjudge%netscape.com
66cae3341e new rangelist factory needs to be registered
git-svn-id: svn://10.0.0.236/trunk@15419 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:11:06 +00:00
mjudge%netscape.com
4918390790 exporting nsIRangeList.h
git-svn-id: svn://10.0.0.236/trunk@15418 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:02:50 +00:00
mjudge%netscape.com
166ae39262 export nsIDOMRange.h
git-svn-id: svn://10.0.0.236/trunk@15417 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 22:00:46 +00:00
mjudge%netscape.com
fe47a3bb8e tabbing
git-svn-id: svn://10.0.0.236/trunk@15416 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 21:59:52 +00:00
msw%gimp.org
cd5658de00 Fixed broken Unix build. Approved by shaver@netscape.com
git-svn-id: svn://10.0.0.236/trunk@15415 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 21:13:19 +00:00
rickg%netscape.com
11a2e32bd8 fixed bug #1070
git-svn-id: svn://10.0.0.236/trunk@15414 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 19:52:55 +00:00
locka%iol.ie
1f6de8dc3c Updated to use CControlSite - a homegrown control site class
git-svn-id: svn://10.0.0.236/trunk@15413 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 18:33:31 +00:00
locka%iol.ie
4d246212e5 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@15412 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 18:08:59 +00:00
locka%iol.ie
42c2b7310a Added NS_INIT_REFCNT() to constructor
git-svn-id: svn://10.0.0.236/trunk@15411 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 18:06:34 +00:00
locka%iol.ie
fb503f3bd5 Added ControlSite.cpp & ControlSite.h
git-svn-id: svn://10.0.0.236/trunk@15410 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 18:05:04 +00:00
locka%iol.ie
a0b2f4d68b Implemented IOleCommandTarget and stubs for printing support
git-svn-id: svn://10.0.0.236/trunk@15409 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 18:03:43 +00:00
locka%iol.ie
03ee7d87c7 First working version
git-svn-id: svn://10.0.0.236/trunk@15408 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-29 17:59:46 +00:00
vidur%netscape.com
bf493acab1 Added nsDocumentFragment to build. Fixed bug 1256 - the content sink is flushed as soon as it encounters a script tag.
git-svn-id: svn://10.0.0.236/trunk@15407 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 23:51:06 +00:00
ramiro%netscape.com
e7ca2be12c Renamed the viewer from 'main' to 'viewer'
git-svn-id: svn://10.0.0.236/trunk@15404 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 22:18:24 +00:00
karnaze%netscape.com
7455cb021a changed frameset layout algorithm. fixed bugs 728, 1075, 1494 and half of 1486
git-svn-id: svn://10.0.0.236/trunk@15399 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 18:59:38 +00:00
morse%netscape.com
508b2fc134 fix single-signon problems
git-svn-id: svn://10.0.0.236/trunk@15398 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 17:19:38 +00:00
morse%netscape.com
bf3fc1efe8 fix single-signon problem
git-svn-id: svn://10.0.0.236/trunk@15397 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 17:16:47 +00:00
shaver%netscape.com
6486c53a49 Added NPL everywhere (ooops!).
Handle enums.
Output idents properly in IDL comments.


git-svn-id: svn://10.0.0.236/trunk@15396 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 16:52:24 +00:00
michaelp%netscape.com
1428cec472 fixed memory leak.
git-svn-id: svn://10.0.0.236/trunk@15391 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 04:24:46 +00:00
michaelp%netscape.com
19eb838ffd fixed resource leak.
git-svn-id: svn://10.0.0.236/trunk@15390 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 04:24:15 +00:00
michaelp%netscape.com
84bebdcae2 fixed duplicate resource free.
git-svn-id: svn://10.0.0.236/trunk@15389 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 04:23:23 +00:00
michaelp%netscape.com
ce13283356 added missing NS_INIT_REFCNT().
git-svn-id: svn://10.0.0.236/trunk@15388 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 04:21:40 +00:00
msw%gimp.org
0c74cc81dc Unhorked Unix non-editor build.
git-svn-id: svn://10.0.0.236/trunk@15387 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 03:28:39 +00:00
mjudge%netscape.com
6c6a833e89 modifying
git-svn-id: svn://10.0.0.236/trunk@15385 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:46:56 +00:00
mjudge%netscape.com
0df2af35fe ok this will break the editor, I will have to learn how to register the IIDs of the editor in the registry!!
git-svn-id: svn://10.0.0.236/trunk@15384 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:42:51 +00:00
mjudge%netscape.com
6fffbd0142 removed non production code
git-svn-id: svn://10.0.0.236/trunk@15383 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:28:00 +00:00
mjudge%netscape.com
7410278224 updating the editor public dir. must change all access methods now
git-svn-id: svn://10.0.0.236/trunk@15382 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:20:24 +00:00
mjudge%netscape.com
19263c1621 just broke the mac build. I will tell jfrancis!
git-svn-id: svn://10.0.0.236/trunk@15381 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 01:19:53 +00:00
shaver%netscape.com
d9379bb5ea Error message cleanups, including insertion of line/file info in initial
buffer, to make errors give correct line-number data.
Strip comments.  (Still need to handle doc comments correctly.)


git-svn-id: svn://10.0.0.236/trunk@15379 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-27 16:39:45 +00:00
kipp%netscape.com
5390fd74b1 Disabled the timebomb on the tip
git-svn-id: svn://10.0.0.236/trunk@15378 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-27 15:54:14 +00:00
shaver%netscape.com
88c5dff3d3 Updated README now includes Win32 libIDL/glib URLs, and mention of msw's
GTK+/glib 1.1.5.
Generate #includes for interfaces to which we refer.
Output inheritance data.
Switch to PRUnichar * for wstring, and char * for string.
in params that become pointer types get const'd.


git-svn-id: svn://10.0.0.236/trunk@15377 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 21:03:03 +00:00
mcafee%netscape.com
e7e4e89ca6 Adding support for Rhapsody
git-svn-id: svn://10.0.0.236/trunk@15374 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 19:47:01 +00:00
scc%netscape.com
6b8ab9fbf3 Final changes to be used in production code (though currently only allowed in Composer module). Stripped tabs, replaced with spaces; made internal macro prefix; some final naming decisions (s/func/getter/). Good luck Composer team.
git-svn-id: svn://10.0.0.236/trunk@15373 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 19:28:42 +00:00
kipp%netscape.com
c98e60be06 Port to revised pres-context API
git-svn-id: svn://10.0.0.236/trunk@15372 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:14:41 +00:00
kipp%netscape.com
12f3900c32 Fixed to not subtract out borders/padding when unconstrained height reflow is occuring
git-svn-id: svn://10.0.0.236/trunk@15371 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:14:17 +00:00
kipp%netscape.com
90deabb695 disabled another printf; use web-shell destroy to properly whack the sub-webshell
git-svn-id: svn://10.0.0.236/trunk@15370 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:13:13 +00:00
kipp%netscape.com
fd2798ed60 Compute combined area properly
git-svn-id: svn://10.0.0.236/trunk@15369 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:11:23 +00:00
kipp%netscape.com
ebb0b9f0d8 Fixed verify reflow to avoid creating reflow commands during a verify reflow
git-svn-id: svn://10.0.0.236/trunk@15368 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:11:02 +00:00
kipp%netscape.com
03e51bc9c4 XPCOMized more of the API; added new operator to avoid future bugs; implement Stop method
git-svn-id: svn://10.0.0.236/trunk@15367 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:10:10 +00:00
kipp%netscape.com
76c0c7a5e2 XPCOMize more of the API; added Stop method
git-svn-id: svn://10.0.0.236/trunk@15366 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:08:44 +00:00
kipp%netscape.com
5f76ab669f whitespace tweak
git-svn-id: svn://10.0.0.236/trunk@15365 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:08:27 +00:00
kipp%netscape.com
8e9a8f6894 Removed bogus include
git-svn-id: svn://10.0.0.236/trunk@15364 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:08:08 +00:00
kipp%netscape.com
444a1435da Hide some noise; pass on Stop to content-viewer
git-svn-id: svn://10.0.0.236/trunk@15363 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:06:47 +00:00
kipp%netscape.com
4a22e5141c XPCOMize API; added Stop method
git-svn-id: svn://10.0.0.236/trunk@15362 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:06:25 +00:00
kipp%netscape.com
d9b72da670 Removed duplicate init
git-svn-id: svn://10.0.0.236/trunk@15361 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:06:08 +00:00
kipp%netscape.com
90be7a9a74 XPCOMize the methods; added Stop
git-svn-id: svn://10.0.0.236/trunk@15360 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:03:42 +00:00
kipp%netscape.com
2a73c19d2a Expose WalkTheStack
git-svn-id: svn://10.0.0.236/trunk@15359 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:03:20 +00:00
peterl%netscape.com
983d848263 made css style sheet public (for mac)
git-svn-id: svn://10.0.0.236/trunk@15357 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 05:17:03 +00:00
peterl%netscape.com
924bee3843 removed processimport
git-svn-id: svn://10.0.0.236/trunk@15356 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 05:16:43 +00:00
peterl%netscape.com
acd26bce38 added media support to @import
git-svn-id: svn://10.0.0.236/trunk@15355 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 05:16:22 +00:00
peterl%netscape.com
8c5f87d7f3 backed out previous change
git-svn-id: svn://10.0.0.236/trunk@15354 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 04:54:11 +00:00
peterl%netscape.com
721a073075 deal with const issues on unix compilers
git-svn-id: svn://10.0.0.236/trunk@15353 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 04:53:49 +00:00
rickg%netscape.com
f163d7e8e4 also enabled better null document support
git-svn-id: svn://10.0.0.236/trunk@15352 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 04:14:06 +00:00
peterl%netscape.com
c9ab26763f hopefully fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@15351 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 04:07:58 +00:00
rickg%netscape.com
327d9295a8 removed non-essential DTD calls
git-svn-id: svn://10.0.0.236/trunk@15350 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 04:04:08 +00:00
peterl%netscape.com
40dcb95b43 fix unix build
git-svn-id: svn://10.0.0.236/trunk@15349 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 03:45:50 +00:00
rickg%netscape.com
77f4a49baa cleaned up DTD api's
git-svn-id: svn://10.0.0.236/trunk@15348 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 03:35:24 +00:00
rickg%netscape.com
56aaafad6f removed unnecessary API's
git-svn-id: svn://10.0.0.236/trunk@15347 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 03:21:55 +00:00
rickg%netscape.com
76329e0097 improvements to recursive parser calls
git-svn-id: svn://10.0.0.236/trunk@15346 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:56:40 +00:00
rickg%netscape.com
78d79cf0d2 improvements to recursively parser calls
git-svn-id: svn://10.0.0.236/trunk@15345 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:55:59 +00:00
peterl%netscape.com
8907fc654c removed simple rule, added unknown rule
git-svn-id: svn://10.0.0.236/trunk@15344 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:32:48 +00:00
sar%netscape.com
ce37c3484b backing out akkana's changes. this will fix build bustage on the mac
git-svn-id: svn://10.0.0.236/trunk@15343 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:30:44 +00:00
peterl%netscape.com
383116acf6 style change notification support
git-svn-id: svn://10.0.0.236/trunk@15337 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:34:53 +00:00
peterl%netscape.com
eb0e68e55b handle whitespace in url() better
git-svn-id: svn://10.0.0.236/trunk@15336 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:30:51 +00:00
peterl%netscape.com
8bf6a015e5 connected style sheet better (added content node & properties)
git-svn-id: svn://10.0.0.236/trunk@15335 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:29:10 +00:00
peterl%netscape.com
39e7ccb9fc added change notification support
git-svn-id: svn://10.0.0.236/trunk@15334 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:24:52 +00:00
peterl%netscape.com
6504e8fe4b added style sheet properties
git-svn-id: svn://10.0.0.236/trunk@15333 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:24:32 +00:00
peterl%netscape.com
09bc113e28 fixed bug in font family enumeration
git-svn-id: svn://10.0.0.236/trunk@15332 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:22:04 +00:00
law%netscape.com
3f61274bf3 Fixed 'Phonebook' button and stripped out some stuff from non-debug version to save space
git-svn-id: svn://10.0.0.236/trunk@15331 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:21:46 +00:00
peterl%netscape.com
0b40994da0 made text decorations minimum size of 1 pixel
git-svn-id: svn://10.0.0.236/trunk@15330 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:21:22 +00:00
peterl%netscape.com
bf2d444100 updated to new version of CSSOM interfaces
git-svn-id: svn://10.0.0.236/trunk@15329 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:20:04 +00:00
peterl%netscape.com
226561ff6f new CSSOM interfaces
git-svn-id: svn://10.0.0.236/trunk@15328 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:18:57 +00:00
peterl%netscape.com
f7d360a0f0 made pointer conversion more friendly to const methods
git-svn-id: svn://10.0.0.236/trunk@15327 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:18:21 +00:00
beard%netscape.com
553570efc5 Consistent spacing
git-svn-id: svn://10.0.0.236/trunk@15326 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 00:21:54 +00:00
akkana%netscape.com
fcc377cf71 Implementation of the easy parts
git-svn-id: svn://10.0.0.236/trunk@15325 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 23:20:29 +00:00
wtc%netscape.com
a374e6bf4c Bugzilla bug #1664: removed an unnecessary strdup call in
NSGetSharedLibrary.  Thanks to Patrick Beard <beard@netscape.com>
for the bug report.


git-svn-id: svn://10.0.0.236/trunk@15322 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 22:25:21 +00:00
rickg%netscape.com
e01fa50744 changed startup URL
git-svn-id: svn://10.0.0.236/trunk@15321 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 22:00:24 +00:00
law%netscape.com
61fb09f59b Disable inoperative stuff
git-svn-id: svn://10.0.0.236/trunk@15320 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 21:23:02 +00:00
wtc%netscape.com
577817af39 Removed -D_PR_NEED_FAKE_POLL from FreeBSD.mk and NEXTSTEP.mk. This
macro is defined internally.
In _freebsd.h, include poll.h if poll is available.
Thanks to Jeremy Lea <reg@shale.csir.co.za> for suggesting the patches.


git-svn-id: svn://10.0.0.236/trunk@15319 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 21:01:14 +00:00
rickg%netscape.com
7b9a495531 changed top 100 sites to Test Sites
git-svn-id: svn://10.0.0.236/trunk@15315 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 20:28:27 +00:00
shaver%netscape.com
9e45f0515d make Makefiles for xpidl
git-svn-id: svn://10.0.0.236/trunk@15314 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 20:03:57 +00:00
mcafee%netscape.com
825e28958b Added mhanni@sprintmail.com's suggestion as a comment, pending someone finding out of this works
git-svn-id: svn://10.0.0.236/trunk@15313 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 20:02:26 +00:00
shaver%netscape.com
2bc42328ed Added support for char, wchar and wstring types.
Fixed long long nits.
Make methods pure virtual.
Use pointers and not references.
Remove useless header.c.


git-svn-id: svn://10.0.0.236/trunk@15312 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 19:12:50 +00:00
kipp%netscape.com
b31f7790b2 new
git-svn-id: svn://10.0.0.236/trunk@15311 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 19:07:17 +00:00
locka%iol.ie
03d6a73a56 Added IOleCommandTarget
git-svn-id: svn://10.0.0.236/trunk@15310 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:54:07 +00:00
buster%netscape.com
79920f1ff6 2 Nav4 compatibility additions:
1. width=0 is treated as width=auto, not width=min
2. empty cells <td></td> are assigned a width of (2*borderWidth + 2*cellspacing + 3) pixels
The "3" is a fudge factor added by Nav and IE.


git-svn-id: svn://10.0.0.236/trunk@15309 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:43:56 +00:00
kipp%netscape.com
246dfaaf94 Removed related-links menu from windows
git-svn-id: svn://10.0.0.236/trunk@15308 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:42:47 +00:00
kipp%netscape.com
d09b42a9e1 Brought verify-reflow back to life
git-svn-id: svn://10.0.0.236/trunk@15307 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:41:02 +00:00
karnaze%netscape.com
e0d2e68693 fixed the crash on bug 1588 (rsac.org). There is still a scrolling problem
git-svn-id: svn://10.0.0.236/trunk@15306 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:11:26 +00:00
shaver%netscape.com
f8cfaf6d4d revert pavlov's changes at his request
git-svn-id: svn://10.0.0.236/trunk@15305 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 17:50:35 +00:00
kipp%netscape.com
8e7b6b1767 Fixed IsScrollable to take an extra argument so that we would only create scroll-frames around blocks using the webshells criteria if it's the body frame (bug #1608)
git-svn-id: svn://10.0.0.236/trunk@15304 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 16:41:06 +00:00
pavlov%pavlov.net
3b39f6e3df remove my last commit. these caused more bugs than they were intended to
catch


git-svn-id: svn://10.0.0.236/trunk@15303 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 12:51:53 +00:00
cltbld%netscape.com
ef49d0fb32 fix checkout of nsprpub. -D negates tag call, so dir wasn't being pulled. this should fix build bustage too.
git-svn-id: svn://10.0.0.236/trunk@15296 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 08:15:02 +00:00
vidur%netscape.com
ebef0f10a9 New class nsDocumentFragment
git-svn-id: svn://10.0.0.236/trunk@15295 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 08:14:47 +00:00
cyeh%netscape.com
574bba6b75 oooops. back out everything by commenting it out until i can fix
it next week.


git-svn-id: svn://10.0.0.236/trunk@15294 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 05:48:38 +00:00
shaver%netscape.com
c1a29cb53b C++ class decls need a semicolon
git-svn-id: svn://10.0.0.236/trunk@15293 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 04:54:02 +00:00
shaver%netscape.com
3b8e66c9f3 Added input callback, in preparation for autogenerating __declspec(inhibit)
and doing the doc comment thing.
Generate method declarations.
More stdout -> state->file fixes.


git-svn-id: svn://10.0.0.236/trunk@15292 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 04:19:59 +00:00
kipp%netscape.com
7d4fb7d8d3 Fixed compilation bug with method signature not matching baseclass method
git-svn-id: svn://10.0.0.236/trunk@15291 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 04:14:55 +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
cyeh%netscape.com
68cda70ad6 make it so that if it can't actually find the talkback lib, it fails.
previously, if it didn't fail properly


git-svn-id: svn://10.0.0.236/trunk@15289 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 03:16:59 +00:00
cyeh%netscape.com
98e35964f3 added mozilla/lib/mac/PowerPlant to RaptorMac
git-svn-id: svn://10.0.0.236/trunk@15288 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 03:08:13 +00:00
michaelp%netscape.com
db5101c6cd fixed non-painting controls on certain resize operations in xpviewer.
git-svn-id: svn://10.0.0.236/trunk@15287 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:52:04 +00:00
akkana%netscape.com
09aa40f079 Fix C++ comment for Irix build
git-svn-id: svn://10.0.0.236/trunk@15286 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:50:20 +00:00
rickg%netscape.com
dc71142bfc change Parse(nsString&...) so that an empy string doesn't start process
git-svn-id: svn://10.0.0.236/trunk@15285 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:41:17 +00:00
pavlov%pavlov.net
026c0325c1 fix twipstopixels and got the scrollbars being sized correctly.
git-svn-id: svn://10.0.0.236/trunk@15284 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:35:59 +00:00
pavlov%pavlov.net
bef2cc3023 updated gtklayout code. Added lots of assertions to the widget code
git-svn-id: svn://10.0.0.236/trunk@15283 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:34:40 +00:00
rickg%netscape.com
463a920a7c changed the default start page, yet again
git-svn-id: svn://10.0.0.236/trunk@15282 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:19:58 +00:00
rickg%netscape.com
988e0eb906 fixed bugs 1203, 1067, 1169, 1125, 647
git-svn-id: svn://10.0.0.236/trunk@15281 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 02:19:22 +00:00
jfrancis%netscape.com
026c88790f added nsIDOMRange.h
git-svn-id: svn://10.0.0.236/trunk@15280 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 01:38:46 +00:00
jfrancis%netscape.com
f090f81a9f removing the accidentally copied "AUTOGENERATED - Do Not Edit" warning
git-svn-id: svn://10.0.0.236/trunk@15279 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 01:34:59 +00:00
jfrancis%netscape.com
162d8e834d added nsRange.cpp
git-svn-id: svn://10.0.0.236/trunk@15278 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 01:22:35 +00:00
jfrancis%netscape.com
9bf4a9e3bf cleanup
git-svn-id: svn://10.0.0.236/trunk@15277 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 01:21:42 +00:00
jfrancis%netscape.com
1d7e344048 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15276 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 00:33:59 +00:00
locka%iol.ie
7082061c64 Added ControlSite.cpp
git-svn-id: svn://10.0.0.236/trunk@15275 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 00:13:12 +00:00
locka%iol.ie
85d4e7103e Added header notice
git-svn-id: svn://10.0.0.236/trunk@15274 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 00:06:22 +00:00
locka%iol.ie
65b4fc67fc Added BeforeNavigate2 and NavigateComplete2 event firing
git-svn-id: svn://10.0.0.236/trunk@15273 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 00:03:28 +00:00
locka%iol.ie
67d6bba8c1 ActiveX control site
git-svn-id: svn://10.0.0.236/trunk@15272 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 00:01:44 +00:00
shaver%netscape.com
04135aee13 Generate getter/setter/`is'er for attributes.
Report errors (and warnings).
Send output to state->file properly, instead of stdout (although state->file
is always stdout right now!).


git-svn-id: svn://10.0.0.236/trunk@15271 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 23:16:49 +00:00
locka%iol.ie
ab8c795267 Fixed mistyped macro
git-svn-id: svn://10.0.0.236/trunk@15270 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 22:44:35 +00:00
law%netscape.com
360079e452 Adding program icon
git-svn-id: svn://10.0.0.236/trunk@15269 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 22:15:40 +00:00
kipp%netscape.com
2121f2be81 Fixed the bleeping build
git-svn-id: svn://10.0.0.236/trunk@15268 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:33:18 +00:00
cyeh%netscape.com
8d254d5529 add support for fullcircle libraries and headers
git-svn-id: svn://10.0.0.236/trunk@15267 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:27:42 +00:00
akkana%netscape.com
ad57b60bfc Add include line
git-svn-id: svn://10.0.0.236/trunk@15266 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:24:40 +00:00
akkana%netscape.com
9e0660d38e Implementation file for nsIDOMRange
git-svn-id: svn://10.0.0.236/trunk@15265 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:20:11 +00:00
law%netscape.com
623ee9b222 Fix for ss: bug #1444) nsBrowserWindow.cpp
git-svn-id: svn://10.0.0.236/trunk@15264 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:17:41 +00:00
joki%netscape.com
3ad8c4966f Implement document.URL access
git-svn-id: svn://10.0.0.236/trunk@15263 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 21:07:43 +00:00
buster%netscape.com
0f72cc9354 removed debug output
git-svn-id: svn://10.0.0.236/trunk@15262 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 20:40:43 +00:00
joki%netscape.com
f6295e142b Add missing coordinate transform to getFrameForPoint
git-svn-id: svn://10.0.0.236/trunk@15261 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 20:31:21 +00:00
rickg%netscape.com
4102309f80 fixed bug #1203
git-svn-id: svn://10.0.0.236/trunk@15260 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 20:23:46 +00:00
akkana%netscape.com
25c035a6d5 range shouldn't inherit from node
git-svn-id: svn://10.0.0.236/trunk@15259 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 19:58:40 +00:00
jfrancis%netscape.com
10b78cb8ec First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15258 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 19:43:21 +00:00
buster%netscape.com
37ca805909 bug 1520 (www.mirabilis.com)
the problem was the way table layout apportioned height from a rowspanning cell.
Now, we do 2 things correctly:
1) we handle rows with rowspanning cells and no other cells.
2) we divide the height of a rowspanning cell proportionately to the rows spanned, where the proportion is defined by
the max height of a cell in that row that has no effective rowspan.

the partial fix for bug 1431 has to do with dividing width between percent-width and fixed-width columns in the same
table. You won't see any better layout for this page (ww.boston.com) as a result of the code I added.  The rest of this
fix is a bit risky, so I'm waiting until after stability push.


git-svn-id: svn://10.0.0.236/trunk@15257 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 19:41:33 +00:00
mjudge%netscape.com
5aee685650 changing makefiles to build test apps on win32
git-svn-id: svn://10.0.0.236/trunk@15256 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 19:26:45 +00:00
karnaze%netscape.com
dbdc6ce081 fixed bug 1504 (memory leak of select elements)
git-svn-id: svn://10.0.0.236/trunk@15254 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 18:54:26 +00:00
cyeh%netscape.com
318d1c5621 change to pull mozilla/modules/libpref from the tip instead of XPCOM_BRANCH
change to pull mozilla/nsprpub from NSPR_RELEASE_3_0 tag
Fix stop ship bug #1577, approved kipp


git-svn-id: svn://10.0.0.236/trunk@15253 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 18:16:41 +00:00
rods%netscape.com
da0a53c2df Added paint method for printing (and possible future owner draw)
git-svn-id: svn://10.0.0.236/trunk@15252 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 14:57:09 +00:00
rpotts%netscape.com
7964c78293 removed invalid asserts for the STANDALONE_IMAGELIB...
git-svn-id: svn://10.0.0.236/trunk@15235 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 10:55:53 +00:00
joki%netscape.com
f87bae1385 ifdef out some broken code in SetActiveLink until I have time to fix it.
git-svn-id: svn://10.0.0.236/trunk@15234 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 08:13:55 +00:00
joki%netscape.com
765dbfd39b Add click event support for every element and initial keypress event support
git-svn-id: svn://10.0.0.236/trunk@15233 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 07:46:58 +00:00
joki%netscape.com
bab0e9e908 Add keypress event type to nsGUIEvent
git-svn-id: svn://10.0.0.236/trunk@15232 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 07:45:26 +00:00
joki%netscape.com
24bd25bf39 Have javascript call regular alert instead of dumping to console.
git-svn-id: svn://10.0.0.236/trunk@15231 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 07:44:39 +00:00
akkana%netscape.com
a4563a7a82 Add Range object
git-svn-id: svn://10.0.0.236/trunk@15230 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 03:06:53 +00:00
pavlov%pavlov.net
618f017f6a fixed my assertions
git-svn-id: svn://10.0.0.236/trunk@15229 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:43:07 +00:00
rickg%netscape.com
10d57d98ad fixed call to ToInteger() to respect the error code
git-svn-id: svn://10.0.0.236/trunk@15228 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:39:36 +00:00
rickg%netscape.com
7dbb22e801 fixed bug 1312
git-svn-id: svn://10.0.0.236/trunk@15227 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:38:50 +00:00
rickg%netscape.com
69aa236de9 changed ToInteger() so that it returns an error properly
git-svn-id: svn://10.0.0.236/trunk@15226 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:38:21 +00:00
joki%netscape.com
196391fbbd Send a reasonable value for the JS useragent on Windows.
git-svn-id: svn://10.0.0.236/trunk@15225 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:29:46 +00:00
rpotts%netscape.com
c87e4a1883 Added a missing NS_RELEASE which was causing the URL and webshell to hang around...
git-svn-id: svn://10.0.0.236/trunk@15224 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:07:27 +00:00
pavlov%pavlov.net
1da1e5ae82 import of new gtk code by Owen Taylor <otaylor@redhat.com>. This code should
support GTK_NO_WINDOW widgets now.


git-svn-id: svn://10.0.0.236/trunk@15223 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:06:29 +00:00
karnaze%netscape.com
b8beac0eaf <frame> now uses <base> for its src attribute
git-svn-id: svn://10.0.0.236/trunk@15222 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 02:01:45 +00:00
wtc%netscape.com
d769d9c9c4 _MD_FreeSegment should call free (instead of DisposePtr) to deallocate
the memory allocated by _MD_AllocSegment using malloc.  Thanks to
Simon Fraser <sfraser@netscape.com> for the bug report and fix.


git-svn-id: svn://10.0.0.236/trunk@15221 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:59:41 +00:00
kipp%netscape.com
c863d7b29b made it easier to see if the parser is working
git-svn-id: svn://10.0.0.236/trunk@15220 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:48:04 +00:00
kipp%netscape.com
9e72a38944 Made the test work again
git-svn-id: svn://10.0.0.236/trunk@15219 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:47:44 +00:00
kipp%netscape.com
0ddab1d0ce Use Pushback to put back the right character
git-svn-id: svn://10.0.0.236/trunk@15218 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:47:19 +00:00
kipp%netscape.com
e2045ab733 new regression test
git-svn-id: svn://10.0.0.236/trunk@15217 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:43:46 +00:00
akkana%netscape.com
1b25d1e7f2 Range specification
git-svn-id: svn://10.0.0.236/trunk@15216 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:39:47 +00:00
pavlov%pavlov.net
dbd7561c05 Added assertions to the gfx code so that we can find xp bugs easier
git-svn-id: svn://10.0.0.236/trunk@15215 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:32:12 +00:00
wtc%netscape.com
f9841381ad Fixed a bug in Mac's PR_IntervalNow() and PR_TicksPerSecond(). A
tick is one millisecond on the Mac.
Files changed: _macos.h, mactime.c.
Also removed a temporary comment-out in prinrval.c.


git-svn-id: svn://10.0.0.236/trunk@15214 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:31:07 +00:00
larryh%netscape.com
ad35ad2b55 BugSplat 335862
git-svn-id: svn://10.0.0.236/trunk@15213 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:26:00 +00:00
despotdaemon%netscape.com
831f12aaec Pseudo-automatic update of changes made by namachi@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15212 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:10:34 +00:00
cyeh%netscape.com
49dfdd1b63 activate timebomb for technology demonstration.
THIS NEEDS TO BE REMOVED LATER


git-svn-id: svn://10.0.0.236/trunk@15211 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:08:47 +00:00
despotdaemon%netscape.com
46472d8f2f Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15209 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:53:48 +00:00
kin%netscape.com
42d0fcd52b Modified transaction manager to use nsTransactionStacks.
git-svn-id: svn://10.0.0.236/trunk@15208 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:45:21 +00:00
kin%netscape.com
5a539f9ae2 Added nsTransactionStack.cpp to list of files to build.
git-svn-id: svn://10.0.0.236/trunk@15206 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:44:29 +00:00
kin%netscape.com
e7f3da5c59 Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@15205 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:43:31 +00:00
jfrancis%netscape.com
45589e7d34 keeping the mac in synch
git-svn-id: svn://10.0.0.236/trunk@15204 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:28:20 +00:00
jfrancis%netscape.com
853b4f59e4 fixing compilation errors
git-svn-id: svn://10.0.0.236/trunk@15203 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:26:32 +00:00
wtc%netscape.com
60608cd6ce Temporarily ifdef out assertions for the Mac while I debug the
problem.


git-svn-id: svn://10.0.0.236/trunk@15202 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:25:25 +00:00
jfrancis%netscape.com
4add115a39 fixing include file typo
git-svn-id: svn://10.0.0.236/trunk@15201 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:19:41 +00:00
mcafee%netscape.com
c56fa67994 Added -DMOZ_FULLCIRCLE logic for release builds
git-svn-id: svn://10.0.0.236/trunk@15200 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:16:43 +00:00
kipp%netscape.com
35d1ba3e17 Made IFRAME a container (like it should have been) so that it can contain the content that isn't being rendered (because we support iframe's)
git-svn-id: svn://10.0.0.236/trunk@15198 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:11:54 +00:00
mcafee%netscape.com
fe8fbe0ec3 Fixing include directory for fullcircle stuff
git-svn-id: svn://10.0.0.236/trunk@15197 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:09:29 +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
6ca45d2e06 backout changes i didn't want to commit.
git-svn-id: svn://10.0.0.236/trunk@15195 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:50:17 +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
pavlov%pavlov.net
6f3d289878 remove shadow from menubar to provide a consistant look.
git-svn-id: svn://10.0.0.236/trunk@15193 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:41:47 +00:00
pavlov%pavlov.net
94dd42f645 require gtk 1.1.5
git-svn-id: svn://10.0.0.236/trunk@15190 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:41:29 +00:00
rickg%netscape.com
6752d7e6e3 changed start page per chofmann's request
git-svn-id: svn://10.0.0.236/trunk@15189 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:22:34 +00:00
rickg%netscape.com
30087fabde fixed bug #1513
git-svn-id: svn://10.0.0.236/trunk@15188 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:11:22 +00:00
buster%netscape.com
3c5a5e590a changed the logic for reflowing cells whose height is changed due to a
height attribute.


git-svn-id: svn://10.0.0.236/trunk@15187 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:07:40 +00:00
vidur%netscape.com
13c578a455 Allow application/x-javascript for type in SCRIPT tags
git-svn-id: svn://10.0.0.236/trunk@15186 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:06:57 +00:00
mcafee%netscape.com
1d466b186a Printing out FCInitialize status for debugging, hope that's Ok.
git-svn-id: svn://10.0.0.236/trunk@15185 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:04:04 +00:00
sman%netscape.com
31ef51dc4c fixed instructions
git-svn-id: svn://10.0.0.236/trunk@15184 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:55:32 +00:00
mcafee%netscape.com
171e0d2d6c Printing out FCInitialize status for debugging, hope that's Ok.
git-svn-id: svn://10.0.0.236/trunk@15183 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:22:39 +00:00
kipp%netscape.com
8c86fef2cd Let style override the cursor choice when using an image map
git-svn-id: svn://10.0.0.236/trunk@15182 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:21:13 +00:00
kipp%netscape.com
bf83ca5a6e Walk up the content-parent so that style is applied appropriately for cursor selection
git-svn-id: svn://10.0.0.236/trunk@15181 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:20:50 +00:00
mjudge%netscape.com
39745ca900 build breakage... oops
git-svn-id: svn://10.0.0.236/trunk@15180 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:02:18 +00:00
mjudge%netscape.com
bc6f9c5357 adding contextloader
git-svn-id: svn://10.0.0.236/trunk@15179 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:00:55 +00:00
mjudge%netscape.com
65c64c5a3f context loader will be used for keybindings
git-svn-id: svn://10.0.0.236/trunk@15178 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 22:00:29 +00:00
mjudge%netscape.com
f288875f23 putting in changes for selection in editor. fixing problem akkana has had?
git-svn-id: svn://10.0.0.236/trunk@15177 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:53:14 +00:00
wtc%netscape.com
e5315cfb95 Handle the sa_len field of struct sockaddr correctly on platforms
whose struct sockaddr has that field.  Thanks to Bert Driehuis
<driehuis@playbeing.org> for suggesting this fix.


git-svn-id: svn://10.0.0.236/trunk@15176 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:22:07 +00:00
wtc%netscape.com
084a0cbfd3 Added 'else true;" to the if statement in our shell scripts because
QNX's shell doesn't work correctly without it.


git-svn-id: svn://10.0.0.236/trunk@15175 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:20:38 +00:00
kipp%netscape.com
c454cd08ea Factored IsReplaced into a throw-away method; fixed containing-block discovery to use IsPercentageBase method
git-svn-id: svn://10.0.0.236/trunk@15174 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:11:57 +00:00
kipp%netscape.com
f308031baa Use correct reflow-state to find the containing-block's width for text-indent (bug #1048)
git-svn-id: svn://10.0.0.236/trunk@15173 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:11:19 +00:00
shaver%netscape.com
a08a107a6d first xpidl stuff
git-svn-id: svn://10.0.0.236/trunk@15172 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 21:02:31 +00:00
kipp%netscape.com
e3e78619d0 Fixed up handling of form element attributes slightly to match navigators handling of ALIGN; this is compatible with nav/IE and with the HTML4 DTD (because ALIGN is deprecated)
git-svn-id: svn://10.0.0.236/trunk@15171 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 19:33:22 +00:00
leaf%mozilla.org
a556a33161 added mozilla/modules/softupdt to SeaMonkeyBrowser module
git-svn-id: svn://10.0.0.236/trunk@15170 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 19:28:06 +00:00
michaelp%netscape.com
fe7797d4be added STRICT to list of preprocessor macros.
git-svn-id: svn://10.0.0.236/trunk@15169 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 19:00:08 +00:00
kipp%netscape.com
11eb094755 Added code in to not consume events if the anchor has no HREF attribute. This prevents <A NAME=...> containers from eating events
git-svn-id: svn://10.0.0.236/trunk@15168 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:45:00 +00:00
karnaze%netscape.com
12cd5750b9 fixed bug 1479 (wsj.com crash)
git-svn-id: svn://10.0.0.236/trunk@15167 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:37:46 +00:00
danm%netscape.com
d413bc2696 tweak change from last rev, which was close, but misbehaved.
git-svn-id: svn://10.0.0.236/trunk@15166 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:34:50 +00:00
kipp%netscape.com
2571922a9d Added some debug noise (disabled by default) for image loading
git-svn-id: svn://10.0.0.236/trunk@15165 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:18:34 +00:00
kipp%netscape.com
9292a738ca Added some debug noise (disabled by default) for document creation
git-svn-id: svn://10.0.0.236/trunk@15164 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:18:08 +00:00
cls%seawood.org
8ec77484d4 Use MOZ_USER_DIR since it's already setup.
git-svn-id: svn://10.0.0.236/trunk@15163 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:13:39 +00:00
cls%seawood.org
9882158615 Check for libraries before functions and fixed detection of -c -o problem. Thanks to Tim Rice <tim@trr.metro.NET> for pointing those out.
Modified hcc & hcpp to work for any compiler that doesn't support -c -o, not just Unixware.   They expect the real compiler to be the first argument now.


git-svn-id: svn://10.0.0.236/trunk@15162 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:12:39 +00:00
leaf%mozilla.org
5de60a0010 Whacked set-timebomb.pl to whack nsNetService.cpp to kill seamonkey's
networking.


git-svn-id: svn://10.0.0.236/trunk@15161 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 11:16:32 +00:00
vidur%netscape.com
097c7c3402 Partial fix for bug 1256. A script context should always be created for each new script global object.
git-svn-id: svn://10.0.0.236/trunk@15160 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 08:09:11 +00:00
rickg%netscape.com
ef03ca1113 improvements to entity parsing and viewing
git-svn-id: svn://10.0.0.236/trunk@15159 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 08:01:14 +00:00
wtc%netscape.com
e9708a17e4 A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
   OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
   API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
   copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
   and set its sa_len before passing it to the system calls.  This
   fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector.  Not
   every Unix platform has lockf, and the POSIX file locking API
   uses fcntl.


git-svn-id: svn://10.0.0.236/trunk@15158 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 06:33:00 +00:00
mcafee%netscape.com
48478d4ef7 Switching to cvs module checkout, moved nspr checkout to nspr target.
git-svn-id: svn://10.0.0.236/trunk@15157 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 05:50:02 +00:00
troy%netscape.com
5b79c87173 Added missing NS_RELEASE() to GetWidget() function
git-svn-id: svn://10.0.0.236/trunk@15156 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 04:41:51 +00:00
mcafee%netscape.com
eaad124a3b Moving client.mk to SeaMonkeyBrowser, fixing nglayout.mk
git-svn-id: svn://10.0.0.236/trunk@15155 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 04:18:22 +00:00
buster%netscape.com
792b1982ba #ifdef NS_DEUG references to _CrtSetDbgFlag
git-svn-id: svn://10.0.0.236/trunk@15154 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 04:09:06 +00:00
troy%netscape.com
ea321d77ca Added some casts to make the 6.0 compiler happy
git-svn-id: svn://10.0.0.236/trunk@15153 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:43:49 +00:00
michaelp%netscape.com
b3420da9fc made the stars 'n comets animation the default for the throbber.
git-svn-id: svn://10.0.0.236/trunk@15152 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:30:24 +00:00
mcafee%netscape.com
5f9edfc930 Changes needed to build on Linux
git-svn-id: svn://10.0.0.236/trunk@15151 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:24:25 +00:00
michaelp%netscape.com
43576b4ce6 changed ::ReleaseDC() call in RealizeFont() key off of the same thing that
it used to conditionally call ::GetDC(). strictly speaking this change was
not necessary. i did it to make the code look a bit cleaner and accomodate
the situation where a device context is Init()ed with a null widget handle.
a device context of that sort is questionable, but that issue can be
addressed separately.


git-svn-id: svn://10.0.0.236/trunk@15150 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:14:38 +00:00
michaelp%netscape.com
c85498fefa fixed a bunch of resource leaks exposed by the xpviewer and made
HDC state propagation in SetupDC() more complete.


git-svn-id: svn://10.0.0.236/trunk@15149 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:12:16 +00:00
michaelp%netscape.com
f85fa148e2 changed for drawing surface HDC ownership setting.
git-svn-id: svn://10.0.0.236/trunk@15148 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:11:16 +00:00
michaelp%netscape.com
b4939bef55 added data member to drawing surface to determine HDC ownership.
git-svn-id: svn://10.0.0.236/trunk@15147 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 03:10:10 +00:00
law%netscape.com
d9a95dea3e Add reload button logic and reset home page
git-svn-id: svn://10.0.0.236/trunk@15146 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 02:32:32 +00:00
vidur%netscape.com
44b9de5c38 Fix for bug 940. location.href can take a relative URL.
git-svn-id: svn://10.0.0.236/trunk@15145 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 01:09:27 +00:00
raman%netscape.com
1adb26bf9e XP_COM interfaces for JS calls into CAPS
git-svn-id: svn://10.0.0.236/trunk@15144 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 00:27:00 +00:00
locka%iol.ie
eb5b6c8750 Implemented folder picker dialog
git-svn-id: svn://10.0.0.236/trunk@15142 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 00:03:58 +00:00
amusil%netscape.com
5445c054f5 Fix for Bug 1416. Moving the call of the plugin entry point into Initialize (after the mPluginManager is set up).
This is so that NPN calls can get resolved if the plugin makes them in the entry point routine.


git-svn-id: svn://10.0.0.236/trunk@15137 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 23:13:44 +00:00
chuckb%netscape.com
5b6c955aac Merge from LDAPCSDK_19981015_BRANCH
git-svn-id: svn://10.0.0.236/trunk@15134 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 22:03:18 +00:00
pavlov%pavlov.net
1ad44df641 fixed rickg@netscape.com's broken code.
git-svn-id: svn://10.0.0.236/trunk@15133 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 16:48:18 +00:00
terry%netscape.com
ce44f10b4e More shuffling of owners.
git-svn-id: svn://10.0.0.236/trunk@15132 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 15:54:40 +00:00
rpotts%netscape.com
c3501aad62 fix up the places where the C and C++ memory managers were being mixed for allocs and frees...
git-svn-id: svn://10.0.0.236/trunk@15131 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:32:06 +00:00
rpotts%netscape.com
c6027a56e5 Force the URL exit routine to be called via a PLEvent. This insures that the LIBNET() lock is not being held during the call...
git-svn-id: svn://10.0.0.236/trunk@15130 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:31:10 +00:00
rpotts%netscape.com
bf86d61fe6 Disable async Winsock notifications until we figure out why it exhausts *all* system resources on Win95...
git-svn-id: svn://10.0.0.236/trunk@15129 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:30:00 +00:00
rpotts%netscape.com
e020eaf4ef Return NS_BINDING_FAILED if nw stream was created...
git-svn-id: svn://10.0.0.236/trunk@15128 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:28:44 +00:00
rpotts%netscape.com
7182d2a5d0 Add a missing NS_RELEASE(...) for a QI(...)
git-svn-id: svn://10.0.0.236/trunk@15127 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:27:30 +00:00
buster%netscape.com
2ae8193b78 fixed the aweful nested table problems
git-svn-id: svn://10.0.0.236/trunk@15126 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 08:56:19 +00:00
rickg%netscape.com
27b9a14618 changed start page to netcenter
git-svn-id: svn://10.0.0.236/trunk@15125 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 08:19:56 +00:00
rickg%netscape.com
ba8fd871ca fixed bug 1140; temp fix to 1321
git-svn-id: svn://10.0.0.236/trunk@15124 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 08:01:28 +00:00
cyeh%netscape.com
8d0560f175 remove old template modules Client50Browser and Client50MailNews. Add module
MozillaLicense, which should be included with every logical source
code component. (need to go back and check that major components, such
as NSPR include the LEGAL and LICENSE document.)

Create first pass for SeaMonkey modules. They are not active yet, but
this will allow them to be hacked on by multiple people and tested until
correct.


git-svn-id: svn://10.0.0.236/trunk@15123 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 05:18:43 +00:00
msw%gimp.org
f220464167 A _horrible_ hack to make fonts readable. Needs much work here.
git-svn-id: svn://10.0.0.236/trunk@15122 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 04:48:47 +00:00
pavlov%pavlov.net
b2b11721da fix transparent icons and flipped the nscolor to gdkcolor R and B colors
git-svn-id: svn://10.0.0.236/trunk@15121 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 04:43:24 +00:00
troy%netscape.com
3cbfe7948e Changed Destroy() to release references to and destroy its child
web shells. This fixes it so we don't leak all of the web shells for
frameset documents


git-svn-id: svn://10.0.0.236/trunk@15120 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 03:11:26 +00:00
jevering%netscape.com
385b20fd17 fixed fullsoft lib name
git-svn-id: svn://10.0.0.236/trunk@15119 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 01:20:32 +00:00
jevering%netscape.com
8ca3acc624 corrected the fullsoft lib name.
git-svn-id: svn://10.0.0.236/trunk@15118 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 01:19:21 +00:00
terry%netscape.com
7d6cf072ef valeski is no longer here; gagan now owns 'Networking Library'.
git-svn-id: svn://10.0.0.236/trunk@15117 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 01:17:08 +00:00
terry%netscape.com
c8fbb3bd3b Patch from Sam Ziegler <sam@ziegler.org>: fix some typos.
git-svn-id: svn://10.0.0.236/trunk@15116 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 01:12:09 +00:00
michaelp%netscape.com
4091ac9352 changed UserAgent string reporting.
git-svn-id: svn://10.0.0.236/trunk@15115 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 00:22:35 +00:00
pavlov%pavlov.net
870924220c Setup the X hints for when mozilla is minimized. Added icon.
git-svn-id: svn://10.0.0.236/trunk@15109 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 21:49:17 +00:00
rickg%netscape.com
481c1194fb fixed containment bugs, which corrects problems with www.majorleaguebaseball.com
git-svn-id: svn://10.0.0.236/trunk@15108 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 21:06:29 +00:00
troy%netscape.com
36cc15c205 Added missing NS_RELEASE of the content object in GetMarginHeight()
git-svn-id: svn://10.0.0.236/trunk@15107 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 17:30:41 +00:00
troy%netscape.com
d8e49916cf Added NS_RELEASE to fixed memory leak after calling ChildAt()
git-svn-id: svn://10.0.0.236/trunk@15106 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 17:22:31 +00:00
kipp%netscape.com
0100dd306f Fix up painting issue; if we end up with a negative damage area then convert to damaging everything
git-svn-id: svn://10.0.0.236/trunk@15105 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 17:21:18 +00:00
jfrancis%netscape.com
f789e191d5 shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@15104 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 08:29:45 +00:00
rickg%netscape.com
2954c4d855 assertions for bug 1375 and better autodetection code
git-svn-id: svn://10.0.0.236/trunk@15102 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 07:48:49 +00:00
raman%netscape.com
3ed308bf62 Added building of caps to the windows and unix build system
git-svn-id: svn://10.0.0.236/trunk@15101 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 06:05:24 +00:00
troy%netscape.com
b060981c1a Improved efficiency by avoiding the dreadfully slow NS_MakeAbsoluteURL() and
only setting the image loader's URL and base URL for the initial reflow


git-svn-id: svn://10.0.0.236/trunk@15100 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 04:04:41 +00:00
rickg%netscape.com
1fb036086d last tweak needed to get entities right again
git-svn-id: svn://10.0.0.236/trunk@15099 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 03:57:03 +00:00
kipp%netscape.com
ce366ccfba Fixed scroll-frame code to properly fill in the max-element-size
git-svn-id: svn://10.0.0.236/trunk@15098 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 03:52:01 +00:00
morse%netscape.com
b7adafbd1d moved string to allxpstr.h for sake of i18n
git-svn-id: svn://10.0.0.236/trunk@15097 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 03:10:43 +00:00
morse%netscape.com
48d2490554 change for single signon
git-svn-id: svn://10.0.0.236/trunk@15096 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 03:09:44 +00:00
rickg%netscape.com
893185a1b7 fixed bug 1125
git-svn-id: svn://10.0.0.236/trunk@15095 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 02:49:25 +00:00
rickg%netscape.com
9e4fe268ba fixed bug 1125
git-svn-id: svn://10.0.0.236/trunk@15094 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 02:48:01 +00:00
mcmullen%netscape.com
04e07a582a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@15093 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:24:55 +00:00
vidur%netscape.com
d08fcd1057 Added XML factories to the xpviewer registry
git-svn-id: svn://10.0.0.236/trunk@15092 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:22:24 +00:00
kin%netscape.com
2fd3bd374a Quick test to see if the first pass transaction manager code is working.
git-svn-id: svn://10.0.0.236/trunk@15091 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:21:14 +00:00
joki%netscape.com
ab15534e85 Adding nsJSSecurityManager.cpp to project
git-svn-id: svn://10.0.0.236/trunk@15090 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:14:16 +00:00
kin%netscape.com
09cda0dcb4 First pass implementations of Do, Undo, and Redo.
git-svn-id: svn://10.0.0.236/trunk@15089 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:02:55 +00:00
cls%seawood.org
2fb7c44769 Linux shouldn't need the mkdetect scripts any longer. Get rid of bogus motif dependency as well.
git-svn-id: svn://10.0.0.236/trunk@15088 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 01:00:00 +00:00
rpotts%netscape.com
9a8b6f2684 Fixed up the throbber to stay animating throughout the document load... Found a better fix for the statusbar not showing up until the first resize.
git-svn-id: svn://10.0.0.236/trunk@15087 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:55:54 +00:00
buster%netscape.com
4b922cdb2b removed the resolution of table pseudo-style until we can test it and
actually use it.  this was just a memory leak.


git-svn-id: svn://10.0.0.236/trunk@15086 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:53:03 +00:00
cls%seawood.org
bfc1cc9428 Removed redundant check for ios::bin. Replaced hardcoded check for 1.1.2 with $GTK_VERSION.
git-svn-id: svn://10.0.0.236/trunk@15085 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:48:32 +00:00
cyeh%netscape.com
79654fb86d 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.


git-svn-id: svn://10.0.0.236/trunk@15084 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:34:32 +00:00
radha%netscape.com
88479ed20c Comment off menu items that don't work
Add a "Navigator" Menu item to communicator menu and let it bring up
a browser window


git-svn-id: svn://10.0.0.236/trunk@15083 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:24:41 +00:00
larryh%netscape.com
ad9deb3a69 BugZilla #1473
git-svn-id: svn://10.0.0.236/trunk@15082 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:20:16 +00:00
joki%netscape.com
fe983ab777 Fixing a submit/reset event bug, frame destruction reentrancy bug, and an imagemap bug.
git-svn-id: svn://10.0.0.236/trunk@15081 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:19:36 +00:00
joki%netscape.com
581ca7e7ca Adding initial bit for the JS security system
git-svn-id: svn://10.0.0.236/trunk@15080 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:12:33 +00:00
despotdaemon%netscape.com
0b171bcddd Pseudo-automatic update of changes made by gem@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15079 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:59:24 +00:00
larryh%netscape.com
591896de41 fix compile error introduced with OS/2 port
git-svn-id: svn://10.0.0.236/trunk@15078 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:56:29 +00:00
michaelp%netscape.com
12392ea64e fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@15077 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:54:29 +00:00
despotdaemon%netscape.com
5f76d16dea Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@15076 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:54:16 +00:00
sar%netscape.com
dbbec2bbca adding mozilla/caps to RaptorDist. I know this is all going to get shuffled when the modules are realigned, but this is the best place to put it for now. --sarah
git-svn-id: svn://10.0.0.236/trunk@15075 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:51:40 +00:00
mcafee%netscape.com
d7b620533f Adding Talkback initialization & include/link stuff. Wrapped in MOZ_FULLCIRCLE=1
git-svn-id: svn://10.0.0.236/trunk@15074 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:33:53 +00:00
pnunn%netscape.com
edfeb525c4 png is an interal format... -pnunn
git-svn-id: svn://10.0.0.236/trunk@15073 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:33:46 +00:00
pnunn%netscape.com
e14d007f27 png is an internal format.... -pnunn
git-svn-id: svn://10.0.0.236/trunk@15072 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:32:44 +00:00
pnunn%netscape.com
16ccc2b700 png is an internal format..... -pnunn
git-svn-id: svn://10.0.0.236/trunk@15071 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:32:12 +00:00
pnunn%netscape.com
5423f91a18 ...png is an internal format. -pnunn.
git-svn-id: svn://10.0.0.236/trunk@15070 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:31:42 +00:00
morse%netscape.com
5f712de818 fix up indentation
git-svn-id: svn://10.0.0.236/trunk@15069 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:31:17 +00:00
troy%netscape.com
021ed0f162 Added nsHTMLAtoms::wrappedFramePseudo and changed ConstructFrame() to use
it instead of nsHTMLAtoms::columnPseudo


git-svn-id: svn://10.0.0.236/trunk@15068 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:27:59 +00:00
srinivas%netscape.com
d81bdb762d Fixed breakage of C++ build rule in previous checkin.
git-svn-id: svn://10.0.0.236/trunk@15067 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:19:54 +00:00
mcafee%netscape.com
0e51f60e05 Adding Talkback initialization & include/link stuff. Wrapped in MOZ_FULLCIRCLE=1
git-svn-id: svn://10.0.0.236/trunk@15066 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:14:22 +00:00
cyeh%netscape.com
2a77f20528 forgot the continuation character.
git-svn-id: svn://10.0.0.236/trunk@15065 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:10:59 +00:00
buster%netscape.com
bb8cc936f0 removed a spurious GetContent that was the cause of a memory leak
git-svn-id: svn://10.0.0.236/trunk@15064 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:10:47 +00:00
gagan%netscape.com
fe370c4af2 Fixed the NSPR spelling change warning (PRDirectorySeparator).
git-svn-id: svn://10.0.0.236/trunk@15063 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:10:23 +00:00
gagan%netscape.com
2d7ce54418 NuCache lib added.
git-svn-id: svn://10.0.0.236/trunk@15062 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:09:25 +00:00
waterson%netscape.com
52e0706e80 Updated for new interfaces.
git-svn-id: svn://10.0.0.236/trunk@15061 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:07:34 +00:00
gagan%netscape.com
fa23a2e423 We were unnecessarily checking cache entries for local resources. This should speed things up...
git-svn-id: svn://10.0.0.236/trunk@15060 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:03:39 +00:00
law%netscape.com
402be50ca4 Make statusbar appear without requiring window resize
git-svn-id: svn://10.0.0.236/trunk@15059 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:34:12 +00:00
kipp%netscape.com
29dc17dcda Use revised GetContainingBlockContentWidth method
git-svn-id: svn://10.0.0.236/trunk@15058 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:28:00 +00:00
kipp%netscape.com
699867e794 Support margins on the child frame
git-svn-id: svn://10.0.0.236/trunk@15057 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:27:33 +00:00
kipp%netscape.com
a207569b1c Work around more bugs in the style context code and use old margin calculations; factored get-containing-block-width better
git-svn-id: svn://10.0.0.236/trunk@15056 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:27:21 +00:00
kipp%netscape.com
8212a41c48 Disable fixed behavior when we are shrink wrapping so that floating tables (for example) can ignore their width if necessary
git-svn-id: svn://10.0.0.236/trunk@15055 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:24:20 +00:00
kipp%netscape.com
62773d21fe Made HTML a block (which it is going to be someday) so that percentage margins in the BODY will be computed correctly
git-svn-id: svn://10.0.0.236/trunk@15054 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:21:38 +00:00
cls%seawood.org
e2dbbb9c72 License issues supposedly have been cleared up so aclocal.m4 can stay.
git-svn-id: svn://10.0.0.236/trunk@15053 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:14:16 +00:00
rickg%netscape.com
fb379a12ba updated docs for nsString class usage
git-svn-id: svn://10.0.0.236/trunk@15052 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:11:09 +00:00
cyeh%netscape.com
996e83b704 added aclocal.m4 to RaptorUnix for autoconf
git-svn-id: svn://10.0.0.236/trunk@15051 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:57:20 +00:00
morse%netscape.com
680e1bf71b more fixes for change-of-password form
git-svn-id: svn://10.0.0.236/trunk@15050 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:57:04 +00:00
rickg%netscape.com
f7801b5a39 fixed broken entities
git-svn-id: svn://10.0.0.236/trunk@15049 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:34:20 +00:00
buster%netscape.com
f8aed9d5de took out a dumb debug printf
git-svn-id: svn://10.0.0.236/trunk@15048 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:09:54 +00:00
buster%netscape.com
3e6c71822b put in a VERY temporary work-around for some crashes we're seeing as a
result of table style context's display type != TABLE


git-svn-id: svn://10.0.0.236/trunk@15047 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:08:06 +00:00
buster%netscape.com
81056561c2 added :TABLE pseudo-style
git-svn-id: svn://10.0.0.236/trunk@15046 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:06:59 +00:00
buster%netscape.com
38df9d7aff added tablePseudo
git-svn-id: svn://10.0.0.236/trunk@15045 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 21:05:31 +00:00
kin%netscape.com
fbb3c4f42e Corrected comments for Do(), Undo(), and Redo().
git-svn-id: svn://10.0.0.236/trunk@15044 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 20:59:40 +00:00
despotdaemon%netscape.com
9f52a9cb6d Pseudo-automatic update of changes made by cmanske@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15043 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 20:53:21 +00:00
despotdaemon%netscape.com
61f08efe95 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@15042 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 20:44:42 +00:00
despotdaemon%netscape.com
4d245f36af Pseudo-automatic update of changes made by jwz@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@15041 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 20:31:21 +00:00
srinivas%netscape.com
efc84ef9fb Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx).
Checkin for Eric Olson <Eric.Olson@Sympatico.CA> and Henry <sobotka@axess.com>.


git-svn-id: svn://10.0.0.236/trunk@15040 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 20:17:20 +00:00
mjudge%netscape.com
4561166339 changing names for nsEditorMouseListener ect
git-svn-id: svn://10.0.0.236/trunk@15038 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 19:30:50 +00:00
kipp%netscape.com
4078a9579e Removed a bogus assert
git-svn-id: svn://10.0.0.236/trunk@15037 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 19:28:44 +00:00
dcone%netscape.com
e06798ffdf Another small fix, to take out unnessasary code.
git-svn-id: svn://10.0.0.236/trunk@15036 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 19:26:06 +00:00
msw%gimp.org
056cca1ba8 Change the test for GTK+-1.1.3 to 1.1.2, as we should be able to build against
1.1.2 and that is the version that is on most boxes.  Approved by
shaver@netscape.com


git-svn-id: svn://10.0.0.236/trunk@15035 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 19:25:04 +00:00
terry%netscape.com
1d5e9c99f5 Backed out Andrew's patch -- turns out it was doing quoting sublty wrong.
git-svn-id: svn://10.0.0.236/trunk@15034 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 19:18:37 +00:00
dcone%netscape.com
93daf60388 deleted duplicate from nsIImage.h - no longer needed
git-svn-id: svn://10.0.0.236/trunk@15033 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:55:50 +00:00
kipp%netscape.com
70d4da59f6 Use proper calls to refresh the display (however, at this time the view manager is busted so it won't work)
git-svn-id: svn://10.0.0.236/trunk@15032 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:53:48 +00:00
kin%netscape.com
e5331aea39 Initial checkin of files.
git-svn-id: svn://10.0.0.236/trunk@15031 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:36:05 +00:00
kipp%netscape.com
ea00d06377 Removed the url comparison test that's no longer needed now that crawling is hooked to the EndLoadURL notification
git-svn-id: svn://10.0.0.236/trunk@15030 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:35:21 +00:00
kipp%netscape.com
11905db186 Fixed QueryInterface to do the right thing
git-svn-id: svn://10.0.0.236/trunk@15029 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:27:47 +00:00
kipp%netscape.com
a69dbcce53 Moved crawling code into EndLoadURL; eliminated bogus cast that hid the fact that the class wasn't implementing nsIStreamObserver
git-svn-id: svn://10.0.0.236/trunk@15028 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:27:14 +00:00
kipp%netscape.com
def484af1b Added EndLoadURL and fixed interface bogosity
git-svn-id: svn://10.0.0.236/trunk@15027 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:26:41 +00:00
kipp%netscape.com
8b6d12bcba pass on EndLoadURL to the crawler
git-svn-id: svn://10.0.0.236/trunk@15026 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:26:16 +00:00
kipp%netscape.com
f044481b68 Added -v argument to log crawler behavior
git-svn-id: svn://10.0.0.236/trunk@15025 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:25:55 +00:00
kipp%netscape.com
a40b0cff3a Pass on EndLoadURL to the app
git-svn-id: svn://10.0.0.236/trunk@15024 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:25:29 +00:00
kin%netscape.com
f9645c5674 Added QueryInterface() implementation.
git-svn-id: svn://10.0.0.236/trunk@15022 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:04:57 +00:00
kin%netscape.com
fce2d30102 Removed '_' from IID defines to conform to naming conventions used in nglayout.
git-svn-id: svn://10.0.0.236/trunk@15021 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 18:04:03 +00:00
kipp%netscape.com
18ec528130 Added support for StyleChanged reflow reason
git-svn-id: svn://10.0.0.236/trunk@15020 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:41:44 +00:00
kipp%netscape.com
4c0e7bb48f Temporary workaround for style issue
git-svn-id: svn://10.0.0.236/trunk@15019 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:39:11 +00:00
dcone%netscape.com
6b3aca698d Took out all blending code, and updated to coding standards, general cleanup
git-svn-id: svn://10.0.0.236/trunk@15018 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:37:18 +00:00
kipp%netscape.com
b7526778d2 Use new classname for base class; port to updated nsLeafFrame methods
git-svn-id: svn://10.0.0.236/trunk@15017 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:22:08 +00:00
kipp%netscape.com
da8bad5359 Port to updated nsLeafFrame methods
git-svn-id: svn://10.0.0.236/trunk@15016 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:21:49 +00:00
kipp%netscape.com
0ded33a37e Removed a compiler warning
git-svn-id: svn://10.0.0.236/trunk@15015 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:21:22 +00:00
kipp%netscape.com
8e874e3769 Added mBorderPadding to cache computed value in case percentages are used; renamed class to nsImageFrame
git-svn-id: svn://10.0.0.236/trunk@15014 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:21:02 +00:00
kipp%netscape.com
b08cebd76d Use revised API's for computing the border/padding
git-svn-id: svn://10.0.0.236/trunk@15013 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:20:29 +00:00
kipp%netscape.com
257cb2e34e Define new API's to compute margin/border/padding/border+padding and handle percentages correctly
git-svn-id: svn://10.0.0.236/trunk@15012 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:19:26 +00:00
kipp%netscape.com
74b2e97658 Use revised API's to get percentage padding/borders value right
git-svn-id: svn://10.0.0.236/trunk@15011 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:18:58 +00:00
kipp%netscape.com
4d8d60d08d Use revised margin calculation api's; center blocks that have auto margins
git-svn-id: svn://10.0.0.236/trunk@15010 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:18:12 +00:00
kipp%netscape.com
115cd2b9ad Use Get methods from style context instead of deprecated methods
git-svn-id: svn://10.0.0.236/trunk@15009 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:13:28 +00:00
kipp%netscape.com
07371bd0cd Updated leaf api's to better support caching of computed border/padding when percentages are used
git-svn-id: svn://10.0.0.236/trunk@15008 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:13:02 +00:00
kipp%netscape.com
b5fd638826 Added mBorderPadding to cache computed value in case percentages are used
git-svn-id: svn://10.0.0.236/trunk@15007 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:12:39 +00:00
kipp%netscape.com
b982296c15 Added mBorderPadding to cache computed value in case percentages are used; renamed class to nsImageFrame
git-svn-id: svn://10.0.0.236/trunk@15006 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:12:25 +00:00
dcone%netscape.com
5a1fd4591f Fixed some warnings, slight rework of the taghandling classes.
git-svn-id: svn://10.0.0.236/trunk@15005 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 15:38:18 +00:00
alecf%netscape.com
7724082a1f don't pass static classes as function parameters
git-svn-id: svn://10.0.0.236/trunk@15004 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 09:45:39 +00:00
alecf%netscape.com
5e3cc9c98d fix casting problems for gcc 2.7.2.3
git-svn-id: svn://10.0.0.236/trunk@15003 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 09:29:58 +00:00
troy%netscape.com
c3380a7354 Added temporary workaround to image frame code to compensate for the fact
that HandleEvent() and GetCursor() are being called with the point not being
translated to the frame's local coordinate space


git-svn-id: svn://10.0.0.236/trunk@15002 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 06:31:55 +00:00
jfrancis%netscape.com
104d6e8c39 missed a source file. added nsView.cpp to project
git-svn-id: svn://10.0.0.236/trunk@15001 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 06:28:50 +00:00
jfrancis%netscape.com
4f2c73564d shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@15000 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 06:05:20 +00:00
jfrancis%netscape.com
76a3c8bde7 shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@14999 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:53:16 +00:00
jfrancis%netscape.com
47ed79a28a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14998 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:52:48 +00:00
troy%netscape.com
c80a6013b3 Removed some #include lines that are no longer needed
git-svn-id: svn://10.0.0.236/trunk@14997 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:22:45 +00:00
jfrancis%netscape.com
4906266ba1 moved view code to view project, included view lib here.
git-svn-id: svn://10.0.0.236/trunk@14996 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:21:57 +00:00
jfrancis%netscape.com
432fc0cc14 moved view code to view project, included view lib here
git-svn-id: svn://10.0.0.236/trunk@14995 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:15:24 +00:00
jfrancis%netscape.com
a949aa4d62 adding view to layout projects
git-svn-id: svn://10.0.0.236/trunk@14994 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:14:39 +00:00
morse%netscape.com
c44866825a fixes for change-of-password form
git-svn-id: svn://10.0.0.236/trunk@14993 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:03:36 +00:00
jfrancis%netscape.com
afed7afdb1 mac shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@14992 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:02:56 +00:00
jfrancis%netscape.com
91f873177c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14991 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:02:20 +00:00
morse%netscape.com
90633f4353 fix for single signon
git-svn-id: svn://10.0.0.236/trunk@14990 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 05:01:32 +00:00
pavlov%pavlov.net
9d41cbaec7 small bug fix.
git-svn-id: svn://10.0.0.236/trunk@14989 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 04:42:03 +00:00
troy%netscape.com
dc4177b6c9 Fixed ref counting problem in stub_GraphProgressDestroy()
git-svn-id: svn://10.0.0.236/trunk@14988 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 04:28:06 +00:00
pavlov%pavlov.net
296103f679 initial files for the tab widget
git-svn-id: svn://10.0.0.236/trunk@14987 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 04:27:32 +00:00
rickg%netscape.com
caa5d11b3c fix or partial fix to lots of bugs
git-svn-id: svn://10.0.0.236/trunk@14986 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 03:42:54 +00:00
pavlov%pavlov.net
b4cde81bb0 make sure we return a value for all of the NS_IMETHODIMP methods
git-svn-id: svn://10.0.0.236/trunk@14985 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 03:30:49 +00:00
pavlov%pavlov.net
b9b7dff7f0 unrevert the changes reverted earlier (build with static gtk libraries)
git-svn-id: svn://10.0.0.236/trunk@14984 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 03:25:59 +00:00
despotdaemon%netscape.com
6a92d7d074 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14983 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 02:36:57 +00:00
despotdaemon%netscape.com
d2acf69e40 Pseudo-automatic update of changes made by claudius@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14982 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 02:30:38 +00:00
alecf%netscape.com
fab1d9d3bb nsTimerExpired should be a C function that returns a gint (i.e. a GtkFunction)
which returns 0 on success


git-svn-id: svn://10.0.0.236/trunk@14981 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 02:03:57 +00:00
akkana%netscape.com
613c9d4260 more fixes for the irix autoconf build
git-svn-id: svn://10.0.0.236/trunk@14980 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 02:00:14 +00:00
mjudge%netscape.com
07924a7062 build bustage
git-svn-id: svn://10.0.0.236/trunk@14979 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:17:16 +00:00
saari%netscape.com
6f8340d89e Just a comment on nsWindow's mBounds member
git-svn-id: svn://10.0.0.236/trunk@14978 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:10:44 +00:00
buster%netscape.com
7b0e777c46 removed obsolete include of nsTableFrame
git-svn-id: svn://10.0.0.236/trunk@14977 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:04:43 +00:00
beard%netscape.com
f4e8d45219 xpcomDebug.exp only included in debug target, xpcom.exp in both.
git-svn-id: svn://10.0.0.236/trunk@14976 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:04:17 +00:00
buster%netscape.com
055399aac1 handles "height" attribute
git-svn-id: svn://10.0.0.236/trunk@14975 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:03:45 +00:00
beard%netscape.com
beeb760db7 Added nsServiceManager static method exports.
git-svn-id: svn://10.0.0.236/trunk@14974 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:03:42 +00:00
buster%netscape.com
6f5b201dbe implemented table height algorithms. also made a slight modification to
the way a table finds its container's width.


git-svn-id: svn://10.0.0.236/trunk@14973 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:01:25 +00:00
kin%netscape.com
d2516ee78e Updated nsITransaction and nsITransactionManager to match current spec.
git-svn-id: svn://10.0.0.236/trunk@14972 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 00:43:07 +00:00
kin%netscape.com
24520dc1e1 Added nsITransactionListener.h to list of EXPORTS.
git-svn-id: svn://10.0.0.236/trunk@14971 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 00:42:20 +00:00
kin%netscape.com
91002c329b Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@14970 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 00:41:43 +00:00
mjudge%netscape.com
785aeb3d68 editor changes not in inclusion
git-svn-id: svn://10.0.0.236/trunk@14968 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 00:02:11 +00:00
mjudge%netscape.com
8422a7b923 editor changes
git-svn-id: svn://10.0.0.236/trunk@14967 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 00:01:15 +00:00
despotdaemon%netscape.com
72a165b2bd Pseudo-automatic update of changes made by glynn@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14966 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 23:55:32 +00:00
mjudge%netscape.com
1961369c00 fixing future possible bustage even though tree is red. I will watch carefully
git-svn-id: svn://10.0.0.236/trunk@14965 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 23:25:58 +00:00
srinivas%netscape.com
c33c58e68b Fixed a typo in previous checkin.
git-svn-id: svn://10.0.0.236/trunk@14964 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 23:09:01 +00:00
srinivas%netscape.com
c02c8d8708 Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx).
Checkin for Eric Olson <Eric.Olson@Sympatico.CA> and Henry <sobotka@axess.com>.


git-svn-id: svn://10.0.0.236/trunk@14963 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 22:20:31 +00:00
kin%netscape.com
8f709a1d84 Changed all occurrences of transactionManager to nsTransactionManager.
git-svn-id: svn://10.0.0.236/trunk@14962 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:58:58 +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
kin%netscape.com
f5e4fd9944 Renamed transactionManager.{cpp,h} to nsTransactionManager.{cpp,h}.
git-svn-id: svn://10.0.0.236/trunk@14960 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:51:57 +00:00
kin%netscape.com
cf4c82ae3a Renamed files to nsTransactionManager.{h,cpp}.
git-svn-id: svn://10.0.0.236/trunk@14959 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:51:13 +00:00
kin%netscape.com
c1a1122be7 Initial checkin of file.
git-svn-id: svn://10.0.0.236/trunk@14958 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:43:21 +00:00
msw%gimp.org
bd8ac5c0c7 This is a hack to service the PLEventQueue that nsWebShell posts events to
such as anchor clicking.  This is only a temporary fix.  We need some other
way to do this.


git-svn-id: svn://10.0.0.236/trunk@14957 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 21:12:02 +00:00
law%netscape.com
f5fae695c7 Adding support for 'view source'
git-svn-id: svn://10.0.0.236/trunk@14956 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 20:41:01 +00:00
scc%netscape.com
5c994d7aa4 some changes to better conform to our coding standards; removed the facility for assigning in without AddRef-ing, outside of the context of a function call; added some comparison operators for working with raw pointers; preprocessor-ized the bool type for compilers without
git-svn-id: svn://10.0.0.236/trunk@14955 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 20:26:12 +00:00
law%netscape.com
c7f2e93dfe Adding support for 'view source'
git-svn-id: svn://10.0.0.236/trunk@14954 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 19:15:30 +00:00
kipp%netscape.com
38fb3310d6 Improved the regression dump data somewhat
git-svn-id: svn://10.0.0.236/trunk@14953 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 18:51:53 +00:00
kipp%netscape.com
6eb8511825 Override FrameForPoint so that floaters/bullets get events
git-svn-id: svn://10.0.0.236/trunk@14952 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 18:09:57 +00:00
kipp%netscape.com
9ac80e4d0f Factored out FrameForPoint code into one that takes a particular list
git-svn-id: svn://10.0.0.236/trunk@14951 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 18:09:03 +00:00
kipp%netscape.com
84410733de Made nsString::Insert actually support the count=-1 default argument
git-svn-id: svn://10.0.0.236/trunk@14950 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:58:30 +00:00
kipp%netscape.com
7380c40198 Added XMLQuote to quote special characters; changed MakeFrameName to avoid needing quoting
git-svn-id: svn://10.0.0.236/trunk@14949 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:55:22 +00:00
kipp%netscape.com
f8626bbd26 Fixed up the web-crawler to only trigger crawls on a document being loaded, not on one of it's images; support -o even w/o a filter; use the regression dump for -o instead of list
git-svn-id: svn://10.0.0.236/trunk@14948 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:24:13 +00:00
kipp%netscape.com
9642cfd1e6 Removed some noise
git-svn-id: svn://10.0.0.236/trunk@14947 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:23:27 +00:00
kipp%netscape.com
b527c7f026 Added DumpRegressionData; revised ListTag; added GetFrameName
git-svn-id: svn://10.0.0.236/trunk@14946 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:22:29 +00:00
cls%seawood.org
a96c8177ca Ooops, got my versions of configure.in confused.
git-svn-id: svn://10.0.0.236/trunk@14945 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:16:56 +00:00
cls%seawood.org
054c58515e Pavlov's changes are reverted until the license issues with aclocal.m4 have been settled.
git-svn-id: svn://10.0.0.236/trunk@14944 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 16:49:09 +00:00
cls%seawood.org
a3fde4f8bc Oops, premature commit last time. Try this one.
git-svn-id: svn://10.0.0.236/trunk@14941 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 06:33:10 +00:00
raman%netscape.com
841ba0b23b Backing out my last changes.
git-svn-id: svn://10.0.0.236/trunk@14940 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 06:31:14 +00:00
cls%seawood.org
5755d2cc70 Moved nsHTMLTags.h from EXTRA_EXPORTS to EXPORTS.
git-svn-id: svn://10.0.0.236/trunk@14939 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 06:23:35 +00:00
cls%seawood.org
414a725af1 Start pulling aclocal.m4 with the build
git-svn-id: svn://10.0.0.236/trunk@14938 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:44:20 +00:00
kipp%netscape.com
c6936d76d1 Fix build bustage (hopefully)
git-svn-id: svn://10.0.0.236/trunk@14937 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:37:59 +00:00
raman%netscape.com
bec5f1bf26 Added caps (capabilities based secure system for JVM plug-in and JS) to the build process
git-svn-id: svn://10.0.0.236/trunk@14936 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:36:46 +00:00
msw%gimp.org
3161812f83 Implemented the start of the text widget onkey callback. You can now type
URLs in the location field of xpviewer and hit enter.


git-svn-id: svn://10.0.0.236/trunk@14935 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:33:13 +00:00
cls%seawood.org
e2a4876f5e Removed the automatic check for the generate target. If we're going to check generated files into cvs, don't continue to generate them in the build
git-svn-id: svn://10.0.0.236/trunk@14934 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:23:42 +00:00
raman%netscape.com
f100d4f1c2 Changes to make caps into a DLL. Defined all strings in this file until there is a replacement for allxpstr.h
git-svn-id: svn://10.0.0.236/trunk@14933 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:22:28 +00:00
raman%netscape.com
5c8396fb31 Deleted obsolete messages
git-svn-id: svn://10.0.0.236/trunk@14932 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:21:37 +00:00
raman%netscape.com
d69036224b Deleted obsolete messages
git-svn-id: svn://10.0.0.236/trunk@14931 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 05:21:36 +00:00
pavlov%pavlov.net
8d18addb26 add --enable-static-gtk flag which will link the binaries with static gtk
libraries.  added aclocal.m4 with gtk's gtk check stuff which checks for GTK
properly.


git-svn-id: svn://10.0.0.236/trunk@14930 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 04:35:31 +00:00
troy%netscape.com
ac75bce1c1 Changed to make sure we mark the absolutely positioned element's view as
having transparent content if the visibility is hidden


git-svn-id: svn://10.0.0.236/trunk@14929 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 04:26:51 +00:00
troy%netscape.com
72f91661b7 Fixed it so that we don't ignore painting child frames of a parent frame
thas has "visibility:hidden", because child elements can override their
parent's visibility


git-svn-id: svn://10.0.0.236/trunk@14928 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 03:52:29 +00:00
joki%netscape.com
b01a5a7be7 Adding more backwards compat DOM support (event.which, pageX, and pageY)
git-svn-id: svn://10.0.0.236/trunk@14927 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 03:20:21 +00:00
cls%seawood.org
dd13058b68 Since $(DEPENDENCIES) is not generated for OS2 or NT, do not try to include the file.
git-svn-id: svn://10.0.0.236/trunk@14926 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 03:09:23 +00:00
cls%seawood.org
c3c39fac3d Don't bother checking for X libs or X toolkits when --without-x is specified.
git-svn-id: svn://10.0.0.236/trunk@14925 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 03:08:30 +00:00
akkana%netscape.com
3dc6756b1d Get Irix autoconf build a bit farther along -- thanks to var@sgi.com
git-svn-id: svn://10.0.0.236/trunk@14924 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 02:24:28 +00:00
kin%netscape.com
e9b5fcd32e Added stubs.
git-svn-id: svn://10.0.0.236/trunk@14923 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 02:05:16 +00:00
kin%netscape.com
88ba816ef0 Updated documenation.
git-svn-id: svn://10.0.0.236/trunk@14922 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 01:40:53 +00:00
troy%netscape.com
e82def0806 Fix for bug #1265. For incremental reflow now checks for the case where the new
height is smaller than the old height and makes sure we erase the entire area


git-svn-id: svn://10.0.0.236/trunk@14921 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 01:39:07 +00:00
joki%netscape.com
471346da0d Fire button on every click as opposed to every other.
git-svn-id: svn://10.0.0.236/trunk@14920 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 01:31:22 +00:00
joki%netscape.com
63292505da Modify event flow to avoid walking into trashed frames.
git-svn-id: svn://10.0.0.236/trunk@14919 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 00:43:36 +00:00
joki%netscape.com
eb8fbe519b Prevent multiple firings of DOM click events on buttons.
git-svn-id: svn://10.0.0.236/trunk@14918 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 00:42:38 +00:00
kin%netscape.com
af74d44f60 Fixed DEPTH entries.
git-svn-id: svn://10.0.0.236/trunk@14917 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 00:12:56 +00:00
kipp%netscape.com
475de74c3e Use new methods in nsHTMLReflowState to discover the proper width to base the text-indent percentage on (bug #1048)
git-svn-id: svn://10.0.0.236/trunk@14915 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 00:00:18 +00:00
kipp%netscape.com
d2c756191e Added two new utility methods on nsHTMLReflowState for finding a containing block's reflow state and for finding a containing blocks content width
git-svn-id: svn://10.0.0.236/trunk@14914 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:59:49 +00:00
wtc%netscape.com
d3ec260e4d NEXT port. Contributed by Balazs Pataki (balazs.pataki@sztaki.hu).
git-svn-id: svn://10.0.0.236/trunk@14911 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:53:21 +00:00
michaelp%netscape.com
e0cadc24c9 fixed bug where a view with opacity set to 0.0f would cause the area where it
is to never be drawn.


git-svn-id: svn://10.0.0.236/trunk@14910 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:50:28 +00:00
troy%netscape.com
3fb74be141 Changed Reflow() to make sure that the child is sized at least as big as the max size
we gave it as part of the reflow command


git-svn-id: svn://10.0.0.236/trunk@14909 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:49:44 +00:00
despotdaemon%netscape.com
55accca3f1 Pseudo-automatic update of changes made by hshaw@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14908 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:40:13 +00:00
briano%netscape.com
4b7e76ea29 Took out the superfluous second inclusion of rules.mk.
git-svn-id: svn://10.0.0.236/trunk@14907 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:18:29 +00:00
briano%netscape.com
59981c7ed4 Change for QNX. Might as well get it in while this file still exists....
git-svn-id: svn://10.0.0.236/trunk@14906 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:16:29 +00:00
despotdaemon%netscape.com
8d09a5cf40 Pseudo-automatic update of changes made by friedman@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14905 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:02:48 +00:00
srinivas%netscape.com
6568d14851 Conditionally compile pthread priority call;
checkin for Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@14904 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:58:55 +00:00
srinivas%netscape.com
9d208681d0 Enable use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@14903 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:57:33 +00:00
srinivas%netscape.com
3274bf855b Implement poll for those platforms that don't support the system call.
git-svn-id: svn://10.0.0.236/trunk@14902 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:56:06 +00:00
srinivas%netscape.com
6e404c3359 Enable ELF builds and use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@14901 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:54:11 +00:00
srinivas%netscape.com
f8ae164f7d Enable ELF builds FreeBSD 3.0.0-RELEASE; checkin for
Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@14900 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:51:51 +00:00
kin%netscape.com
661e233361 Makefile.in and config modifications to allow us to build the new NGT based
editor.


git-svn-id: svn://10.0.0.236/trunk@14899 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:35:21 +00:00
kin%netscape.com
76b3eae965 Initial checkin of files.
git-svn-id: svn://10.0.0.236/trunk@14898 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:29:44 +00:00
troy%netscape.com
d1175e5cd7 Fixed SetInitialChildList() so "frame" doesn't get reset after processing
the legend frame


git-svn-id: svn://10.0.0.236/trunk@14896 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:14:55 +00:00
cls%seawood.org
abd049c6b1 Added include for platform.h inside MOZILLA_CLIENT ifdef. Approved by shaver@netscape.com
git-svn-id: svn://10.0.0.236/trunk@14895 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:14:44 +00:00
buster%netscape.com
4c8bd867e7 Proportional column width based on HTML attributes is now implemented. proportional "multilength" syntax ("1*")
now works on COL and COLGROUP.  Bug 1128.


git-svn-id: svn://10.0.0.236/trunk@14894 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:10:02 +00:00
mjudge%netscape.com
2b3d3c6797 smart pointer updates
git-svn-id: svn://10.0.0.236/trunk@14893 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:09:52 +00:00
locka%iol.ie
ca58a74aad Added #define that removes requirement for atl.dll to be installed on host machine
git-svn-id: svn://10.0.0.236/trunk@14892 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:04:58 +00:00
cls%seawood.org
c8ab8eae29 Added -DMOZILLA_CLIENT define. Fixed problem with ios::binary cache values. Removed directory already exists error when manually making objdirs.
git-svn-id: svn://10.0.0.236/trunk@14891 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 21:54:38 +00:00
pavlov%pavlov.net
11495b160d Made all of these icons transparent. This should make things look much nicer
on different colored toolbars.


git-svn-id: svn://10.0.0.236/trunk@14889 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 21:20:50 +00:00
mcmullen%netscape.com
3914646b67 Fixed some warnings.
git-svn-id: svn://10.0.0.236/trunk@14887 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 20:49:15 +00:00
pnunn%netscape.com
5213031269 All image container states in il_image_complete() are now handled explicitly in
a switch, not by asserts. -pn


git-svn-id: svn://10.0.0.236/trunk@14885 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 20:24:40 +00:00
kin%netscape.com
31ec7310fa Changes neccessary to build on Unix.
git-svn-id: svn://10.0.0.236/trunk@14884 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 20:20:08 +00:00
kin%netscape.com
c265209704 Added pull_editor target.
git-svn-id: svn://10.0.0.236/trunk@14883 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 20:10:12 +00:00
pinkerton%netscape.com
aad7c2c534 add platform.h
git-svn-id: svn://10.0.0.236/trunk@14882 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 19:19:02 +00:00
mjudge%netscape.com
b7621fa804 changes to editor
git-svn-id: svn://10.0.0.236/trunk@14881 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 19:18:47 +00:00
kin%netscape.com
f7bae9c38d Fixes that allow us to compile on Linux.
git-svn-id: svn://10.0.0.236/trunk@14880 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 19:16:10 +00:00
kin%netscape.com
d059afc819 Added COM_auto_ptr.h to EXPORTS list.
git-svn-id: svn://10.0.0.236/trunk@14879 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 19:14:56 +00:00
cls%seawood.org
53616ae431 Updated checks for solaris. Started using platform.h.
git-svn-id: svn://10.0.0.236/trunk@14878 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 18:32:52 +00:00
cls%seawood.org
b648eda516 Changed LCFLAGS to CFLAGS
git-svn-id: svn://10.0.0.236/trunk@14877 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 18:29:18 +00:00
cls%seawood.org
81a132b6f5 Updated check for Solaris and added multiple include check
git-svn-id: svn://10.0.0.236/trunk@14876 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 18:28:27 +00:00
cls%seawood.org
57c8cfc299 Only use libC is not using the GNU c++ compiler.
git-svn-id: svn://10.0.0.236/trunk@14875 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 17:29:38 +00:00
troy%netscape.com
6d4ad48e4d Removed spaces around '::'
git-svn-id: svn://10.0.0.236/trunk@14874 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 16:20:39 +00:00
jfrancis%netscape.com
19903b9dd0 shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@14873 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 06:36:44 +00:00
buster%netscape.com
cb259330a3 impl of DOM table.deleteRow
git-svn-id: svn://10.0.0.236/trunk@14872 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 06:30:13 +00:00
troy%netscape.com
3a125ad21a Added some constants to use when referring to child list name indices
git-svn-id: svn://10.0.0.236/trunk@14871 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 06:13:58 +00:00
buster%netscape.com
894ea8272b impl for DOM table.InsertRow
git-svn-id: svn://10.0.0.236/trunk@14870 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 06:06:37 +00:00
terry%netscape.com
6127274b46 Wasn't handling spaces in components or versions correctly.
git-svn-id: svn://10.0.0.236/trunk@14869 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:38:43 +00:00
cls%seawood.org
ede0c5f277 Added DLL_SUFFIX fixes. Thanks to Jeremy Lea <reg@shale.csir.co.za> for the patch.
git-svn-id: svn://10.0.0.236/trunk@14868 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:35:46 +00:00
joki%netscape.com
8eaf3892a5 Adding new generated DOM header
git-svn-id: svn://10.0.0.236/trunk@14867 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:34:23 +00:00
cls%seawood.org
1692c26f63 Added DLL_SUFFIX fixes. Thanks to Jeremy Lea <reg@shale.csir.co.za> for the patches.
Removed dummy Makefiles from AC_OUTPUT and called mkdir manually.


git-svn-id: svn://10.0.0.236/trunk@14866 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:34:13 +00:00
troy%netscape.com
8c7ca57e9f Changed Init() to addref mAppShell and mPrefs, because that's what the other
overloaded Init() does and because the destructor will do a release


git-svn-id: svn://10.0.0.236/trunk@14865 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:31:03 +00:00
joki%netscape.com
f1462f4d55 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)


git-svn-id: svn://10.0.0.236/trunk@14864 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:25:26 +00:00
morse%netscape.com
f48f2d5568 update for single signon
git-svn-id: svn://10.0.0.236/trunk@14863 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:59:50 +00:00
janc%netscape.com
11a796f577 New css parser test
git-svn-id: svn://10.0.0.236/trunk@14862 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:42:37 +00:00
janc%netscape.com
145c53c8dc update css parser test
git-svn-id: svn://10.0.0.236/trunk@14861 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:40:13 +00:00
janc%netscape.com
84bfaf5802 update CSS Parser test
git-svn-id: svn://10.0.0.236/trunk@14860 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:39:13 +00:00
morse%netscape.com
8b86d09e16 update for single signon
git-svn-id: svn://10.0.0.236/trunk@14859 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:38:13 +00:00
morse%netscape.com
225430c9fb updates for single signon
git-svn-id: svn://10.0.0.236/trunk@14858 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:35:47 +00:00
troy%netscape.com
9cb560bf11 Removed mFlags from nsBodyFrame and now we use the mFlags defined by
nsBlockFrame


git-svn-id: svn://10.0.0.236/trunk@14857 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:16:03 +00:00
troy%netscape.com
e6e0bfb280 Fixed a couple of cases where I missed calling the base class
git-svn-id: svn://10.0.0.236/trunk@14856 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 04:06:19 +00:00
pavlov%pavlov.net
84e44d7068 made the gdkcolor to nscolor code a tad cleaner. removed the
gtk_layout_freeze and gtk_layout_thaw calls as the object being resized was
not always a layout.


git-svn-id: svn://10.0.0.236/trunk@14855 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 03:58:54 +00:00
pavlov%pavlov.net
d541dcc7f7 Impliment SetLineStyle and DrawPolyline
git-svn-id: svn://10.0.0.236/trunk@14854 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 03:56:41 +00:00
troy%netscape.com
1d92304a59 Removed mChildCount member data
git-svn-id: svn://10.0.0.236/trunk@14853 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 03:44:08 +00:00
troy%netscape.com
221b0b3bfd Made sure the block's SetFlags() member function is called. This fixes shrink
wrapping so it works again


git-svn-id: svn://10.0.0.236/trunk@14852 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 03:27:04 +00:00
jfrancis%netscape.com
da170b8a62 more shared lib conversion work.
git-svn-id: svn://10.0.0.236/trunk@14851 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:44:02 +00:00
jfrancis%netscape.com
910475eaff more shared lib conversion work
git-svn-id: svn://10.0.0.236/trunk@14850 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:43:45 +00:00
jfrancis%netscape.com
65163288e7 Shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@14849 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:33:58 +00:00
jfrancis%netscape.com
cea6b1e716 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14848 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:33:41 +00:00
peterl%netscape.com
0604ddadab cursor style cleanup
git-svn-id: svn://10.0.0.236/trunk@14847 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:23:39 +00:00
beard%netscape.com
c300ac1865 Checking out mozilla/modules/libpref from the tip.
git-svn-id: svn://10.0.0.236/trunk@14846 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:20:16 +00:00
peterl%netscape.com
01c47ed171 cleaned up cursor style handling
git-svn-id: svn://10.0.0.236/trunk@14845 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:11:54 +00:00
peterl%netscape.com
8f073ecf34 use proper pseudo tag for text style contexts
git-svn-id: svn://10.0.0.236/trunk@14844 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:11:27 +00:00
peterl%netscape.com
95f66c00f4 cleaned up cursor handling
git-svn-id: svn://10.0.0.236/trunk@14843 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:10:45 +00:00
peterl%netscape.com
79bb1b728a added text pseudo tag
git-svn-id: svn://10.0.0.236/trunk@14842 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:09:53 +00:00
peterl%netscape.com
0b3a3301bc remove style_cursor_inherit
git-svn-id: svn://10.0.0.236/trunk@14841 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:08:45 +00:00
peterl%netscape.com
733c6bf720 fixed comment
git-svn-id: svn://10.0.0.236/trunk@14840 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:08:30 +00:00
peterl%netscape.com
d2592b689c tweaked x-height guess for true-type fonts
git-svn-id: svn://10.0.0.236/trunk@14839 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:07:40 +00:00
beard%netscape.com
4d5736b807 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14838 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:54:25 +00:00
janc%netscape.com
400672e2a6 New CSS Parser test.
git-svn-id: svn://10.0.0.236/trunk@14837 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:53:02 +00:00
beard%netscape.com
a2c5d6d24e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14836 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:46:22 +00:00
cls%seawood.org
2912fcef5c Added #include <iostream.h> to ios::binary check.
git-svn-id: svn://10.0.0.236/trunk@14835 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:38:20 +00:00
beard%netscape.com
f3218e3cf8 Took out PL_VectorAssertValid for non-debug build.
git-svn-id: svn://10.0.0.236/trunk@14834 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:36:28 +00:00
beard%netscape.com
ffcb90e3f3 Added xpcomDebug.exp to xpcomDebug.shlb target.
git-svn-id: svn://10.0.0.236/trunk@14833 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:35:54 +00:00
beard%netscape.com
eb9aa87814 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14832 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:28:37 +00:00
janc%netscape.com
9406c923de New CSS Parser Test
git-svn-id: svn://10.0.0.236/trunk@14831 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:24:30 +00:00
janc%netscape.com
0f44af8a5f New CSS Parser test.
git-svn-id: svn://10.0.0.236/trunk@14830 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 01:15:17 +00:00
janc%netscape.com
ef3968a967 New CSS Parser test
git-svn-id: svn://10.0.0.236/trunk@14829 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 00:58:49 +00:00
jfrancis%netscape.com
b3f2408262 shared lib conversion, phase 1
git-svn-id: svn://10.0.0.236/trunk@14828 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 00:55:05 +00:00
jfrancis%netscape.com
5fd90b887b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14827 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 00:54:26 +00:00
mjudge%netscape.com
f1990d8cbf editor changes will not affect build. working on typing
git-svn-id: svn://10.0.0.236/trunk@14826 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 00:49:02 +00:00
pinkerton%netscape.com
7f42b90636 Don't use screenbits.bounds for determining constraints on moving or growing windows. Use bounding rect of GetGrayRgn().
git-svn-id: svn://10.0.0.236/trunk@14825 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 00:46:22 +00:00
amusil%netscape.com
be4a82caa2 Bug fix for 1201. Now use the size parameters from the object tag as a determinant of size.
git-svn-id: svn://10.0.0.236/trunk@14824 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 23:29:20 +00:00
buster%netscape.com
91eb39eb1e impl for DOM methods table.create(THead|TFoot|Caption) and deleteCaption
git-svn-id: svn://10.0.0.236/trunk@14823 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 23:09:59 +00:00
locka%iol.ie
c7a10c77bd Added a default page to load when control is first created
git-svn-id: svn://10.0.0.236/trunk@14822 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:39:31 +00:00
locka%iol.ie
dacae6cd8b Added MozillaControl.html to release folder
git-svn-id: svn://10.0.0.236/trunk@14821 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:38:43 +00:00
dcone%netscape.com
02dc0521cb updated steve clarks changes, added genericElementCollection
git-svn-id: svn://10.0.0.236/trunk@14820 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:38:03 +00:00
locka%iol.ie
7222ab1c34 Added default page to load when control is first shown (it will improve!)
git-svn-id: svn://10.0.0.236/trunk@14819 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:37:10 +00:00
cls%seawood.org
06cc09cf31 Removed redundant test. Thanks to Chris <dexter@dns.ci.columbia.mo.us> for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@14818 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:32:35 +00:00
kipp%netscape.com
18241f0edb Revised max-element-size computation somewhat so that floaters are accounted for better
git-svn-id: svn://10.0.0.236/trunk@14817 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:28:51 +00:00
buster%netscape.com
5b723aeb9c new module
git-svn-id: svn://10.0.0.236/trunk@14816 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:20:59 +00:00
cls%seawood.org
355a8b20f1 CFLAGS wasn't getting set properly due to ordering problems with config.mk
git-svn-id: svn://10.0.0.236/trunk@14815 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 22:20:25 +00:00
buster%netscape.com
673f0e2046 renamed TableElementCollection to GenericElementCollection, and factored it into
it's own module for reuse.


git-svn-id: svn://10.0.0.236/trunk@14814 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 21:40:38 +00:00
alecf%netscape.com
d04489f3ff make build instructions a little more clear, and add URL
for more information


git-svn-id: svn://10.0.0.236/trunk@14811 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 20:00:57 +00:00
pinkerton%netscape.com
d99502389c Added comments that these are the default implementations and that they can (and should) be replaced by embedding applications.
git-svn-id: svn://10.0.0.236/trunk@14810 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:34:47 +00:00
pinkerton%netscape.com
a25d78a7ef since nsMacMessagePump is back (as a default imp), export it as well.
git-svn-id: svn://10.0.0.236/trunk@14809 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:22:05 +00:00
pinkerton%netscape.com
8b26bfe9a2 moving default imps of message pump and app shell back into widget. This uses those instead of its own.
git-svn-id: svn://10.0.0.236/trunk@14808 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:21:29 +00:00
pinkerton%netscape.com
7982d20f9b moving default imps of message pump and app shell back into widget. This once again uses those instead of providing its own.
git-svn-id: svn://10.0.0.236/trunk@14807 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:20:57 +00:00
pinkerton%netscape.com
ec770e398c Move default imps of AppShell and MessagePump back into widget. Clients may still provide their own.
git-svn-id: svn://10.0.0.236/trunk@14806 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:20:06 +00:00
pinkerton%netscape.com
13254b3c93 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14805 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 17:19:01 +00:00
cls%seawood.org
fc53174a4f Added check for ios::binary which seems to just be the new ANSI/ISO standard for ios::bin .
git-svn-id: svn://10.0.0.236/trunk@14804 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 16:53:02 +00:00
troy%netscape.com
663a7d26dc Changed the body to be a subclass of nsBlockFrame rather than contain a
block frame


git-svn-id: svn://10.0.0.236/trunk@14803 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 16:37:39 +00:00
buster%netscape.com
5bd3d8a5e5 implementation of rows() and tBodies()
git-svn-id: svn://10.0.0.236/trunk@14802 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 16:32:29 +00:00
kipp%netscape.com
fb66524089 Made SetTitle call ReduceEntities for bug #1398
git-svn-id: svn://10.0.0.236/trunk@14801 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 16:29:25 +00:00
blizzard%appliedtheory.com
5477366e93 clean up transparent image rendering. Also, make sure that the XImage is
free'ed after rendering and that the gc is placed back into a sane state.


git-svn-id: svn://10.0.0.236/trunk@14800 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 15:32:13 +00:00
msw%gimp.org
2e2473f9bc First pass of alpha support in images by Chris Blizzard, fixed for endian
problems.  There is still a little work left to do on this.


git-svn-id: svn://10.0.0.236/trunk@14799 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 09:08:10 +00:00
cls%seawood.org
1d0cab6cc7 Silly mistake. Yes, we still want to call buildwho.pl
git-svn-id: svn://10.0.0.236/trunk@14798 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:58:56 +00:00
msw%gimp.org
e7ea193c8d Implemented Invalidate class members, reverted Resize funkiness
git-svn-id: svn://10.0.0.236/trunk@14797 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:57:27 +00:00
troy%netscape.com
af98c8b1d4 Fixed CreateWrapperFrame() so it resets the geometric and content parent pointers
of the frame being wrapped


git-svn-id: svn://10.0.0.236/trunk@14796 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:47:06 +00:00
jfrancis%netscape.com
22444ae9fd Added shared lib targets
git-svn-id: svn://10.0.0.236/trunk@14795 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:38:30 +00:00
jfrancis%netscape.com
b80ec268a0 Shared Lib conversion
git-svn-id: svn://10.0.0.236/trunk@14794 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:37:42 +00:00
jfrancis%netscape.com
5b3e72e2a1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14793 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 05:26:28 +00:00
pierre%netscape.com
25fc70f015 fix build: added nsGenericDOMHTMLCollection.cpp
git-svn-id: svn://10.0.0.236/trunk@14790 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 03:23:02 +00:00
pierre%netscape.com
cf3a92af33 Fix Mac build: added nsIDOMNSDocument.h
git-svn-id: svn://10.0.0.236/trunk@14785 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 03:09:30 +00:00
troy%netscape.com
c3c113628e Fixed problem that caused Mac build to break
git-svn-id: svn://10.0.0.236/trunk@14784 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:37:47 +00:00
vidur%netscape.com
f99db26085 New interface nsIDOMNSDocument
git-svn-id: svn://10.0.0.236/trunk@14783 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:37:19 +00:00
vidur%netscape.com
0dae27ae27 Moved document.styleSheets from HTML-specific interface to generic Document interface
git-svn-id: svn://10.0.0.236/trunk@14782 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:19:28 +00:00
vidur%netscape.com
c67a7ad987 Changes to allow disabling and enabling of style sheets. Introduced ReconstructFrames to nsIFrameConstructor. CSSStyleSheets now remember their document. Temporary fix to allow text content inside CSS tables.
git-svn-id: svn://10.0.0.236/trunk@14781 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:14:38 +00:00
akkana%netscape.com
fb957e4152 An include was missing, breaking the Irix build
git-svn-id: svn://10.0.0.236/trunk@14780 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:09:12 +00:00
msw%gimp.org
2ecb1c8140 Resizes are faster, deleted old Motif code in nsWindow::Scroll
git-svn-id: svn://10.0.0.236/trunk@14779 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:30:27 +00:00
kipp%netscape.com
e8f8e26932 Added missing init of the net-file's refcnt
git-svn-id: svn://10.0.0.236/trunk@14777 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:21:04 +00:00
pinkerton%netscape.com
fa6c94850f fix in SupportsNativeWidgets() to draw so we can continue working, but things are not fixed for real. Read the comment in that method for more details.
git-svn-id: svn://10.0.0.236/trunk@14775 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:08:01 +00:00
kipp%netscape.com
fdd6ed4330 Fixed up incremental reflow for content-changed and removed floaters
git-svn-id: svn://10.0.0.236/trunk@14773 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:04:45 +00:00
kipp%netscape.com
a1d94ad86e Added in nsHTMLReflowState argument to ReflowFrame so that callers can properly initialize it
git-svn-id: svn://10.0.0.236/trunk@14772 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:04:21 +00:00
kipp%netscape.com
9b3d386967 Tidy up; added some tracing
git-svn-id: svn://10.0.0.236/trunk@14771 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:03:59 +00:00
kipp%netscape.com
e8e77859cb Removed DidReflow hack again
git-svn-id: svn://10.0.0.236/trunk@14770 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:03:41 +00:00
kipp%netscape.com
5e936efd0f Look on all lists for frames
git-svn-id: svn://10.0.0.236/trunk@14769 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:03:28 +00:00
pierre%netscape.com
672e98385c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14768 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:03:16 +00:00
cls%seawood.org
0659b986f3 Added check for DLL_SUFFIX. Thanks to Jeremy Lea <reg@shale.csir.co.za> for supplying the patch.
Changed gtk lib check to depend entirely upon the output from gtk-config.


git-svn-id: svn://10.0.0.236/trunk@14766 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 00:23:25 +00:00
wtc%netscape.com
26858ad13e Bugzilla bug #122: Checked in the NetBSD patch submitted by
Frank van der Linden (frank@wins.uva.nl).
ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/mozilla/diff-19981008.001
Modified files: Makefile, Makefile.in.


git-svn-id: svn://10.0.0.236/trunk@14765 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:44:55 +00:00
wtc%netscape.com
28d4ab0218 Added Alec Flett's comments on the version of glibc2/sparc whose
setjmp/longjmp works.


git-svn-id: svn://10.0.0.236/trunk@14764 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:39:10 +00:00
buster%netscape.com
15ea380e94 work in progress for full DOM support for tables
git-svn-id: svn://10.0.0.236/trunk@14763 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:31:24 +00:00
troy%netscape.com
34fb009ccf Changed Reflow() to deal with reflow commands targeted at the root frame
git-svn-id: svn://10.0.0.236/trunk@14761 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:16:03 +00:00
cls%seawood.org
c24fcea5b1 Added check to make sure user only specifies supported toolkits.
git-svn-id: svn://10.0.0.236/trunk@14760 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:02:40 +00:00
rods%netscape.com
2d2e1d5946 Added a check for a NULL nsIDeviceContextSpec. This happens when the user "cancels"
out of the print dialog.


git-svn-id: svn://10.0.0.236/trunk@14759 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 22:25:57 +00:00
rods%netscape.com
8cacf168e5 Added checks for null objects so printing would work.
git-svn-id: svn://10.0.0.236/trunk@14758 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 22:18:30 +00:00
cls%seawood.org
126128120e DSO_CFLAGS defaults to -fPIC only if using gcc, otherwise it's set to -KPIC.
git-svn-id: svn://10.0.0.236/trunk@14757 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 22:11:17 +00:00
raman%netscape.com
c88302e2b7 Bug fixes from MozillaClassic branch, plus changes to build caps without rdf
git-svn-id: svn://10.0.0.236/trunk@14756 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 21:57:13 +00:00
cls%seawood.org
0728bcc724 Actually set GTK_VERSION. Thanks to Chris <dexter@dns.ci.columbia.mo.us> for pointing out this oversight.
git-svn-id: svn://10.0.0.236/trunk@14755 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 21:50:33 +00:00
troy%netscape.com
62a6e8e1fe Made sure NS_BODY_THE_BODY flag is set for the body wrapper frame we
create for XML documents


git-svn-id: svn://10.0.0.236/trunk@14754 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 21:48:13 +00:00
troy%netscape.com
75c8461a9c Added null pointer check in DidSetStyleContext(). This keeps us from crashing
on XML documents


git-svn-id: svn://10.0.0.236/trunk@14753 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 21:45:24 +00:00
hyatt%netscape.com
8ee2eaab39 Tweaking interfaces to move some functionality out of the treedatamodel and into the base.
git-svn-id: svn://10.0.0.236/trunk@14750 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 20:53:27 +00:00
hyatt%netscape.com
018a52aac8 GetWidget and SetWidget weren't doing proper AddRef and Release. Fixed the
code.


git-svn-id: svn://10.0.0.236/trunk@14749 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 20:39:09 +00:00
hyatt%netscape.com
44a586b358 Added SetOpenState.
git-svn-id: svn://10.0.0.236/trunk@14748 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 20:11:06 +00:00
cyeh%netscape.com
baf1f2e463 remove dependence on mozilla classic style features (MOZ_MEDIUM)
git-svn-id: svn://10.0.0.236/trunk@14747 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 20:00:53 +00:00
hyatt%netscape.com
8779cbca5c Fixing SetOpenState so that it really works.
git-svn-id: svn://10.0.0.236/trunk@14746 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:53:05 +00:00
terry%netscape.com
d96970ce3c Patch by Andrew Anderson <andrew@redhat.com>. Many minor bugfixes and cleanup.
git-svn-id: svn://10.0.0.236/trunk@14745 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:43:50 +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
jfrancis%netscape.com
d8abdbf2f0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14742 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:30:48 +00:00
jfrancis%netscape.com
2703380897 adding scott's XP_COM auto_pointer header to xpcom exports.
git-svn-id: svn://10.0.0.236/trunk@14741 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:08:50 +00:00
terry%netscape.com
e7821fe48e mozillazine has changed its format; cope with the new format.
git-svn-id: svn://10.0.0.236/trunk@14740 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:58:24 +00:00
pinkerton%netscape.com
803d9e359a Turn on debugging info for message sink and text area cpp files.
git-svn-id: svn://10.0.0.236/trunk@14739 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:45:30 +00:00
cls%seawood.org
620b2a5402 Removed kludge that removed generated files from srcdir
git-svn-id: svn://10.0.0.236/trunk@14738 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:39:49 +00:00
troy%netscape.com
497e834006 Reinstated hack to have the placeholder frame forward the DidReflow() notification
to the floated frame. Needed until the block frame properly handles FirstChild()
and returns the list of floated frames


git-svn-id: svn://10.0.0.236/trunk@14737 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:33:21 +00:00
leaf%mozilla.org
d692bbe45b Removing include of icondata.h, which doesn't seem to exist for xpfe yet.
git-svn-id: svn://10.0.0.236/trunk@14736 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:17:33 +00:00
dcone%netscape.com
b6260dbbdd Updated and tested the taghandling finding mechanism
git-svn-id: svn://10.0.0.236/trunk@14735 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 18:13:09 +00:00
troy%netscape.com
62e0e3c71a Split class declaration out into a separate header file so the body frame
can be a derived class


git-svn-id: svn://10.0.0.236/trunk@14734 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 17:11:12 +00:00
buster%netscape.com
067db66354 added storage in styleTable for a column's width contribution from cells that
have colspan>1.


git-svn-id: svn://10.0.0.236/trunk@14733 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 06:47:24 +00:00
buster%netscape.com
aeee0e2b41 irrationally-specified table (one where the width attributes of various rows don't add up to the same value,
and/or to the width attribute on the table itself), the rule is to try to give the column the largest value
assigned to it by any cell intersecting that column.
Separate storage is maintained for a column's natural desired width (width from any source other than a cell
with a colspan) and the maximum contribution to the column's width from any cell with a colspan.


git-svn-id: svn://10.0.0.236/trunk@14732 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 06:46:00 +00:00
vidur%netscape.com
b0070d4d60 First pass to allow HTML forms to be embedded inside XML documents.
git-svn-id: svn://10.0.0.236/trunk@14731 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 06:16:17 +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
6c99d5aed6 Added ConvertToLocalCoordinates, WindowToLocalCoordinate for converting from window (device) coordinates to widget coordinates.
git-svn-id: svn://10.0.0.236/trunk@14729 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 23:30:19 +00:00
pavlov%pavlov.net
5ff1e9a95f removed unused files
git-svn-id: svn://10.0.0.236/trunk@14728 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 22:27:32 +00:00
beard%netscape.com
5ea03f970d Fixed SetThumbSize to not crash when mContext == NULL.
git-svn-id: svn://10.0.0.236/trunk@14727 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 21:58:09 +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
briano%netscape.com
f9d7538c2b MP-RAS 2.03 doesn't have sys/bitypes.h.
git-svn-id: svn://10.0.0.236/trunk@14725 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 21:47:01 +00:00
pavlov%pavlov.net
af89faa093 removed some debugging messages
git-svn-id: svn://10.0.0.236/trunk@14724 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 19:32:54 +00:00
pavlov%pavlov.net
97b10e9705 removed lots of printf's that were no longer needed
git-svn-id: svn://10.0.0.236/trunk@14723 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 19:32:36 +00:00
pavlov%pavlov.net
274e6e4f5e more work on the resizing. this works a tad better
git-svn-id: svn://10.0.0.236/trunk@14722 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 18:59:09 +00:00
pavlov%pavlov.net
49e4bc2251 Initial work on resizing. This works somewhat
git-svn-id: svn://10.0.0.236/trunk@14721 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 18:28:16 +00:00
msw%gimp.org
9aed506fc8 Oops - scrolling was set up backwards.
git-svn-id: svn://10.0.0.236/trunk@14720 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:30:31 +00:00
locka%iol.ie
bef4f8aa2f Added extra button
git-svn-id: svn://10.0.0.236/trunk@14719 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:18:36 +00:00
locka%iol.ie
061edb5b7e Added extra button to scan folders (still disabled)
git-svn-id: svn://10.0.0.236/trunk@14718 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:18:06 +00:00
locka%iol.ie
a72805248d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@14717 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:16:55 +00:00
locka%iol.ie
16420a9327 Added NPL header
git-svn-id: svn://10.0.0.236/trunk@14716 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:13:49 +00:00
locka%iol.ie
4e6321a667 Added NPL header
Fixed problem caused by typedef int32 disappearing from winsock.h


git-svn-id: svn://10.0.0.236/trunk@14715 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:09:20 +00:00
locka%iol.ie
10a2edf355 Added NPL header
Added extra diagnostics


git-svn-id: svn://10.0.0.236/trunk@14714 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:07:04 +00:00
locka%iol.ie
daada24abe Fixed trace bug
Added NPL header


git-svn-id: svn://10.0.0.236/trunk@14713 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 17:04:58 +00:00
cls%seawood.org
bf6ec432b8 Better handling of the -c -o problem. Thanks to Tim Rice <tim@trr.metro.NET> for the patch
git-svn-id: svn://10.0.0.236/trunk@14712 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 09:55:01 +00:00
cls%seawood.org
283d3705d8 Added --with-gtk-config=$location_of_gtk-config.
Added version checking for gtk.
Added check for GNU CC for setting DSO_LDOPTS for solaris and freebsd.
If compiler doesn't support -c -o, then use ${topsrcdir}/build/{hcc,hcpp}.
Cleaned up missing nspr error message.


git-svn-id: svn://10.0.0.236/trunk@14711 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 09:42:57 +00:00
cls%seawood.org
93ddf67399 Added GTK_CONFIG
git-svn-id: svn://10.0.0.236/trunk@14710 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 09:12:37 +00:00
cls%seawood.org
88a10a469b Build xpfe by default now.
git-svn-id: svn://10.0.0.236/trunk@14709 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 09:12:03 +00:00
cls%seawood.org
00192c135f Added build/hcc & build/hcpp to pull_autoconf
git-svn-id: svn://10.0.0.236/trunk@14708 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 09:11:35 +00:00
briano%netscape.com
9eff91466b Fix for platforms that have PRInt64 defined as a struct.
git-svn-id: svn://10.0.0.236/trunk@14707 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:56:19 +00:00
briano%netscape.com
a91760319f Fix for overly anal-retentive compilers.
git-svn-id: svn://10.0.0.236/trunk@14706 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:47:18 +00:00
briano%netscape.com
4bbb85313c Fix to shut up the compilers on OSF/1.
git-svn-id: svn://10.0.0.236/trunk@14705 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:46:54 +00:00
briano%netscape.com
aef7ac5a48 Fix for a variety of nit-picking compilers.
git-svn-id: svn://10.0.0.236/trunk@14704 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:40:32 +00:00
briano%netscape.com
479882883f Fixes for AIXV3.
git-svn-id: svn://10.0.0.236/trunk@14703 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:39:27 +00:00
briano%netscape.com
28512fe231 Fixes for various non-Linux platforms that no one but me cares about.
git-svn-id: svn://10.0.0.236/trunk@14702 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:36:41 +00:00
briano%netscape.com
700c4a1593 Minor tweaks for 5.3 and 5.4.
git-svn-id: svn://10.0.0.236/trunk@14701 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:27:17 +00:00
briano%netscape.com
72c3310865 Support building on 3.2.5 in case someone has to.
git-svn-id: svn://10.0.0.236/trunk@14700 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 08:25:19 +00:00
pavlov%pavlov.net
257f830305 Impliment the key press events
git-svn-id: svn://10.0.0.236/trunk@14699 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:38:43 +00:00
msw%gimp.org
f7e05da556 Initial scrolling support - it's jumpy, but it works
git-svn-id: svn://10.0.0.236/trunk@14698 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:24:57 +00:00
mjudge%netscape.com
9946ad5ea4 fixing test app for lame windows compiler
git-svn-id: svn://10.0.0.236/trunk@14697 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:09:51 +00:00
mjudge%netscape.com
864d194dba adding the void ** back in. windows compiler is lame.
git-svn-id: svn://10.0.0.236/trunk@14696 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:08:56 +00:00
mjudge%netscape.com
ea2e4366fa editor changes that will not affect build! gooooo mike
git-svn-id: svn://10.0.0.236/trunk@14695 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:04:45 +00:00
mjudge%netscape.com
040421894c editor changes are being prepared. SHOULD NOT EFFECT BUILD
git-svn-id: svn://10.0.0.236/trunk@14694 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 07:04:02 +00:00
pavlov%pavlov.net
1280035af5 add and remove items correctly. this fixes crashes on pages with comboboxes
git-svn-id: svn://10.0.0.236/trunk@14693 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 06:22:03 +00:00
mjudge%netscape.com
148521fbb4 oops messed up the build. fixing...
git-svn-id: svn://10.0.0.236/trunk@14692 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 04:13:14 +00:00
scc%netscape.com
70163ae70a operator void** is superfluous; removed. Added operator* to support clients who (against better advice) write getter functions that look like this GetSomething(T*& result)
git-svn-id: svn://10.0.0.236/trunk@14691 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 02:10:04 +00:00
kipp%netscape.com
1f8a32ffdb Removed extraneous bullet padding that was left-over from the pre-pseudo-style days
git-svn-id: svn://10.0.0.236/trunk@14690 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 01:17:05 +00:00
kipp%netscape.com
ab8a0f8a42 Attempt to compute max-element-size better
git-svn-id: svn://10.0.0.236/trunk@14689 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 01:13:44 +00:00
kipp%netscape.com
42ebf96e27 Tidy the max-element-size code
git-svn-id: svn://10.0.0.236/trunk@14688 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 01:13:25 +00:00
kipp%netscape.com
3dc450bf61 Cleaned up OL/UL margins
git-svn-id: svn://10.0.0.236/trunk@14687 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 01:13:00 +00:00
pavlov%pavlov.net
454a4f22b8 Remove debugging message and set the scrollbar size
git-svn-id: svn://10.0.0.236/trunk@14686 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 00:57:21 +00:00
pavlov%pavlov.net
604aeb8534 patch from Owen Taylor <otaylor@redhat.com> to fix fix the GBR->RGB conversion
for images.


git-svn-id: svn://10.0.0.236/trunk@14685 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 00:53:10 +00:00
kipp%netscape.com
faa8c9c0eb Properly walk up the tree to find the real color
git-svn-id: svn://10.0.0.236/trunk@14684 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 00:20:52 +00:00
kipp%netscape.com
7200077d4d Repaired Get3DColors code to work properly; added in extra code to make sure we never return the passed in color as one of the output colors
git-svn-id: svn://10.0.0.236/trunk@14683 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-15 00:20:27 +00:00
pavlov%pavlov.net
8c1ac53b4d convert BGR colors to RGB for tables and such. We now draw images, text, etc
correctly, and we don't crash (at least not usually).  Images are not
converted from BGR to RGB yet, but they will be shortly.


git-svn-id: svn://10.0.0.236/trunk@14682 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 23:47:41 +00:00
kipp%netscape.com
9f2054c505 Added some more null-pointer checking to DOM methods
git-svn-id: svn://10.0.0.236/trunk@14681 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 22:51:43 +00:00
kipp%netscape.com
4b86830d22 Fixed bug #1257: the bug was that we were overrunning the transformers malloc'd buffer because the mBufferLength was never being updated
git-svn-id: svn://10.0.0.236/trunk@14680 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 22:27:50 +00:00
kipp%netscape.com
8e672b6551 Removed and unused member variable
git-svn-id: svn://10.0.0.236/trunk@14679 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 22:27:06 +00:00
kipp%netscape.com
6f7a324458 Fixed frame-removed crash case (when we run out kids); bug #691
git-svn-id: svn://10.0.0.236/trunk@14678 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 21:57:38 +00:00
pavlov%pavlov.net
7c905feb11 use gtk styles for the look and feel. this makes everything look much more
together.  use the correct window when we create the GC for nsWidgets, and
move one of the callbacks into the correct place.


git-svn-id: svn://10.0.0.236/trunk@14677 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 21:08:27 +00:00
kipp%netscape.com
9e3eceabae Basic support for :first-letter pseudo-elements
git-svn-id: svn://10.0.0.236/trunk@14676 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 21:01:26 +00:00
pavlov%pavlov.net
4b8b51488c use the gdkrgb colormap/visual for the widget creation. put nscoord() around
two doubles in nsGtkEventHandler to fix a compiler warning.  call gdk_rgb_init
in nsAppShell and not in the gfx stuff multiple times


git-svn-id: svn://10.0.0.236/trunk@14675 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:40:31 +00:00
pavlov%pavlov.net
35061f6ecd use NS_TO_X to convert the pixel to gdkrgb type. this may not be what we want
to do here though.


git-svn-id: svn://10.0.0.236/trunk@14674 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:39:04 +00:00
kipp%netscape.com
8c16e2eebc Eliminated NewFrame
git-svn-id: svn://10.0.0.236/trunk@14673 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:28:34 +00:00
kipp%netscape.com
db993de7c6 Modified List code to list floater list and bullet better; support multiple child lists; manage floater list properly
git-svn-id: svn://10.0.0.236/trunk@14672 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:28:11 +00:00
kipp%netscape.com
8a35c19883 Removed hacks that were mostly block-frame bug workarounds
git-svn-id: svn://10.0.0.236/trunk@14671 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:26:57 +00:00
kipp%netscape.com
5eac8852a3 DidReflow now supports multiple child lists; added DeleteFrameList helper method
git-svn-id: svn://10.0.0.236/trunk@14670 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 19:25:34 +00:00
waterson%netscape.com
9179bddb5a Initial revision.
git-svn-id: svn://10.0.0.236/trunk@14669 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 08:58:29 +00:00
waterson%netscape.com
01dc10a642 Fixed misc column bugs.
git-svn-id: svn://10.0.0.236/trunk@14668 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 08:54:54 +00:00
waterson%netscape.com
d2e07dfe1a Fixed an IID mis-definition.
git-svn-id: svn://10.0.0.236/trunk@14667 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 08:54:16 +00:00
waterson%netscape.com
ab3dc72646 Got GetNthItem() working.
git-svn-id: svn://10.0.0.236/trunk@14666 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 08:13:25 +00:00
msw%gimp.org
968efffd3e Draw directly onto windows, not on a pixmap
git-svn-id: svn://10.0.0.236/trunk@14665 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 06:35:25 +00:00
michaelp%netscape.com
96d71286a4 fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@14661 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:58:09 +00:00
waterson%netscape.com
2225952138 Hooked up InitFromResource() in a sort of half-assed way I'm not sure I understand.
git-svn-id: svn://10.0.0.236/trunk@14660 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:56:01 +00:00
waterson%netscape.com
c11eb2fede Misc. cleanup.
git-svn-id: svn://10.0.0.236/trunk@14659 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:55:48 +00:00
kipp%netscape.com
c631ba58e3 Fixed typo
git-svn-id: svn://10.0.0.236/trunk@14657 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:31:29 +00:00
briano%netscape.com
3b34eb52b3 Created a special-case macro for OSF/1 2.0 (hey, _someone_ might still be using it) so we can pass the compiler the -x cxx flag, which is required by the old 2.0 cxx compiler.
git-svn-id: svn://10.0.0.236/trunk@14656 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:26:55 +00:00
briano%netscape.com
28dcbca00a Added Frank van der Linden's (frank@wins.uva.nl) requested changes.
git-svn-id: svn://10.0.0.236/trunk@14654 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:22:43 +00:00
pavlov%pavlov.net
0d0c995122 fix for removing children, add gtk_exit() to the exit call of nsAppShell and
redid a few move functions


git-svn-id: svn://10.0.0.236/trunk@14653 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:15:06 +00:00
michaelp%netscape.com
7c96d12312 changes to support printing architecture and actual printing under windows.
git-svn-id: svn://10.0.0.236/trunk@14651 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 02:05:13 +00:00
michaelp%netscape.com
1fe751e205 added new xpcom objects to registry. i'm really getting tired of this hack...
git-svn-id: svn://10.0.0.236/trunk@14650 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:59:49 +00:00
michaelp%netscape.com
1f112558cd changes to support printing.
git-svn-id: svn://10.0.0.236/trunk@14649 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:58:34 +00:00
michaelp%netscape.com
25149e78ea changes for pixel scaling/printing.
git-svn-id: svn://10.0.0.236/trunk@14647 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:52:27 +00:00
pavlov%pavlov.net
b0ed8266ad Fix the Font methods. This allows the pages to be rendered.. under something
so we still can't see it.. i'm looking


git-svn-id: svn://10.0.0.236/trunk@14646 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:43:27 +00:00
pavlov%pavlov.net
f6b7bf5869 fix gtklayout so that it removes children properly. add a few more debugging
messages to nsWidget and nsWindow


git-svn-id: svn://10.0.0.236/trunk@14645 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:42:42 +00:00
bjorn%netscape.com
70ddc60ea9 Removing files to restructure the typelib stuff.
git-svn-id: svn://10.0.0.236/trunk@14644 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:22:50 +00:00
scc%netscape.com
6250806e51 fixed for IRIX (doesn't like new-style casts)
git-svn-id: svn://10.0.0.236/trunk@14642 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:35:48 +00:00
vidur%netscape.com
eea563e7fd Added Xlink support
git-svn-id: svn://10.0.0.236/trunk@14641 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:22:10 +00:00
vidur%netscape.com
19d3032d70 Added support for XLink - simple links and show=replace or new. Modified nsILinkHandler interface.
git-svn-id: svn://10.0.0.236/trunk@14640 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:21:19 +00:00
waterson%netscape.com
e54ec51180 Added nsIRDFResource interface to clean up some internal downcasting kludges and stop their evil propagation.
git-svn-id: svn://10.0.0.236/trunk@14639 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:19:00 +00:00
waterson%netscape.com
1980ba8ade Initial revision.
git-svn-id: svn://10.0.0.236/trunk@14638 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:17:58 +00:00
joki%netscape.com
5f606a33e0 Modify cursor types from default to inherit (they're the same internally right now)
git-svn-id: svn://10.0.0.236/trunk@14637 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 00:00:03 +00:00
joki%netscape.com
0d29052c82 Modify cursor setting code to check css cursor setting for containers.
git-svn-id: svn://10.0.0.236/trunk@14636 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 23:58:52 +00:00
karnaze%netscape.com
44efd97f78 bug 1374 (hometown.aol.com crash on resize)
git-svn-id: svn://10.0.0.236/trunk@14635 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 23:44:50 +00:00
karnaze%netscape.com
d94c8fd321 bug 1226 for form control with native widgets. Other controls are still not working.
git-svn-id: svn://10.0.0.236/trunk@14634 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 23:13:42 +00:00
karnaze%netscape.com
65b6034ae6 bug 1357 involving a hidden control not getting submitted
git-svn-id: svn://10.0.0.236/trunk@14633 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 23:10:52 +00:00
vidur%netscape.com
ac22156a81 Generic HTML collection base class
git-svn-id: svn://10.0.0.236/trunk@14622 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:30:23 +00:00
leaf%mozilla.org
b53becbefd Checking in a fix for linux builds.
git-svn-id: svn://10.0.0.236/trunk@14621 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:16:07 +00:00
dcone%netscape.com
4c70822459 New tag handling code added
git-svn-id: svn://10.0.0.236/trunk@14620 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:14:45 +00:00
mcmullen%netscape.com
7d8ba2670e Commenting out previous change for now.
git-svn-id: svn://10.0.0.236/trunk@14619 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:06:10 +00:00
wtc%netscape.com
4c2f42d2a9 Specify -R <path> if LIBRUNPATH is defined in the environment.
Contributed by Frank van der Linden (frank@wins.uva.nl).


git-svn-id: svn://10.0.0.236/trunk@14618 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:05:33 +00:00
mcmullen%netscape.com
3c3462c43b Put the first error in the perl console as well as the log file.
git-svn-id: svn://10.0.0.236/trunk@14617 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:01:21 +00:00
mcmullen%netscape.com
2da0c905a3 Work around a CW Pro4 bug. If the CW Find window is in front before you start, and you try to use an applevent to walk the list of open
documents, you will fail.  Running the build script in this case would open each of the projects in turn, but fail to attempt to build them or to close
them again.  The output will say something like "building foo / building bar / ... / build complete".  Nothing would be built, and the log file would show no
errors. 

This change will stop the build, instead of just barreling ahead
regardless, in the case when the Find window bug is encountered.


git-svn-id: svn://10.0.0.236/trunk@14616 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 22:01:01 +00:00
despotdaemon%netscape.com
801a094046 Pseudo-automatic update of changes made by mcmullen@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14615 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 21:56:47 +00:00
troy%netscape.com
b33787056b Changed GetLoadImageFailed() so it checks with the image loader rather
than just using the value of mLoadImageFailed. Fixes bug #1287


git-svn-id: svn://10.0.0.236/trunk@14614 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 21:31:50 +00:00
troy%netscape.com
d0270485ee Changed Notify() to call NotifyError() if the notification type is
nsImageNotification_kAborted. This ensures that the NS_IMAGE_LOAD_STATUS_ERROR
load status bit is set and that the frame gets repainted


git-svn-id: svn://10.0.0.236/trunk@14613 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 21:21:15 +00:00
akkana%netscape.com
85c7f6764a xpfe is now in nglayout.mk, doesn't need to be pulled by client.mk
git-svn-id: svn://10.0.0.236/trunk@14612 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 21:03:26 +00:00
rjc%netscape.com
fd1e1b4987 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14611 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:47:53 +00:00
despotdaemon%netscape.com
46f0aab451 Pseudo-automatic update of changes made by rudman@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14610 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:39:12 +00:00
rickg%netscape.com
7ac80c8417 incrmental improvement in view-source for better text-run handling
git-svn-id: svn://10.0.0.236/trunk@14609 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:16:05 +00:00
scc%netscape.com
56449b02df SOLARIS _does_ support member using declarations, so modify the test to let them through
git-svn-id: svn://10.0.0.236/trunk@14608 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:07:25 +00:00
scc%netscape.com
b1e51f2dd8 fixed order of declarations (confused SOLARIS compiler) and return types of AddRef and Release to match in the unfortunate case that the compiler does not support member using declarations
git-svn-id: svn://10.0.0.236/trunk@14607 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:06:43 +00:00
pinkerton%netscape.com
e94b269309 get rid of "hiding inherited virtual method" warnings on CanContain() by making it const like it's parent class.
git-svn-id: svn://10.0.0.236/trunk@14606 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 20:04:27 +00:00
alecf%netscape.com
96298d61de implement fe_GetConfigDir
git-svn-id: svn://10.0.0.236/trunk@14605 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:46:00 +00:00
rickg%netscape.com
8694b27dc6 added tag handling support for future use
git-svn-id: svn://10.0.0.236/trunk@14604 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:45:09 +00:00
alecf%netscape.com
c2bf93f15a updated to allow for one-step building
git-svn-id: svn://10.0.0.236/trunk@14603 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:42:43 +00:00
scc%netscape.com
c9a93fd103 unified compiler dependent code (removed from unit-tests, inserted in header); fixed for egcs-1.1 well known bug (member using declarations don't work)
git-svn-id: svn://10.0.0.236/trunk@14602 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:41:24 +00:00
rickg%netscape.com
1b71e25bc6 added nsITagHandler for future use
git-svn-id: svn://10.0.0.236/trunk@14601 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:20:47 +00:00
troy%netscape.com
98bfa2a63c Added check for SRC being an empty string
git-svn-id: svn://10.0.0.236/trunk@14598 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 18:38:16 +00:00
matt%netscape.com
0aa5613660 Re-updated to CW 4.0 - we need it at this level so that the Mac tinderbox doesn't get wedged.
git-svn-id: svn://10.0.0.236/trunk@14597 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 18:28:59 +00:00
troy%netscape.com
ae5da1b1b1 Changed it so that if there's a NULL URL then we set the mLoadImageFailed
flag and don't try and load the broken image URL. Only on Windows for now
until Mac and Unix support the image icons


git-svn-id: svn://10.0.0.236/trunk@14596 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 17:00:54 +00:00
pavlov%pavlov.net
867d43cb50 Fix gtklayout child sizing problems, add gtk_widget_set_name to all of the
widgets for a bunch of debugging into that is being printf'd.  Fixed most all
of nsListBox so that it works correctly.  We now have widgets working! yippie!
I almost have gfx working too... heehee :-)


git-svn-id: svn://10.0.0.236/trunk@14595 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 16:37:03 +00:00
pavlov%pavlov.net
72065479ef add nsRegionGTK to the factory. this fixes some major region related
problems.


git-svn-id: svn://10.0.0.236/trunk@14594 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 16:29:46 +00:00
scc%netscape.com
5a3153856f Fixed for VC++ 4.2 (no template function specifiers at the call site)
git-svn-id: svn://10.0.0.236/trunk@14593 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 12:33:58 +00:00
rjc%netscape.com
7a87714ce1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14590 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 08:56:09 +00:00
rjc%netscape.com
cf60a27d14 Include a few more essential header files.
git-svn-id: svn://10.0.0.236/trunk@14589 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 08:53:29 +00:00
troy%netscape.com
a0ba51c52c Changed Notify() to handle nsImageNotification_kAborted and set the image load
status to NS_IMAGE_LOAD_STATUS_ERROR


git-svn-id: svn://10.0.0.236/trunk@14588 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 06:24:33 +00:00
troy%netscape.com
b4ea688607 Fixed a crash when using File|Exit from the print preview window
git-svn-id: svn://10.0.0.236/trunk@14587 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 05:53:47 +00:00
troy%netscape.com
b7fc0e639a Removed an assert that was incorrect and that triggered when print
previewing test1


git-svn-id: svn://10.0.0.236/trunk@14586 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 05:17:08 +00:00
rickg%netscape.com
a1a662c891 fixed a crash that someone missed
git-svn-id: svn://10.0.0.236/trunk@14585 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 04:58:35 +00:00
rickg%netscape.com
11309dbf4e allow view-source on XML
git-svn-id: svn://10.0.0.236/trunk@14583 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 04:36:46 +00:00
troy%netscape.com
e8b6cc2769 Added a scroll frame for print preview
git-svn-id: svn://10.0.0.236/trunk@14582 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 04:22:23 +00:00
troy%netscape.com
13ef91147a Cleaned up ConstructXMLRootFrame() and added some XXX comments
git-svn-id: svn://10.0.0.236/trunk@14581 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 03:43:15 +00:00
cls%seawood.org
070ad923bf Previously reset endsection in the wrong place.
git-svn-id: svn://10.0.0.236/trunk@14580 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 03:17:09 +00:00
waterson%netscape.com
27adcac439 Added some good COM citizenry to the node factory methods.
git-svn-id: svn://10.0.0.236/trunk@14579 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:59:56 +00:00
waterson%netscape.com
ded0a6e1d4 Fixed outbound/inbound mixup for traversing the arcs in Open(). Fixed some bugs in Open() for adding kids to a node.
git-svn-id: svn://10.0.0.236/trunk@14578 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:59:12 +00:00
waterson%netscape.com
3b85146b00 Got rid of Initialize().
git-svn-id: svn://10.0.0.236/trunk@14577 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:57:58 +00:00
waterson%netscape.com
98fe67ef0e Got rid of Initialize() method and just moved that code into InitFromURL(). Added default initializers for the arc info.
git-svn-id: svn://10.0.0.236/trunk@14576 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:57:33 +00:00
waterson%netscape.com
e7adb06e88 A complete hack to get the bookmark file.
git-svn-id: svn://10.0.0.236/trunk@14575 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:54:39 +00:00
waterson%netscape.com
9711ca18f6 Hack to use rdf:bookmarks rather than NC:Bookmarks as to top of the bookmark tree. This is mostly for the Raptor demo until I can get Guha to look at it.
git-svn-id: svn://10.0.0.236/trunk@14574 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:53:50 +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
akkana%netscape.com
64e5b75a45 Put back the old pwd code; otherwise it crashes if MOZILLA_HOME isn't set
git-svn-id: svn://10.0.0.236/trunk@14572 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:49:19 +00:00
vidur%netscape.com
c5e9198c6b Null check for prefs. The MozillaControl doesn't set up prefs correctly quite yet (and might never will).
git-svn-id: svn://10.0.0.236/trunk@14571 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:47:33 +00:00
gagan%netscape.com
61ff9414d7 Getting this to build on BSD. See bugzilla bug #122. Thanks Frank van der Linden (frank@wins.uva.nl)
git-svn-id: svn://10.0.0.236/trunk@14570 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:47:10 +00:00
sar%netscape.com
6eeabfbf5c add mozilla/editor to the RaptorDist module at the request of mjudge
git-svn-id: svn://10.0.0.236/trunk@14569 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:21:58 +00:00
troy%netscape.com
fc79083fd3 Added ListTag() member function
git-svn-id: svn://10.0.0.236/trunk@14568 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:20:31 +00:00
akkana%netscape.com
6173d15046 Fix more build bustage (IRIX)
git-svn-id: svn://10.0.0.236/trunk@14567 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:12:55 +00:00
wtc%netscape.com
b813447f3a Merged the NetBSD patch contributed by Frank van der Linden
(frank@wins.uva.nl).
ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/mozilla/diff-19981008.001


git-svn-id: svn://10.0.0.236/trunk@14566 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:12:38 +00:00
kin%netscape.com
23dd013f7e Fixed library name typo to fix build bustage on Unix.
git-svn-id: svn://10.0.0.236/trunk@14564 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 01:33:29 +00:00
cls%seawood.org
affaf49581 Added support for multiple status reports in a single email.
Added keyword END to mark the end of a status report.


git-svn-id: svn://10.0.0.236/trunk@14563 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 01:27:02 +00:00
cls%seawood.org
27198ed45e Added MPL header and changed version to SNAP.
git-svn-id: svn://10.0.0.236/trunk@14562 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 01:25:48 +00:00
waterson%netscape.com
8501856240 Added code to expand children.
git-svn-id: svn://10.0.0.236/trunk@14561 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 00:54:53 +00:00
scc%netscape.com
709841f25f Fixed (unit-tests only) for VC++ 4.2 (no 'explicit')
git-svn-id: svn://10.0.0.236/trunk@14560 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 00:34:41 +00:00
despotdaemon%netscape.com
b8c6f31bc0 Pseudo-automatic update of changes made by jj@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14559 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 00:34:09 +00:00
despotdaemon%netscape.com
55ba7e082c Pseudo-automatic update of changes made by ssu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14558 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 00:33:20 +00:00
akkana%netscape.com
8195367fcf Define gAppContext -- fix crash on startup
git-svn-id: svn://10.0.0.236/trunk@14557 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 00:23:16 +00:00
jfrancis%netscape.com
ad491433a9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14556 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:59:32 +00:00
vidur%netscape.com
a61e198b1a XML example with scripting
git-svn-id: svn://10.0.0.236/trunk@14555 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:57:54 +00:00
vidur%netscape.com
64cb975c74 Added script handling to XML content sink. Made sure frame construction by tag wasn't done for XML.
git-svn-id: svn://10.0.0.236/trunk@14554 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:55:47 +00:00
vidur%netscape.com
300e345ba6 Added support for CDATA sections.
git-svn-id: svn://10.0.0.236/trunk@14553 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:54:37 +00:00
shaver%netscape.com
d9f2935397 add proper QI and Create calls for RO text widget
git-svn-id: svn://10.0.0.236/trunk@14552 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:54:34 +00:00
vidur%netscape.com
da54dfbcc2 Changed get/setDOMAttribute to get/setAttribute in generated script glue class. This is temporary!! It may get lost in a later checkin since the change was made manually and not through the generator
git-svn-id: svn://10.0.0.236/trunk@14551 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:53:46 +00:00
despotdaemon%netscape.com
133b3c3a62 Pseudo-automatic update of changes made by bienvenu@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14550 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:44:38 +00:00
waterson%netscape.com
30b9ca8ac1 Added one-time initialization for RDF.
git-svn-id: svn://10.0.0.236/trunk@14549 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:39:25 +00:00
kipp%netscape.com
bf9dbe6a89 Actually advance the dest pointer so a copy occurs (doh!)
git-svn-id: svn://10.0.0.236/trunk@14548 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:33:12 +00:00
kipp%netscape.com
4e26047e39 Fixed a memory leak with text editing
git-svn-id: svn://10.0.0.236/trunk@14547 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:31:38 +00:00
despotdaemon%netscape.com
9ef484d2bc Pseudo-automatic update of changes made by mscott@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14546 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:30:58 +00:00
despotdaemon%netscape.com
e9b5fa559c Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@14545 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:26:39 +00:00
despotdaemon%netscape.com
50629c5c9b Pseudo-automatic update of changes made by ppandit@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14544 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:11:13 +00:00
troy%netscape.com
48a7503df3 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element


git-svn-id: svn://10.0.0.236/trunk@14543 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:03:35 +00:00
waterson%netscape.com
6c8193b779 Minor tweaks to get factory working.
git-svn-id: svn://10.0.0.236/trunk@14542 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:46:41 +00:00
despotdaemon%netscape.com
337529ba36 Pseudo-automatic update of changes made by namachi@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14541 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:44:33 +00:00
despotdaemon%netscape.com
ab1e3c2ad7 Pseudo-automatic update of changes made by lpham@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14540 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:41:22 +00:00
despotdaemon%netscape.com
f2eed8a581 Pseudo-automatic update of changes made by ducarroz@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14539 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:33:03 +00:00
joki%netscape.com
a9b12553ca DOM Support: nsHTMLDocument body property
git-svn-id: svn://10.0.0.236/trunk@14538 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:25:51 +00:00
kipp%netscape.com
4004ea6d2a Fixed margin collapsing bug
git-svn-id: svn://10.0.0.236/trunk@14537 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:24:46 +00:00
despotdaemon%netscape.com
4dfa3fc915 Pseudo-automatic update of changes made by chrisf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14536 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:21:51 +00:00
waterson%netscape.com
5edf0d404d Rename nsRDFCIDs.h to nsRDFCID.h to be consistent with the rest of the world.
git-svn-id: svn://10.0.0.236/trunk@14535 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:20:08 +00:00
mjudge%netscape.com
762c599ef7 this works with the new autopointers
git-svn-id: svn://10.0.0.236/trunk@14534 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:18:43 +00:00
waterson%netscape.com
aab295e1ca One more time. Deal with interface inheiritance by delegation. Sucks, but...oh well.
git-svn-id: svn://10.0.0.236/trunk@14533 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:13:31 +00:00
despotdaemon%netscape.com
c755099887 Pseudo-automatic update of changes made by takacs@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14532 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 22:02:46 +00:00
despotdaemon%netscape.com
812befb862 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@14531 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:50:49 +00:00
joki%netscape.com
40f25eb994 Get rid of old comment.
git-svn-id: svn://10.0.0.236/trunk@14530 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:35:46 +00:00
joki%netscape.com
2a777b6656 Fix bug where the DOM event bubbling process was overriding previous event status codes.
git-svn-id: svn://10.0.0.236/trunk@14529 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:35:27 +00:00
pinkerton%netscape.com
bc413017e9 Replacing message pump with message sink. The pump is "client" code and has been moved out there to better separate the event handling.
git-svn-id: svn://10.0.0.236/trunk@14528 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:25:26 +00:00
pinkerton%netscape.com
9651a64926 moving message pump and app shell into "client" code because they should not be a part of the widget library.
git-svn-id: svn://10.0.0.236/trunk@14527 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:24:53 +00:00
pinkerton%netscape.com
21d40ad4ca Separate the event loop in the client from the nglayout/widget provided code. Now creates a message pump (client side) and a message sink (nglayout side) for event handling.
git-svn-id: svn://10.0.0.236/trunk@14526 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:24:16 +00:00
pinkerton%netscape.com
f073c1311e export nsMacMessageSink instead to separate the client from the internals of the event loop.
git-svn-id: svn://10.0.0.236/trunk@14525 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:23:02 +00:00
pinkerton%netscape.com
402a4f0911 Moved into viewer, since these are "client" routines and don't belong under
Widget.


git-svn-id: svn://10.0.0.236/trunk@14524 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:22:24 +00:00
pinkerton%netscape.com
0d9eab1aa6 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14523 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:20:36 +00:00
buster%netscape.com
ed61619f6b fixed a tiny bug in handling unexpected frames in a row
git-svn-id: svn://10.0.0.236/trunk@14521 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:04:41 +00:00
buster%netscape.com
839e25fcb5 rowgroup pseudo-frames for rows inserted directly into a table
git-svn-id: svn://10.0.0.236/trunk@14520 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 20:45:28 +00:00
alecf%netscape.com
8e0cfd8ffe fix for unix bustage
git-svn-id: svn://10.0.0.236/trunk@14519 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 20:27:31 +00:00
mjudge%netscape.com
6a6baf3e9c adding the test_com_auto_ptr.exe as a new test
git-svn-id: svn://10.0.0.236/trunk@14518 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 20:07:28 +00:00
mjudge%netscape.com
76dc70335a modifying makefile.win to export the new com_auto_ptr.h file
git-svn-id: svn://10.0.0.236/trunk@14517 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 20:05:41 +00:00
scc%netscape.com
1331dc468c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14516 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 20:00:51 +00:00
alecf%netscape.com
bb62bc17af fix autoconf bustage for new xml layout stuff
git-svn-id: svn://10.0.0.236/trunk@14515 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 19:37:08 +00:00
beard%netscape.com
623bf257e4 Prints the name of the target being built as well.
git-svn-id: svn://10.0.0.236/trunk@14514 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 19:34:14 +00:00
alecf%netscape.com
d71c278a30 fix Solaris/gcc bustage
git-svn-id: svn://10.0.0.236/trunk@14513 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 19:19:09 +00:00
buster%netscape.com
eeaf9cbedd col and colgroup attribute handling
colgroup pseudo frame for cols inserted directly into a table.  More like this to come...


git-svn-id: svn://10.0.0.236/trunk@14512 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 18:37:28 +00:00
kipp%netscape.com
71662f0d55 Fixed some serious bugs in list bullet placement that prevented some relatively easy cases from working at all; this fixes up most outside list bullet cases
git-svn-id: svn://10.0.0.236/trunk@14511 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 18:19:22 +00:00
kipp%netscape.com
f8f00d8bd7 init the html atoms too...(temporary)
git-svn-id: svn://10.0.0.236/trunk@14510 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 18:16:25 +00:00
vidur%netscape.com
596f5264bb Modified stylesheet
git-svn-id: svn://10.0.0.236/trunk@14509 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 17:17:48 +00:00
vidur%netscape.com
cc5477eb92 new
git-svn-id: svn://10.0.0.236/trunk@14508 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:36:02 +00:00
kipp%netscape.com
0300e60d1f Fixed list numbering to work again (whoops!); added support for display: compact (just the beginnings); more work-in-progress for :first-letter support
git-svn-id: svn://10.0.0.236/trunk@14507 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:32:56 +00:00
kipp%netscape.com
25b61d53b3 Support for display: compact
git-svn-id: svn://10.0.0.236/trunk@14506 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:32:19 +00:00
kipp%netscape.com
152ed9b709 Some support for first-letter style
git-svn-id: svn://10.0.0.236/trunk@14505 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:31:38 +00:00
waterson%netscape.com
9f81df589a Slugfest to get HT wired up thru C++ interfaces.
git-svn-id: svn://10.0.0.236/trunk@14504 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 08:56:20 +00:00
vidur%netscape.com
28b563ea1c Added new interface nsIHTMLContentContainer
git-svn-id: svn://10.0.0.236/trunk@14503 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 07:56:13 +00:00
vidur%netscape.com
84598f1f88 Factored GetAttributStyleSheet method into separate nsHTMLContentContainer interface that can be implemented by both HTML and XML document classes.
git-svn-id: svn://10.0.0.236/trunk@14502 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 07:54:12 +00:00
vidur%netscape.com
a4e3cbd63e Got rid of bogus dependency on XMLContent
git-svn-id: svn://10.0.0.236/trunk@14501 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 07:06:47 +00:00
pinkerton%netscape.com
8d48b89986 Use the correct prefix files to pick up all our settings.
git-svn-id: svn://10.0.0.236/trunk@14499 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 06:00:05 +00:00
pinkerton%netscape.com
f938f75ace Added specific mac toolbox include files (and helper macros) not covered in the widget prefix file.
git-svn-id: svn://10.0.0.236/trunk@14498 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 05:59:31 +00:00
pinkerton%netscape.com
718cf50bfc First Checked In.
git-svn-id: svn://10.0.0.236/trunk@14497 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 05:57:33 +00:00
troy%netscape.com
a7875d7a01 Changed slightly the check for whether the vertical scrollbar will be hidden.
This way it works better for XML documents that have an initial value for the
overflow property


git-svn-id: svn://10.0.0.236/trunk@14494 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 03:56:57 +00:00
cyeh%netscape.com
7bb05bddbe first pass to remove http://warp links and update bonsai documentation
to be more outsider friendly.


git-svn-id: svn://10.0.0.236/trunk@14491 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 02:30:55 +00:00
waterson%netscape.com
db5b17eb18 Added forward decl of nsIDMItem.
git-svn-id: svn://10.0.0.236/trunk@14490 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 02:11:07 +00:00
waterson%netscape.com
1b98afa5c7 Added nsRDFCIDs.h, which contains class IDs for RDF objects.
git-svn-id: svn://10.0.0.236/trunk@14489 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 02:09:56 +00:00
pinkerton%netscape.com
5e19627971 Add xml/layout files.
git-svn-id: svn://10.0.0.236/trunk@14488 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 01:05:48 +00:00
hyatt%netscape.com
ab50ba4f97 Added a method for counting columns in the tree.
git-svn-id: svn://10.0.0.236/trunk@14487 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 01:03:25 +00:00
pinkerton%netscape.com
b62a3ba585 Add nsViewSourceHTML.cpp to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@14486 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 01:01:35 +00:00
pinkerton%netscape.com
f3a24bb255 add nsWellFormedDTD.h to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@14485 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 01:01:22 +00:00
pinkerton%netscape.com
42adb0b502 Fix build bustage. Add xml/document files and nsGenericElement.cpp
git-svn-id: svn://10.0.0.236/trunk@14484 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 01:00:58 +00:00
kin%netscape.com
ca083bb777 Removed nsEditorInterfaces.h from list EXPORTS.
git-svn-id: svn://10.0.0.236/trunk@14483 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 00:16:46 +00:00
kin%netscape.com
2dcd0bdd06 Removed gui from list of directories to build.
git-svn-id: svn://10.0.0.236/trunk@14482 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 00:16:08 +00:00
mjudge%netscape.com
35e4aa0583 we now have a DLL!!!
git-svn-id: svn://10.0.0.236/trunk@14481 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 00:15:58 +00:00
hyatt%netscape.com
038b04e513 Added initializers to the DataModel. Changed the interface hierarchy
again (after much debate).


git-svn-id: svn://10.0.0.236/trunk@14479 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 00:02:26 +00:00
alecf%netscape.com
92a895b642 fix autoconf bustage
git-svn-id: svn://10.0.0.236/trunk@14478 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 23:48:24 +00:00
bjorn%netscape.com
63114a760a New support for typeinformation and typelibraries. nsISupports.h has an
additional definition NS_DECL_ISUPPORTS_EXPORTED, which exports the threesome.
This is not yet part of the build. It will be picked up by support code in
mozilla/js/src/xpcom.


git-svn-id: svn://10.0.0.236/trunk@14477 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 23:46:21 +00:00
pavlov%pavlov.net
156ff8d3cc implimentation of nsDialog, few scrollbar fixes
git-svn-id: svn://10.0.0.236/trunk@14476 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 23:09:04 +00:00
pavlov%pavlov.net
fb993cf19e implimentation for DrawString for PRUnichar characters.
git-svn-id: svn://10.0.0.236/trunk@14475 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 23:08:19 +00:00
leaf%mozilla.org
281d42392a Landing the XPCOM_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@14474 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:29:18 +00:00
karnaze%netscape.com
738d621f23 dump content/frames/views traverses web shells
git-svn-id: svn://10.0.0.236/trunk@14473 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:22:18 +00:00
hyatt%netscape.com
f55cde9494 Adding the toolbar widget interface to the data model.
git-svn-id: svn://10.0.0.236/trunk@14472 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:10:50 +00:00
vidur%netscape.com
a4f9082955 Added XML display support.
git-svn-id: svn://10.0.0.236/trunk@14470 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:07:55 +00:00
vidur%netscape.com
467ad26d42 Added XML display support. Creation of XML document for text/xml and application/xml
git-svn-id: svn://10.0.0.236/trunk@14468 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:07:03 +00:00
vidur%netscape.com
118281d675 Added XML display support. Split nsGenericHTMLElement into generic and HTML-specific components. Minor style modification. New XML classes and interfaces.
git-svn-id: svn://10.0.0.236/trunk@14467 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:06:16 +00:00
vidur%netscape.com
38bf6d6724 Added XML display support. Added NotifyError method to nsIContentSink
git-svn-id: svn://10.0.0.236/trunk@14466 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:04:42 +00:00
vidur%netscape.com
4b5a532b07 Added XML display support. Creation of XML elements through the DOM
git-svn-id: svn://10.0.0.236/trunk@14465 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:03:59 +00:00
hyatt%netscape.com
6a0247d42a New tree widget interface.
git-svn-id: svn://10.0.0.236/trunk@14464 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:03:19 +00:00
hyatt%netscape.com
4225eba31e Added nsITreeDMWidget interface.
git-svn-id: svn://10.0.0.236/trunk@14463 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:03:02 +00:00
cyeh%netscape.com
ec09d088bb remove checkout ui and set it so that it just builds. checkout routines have been moved to "PullNGlayout.pl"
git-svn-id: svn://10.0.0.236/trunk@14462 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 21:42:28 +00:00
waterson%netscape.com
e1efbf6233 Added forward declaration of nsIDMItem. Made sure that we actually
define NS_IDMWIDGET_IID here.


git-svn-id: svn://10.0.0.236/trunk@14457 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:58:23 +00:00
mjudge%netscape.com
1e92f72645 changes for better naming conventions of interfaces and their implementation
git-svn-id: svn://10.0.0.236/trunk@14456 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:48:57 +00:00
mjudge%netscape.com
5dabcba40d changes to get autopointers to work
git-svn-id: svn://10.0.0.236/trunk@14455 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:44:02 +00:00
rickg%netscape.com
208f37c790 enabled view-source
git-svn-id: svn://10.0.0.236/trunk@14454 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:31:45 +00:00
wtc%netscape.com
1532475aa9 Removed the temporary "depend: clean" hack.
git-svn-id: svn://10.0.0.236/trunk@14450 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:30:02 +00:00
rods%netscape.com
0da80c4e85 Commented out the 3D border hint for the WebShell window.
git-svn-id: svn://10.0.0.236/trunk@14449 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:17:09 +00:00
waterson%netscape.com
7884670539 Tracked some int to PRUint32 changes in the interface, replaced nsITreeItem with nsITreeDMItem.
git-svn-id: svn://10.0.0.236/trunk@14448 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:06:58 +00:00
waterson%netscape.com
54b81fc937 Added toolbars, renamed nsRDFTreeItem to nsRDFTreeDataModelItem to
keep up with interfaces.


git-svn-id: svn://10.0.0.236/trunk@14447 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 20:01:10 +00:00
waterson%netscape.com
9b6dd56fb3 Changed nsRDFTreeModel -> nsRDFTreeDataModel.
git-svn-id: svn://10.0.0.236/trunk@14446 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:59:50 +00:00
waterson%netscape.com
46821b0352 Changed nsITreeItem -> nsITreeDMItem.
git-svn-id: svn://10.0.0.236/trunk@14445 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:58:36 +00:00
waterson%netscape.com
5c45c9cee2 Added toolbar stub implementations.
git-svn-id: svn://10.0.0.236/trunk@14444 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:57:16 +00:00
buster%netscape.com
0a52434582 support for frame and rules attribute
git-svn-id: svn://10.0.0.236/trunk@14443 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:56:02 +00:00
buster%netscape.com
8e0e5828a6 fix for default cell padding and cell spacing
git-svn-id: svn://10.0.0.236/trunk@14442 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:54:23 +00:00
waterson%netscape.com
02bcf9b5c6 Added column data structures.
git-svn-id: svn://10.0.0.236/trunk@14441 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:45:05 +00:00
waterson%netscape.com
6da015982f Added methods for visibility.
git-svn-id: svn://10.0.0.236/trunk@14440 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:44:28 +00:00
waterson%netscape.com
15db648521 Renamed nsRDFTreeItem to nsRDFTreeDataModelItem to keep up with interfaces.
git-svn-id: svn://10.0.0.236/trunk@14439 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:44:04 +00:00
waterson%netscape.com
04dcdf1ec3 Renamed for consistency with interfaces.
git-svn-id: svn://10.0.0.236/trunk@14438 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:42:07 +00:00
hyatt%netscape.com
3d7092a279 Adding new interfaces for toolbars.
git-svn-id: svn://10.0.0.236/trunk@14437 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:11:02 +00:00
hyatt%netscape.com
759a65c75f Modified a few interfaces and tweaked some of the names.
git-svn-id: svn://10.0.0.236/trunk@14436 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:10:18 +00:00
waterson%netscape.com
9ee09600b2 Minor cleanup work to get compiling on Unix. Made sure that destructors were virtual, fixed usage of NS_IMPLEMENT_ISUPPORTS(), etc.
git-svn-id: svn://10.0.0.236/trunk@14435 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 19:00:01 +00:00
cls%seawood.org
6a2a246163 The purpose of this file is to convert various compiler defines into a single define for each platform. This is ONLY to be used when feature defines will not work.
git-svn-id: svn://10.0.0.236/trunk@14434 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:59:44 +00:00
waterson%netscape.com
2e35f17882 Alphabetized CPPSRCS.
git-svn-id: svn://10.0.0.236/trunk@14433 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:59:13 +00:00
waterson%netscape.com
62bbe5f89b Fixed to get Unix building.
git-svn-id: svn://10.0.0.236/trunk@14432 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:58:51 +00:00
waterson%netscape.com
8b274a181d Cleaned up some cruft in the NS_IRDFDATABASE_IID.
git-svn-id: svn://10.0.0.236/trunk@14431 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:58:23 +00:00
sman%netscape.com
051a61593f formatting
git-svn-id: svn://10.0.0.236/trunk@14430 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:57:24 +00:00
sman%netscape.com
64baf1eecd formatting updates
git-svn-id: svn://10.0.0.236/trunk@14429 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:51:06 +00:00
cls%seawood.org
b22a873ce4 Sync'd with Makefile
git-svn-id: svn://10.0.0.236/trunk@14427 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 18:37:33 +00:00
leaf%mozilla.org
99e1c93a53 Adding dawn@cannibal.mi.org's mods to add the option to grab file
and directory descriptions from README.html files. Descriptions of
directories are enclosed by <SPAN CLASS=LXRLONGDESC>...</SPAN> and file
descriptions by <SPAN CLASS=LXRSHORTDESC>...</SPAN>


git-svn-id: svn://10.0.0.236/trunk@14426 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 17:33:24 +00:00
troy%netscape.com
04604b55c5 Fixed memory leak
git-svn-id: svn://10.0.0.236/trunk@14425 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 16:50:51 +00:00
rickg%netscape.com
e507069774 first pass support for view-source
git-svn-id: svn://10.0.0.236/trunk@14424 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 11:55:32 +00:00
rpotts%netscape.com
40ea51753a Pass the view command as the default for the webshell to the document loader...
git-svn-id: svn://10.0.0.236/trunk@14423 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 10:58:14 +00:00
rpotts%netscape.com
47cd835bdd Fixed random crash...
git-svn-id: svn://10.0.0.236/trunk@14422 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 10:04:57 +00:00
mjudge%netscape.com
f5eeccb6c0 more changes to API
git-svn-id: svn://10.0.0.236/trunk@14421 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 09:26:42 +00:00
mjudge%netscape.com
d0b25503a3 mjudge18883891134 adding dir for the editor. SHOULD BE OFF BY DEFAULT!! THIS SHOULD AFFECT NO ONE.
git-svn-id: svn://10.0.0.236/trunk@14420 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 09:26:06 +00:00
mjudge%netscape.com
e0d91882a0 changes to the editor api interface in core. also "Javadocing" the interfaces in public
git-svn-id: svn://10.0.0.236/trunk@14419 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 08:12:57 +00:00
troy%netscape.com
5ddc2cc432 Fixed a memory leak of a content object
git-svn-id: svn://10.0.0.236/trunk@14418 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 06:37:30 +00:00
waterson%netscape.com
e45a3dab88 Fixed unix bustage.
git-svn-id: svn://10.0.0.236/trunk@14417 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 06:28:46 +00:00
cls%seawood.org
ec77f902e8 Moved PNG_LIBS after libimg for final link.
git-svn-id: svn://10.0.0.236/trunk@14416 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 06:12:10 +00:00
cls%seawood.org
6a389b2021 Added EXPORTS
git-svn-id: svn://10.0.0.236/trunk@14415 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 05:33:24 +00:00
mjudge%netscape.com
7b76d160bd adding new files to the editor structure
git-svn-id: svn://10.0.0.236/trunk@14414 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 05:06:40 +00:00
troy%netscape.com
cc9970fac0 Eliminated the hack where the scroll frame was creating a BODY wrapper for
the scrolled frame. Now the frame construction code creates the wrapper
frame


git-svn-id: svn://10.0.0.236/trunk@14413 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 04:43:13 +00:00
cls%seawood.org
676c885013 Forgotten piece of Jeremy Lea's patch
git-svn-id: svn://10.0.0.236/trunk@14412 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 04:38:53 +00:00
pavlov%pavlov.net
1fdeb4210c impliment nsPopUpMenu code (it is identical to nsMenu.. why are these not
inheriting each other?)


git-svn-id: svn://10.0.0.236/trunk@14411 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 04:28:30 +00:00
kipp%netscape.com
30c4a39a11 Added a sleazy implementation of css2's run-in display type
git-svn-id: svn://10.0.0.236/trunk@14408 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:55:55 +00:00
kipp%netscape.com
5124efc774 Added a method to support propogation of the mRunInFrame info down into the reflow of a block
git-svn-id: svn://10.0.0.236/trunk@14407 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:55:23 +00:00
kipp%netscape.com
d66db3ecf6 Added run-in and compact display types to the TreatFrameAsBlockFrame method
git-svn-id: svn://10.0.0.236/trunk@14406 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:54:47 +00:00
kipp%netscape.com
ce5cc1fa2e Added mRunInFrame to the html reflow state so that run-in frame handling can be forwarded from a parent block to a child block
git-svn-id: svn://10.0.0.236/trunk@14405 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:54:15 +00:00
waterson%netscape.com
b428b63d47 Added C++ interface to HT.
git-svn-id: svn://10.0.0.236/trunk@14404 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:50:38 +00:00
waterson%netscape.com
fa4c62eb00 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@14403 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:45:12 +00:00
waterson%netscape.com
4260761699 Fixed enum declaration.
git-svn-id: svn://10.0.0.236/trunk@14402 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:39:28 +00:00
mjudge%netscape.com
f8052cff0b modified files for editor build process
git-svn-id: svn://10.0.0.236/trunk@14401 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:38:24 +00:00
mjudge%netscape.com
eadf162c58 moving editor core to "core"
git-svn-id: svn://10.0.0.236/trunk@14400 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:34:37 +00:00
mjudge%netscape.com
d8741ef43a removing src directory modifying editor.h
git-svn-id: svn://10.0.0.236/trunk@14399 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:29:53 +00:00
cls%seawood.org
0cca66223e Oops. Fixed oversight of using MOZ_NATIVE_ZLIB instead of MOZ_NATIVE_PNG for png stuff.
git-svn-id: svn://10.0.0.236/trunk@14398 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:04:43 +00:00
hyatt%netscape.com
f78b12a1cd Made some functions (inspectors) const.
git-svn-id: svn://10.0.0.236/trunk@14397 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:04:20 +00:00
hyatt%netscape.com
aca7ced0f0 Added forward decl of nsIDMWidget
git-svn-id: svn://10.0.0.236/trunk@14396 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 02:58:39 +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
hyatt%netscape.com
47acfc72b3 Changing the interfaces to avoid a big bad diamond inheritance pattern when we
drop in the RDF implementations.


git-svn-id: svn://10.0.0.236/trunk@14393 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:58:21 +00:00
cls%seawood.org
0a35e79928 Fixes to resource install for xpfe. Fixes to make MOZ_NATIVE_* work again. Thanks to Jeremy Lea <reg@shale.csir.co.za> for the diffs.
git-svn-id: svn://10.0.0.236/trunk@14392 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:53:49 +00:00
hyatt%netscape.com
a47c9325cd Added interfaces.
git-svn-id: svn://10.0.0.236/trunk@14391 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:52:44 +00:00
hyatt%netscape.com
f96b5338a5 Added new interfaces.
git-svn-id: svn://10.0.0.236/trunk@14390 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:52:34 +00:00
pierre%netscape.com
32cba0e347 Set the scroll bar dimensions to 16 pixels instead of 10.
git-svn-id: svn://10.0.0.236/trunk@14388 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:41:44 +00:00
pierre%netscape.com
a1df98431f Set the coordinates ot the top-level object to (0,0) instead of its global coordinates.
Removed the override of PointInWidget() which became obsolete after the change above.
Changed Move() and Resize() to call the toolbox only when necessary.


git-svn-id: svn://10.0.0.236/trunk@14387 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:40:56 +00:00
hyatt%netscape.com
20304f7d91 Added a parent access function.
git-svn-id: svn://10.0.0.236/trunk@14386 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:40:54 +00:00
pierre%netscape.com
2e047c30a0 Removed the override of PointInWidget() which became obsolete after the change in the coordinate system.
git-svn-id: svn://10.0.0.236/trunk@14385 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:40:43 +00:00
pierre%netscape.com
784d87b96e Clean up the drawing code. Use StartDraw() and EndDraw(). It still has to be replaced with a native control.
git-svn-id: svn://10.0.0.236/trunk@14384 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:39:44 +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
af1dba3c99 Remove the unused CalcTotalOffset()
git-svn-id: svn://10.0.0.236/trunk@14382 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:38:00 +00:00
hyatt%netscape.com
67f8c6e2f5 Added iterators over node's children.
git-svn-id: svn://10.0.0.236/trunk@14381 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:37:51 +00:00
hyatt%netscape.com
ad1f1541cb Tweaks to the APIs to change the int types. Also cleaned up IsExpanded.
git-svn-id: svn://10.0.0.236/trunk@14380 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:29:42 +00:00
hyatt%netscape.com
8f61c0fe88 Tweaking sort enum.
git-svn-id: svn://10.0.0.236/trunk@14377 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 00:21:30 +00:00
hyatt%netscape.com
cdbf2dd313 Added sort state enum.
git-svn-id: svn://10.0.0.236/trunk@14376 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 00:20:59 +00:00
jsun%netscape.com
a2a85dc508 Fix windows build:
Removed nsIXPFCContentSinkContainer.h dependency


git-svn-id: svn://10.0.0.236/trunk@14375 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 00:17:29 +00:00
hyatt%netscape.com
f0138a96d7 Fixing a mistake in the include ifdef.
git-svn-id: svn://10.0.0.236/trunk@14374 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 00:06:20 +00:00
hyatt%netscape.com
3731b62f54 Tweaks to the interfaces to make them internally consistent.
git-svn-id: svn://10.0.0.236/trunk@14373 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 23:44:53 +00:00
hyatt%netscape.com
13dcb792a8 Files for data model widgets (and for the tree view widget in particular).
git-svn-id: svn://10.0.0.236/trunk@14372 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 23:08:22 +00:00
hyatt%netscape.com
54c174e229 The interface for widgets that interact with a data model.
git-svn-id: svn://10.0.0.236/trunk@14371 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 23:07:02 +00:00
cls%seawood.org
e2873e4be4 Do not explicitly set MAKE as GNU make automatically sets it. If NSPR_INSTALL_DIR is defined, then use --with-nspr, otherwise do not bother.
git-svn-id: svn://10.0.0.236/trunk@14369 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:58:31 +00:00
cls%seawood.org
bdea88a92a Added solaris section to pthread test
git-svn-id: svn://10.0.0.236/trunk@14368 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:57:18 +00:00
cls%seawood.org
38ef0246e0 Fixed check for motif
git-svn-id: svn://10.0.0.236/trunk@14367 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:55:44 +00:00
cyeh%netscape.com
c991e357d3 add additional documentation about MozillaSource modules being obsolete.
add placeholder modules for both Client and MailClient 5.0


git-svn-id: svn://10.0.0.236/trunk@14366 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:55:14 +00:00
despotdaemon%netscape.com
a1df2bed59 Pseudo-automatic update of changes made by danda@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14364 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:46:16 +00:00
karnaze%netscape.com
c220a9a260 fixed <frameset frameborder=no> allowed frame resizing
git-svn-id: svn://10.0.0.236/trunk@14363 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 20:49:51 +00:00
jsun%netscape.com
15fd435da7 Modified nsStreamManager::LoadURL so that nsIXPFCCanvas parameter is
replaced by generic nsISupports.

Added nsIXPFCContentSink interface to implement the SetContentSinkContainer
method.


git-svn-id: svn://10.0.0.236/trunk@14361 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 20:04:01 +00:00
jsun%netscape.com
b170c822bf Updated calendar XML parser to use newer LoadURL call.
git-svn-id: svn://10.0.0.236/trunk@14360 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 19:33:47 +00:00
kipp%netscape.com
05f22fe6ea Fixed AddFrame method hiding
git-svn-id: svn://10.0.0.236/trunk@14359 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 19:20:53 +00:00
kipp%netscape.com
4186fefce1 Removed unused include
git-svn-id: svn://10.0.0.236/trunk@14358 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 19:16:32 +00:00
cls%seawood.org
f002c86029 Sync'd with Makefile. Thanks to Steve Morrison <smorrison@gte.com> for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@14355 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:14:24 +00:00
kipp%netscape.com
5c3856a3cc Use lineLayout object to pass on floater to the containing block
git-svn-id: svn://10.0.0.236/trunk@14348 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:04:34 +00:00
kipp%netscape.com
fd3e20c111 Added InitFloater
git-svn-id: svn://10.0.0.236/trunk@14347 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:04:19 +00:00
kipp%netscape.com
cd6050f965 Use geometric parent to get containing block of the floater
git-svn-id: svn://10.0.0.236/trunk@14346 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:04:10 +00:00
kipp%netscape.com
39bf131805 Removed obsolete IIDs
git-svn-id: svn://10.0.0.236/trunk@14345 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:03:53 +00:00
kipp%netscape.com
74e3541265 Removed GetReflowMetrics
git-svn-id: svn://10.0.0.236/trunk@14344 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:03:42 +00:00
kipp%netscape.com
c3a39b9634 Tidy up by removing some old junky code
git-svn-id: svn://10.0.0.236/trunk@14343 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:03:29 +00:00
kipp%netscape.com
93bd8372b4 nuked
git-svn-id: svn://10.0.0.236/trunk@14342 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:02:20 +00:00
kipp%netscape.com
2f82fa3735 Added a reminder to the ua.css
git-svn-id: svn://10.0.0.236/trunk@14341 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:00:46 +00:00
kipp%netscape.com
2e4a5abc59 Removed the unused GetReflowMetrics method (it may come back in a different form some day)
git-svn-id: svn://10.0.0.236/trunk@14340 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 18:00:08 +00:00
despotdaemon%netscape.com
a283fdfa60 Pseudo-automatic update of changes made by rhp@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14339 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 17:01:13 +00:00
despotdaemon%netscape.com
be92dfc905 Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14338 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 16:55:59 +00:00
cls%seawood.org
55774478d2 Changed libplds21 check from PL_VectorAdd to PL_GetEvent. Thanks to Brian Ryner <bryner@my-dejanews.com> for pointing out the nspr change.
git-svn-id: svn://10.0.0.236/trunk@14337 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 16:49:12 +00:00
rpotts%netscape.com
e79d0ccb4e do not allow the stream listener to be freed during a call to OnDataAvailable... It is possible, that OnStopBinding() wil lbe called while the listener is processing the data (ie. the URL load is interrupted). If this happens, do not free the listener until the OnDataAvailable() call has finished...
git-svn-id: svn://10.0.0.236/trunk@14335 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 07:06:02 +00:00
morse%netscape.com
db277344c9 attempt to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@14334 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 06:33:14 +00:00
troy%netscape.com
1c0da71da3 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list


git-svn-id: svn://10.0.0.236/trunk@14333 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 06:05:32 +00:00
mcafee%netscape.com
b003c91f88 Better error for missing nspr libs
git-svn-id: svn://10.0.0.236/trunk@14332 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 05:06:00 +00:00
morse%netscape.com
ec6bea41a0 turn on cookie management
git-svn-id: svn://10.0.0.236/trunk@14331 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:39:38 +00:00
morse%netscape.com
112eeeb2b7 separate trust labels from cookie management
git-svn-id: svn://10.0.0.236/trunk@14330 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:31:26 +00:00
troy%netscape.com
3b217d91c6 Added GetChildListName() member function
git-svn-id: svn://10.0.0.236/trunk@14329 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:31:02 +00:00
pavlov%pavlov.net
11a75fc3e7 Removed some old debugging messages and redid some font initialization which
seems to work a tad better, though it has plenty room to be improved.


git-svn-id: svn://10.0.0.236/trunk@14328 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:28:00 +00:00
pavlov%pavlov.net
a14fdfbd96 Impliment menu callbacks, fix a few paint events, remove some old debugging
messages.  Use nsWidget::Show for nsWindow::Show.


git-svn-id: svn://10.0.0.236/trunk@14327 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:25:51 +00:00
morse%netscape.com
b0a46198a2 separate trust labels from cookie management, add MakeHTMLDialog hack
git-svn-id: svn://10.0.0.236/trunk@14326 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:25:28 +00:00
rickg%netscape.com
a7c873a99e changed contentsink API to support XML
git-svn-id: svn://10.0.0.236/trunk@14325 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:20:40 +00:00
rickg%netscape.com
0af9e4b202 changed contentsink API to support XML
git-svn-id: svn://10.0.0.236/trunk@14324 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:13:59 +00:00
eyork%netscape.com
9e5c59e530 Stubs for the OutBox Manager
git-svn-id: svn://10.0.0.236/trunk@14323 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 02:27:51 +00:00
pierre%netscape.com
21fe174c19 fix build: added nsImageControlFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@14322 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 02:26:13 +00:00
cls%seawood.org
1f81164a05 Added mozilla/configure target so that build: does not always run configure. Added $autoobjdir to build:.
git-svn-id: svn://10.0.0.236/trunk@14321 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 01:56:13 +00:00
cls%seawood.org
b6acf9a16a Use $(MAKE) for build instead of gmake
git-svn-id: svn://10.0.0.236/trunk@14320 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 01:16:42 +00:00
cyeh%netscape.com
237f748ea3 add the following exports:
PL_VectorAssertValid
PL_VectorRemove
PL_VectorInsert
PL_VectorAdd
PL_VectorSet
PL_VectorClone
PL_VectorCopy
PL_VectorCompact
PL_VectorIsValidIndex
PL_VectorSetSize
PL_VectorFinalize
PL_VectorInitialize
PL_VectorDestroy
PL_NewVector


git-svn-id: svn://10.0.0.236/trunk@14319 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 00:54:21 +00:00
joki%netscape.com
332786d692 Stop dual event flow through both frames kids and view kids. Now flows through views.
git-svn-id: svn://10.0.0.236/trunk@14318 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 00:35:30 +00:00
mcafee%netscape.com
c8c122f0b6 new configure target, NSPR_INSTALL_DIR usage changed slightly
git-svn-id: svn://10.0.0.236/trunk@14317 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 00:32:08 +00:00
pnunn%netscape.com
0bbc3ecdd7 bugzilla#1211. Needed ifndef for Timer decl.
git-svn-id: svn://10.0.0.236/trunk@14316 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 00:07:58 +00:00
kipp%netscape.com
b8945492a1 Create a block frame for run-in and compact frames
git-svn-id: svn://10.0.0.236/trunk@14314 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:35:44 +00:00
kipp%netscape.com
bce0142060 Improved the table warning diagnostic
git-svn-id: svn://10.0.0.236/trunk@14313 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:35:05 +00:00
karnaze%netscape.com
c723661f91 form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;
added nsImageControlFrame to handle <input type=image>.


git-svn-id: svn://10.0.0.236/trunk@14312 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:30:16 +00:00
terry%netscape.com
904b7ef8f0 Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- cope with product
names that have a "/" in them.


git-svn-id: svn://10.0.0.236/trunk@14309 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:19:37 +00:00
terry%netscape.com
36a0f43bd5 Patch by Sam Ziegler <ziegler@mediaguaranty.com> -- noted the CPAN
modules that the report stuff now depends on.


git-svn-id: svn://10.0.0.236/trunk@14308 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:19:15 +00:00
pavlov%pavlov.net
3b2e646d56 have GetFontMetrics return a sane value. this fixes crash
git-svn-id: svn://10.0.0.236/trunk@14307 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 22:59:14 +00:00
terry%netscape.com
0a9b625773 Fixed stupid bug causing stupid error messages.
git-svn-id: svn://10.0.0.236/trunk@14306 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 22:45:32 +00:00
mcafee%netscape.com
7a50070e1c moving OBJDIR to use config.guess
git-svn-id: svn://10.0.0.236/trunk@14305 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 22:28:28 +00:00
mcafee%netscape.com
6d90538083 renaming WITH_NSPR to NSPR_INSTALL_DIR
git-svn-id: svn://10.0.0.236/trunk@14304 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 22:03:24 +00:00
rickg%netscape.com
0dad7246be a tiny update to improve XML support
git-svn-id: svn://10.0.0.236/trunk@14303 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:51:18 +00:00
akkana%netscape.com
109f33438b Add coherent message if gtk libs are missing
git-svn-id: svn://10.0.0.236/trunk@14301 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:47:41 +00:00
akkana%netscape.com
1bea5b34a9 Fix motif autoconf build -- pass MOZ_TOOLKIT through
git-svn-id: svn://10.0.0.236/trunk@14300 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:46:15 +00:00
terry%netscape.com
c6ec569b75 kostello now owns Selection bugs.
git-svn-id: svn://10.0.0.236/trunk@14299 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:25:27 +00:00
pavlov%pavlov.net
5150414c26 revert changes to gtklayout. make sure some labels are shown since they are
inside the mWidget


git-svn-id: svn://10.0.0.236/trunk@14298 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:04:32 +00:00
pavlov%pavlov.net
d44ef64683 only compile one binary, not two
git-svn-id: svn://10.0.0.236/trunk@14297 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:36:08 +00:00
terry%netscape.com
3af2e707df Add Directory LDAP stuff.
git-svn-id: svn://10.0.0.236/trunk@14296 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:22:53 +00:00
wtc%netscape.com
a717df16f7 Have "make depend" invoke "make clean" as a hack to ensure
that the "depend" continuous builds still work after I removed
plvector.c and plvector.h from mozilla/nsprpub/lib/ds.  This
temporary hack will be removed later.


git-svn-id: svn://10.0.0.236/trunk@14295 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:14:54 +00:00
wtc%netscape.com
5a196dc346 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.
Modified files: Makefile, Makefile.in, makefile.win.


git-svn-id: svn://10.0.0.236/trunk@14294 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:10:21 +00:00
wtc%netscape.com
79dfb923f5 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.
Modified files: MANIFEST, Makefile, Makefile.in, makefile.win.


git-svn-id: svn://10.0.0.236/trunk@14293 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:09:33 +00:00
wtc%netscape.com
13d9e77b86 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.
Modified files: MANIFEST, Makefile


git-svn-id: svn://10.0.0.236/trunk@14292 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:08:18 +00:00
wtc%netscape.com
65879c08d8 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.


git-svn-id: svn://10.0.0.236/trunk@14291 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 20:05:38 +00:00
troy%netscape.com
113c5409bc Added GetAdditionalChildListName() as a way to discover additional
named child lists at runtime


git-svn-id: svn://10.0.0.236/trunk@14290 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:59:33 +00:00
troy%netscape.com
cdf69643a6 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.


git-svn-id: svn://10.0.0.236/trunk@14289 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:40:27 +00:00
akkana%netscape.com
e1a7c441bf Fix nspr build line
git-svn-id: svn://10.0.0.236/trunk@14288 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:30:54 +00:00
cyeh%netscape.com
a3f972adc3 adding mozilla/rdf to RaptorDist at request of guha
git-svn-id: svn://10.0.0.236/trunk@14287 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:22:55 +00:00
troy%netscape.com
3f4e4b9185 Added a #define for NS_ERROR_INVALID_ARG to be the same as
NS_ERROR_ILLEGAL_VALUE. This helps make our error names more
consistent with COM


git-svn-id: svn://10.0.0.236/trunk@14286 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:03:05 +00:00
kipp%netscape.com
fddf21d369 Disabled some more dubious br/margin code
git-svn-id: svn://10.0.0.236/trunk@14285 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 17:54:37 +00:00
vidur%netscape.com
e67acdda42 Fix to GetFirstChild/GetLastChild from Michael Leventhal (mle@citec.fi)
git-svn-id: svn://10.0.0.236/trunk@14284 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 17:51:18 +00:00
kipp%netscape.com
fe24aed36f Repaired marginwidth/marginheight handling code
git-svn-id: svn://10.0.0.236/trunk@14283 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 17:51:05 +00:00
kipp%netscape.com
fc00faf9c4 Some spot error handling improvements to fix a crash in http://checkmate/raptor/js98/test3.html
git-svn-id: svn://10.0.0.236/trunk@14282 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 16:21:18 +00:00
pavlov%pavlov.net
598102d7c1 Patch from Owen Taylor <otaylor@redhat.com> that makes nsWidget inherit from
nsBaseWidget.  It moves the Create() functions into nsWidget for the base
creation so that the code is reused and not the same code in each file.  This
patch also fixes numerous nsWindow related issues.


git-svn-id: svn://10.0.0.236/trunk@14281 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 15:49:30 +00:00
pavlov%pavlov.net
3e54e2709e remove assertion in nsRenderingContextGTK and added gdk_rgb_init() to
nsDeviceContextGTK


git-svn-id: svn://10.0.0.236/trunk@14280 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 15:47:45 +00:00
pavlov%pavlov.net
3c65e04df8 Impliment Resize for nsWidget (and nsWindow (it calls nsWidget::Resize/Move)
Add patch for gtklayout from Owen Taylor that makes sure the widgets added are
shown and realized.  We now get a window popped up that shows the spinner,
toolbar, menu, etc etc etc.  its getting close!


git-svn-id: svn://10.0.0.236/trunk@14278 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 05:45:57 +00:00
pavlov%pavlov.net
9b477477c8 patch from Owen Taylor <otaylor@redhat.com> that allows you to draw on the
drawing area.


git-svn-id: svn://10.0.0.236/trunk@14277 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 03:03:09 +00:00
pavlov%pavlov.net
9e26b77291 Patch from Owen Taylor <otaylor@redhat.com> which uses the correct GdkWindow
to draw to.


git-svn-id: svn://10.0.0.236/trunk@14276 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 03:02:08 +00:00
guha%netscape.com
e1494f0946 More RDF fixing. Now ready for Raptor.
git-svn-id: svn://10.0.0.236/trunk@14275 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 01:28:58 +00:00
pavlov%pavlov.net
6cd3539dc6 nsComboBox implimentation from Chris Lahey <clahey@mich.net>
nsWidget and nsWindow changes (fix class inheritance, provide functions in
nsWidget and not nsWindow since everything is derived from nsWidget) patch
from Owen Taylor <otaylor@redhat.com>


git-svn-id: svn://10.0.0.236/trunk@14274 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 23:31:40 +00:00
pavlov%pavlov.net
8c7dd7cd60 call gtk_widget_show() on all the menuitems that are being added to the
menubar


git-svn-id: svn://10.0.0.236/trunk@14273 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 22:39:14 +00:00
mcafee%netscape.com
c54f6c616f Cut & Paste bug, double-freeing stuff. Thanks to Peter.vanHelden@net.HCC.nl for the fix.
git-svn-id: svn://10.0.0.236/trunk@14272 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 21:31:07 +00:00
terry%netscape.com
16710e429b If we fail to get slashdot data, don't let that stop us from trying
again in a couple of hours.


git-svn-id: svn://10.0.0.236/trunk@14271 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 21:12:12 +00:00
pavlov%pavlov.net
217523a5d1 Fixed nsMenu::AddMenu so that it adds menus to menus correctly.
git-svn-id: svn://10.0.0.236/trunk@14270 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 20:57:57 +00:00
pavlov%pavlov.net
0fe9befefc add 'this' to the userdata of the widget so that callbacks will have the info
they need


git-svn-id: svn://10.0.0.236/trunk@14269 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 20:45:53 +00:00
pavlov%pavlov.net
0e76c6696d patch from skinny@knowhere.net for the scrollbar widget implimentation.
git-svn-id: svn://10.0.0.236/trunk@14268 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 19:36:31 +00:00
pavlov%pavlov.net
1ca0554355 set the userdata for all of the widgets to 'this'. Use the userdata in the
callbacks in nsGtkEventHandler


git-svn-id: svn://10.0.0.236/trunk@14267 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 18:51:09 +00:00
pavlov%pavlov.net
3246866ead minor code cleanup in nsCheckButton.cpp. begin work on nsComboBox.
git-svn-id: svn://10.0.0.236/trunk@14266 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 18:19:37 +00:00
pavlov%pavlov.net
cc3b90eac2 Fix GTK Build so that it will compile without Motif. Remove extra mWidget's
from a few widgets that were provided mWidget from nsWidget.


git-svn-id: svn://10.0.0.236/trunk@14265 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 17:54:19 +00:00
rpotts%netscape.com
9a751e9735 Support asynchronous network notifications (instead of polling) if NO_NETWORK_POLLING is defined. Currently, this is only implemented for Win32
git-svn-id: svn://10.0.0.236/trunk@14264 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 09:04:54 +00:00
rpotts%netscape.com
bceab2e61f propagate abnormal stream termination correctly...
git-svn-id: svn://10.0.0.236/trunk@14263 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 09:03:02 +00:00
pavlov%pavlov.net
bab432bdde initial stab at converting GdkEvents into mozilla events.
git-svn-id: svn://10.0.0.236/trunk@14262 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 05:53:52 +00:00
pavlov%pavlov.net
7dda2eea3d blizzard%appliedtheory.com patch to allow this to compile without motif
installed.  this patch also fixes the arguments to the event callbacks to
those of Gtk


git-svn-id: svn://10.0.0.236/trunk@14261 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:34:08 +00:00
guha%netscape.com
0d5187ffa0 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@14260 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:29:07 +00:00
pavlov%pavlov.net
f8353761e5 fix ::Remove so that it works on both TextWidget and TextAreaWidget
git-svn-id: svn://10.0.0.236/trunk@14259 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:12:42 +00:00
pavlov%pavlov.net
fd6626fd2e Initial nsText* implimentation. This should be about 90% functional.
git-svn-id: svn://10.0.0.236/trunk@14258 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:05:34 +00:00
pavlov%pavlov.net
2d8a1c681b nsBrowserWindow.cpp:3220
change
if (nsnull == menu) {
to
if (NS_OK == rv) {
which makes submenus be added correctly.


git-svn-id: svn://10.0.0.236/trunk@14256 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 02:09:38 +00:00
pavlov%pavlov.net
3856fcd990 fix menu code... submenus are not added correctly for some reason, but the
earlier warnings are gone.


git-svn-id: svn://10.0.0.236/trunk@14255 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 02:05:02 +00:00
pavlov%pavlov.net
e64ca00484 Menu's are now displayed correctly (almost).
git-svn-id: svn://10.0.0.236/trunk@14251 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 01:13:43 +00:00
troy%netscape.com
14d17485ee That part about the frame deleted reflow command being a list was a
bit overzealous. It can't be. Maybe at some point we'll have an
argument that specifies the number of frames to delete


git-svn-id: svn://10.0.0.236/trunk@14248 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 00:26:56 +00:00
troy%netscape.com
68cb6349cf Added some comments clarifying that appended, inserted, and deleted reflow
commands take a child list (i.e. more than one frame)


git-svn-id: svn://10.0.0.236/trunk@14247 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 00:24:40 +00:00
pavlov%pavlov.net
bc53841b8e yet another patch from Owen Taylor <otaylor@redhat.com> that impliments
nsFontMetricsGTK


git-svn-id: svn://10.0.0.236/trunk@14246 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 23:21:18 +00:00
pavlov%pavlov.net
26fed3657e patch that impliments nsRenderingContextGTK from Owen Taylor
<otaylor@redhat.com>


git-svn-id: svn://10.0.0.236/trunk@14245 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 23:19:06 +00:00
ramiro%netscape.com
3590eb68fd Fix from Tim Rowley <tor@boojum.cs.brown.edu>.
The Sun compiler tossing the templated class into a template repository
(see Templates.DB in the directory layout/html/base/src).  At link time the
compiler doesn't know where that repository is, so it can't resolve that
symbol.
You can get the compiler to include the templated class in the shared library
by linking the objects together with "CC -xar".


git-svn-id: svn://10.0.0.236/trunk@14244 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 22:29:15 +00:00
pavlov%pavlov.net
221f39c0a2 Apply patch from Owen Taylor <otaylor@redhat.com> that does images the right
way.


git-svn-id: svn://10.0.0.236/trunk@14243 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 19:54:14 +00:00
msw%gimp.org
cec9a1349a Oops - not using this.
git-svn-id: svn://10.0.0.236/trunk@14242 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 18:43:17 +00:00
troy%netscape.com
77ba0862ca Changed PostCreateWidget() code to use the "default value" when setting
the widget's initial value


git-svn-id: svn://10.0.0.236/trunk@14241 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:47:57 +00:00
troy%netscape.com
221ed4cb8d Changed implementation of DefaultValue to use the value of the "value"
attribute


git-svn-id: svn://10.0.0.236/trunk@14240 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:46:12 +00:00
pavlov%pavlov.net
35e4f0d399 initialize mWidget to null
git-svn-id: svn://10.0.0.236/trunk@14239 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:30:50 +00:00
pavlov%pavlov.net
bae8029782 Implimented nsImageGTK. Fixed some compling problems in the other files due
to headers needed in nsImageGTK


git-svn-id: svn://10.0.0.236/trunk@14238 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:24:46 +00:00
pavlov%pavlov.net
2313f1b071 Add the menu bar to the Window correctly.
git-svn-id: svn://10.0.0.236/trunk@14237 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:23:30 +00:00
msw%gimp.org
43d0d8905a Move all the widget to inherit from nsWidget, not nsWindow. Add stub
for mouse events in nsWidget


git-svn-id: svn://10.0.0.236/trunk@14236 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:00:11 +00:00
pavlov%pavlov.net
3282afa5c2 convert nsLabel's to nsWidget instead of nsWindow. Impliment part of
nsPopUpMenu


git-svn-id: svn://10.0.0.236/trunk@14235 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 15:18:51 +00:00
msw%gimp.org
59f0348d97 set the size of buttons on creation. Need to check to make sure this
is the Right Way.


git-svn-id: svn://10.0.0.236/trunk@14234 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 05:43:47 +00:00
troy%netscape.com
d83f2d34ad Added code to StringToAttribute() to handle "border" attribute
git-svn-id: svn://10.0.0.236/trunk@14233 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 05:27:39 +00:00
troy%netscape.com
0185d48b6d Added a copy of the UpdateImageFrame() code from nsImageFrame, so that
when the image size arrives we get notified so we can kick off an
incremental reflow


git-svn-id: svn://10.0.0.236/trunk@14231 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 03:56:11 +00:00
akkana%netscape.com
6f32c3691a Add some more commands to 'gmake build'
git-svn-id: svn://10.0.0.236/trunk@14230 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 03:34:51 +00:00
rickg%netscape.com
4fd4208ee3 allow script in table
git-svn-id: svn://10.0.0.236/trunk@14225 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 02:18:55 +00:00
pavlov%pavlov.net
6fd52ccd4f Initial GTK code for menus.
git-svn-id: svn://10.0.0.236/trunk@14224 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 02:05:59 +00:00
troy%netscape.com
b261b06be6 Fixed DamageRepairFrame() to correctly handle the case where the
target frame has a view


git-svn-id: svn://10.0.0.236/trunk@14223 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 02:00:21 +00:00
saari%netscape.com
7ea3e11e01 Mac only change.
Don't unlock GDeviceHandles. Fixed.
Don't dereference unlocked handles. Fixed.


git-svn-id: svn://10.0.0.236/trunk@14221 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 01:45:03 +00:00
buster%netscape.com
96b01811a9 fixed the bug where events were not getting passed down to content inside
of cells with rowspans.  Basically, I just override HandleEvent() in nsTableRowGroupFrame
to ask nsTableRowFrame::Contains(), rather than the default action which is to
just use the child's rect.


git-svn-id: svn://10.0.0.236/trunk@14218 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 00:36:37 +00:00
troy%netscape.com
433ac3b15e Added a hack to make sure that the floated frame gets a DidReflow notification
git-svn-id: svn://10.0.0.236/trunk@14216 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 00:03:45 +00:00
pavlov%pavlov.net
03823732fb show the widgets so that they appear on the screen
git-svn-id: svn://10.0.0.236/trunk@14215 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 23:46:18 +00:00
shaver%netscape.com
b1c2d66c81 created new nsWidget common baseclass, and reparented nsButton to use it -- more reparenting to follow
git-svn-id: svn://10.0.0.236/trunk@14214 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 23:33:15 +00:00
valeski%netscape.com
a04d9a8d31 turning on NS_NET_FILE
git-svn-id: svn://10.0.0.236/trunk@14213 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 22:55:04 +00:00
rickg%netscape.com
dfcc756a77 tiny fix to allow form tag inside the table tag
git-svn-id: svn://10.0.0.236/trunk@14212 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 21:41:59 +00:00
despotdaemon%netscape.com
2b5a7c8abd Pseudo-automatic update of changes made by jefft@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14211 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 21:16:20 +00:00
terry%netscape.com
b78ecc0e29 Greatly enhance the bot's conversational ability, using the very
latest in AI techniques.


git-svn-id: svn://10.0.0.236/trunk@14210 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 20:53:22 +00:00
despotdaemon%netscape.com
a6bca59cca Pseudo-automatic update of changes made by terry@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@14209 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 20:02:53 +00:00
jsun%netscape.com
50beceb8fa Updated ContentSink to use newer LoadURL API.
git-svn-id: svn://10.0.0.236/trunk@14208 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 19:20:45 +00:00
shaver%netscape.com
2fc303099e improve nsWindow to handle toplevel and embedded windows, and use GtkLayout
git-svn-id: svn://10.0.0.236/trunk@14207 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 18:26:30 +00:00
troy%netscape.com
4301af14c3 Fixed ConstructFrame() so it creates the scroll frame first. This ensures
the style context hierarchy is correct


git-svn-id: svn://10.0.0.236/trunk@14206 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:57:24 +00:00
pinkerton%netscape.com
fa76632d34 implicit int not supported anymore.
git-svn-id: svn://10.0.0.236/trunk@14205 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:24:58 +00:00
troy%netscape.com
2f3cd82513 Changed to make the Mac compiler happy...
git-svn-id: svn://10.0.0.236/trunk@14204 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:24:08 +00:00
shaver%netscape.com
4bc88b9fbd fix compile bustage
git-svn-id: svn://10.0.0.236/trunk@14203 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:11:58 +00:00
pavlov%pavlov.net
421b40e34f fix it. honest!
git-svn-id: svn://10.0.0.236/trunk@14202 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:03:18 +00:00
pavlov%pavlov.net
c864d13235 fix compiling
git-svn-id: svn://10.0.0.236/trunk@14201 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:37:33 +00:00
pavlov%pavlov.net
b02c929071 add these items to the parent widget (layout)
git-svn-id: svn://10.0.0.236/trunk@14200 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:35:24 +00:00
pavlov%pavlov.net
f26dc01bdf add menu to layout, not box
git-svn-id: svn://10.0.0.236/trunk@14199 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:34:20 +00:00
troy%netscape.com
a72ab6c885 Added a comment
git-svn-id: svn://10.0.0.236/trunk@14198 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:24:21 +00:00
troy%netscape.com
222a7c54b8 Added support for using foreground color and background color from user
preferences. Also made it so we observe the preferences, get a callback if
they change, and then do a style change reflow


git-svn-id: svn://10.0.0.236/trunk@14197 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:16:01 +00:00
shaver%netscape.com
bc5ab1f4f3 remove old *.mk sanity checking that isn't needed by autoconf
git-svn-id: svn://10.0.0.236/trunk@14196 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 15:46:39 +00:00
mcafee%netscape.com
b36588fdd4 more comments
git-svn-id: svn://10.0.0.236/trunk@14194 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 09:06:37 +00:00
mcafee%netscape.com
93eb2d576d Initial version
git-svn-id: svn://10.0.0.236/trunk@14193 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 08:39:52 +00:00
valeski%netscape.com
5bfb7eb009 Adding a default directory for the new cache when it's being used in modular_netlib and for windows only. I also added the cache.lib to be dumped to the public dist dir when built.
git-svn-id: svn://10.0.0.236/trunk@14191 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 05:43:01 +00:00
pavlov%pavlov.net
27839170f2 fix the million errors that GTK was giving out when the window was popped up.
Fix it to show menus.


git-svn-id: svn://10.0.0.236/trunk@14190 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 04:45:46 +00:00
akkana%netscape.com
b96e015aaf Tweak to get it to link on Solaris GCC
git-svn-id: svn://10.0.0.236/trunk@14189 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:58:18 +00:00
joki%netscape.com
e8fb4a2070 Fixup calls to DumpCellMap() with NS_DEBUG #ifdefs
git-svn-id: svn://10.0.0.236/trunk@14188 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:38:17 +00:00
spider%netscape.com
f1f10c21ed Allow Image URL's to be set independently. Needed for XML parsing.
git-svn-id: svn://10.0.0.236/trunk@14187 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:24:50 +00:00
kipp%netscape.com
87999ea1e6 Fixed nowrap support by computing max-element-size better
git-svn-id: svn://10.0.0.236/trunk@14186 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:09:21 +00:00
kipp%netscape.com
4e88066b19 Support mapping the character set encoding properly so that codes from 0x80 to 0x9f get mapped into ucs2 properly
git-svn-id: svn://10.0.0.236/trunk@14185 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:07:17 +00:00
akkana%netscape.com
3e2725073a fix build: define gAppContext since it's used and was never defined
git-svn-id: svn://10.0.0.236/trunk@14184 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:02:31 +00:00
spider%netscape.com
e9ec733cab Add GetImageDimensions API
git-svn-id: svn://10.0.0.236/trunk@14183 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:00:25 +00:00
akkana%netscape.com
e26d7f0f4d Remove dlldeps.c reference which was breaking the build
git-svn-id: svn://10.0.0.236/trunk@14182 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:48:22 +00:00
joki%netscape.com
b7f7229b49 Adding focus passing method to nsIWebShellContainer
git-svn-id: svn://10.0.0.236/trunk@14181 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:30:07 +00:00
spider%netscape.com
a29da299d7 Fix crash when image not loaded yet
git-svn-id: svn://10.0.0.236/trunk@14180 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:24:09 +00:00
peterl%netscape.com
aaea73e24c fixed text-decorations some more
git-svn-id: svn://10.0.0.236/trunk@14179 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:06:26 +00:00
peterl%netscape.com
a1a45f062d sync to declaration api change
git-svn-id: svn://10.0.0.236/trunk@14178 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:59:03 +00:00
peterl%netscape.com
ffec4e0aa8 added table-layout
added mix/max width/height
made text-decoration not be cumulative


git-svn-id: svn://10.0.0.236/trunk@14177 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:58:23 +00:00
peterl%netscape.com
840596b54d removed char* apis
fixed ! important property ordering
fixed CSSOM access to ! important properties


git-svn-id: svn://10.0.0.236/trunk@14176 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:56:28 +00:00
peterl%netscape.com
0ec8345b85 removed char* method types
git-svn-id: svn://10.0.0.236/trunk@14175 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:52:57 +00:00
peterl%netscape.com
eec6adfe4e sync to declaration api change
git-svn-id: svn://10.0.0.236/trunk@14174 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:52:30 +00:00
peterl%netscape.com
7219883a0a added default style for INS, DEL & DFN
git-svn-id: svn://10.0.0.236/trunk@14173 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:51:46 +00:00
peterl%netscape.com
bdb4c727fb turned bilnking off when the attribute goes away
git-svn-id: svn://10.0.0.236/trunk@14172 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:50:27 +00:00
peterl%netscape.com
908ed10a5a added min/max width/height
made table inheritance block be conditional on compatibility mode


git-svn-id: svn://10.0.0.236/trunk@14171 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:49:04 +00:00
peterl%netscape.com
9dc8a72ce9 added min/max width/height
git-svn-id: svn://10.0.0.236/trunk@14170 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:48:14 +00:00
joki%netscape.com
5c6e4978a4 Removing unneeded methods from nsIBrowserWindow interface.
git-svn-id: svn://10.0.0.236/trunk@14169 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 23:57:02 +00:00
shaver%netscape.com
2247f3b0ca init the device context -- we display a window now
git-svn-id: svn://10.0.0.236/trunk@14168 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:39:37 +00:00
mjudge%netscape.com
c313227a80 Adding sbr files if you want to browse your classes using .BSC file
git-svn-id: svn://10.0.0.236/trunk@14167 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:32:17 +00:00
jsun%netscape.com
c09283c3d1 adding more files
git-svn-id: svn://10.0.0.236/trunk@14166 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:27:06 +00:00
jsun%netscape.com
8325859f93 Adding source files to parser/core/ical/src.
git-svn-id: svn://10.0.0.236/trunk@14165 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:24:25 +00:00
jsun%netscape.com
92932a5bc5 Parser addition: adding public header files to core/ical/public.
git-svn-id: svn://10.0.0.236/trunk@14164 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:21:03 +00:00
buster%netscape.com
d2c0910241 various small fixes and clean up
git-svn-id: svn://10.0.0.236/trunk@14163 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 21:42:46 +00:00
troy%netscape.com
80f3b31cc4 Changed BODY frame to create a continuing block frame during Init() if
the body has a prev-in-flow


git-svn-id: svn://10.0.0.236/trunk@14162 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 21:41:12 +00:00
spider%netscape.com
6b3dd2fbf4 Expose OnPaint and HandleEvent for cases where a native widget is not
created for the toolbars


git-svn-id: svn://10.0.0.236/trunk@14160 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 21:03:04 +00:00
leaf%mozilla.org
1da0a122f1 updating unix build docs, adding the classic build instructions for when
the new mac/win instructions are added.


git-svn-id: svn://10.0.0.236/trunk@14159 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 20:55:43 +00:00
spider%netscape.com
5460ad7c65 Fix for multiple update commands being sent
git-svn-id: svn://10.0.0.236/trunk@14157 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 20:33:59 +00:00
jsun%netscape.com
6a5e17d8ae adding XPCOM wrapper to parser files.
Not being built yet


git-svn-id: svn://10.0.0.236/trunk@14156 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 20:26:53 +00:00
spider%netscape.com
9433ef1b24 Changed toolbar code to support wrapping in View system
git-svn-id: svn://10.0.0.236/trunk@14155 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:52:50 +00:00
kipp%netscape.com
ba1490b848 Temporary fix to get rid of the green text
git-svn-id: svn://10.0.0.236/trunk@14154 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:38:32 +00:00
kipp%netscape.com
d5112be2e6 Fixed a few more floater bugs; fixed incremental reflow bug with regards to BR tags (clear=all for example); support :first-line properly; work in progress on :first-letter
git-svn-id: svn://10.0.0.236/trunk@14153 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:33:01 +00:00
kipp%netscape.com
73f0843257 Make sure overflow lists get ReResolved too
git-svn-id: svn://10.0.0.236/trunk@14152 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:31:59 +00:00
kipp%netscape.com
a3ee06369b Added UpdateStyleContexts for support change-out of style contexts
git-svn-id: svn://10.0.0.236/trunk@14151 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:31:39 +00:00
kipp%netscape.com
57ec0437e6 Added code to repair the style-contexts when pushing/pulling frames for support of :first-line and :first-letter (and so on!)
git-svn-id: svn://10.0.0.236/trunk@14150 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:31:16 +00:00
kipp%netscape.com
0a19dd88ba Added GetAvailWidth
git-svn-id: svn://10.0.0.236/trunk@14149 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:30:45 +00:00
kipp%netscape.com
119559064d Added some first-letter support
git-svn-id: svn://10.0.0.236/trunk@14148 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:30:31 +00:00
kipp%netscape.com
040c3e3f0e Eliminated hacky version of :first-line support; lay some groundwork for :first-letter support
git-svn-id: svn://10.0.0.236/trunk@14147 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:27:42 +00:00
spider%netscape.com
6add2700e7 Fix to use search path for lesstif as per John Hicks suggestion. Environment
variable shared with mozilla codebase


git-svn-id: svn://10.0.0.236/trunk@14146 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 18:04:06 +00:00
pavlov%pavlov.net
9647c2ec68 cleanups for compile
git-svn-id: svn://10.0.0.236/trunk@14145 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 17:58:08 +00:00
terry%netscape.com
4e6eb8dd45 Added Calendar product.
git-svn-id: svn://10.0.0.236/trunk@14144 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 17:44:28 +00:00
pavlov%pavlov.net
5244715a7e fix a symbol problem which was causing the viewer not to be able to find some
symbols


git-svn-id: svn://10.0.0.236/trunk@14143 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 17:05:34 +00:00
pavlov%pavlov.net
1e524225fe Seperate this dummy file out so that it included things that were not all
motif so people without motif could compile gtk version.


git-svn-id: svn://10.0.0.236/trunk@14142 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 16:35:25 +00:00
pinkerton%netscape.com
0a2edd020d Fix build bustage. Add nsSimplePageSequence.cp
git-svn-id: svn://10.0.0.236/trunk@14141 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 16:25:52 +00:00
rods%netscape.com
17fc612292 Made the webshell have a 3D border
git-svn-id: svn://10.0.0.236/trunk@14140 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 14:15:50 +00:00
407 changed files with 70 additions and 123068 deletions

View File

@@ -0,0 +1,70 @@
#//------------------------------------------------------------------------
#//
#// Makefile to build the machine independent java runtime library
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
DLLNAME = sm$(MOZ_BITS)$(VERSION_NUMBER)
PDBFILE = $(DLLNAME).pdb
MAPFILE = $(DLLNAME).map
DLL =.\$(OBJDIR)\$(DLLNAME).dll
MAKE_OBJ_TYPE = DLL
include <$(DEPTH)\config\config.mak>
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
#LCFLAGS = -DSM_NO_TABLE_DIVISION -DSM_DUMP -DSM_VERIFY=2
LCFLAGS = -DSM_NO_TABLE_DIVISION -DSM_DUMP
!ifndef MOZ_PROF # assume we use a write barrier when profiling
LCFLAGS = $(LCFLAGS) -DSM_NO_WRITE_BARRIER -DSM_CHECK_PTRS -DSM_DEBUG_HEADER
!endif
LLIBS= $(LLIBS) \
$(DEPTH)\dist\WIN32_D.OBJ\lib\libnspr21.lib \
$(DEPTH)\dist\WIN32_D.OBJ\lib\libplds21.lib \
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib

View File

@@ -1,5 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
jsdebug.h

View File

@@ -1,73 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../..
MODULE = jsdebug
LIBRARY_NAME = jsd
# Switching on MOZ_JAVA is a short-term hack. This is really for no Java/IFC
ifdef MOZ_JAVA
JAVA_OR_OJI = 1
endif
ifdef MOZ_OJI
JAVA_OR_OJI = 1
endif
ifdef JAVA_OR_OJI
DIRS = classes
endif
REQUIRES = java js nspr
EXPORTS = jsdebug.h
CSRCS = \
jsdebug.c \
jsd_high.c \
jsd_hook.c \
jsd_scpt.c \
jsd_stak.c \
jsd_text.c \
jsd_lock.c \
$(NULL)
ifndef MOZ_JSD
CSRCS += jsdstubs.c jsd_java.c
JDK_GEN = \
netscape.jsdebug.Script \
netscape.jsdebug.DebugController \
netscape.jsdebug.JSThreadState \
netscape.jsdebug.JSStackFrameInfo \
netscape.jsdebug.JSPC \
netscape.jsdebug.JSSourceTextProvider \
netscape.jsdebug.JSErrorReporter \
$(NULL)
endif
include $(DEPTH)/config/rules.mk
$(OBJDIR)\jsdstubs.o: \
$(JDK_STUB_DIR)\netscape_jsdebug_Script.c \
$(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c

View File

@@ -1,78 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = jsdebug
LIBRARY_NAME = jsd
# Switching on MOZ_JAVA is a short-term hack. This is really for no Java/IFC
ifdef MOZ_JAVA
JAVA_OR_OJI = 1
endif
ifdef MOZ_OJI
JAVA_OR_OJI = 1
endif
ifdef JAVA_OR_OJI
DIRS = classes
endif
REQUIRES = java js
EXPORTS = $(srcdir)/jsdebug.h
CSRCS = \
jsdebug.c \
jsd_high.c \
jsd_hook.c \
jsd_scpt.c \
jsd_stak.c \
jsd_text.c \
jsd_lock.c \
$(NULL)
ifndef MOZ_JSD
CSRCS += jsdstubs.c jsd_java.c
JDK_GEN = \
netscape.jsdebug.Script \
netscape.jsdebug.DebugController \
netscape.jsdebug.JSThreadState \
netscape.jsdebug.JSStackFrameInfo \
netscape.jsdebug.JSPC \
netscape.jsdebug.JSSourceTextProvider \
netscape.jsdebug.JSErrorReporter \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk
$(OBJDIR)\jsdstubs.o: \
$(JDK_STUB_DIR)\netscape_jsdebug_Script.c \
$(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \
$(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c

View File

@@ -1,18 +0,0 @@
/* jband - 10/26/98 - */
js/jsd contains code for debugging support for the C-based JavaScript engine
in js/src.
Currently the makefiles are for Win32 only (using MS nmake.exe from MSDEV 4.2).
jsd.mak will build a standalone dll. jsdshell.mak will build the dll and also
a version of the js/src/js.c shell which will launch a Java VM and run the
JavaSript Debugger (built in js/jsdj). This version assumes that you have a
JRE compatible JVM installed. Only Windows is supported for this Java-based
debugging.
Though only Windows makefiles are supplied, the basic code in js/jsd should
compile for other platforms -- it is a newer version of code that builds and
ships with Communicator 4.x on many platforms.
js/jsd/jsdb is a console debugger using only native code (see README in that
directory)

View File

@@ -1,59 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../../..
MODULE = java
JJSD = netscape/jsdebug
#
# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k.
# Be sure to touch that directory if you add a new directory to
# JDIRS, or else it will not build. XXX
#
JDIRS = $(JJSD)
JAR_JSD = jsd10.jar
JAR_JSD_CLASSES = $(JJSD)
#
# jars to build at install time
#
JARS = $(JAR_JSD)
include $(DEPTH)/config/rules.mk
JAVA_SOURCEPATH = $(DEPTH)/js/jsd/classes
doc::
$(JAVADOC) -d $(DIST)/doc netscape.jsdebug
natives_list:: FORCE
rm -rf $@
find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \
sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@
check_natives:: natives_list
rm -f found_natives
nm -B ../$(OBJDIR)/*.o \
| egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives
diff found_natives natives_list
FORCE:

View File

@@ -1,64 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../../..
topsrcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = java
JJSD = netscape/jsdebug
#
# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k.
# Be sure to touch that directory if you add a new directory to
# JDIRS, or else it will not build. XXX
#
JDIRS = $(JJSD)
JAR_JSD = jsd10.jar
JAR_JSD_CLASSES = $(JJSD)
#
# jars to build at install time
#
JARS = $(JAR_JSD)
include $(topsrcdir)/config/rules.mk
JAVA_SOURCEPATH = $(DEPTH)/js/jsd/classes
doc::
$(JAVADOC) -d $(DIST)/doc netscape.jsdebug
natives_list:: FORCE
rm -rf $@
find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \
sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@
check_natives:: natives_list
rm -f found_natives
nm -B ../$(OBJDIR)/*.o \
| egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives
diff found_natives natives_list
FORCE:

View File

@@ -1,64 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
IGNORE_MANIFEST=1
#
#//------------------------------------------------------------------------
#//
#// Makefile to build the JavaScriptDebug tree
#//
#//------------------------------------------------------------------------
DEPTH = ..\..\..
JAVA_SOURCEPATH=$(DEPTH)\js\jsd\classes
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
include <$(DEPTH)\config\config.mak>
all::
MODULE=java
JJSD=netscape/jsdebug
JDIRS=$(JJSD)
JAR_JSD=jsd10.jar
JAR_JSD_CLASSES=$(JJSD)
JARS=$(JAR_JSD)
include <$(DEPTH)\config\rules.mak>
!if "$(MOZ_BITS)" == "32"
$(JAR_JSD):
cd $(JAVA_DESTPATH)
@echo +++ building/updating $@
$(ZIP_PROG) -$(COMP_LEVEL)qu $@ META-INF\build
-for %i in ($(JAR_JSD_CLASSES:/=\)) do @$(ZIP_PROG) -$(COMP_LEVEL)qu $@ %i\*.class
cd $(MAKEDIR)
!endif
jars: $(JARS)
install:: jars
javadoc:
-mkdir $(XPDIST)\javadoc 2> NUL
echo $(JAVADOC) -sourcepath . -d $(XPDIST)\javadoc $(JDIRS:/=.)
$(JAVADOC) -sourcepath . -d $(XPDIST)\javadoc $(JDIRS:/=.)

View File

@@ -1,41 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* DebugBreakHook must be subclassed to respond when a debug break is
* requested
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public class DebugBreakHook extends Hook {
/**
* Override this method to respond just before a thread
* reaches a particular instruction.
* <p>
* @param debug ThreadState representing the current state
* @param pc the location of the instruction about to be executed
*/
public void aboutToExecute(ThreadStateBase debug, PC pc) {
// defaults to no action
}
}

View File

@@ -1,374 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
import netscape.util.Hashtable;
import netscape.security.PrivilegeManager;
import netscape.security.ForbiddenTargetException;
/**
* This is the master control panel for observing events in the VM.
* Each method setXHook() must be passed an object that extends
* the class XHook. When an event of the specified type
* occurs, a well-known method on XHook will be called (see the
* various XHook classes for details). The method call takes place
* on the same thread that triggered the event in the first place,
* so that any monitors held by the thread which triggered the hook
* will still be owned in the hook method.
* <p>
* This class is meant to be a singleton and has a private constructor.
* Call the static <code>getDebugController()</code> to get this object.
* <p>
* Note that all functions use netscape.security.PrivilegeManager to verify
* that the caller has the "Debugger" privilege. The exception
* netscape.security.ForbiddenTargetException will be throw if this is
* not enabled.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
* @see netscape.security.PrivilegeManager
* @see netscape.security.ForbiddenTargetException
*/
public final class DebugController {
private static final int majorVersion = 1;
private static final int minorVersion = 0;
private static DebugController controller;
private ScriptHook scriptHook;
private Hashtable instructionHookTable;
private InterruptHook interruptHook;
private DebugBreakHook debugBreakHook;
private JSErrorReporter errorReporter;
/**
* Get the DebugController object for the current VM.
* <p>
* @return the singleton DebugController
*/
public static synchronized DebugController getDebugController()
throws ForbiddenTargetException
{
try {
PrivilegeManager.checkPrivilegeEnabled("Debugger");
if (controller == null)
controller = new DebugController();
return controller;
} catch (ForbiddenTargetException e) {
System.out.println("failed in check Priv in DebugController.getDebugController()");
e.printStackTrace(System.out);
throw e;
}
}
private DebugController()
{
scriptTable = new Hashtable();
_setController(true);
}
/**
* Request notification of Script loading events.
* <p>
* Whenever a Script is loaded into or unloaded from the VM
* the appropriate method of the ScriptHook argument will be called.
* Callers are responsible for chaining hooks if chaining is required.
*
* @param h new script hook
* @return the previous hook object (null if none)
*/
public synchronized ScriptHook setScriptHook(ScriptHook h)
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
ScriptHook oldHook = scriptHook;
scriptHook = h;
return oldHook;
}
/**
* Get the current observer of Script events.
* <p>
* @return the current script hook (null if none)
*/
public ScriptHook getScriptHook()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return scriptHook;
}
/**
* Set a hook at the given program counter value.
* <p>
* When a thread reaches that instruction, a ThreadState
* object will be created and the appropriate method
* of the hook object will be called. Callers are responsible
* for chaining hooks if chaining is required.
*
* @param pc pc at which hook should be set
* @param h new hook for this pc
* @return the previous hook object (null if none)
*/
public synchronized InstructionHook setInstructionHook(
PC pc,
InstructionHook h)
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
InstructionHook oldHook;
if (instructionHookTable == null) {
instructionHookTable = new Hashtable();
}
oldHook = (InstructionHook) instructionHookTable.get(pc);
instructionHookTable.put(pc, h);
setInstructionHook0(pc);
return oldHook;
}
private native void setInstructionHook0(PC pc);
/**
* Get the hook at the given program counter value.
* <p>
* @param pc pc for which hook should be found
* @return the hook (null if none)
*/
public InstructionHook getInstructionHook(PC pc)
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return getInstructionHook0(pc);
}
// called by native function
private InstructionHook getInstructionHook0(PC pc)
{
if (instructionHookTable == null)
return null;
else
return (InstructionHook) instructionHookTable.get(pc);
}
/**************************************************************/
/**
* Set the hook at to be called when interrupts occur.
* <p>
* The next instruction which starts to execute after
* <code>sendInterrupt()</code> has been called will
* trigger a call to this hook. A ThreadState
* object will be created and the appropriate method
* of the hook object will be called. Callers are responsible
* for chaining hooks if chaining is required.
*
* @param h new hook
* @return the previous hook object (null if none)
* @see netscape.jsdebug.DebugController#sendInterrupt
*/
public synchronized InterruptHook setInterruptHook( InterruptHook h )
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
InterruptHook oldHook = interruptHook;
interruptHook = h;
return oldHook;
}
/**
* Get the current hook to be called on interrupt
* <p>
* @return the hook (null if none)
*/
public InterruptHook getInterruptHook()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return interruptHook;
}
/**
* Cause the interrupt hook to be called when the next
* JavaScript instruction starts to execute.
* <p>
* The interrupt is self clearing
* @see netscape.jsdebug.DebugController#setInterruptHook
*/
public void sendInterrupt()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
sendInterrupt0();
}
private native void sendInterrupt0();
/**************************************************************/
/**
* Set the hook at to be called when a <i>debug break</i> is requested
* <p>
* Set the hook to be called when <i>JSErrorReporter.DEBUG</i> is returned
* by the <i>error reporter</i> hook. When that happens a ThreadState
* object will be created and the appropriate method
* of the hook object will be called. Callers are responsible
* for chaining hooks if chaining is required.
*
* @param h new hook
* @return the previous hook object (null if none)
* @see netscape.jsdebug.DebugController#setErrorReporter
* @see netscape.jsdebug.JSErrorReporter
*/
public synchronized DebugBreakHook setDebugBreakHook( DebugBreakHook h )
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
DebugBreakHook oldHook = debugBreakHook;
debugBreakHook = h;
return oldHook;
}
/**
* Get the current hook to be called on debug break
* <p>
* @return the hook (null if none)
*/
public DebugBreakHook getDebugBreakHook()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return debugBreakHook;
}
/**************************************************************/
/**
* Get the 'handle' which cooresponds to the native code representing the
* instance of the underlying JavaScript Debugger context.
* <p>
* This would not normally be useful in java. Some of the other classes
* in this package need this. It remains public mostly for historical
* reasons. It serves as a check to see that the native classes have been
* loaded and the built-in native JavaScript Debugger support has been
* initialized. This DebugController is not valid (or useful) when it is
* in a state where this native context equals 0.
*
* @return the native context (0 if none)
*/
public int getNativeContext()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
// System.out.println( "nativecontext = " + _nativeContext + "\n" );
return _nativeContext;
}
private native void _setController( boolean set );
private Hashtable scriptTable;
private int _nativeContext;
/**
* Execute a string as a JavaScript script within a stack frame
* <p>
* This method can be used to execute arbitrary sets of statements on a
* stopped thread. It is useful for inspecting and modifying data.
* <p>
* This method can only be called while the JavaScript thread is stopped
* - i.e. as part of the code responding to a hook. Thgis method
* <b>must</b> be called on the same thread as was executing when the
* hook was called.
* <p>
* If an error occurs while execuing this code, then the error
* reporter hook will be called if present.
*
* @param frame the frame context in which to evaluate this script
* @param text the script text
* @param filename where to tell the JavaScript engine this code came
* from (it is usually best to make this the same as the filename of
* code represented by the frame)
* @param lineno the line number to pass to JS ( >=1 )
* @return The result of the script execution converted to a string.
* (null if the result was null or void)
*/
public String executeScriptInStackFrame( JSStackFrameInfo frame,
String text,
String filename,
int lineno )
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return executeScriptInStackFrame0( frame, text, filename, lineno );
}
private native String executeScriptInStackFrame0( JSStackFrameInfo frame,
String text,
String filename,
int lineno );
/**
* Set the hook at to be called when a JavaScript error occurs
* <p>
* @param er new error reporter hook
* @return the previous hook object (null if none)
* @see netscape.jsdebug.JSErrorReporter
*/
public JSErrorReporter setErrorReporter(JSErrorReporter er)
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
JSErrorReporter old = errorReporter;
errorReporter = er;
return old;
}
/**
* Get the hook at to be called when a JavaScript error occurs
* <p>
* @return the hook object (null if none)
* @see netscape.jsdebug.JSErrorReporter
*/
public JSErrorReporter getErrorReporter()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return errorReporter;
}
/**
* Get the major version number of this module
* <p>
* @return the version number
*/
public static int getMajorVersion() {return majorVersion;}
/**
* Get the minor version number of this module
* <p>
* @return the version number
*/
public static int getMinorVersion() {return minorVersion;}
private static native int getNativeMajorVersion();
private static native int getNativeMinorVersion();
}

View File

@@ -1,32 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* An instance of this class is returned for each hook set by
* the debugger as a handle for removing the hook later.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public abstract class Hook {
}

View File

@@ -1,55 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* InstructionHook must be subclassed to respond to hooks
* at a particular program instruction.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public class InstructionHook extends Hook {
private PC pc;
/**
* Create an InstructionHook at the given PC value.
*/
public InstructionHook(PC pc) {
this.pc = pc;
}
/**
* Get the instruction that the hook is set at.
*/
public PC getPC() {
return pc;
}
/**
* Override this method to respond just before a thread
* reaches a particular instruction.
*/
/* jband - 03/31/97 - I made this public to allow chaining */
public void aboutToExecute(ThreadStateBase debug) {
// defaults to no action
}
}

View File

@@ -1,39 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* InterruptHook must be subclassed to respond when interrupts occur
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public class InterruptHook extends Hook {
/**
* Override this method to respond when interrupts occur
* @param debug the state of this thread
* @param pc the pc of the instruction about to execute
*/
public void aboutToExecute(ThreadStateBase debug, PC pc) {
// defaults to no action
}
}

View File

@@ -1,46 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* Exception to indicate bad thread state etc...
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public class InvalidInfoException extends Exception {
/**
* Constructs a InvalidInfoException without a detail message.
* A detail message is a String that describes this particular exception.
*/
public InvalidInfoException() {
super();
}
/**
* Constructs a InvalidInfoException with a detail message.
* A detail message is a String that describes this particular exception.
* @param s the detail message
*/
public InvalidInfoException(String s) {
super(s);
}
}

View File

@@ -1,70 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This is a special kind of hook to respond to JavaScript errors
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public interface JSErrorReporter
{
/* keep these in sync with the numbers in jsdebug.h */
/**
* returned by <code>reportError()</code> to indicate that the error
* should be passed along to the error reporter that would have been
* called had the debugger not been running
*/
public static final int PASS_ALONG = 0;
/**
* returned by <code>reportError()</code> to indicate that the
* normal error reporter should not be called and that the JavaScript
* engine should do whatever it would normally do after calling the
* error reporter.
*/
public static final int RETURN = 1;
/**
* returned by <code>reportError()</code> to indicate that the
* 'debug break' hook should be called to allow the debugger to
* investigate the state of the process when the error occured
*/
public static final int DEBUG = 2;
/**
* This hook is called when a JavaScript error (compile or runtime) occurs
* <p>
* One of the codes above should be returned to tell the engine how to
* proceed.
* @param msg error message passed through from the JavaScript engine
* @param filename filename (or url) of the code with the error
* @param lineno line number where error was detected
* @param linebuf a copy of the line where the error was detected
* @param tokenOffset the offset into <i>linebuf</i> where the error
* was detected
* @returns one of the codes above
*/
public int reportError( String msg,
String filename,
int lineno,
String linebuf,
int tokenOffset );
}

View File

@@ -1,76 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This subclass of PC provides JavaScript-specific information.
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public final class JSPC extends PC {
private Script script;
private int pc;
public JSPC(Script script, int pc) {
this.script = script;
this.pc = pc;
}
public Script getScript() {
return script;
}
public int getPC() {
return pc;
}
public boolean isValid()
{
return script.isValid();
}
/**
* Get the SourceLocation associated with this PC value.
* returns null if the source location is unavailable.
*/
public native SourceLocation getSourceLocation();
/**
* Ask whether two program counter values are equal.
*/
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!(obj instanceof JSPC))
return false;
JSPC jspc = (JSPC) obj;
return (jspc.script == script && jspc.pc == pc);
}
public int hashCode() {
return script.hashCode() + pc;
}
public String toString() {
return "<PC "+script+"+"+pc+">";
}
}

View File

@@ -1,63 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* JAvaScript specific SourceLocation
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public class JSSourceLocation extends SourceLocation
{
public JSSourceLocation( JSPC pc, int line )
{
_pc = pc;
_line = line;
_url = pc.getScript().getURL();
}
/**
* Gets the first line number associated with this SourceLocation.
* This is the lowest common denominator information that will be
* available: some implementations may choose to include more
* specific location information in a subclass of SourceLocation.
*/
public int getLine() {return _line;}
public String getURL() {return _url;}
/**
* Get the first PC associated with a given SourceLocation.
* This is the place to set a breakpoint at that location.
* returns null if there is no code corresponding to that source
* location.
*/
public PC getPC() {return _pc;}
public String toString()
{
return "<SourceLocation "+_url+"#"+_line+">";
}
private JSPC _pc;
private int _line;
private String _url;
}

View File

@@ -1,130 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
import netscape.util.Vector;
import netscape.security.PrivilegeManager;
import netscape.security.ForbiddenTargetException;
/**
* This class provides access to SourceText items.
* <p>
* This class is meant to be a singleton and has a private constructor.
* Call the static <code>getSourceTextProvider()</code> to get this object.
* <p>
* Note that all functions use netscape.security.PrivilegeManager to verify
* that the caller has the "Debugger" privilege. The exception
* netscape.security.ForbiddenTargetException will be throw if this is
* not enabled.
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
* @see netscape.security.PrivilegeManager
* @see netscape.security.ForbiddenTargetException
*/
public final class JSSourceTextProvider extends SourceTextProvider
{
private JSSourceTextProvider( long nativeContext )
{
_sourceTextVector = new Vector();
_nativeContext = nativeContext;
}
/**
* Get the SourceTextProvider object for the current VM.
* <p>
* @return the singleton SourceTextProvider
*/
public static synchronized SourceTextProvider getSourceTextProvider()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
if( null == _sourceTextProvider )
{
long nativeContext = DebugController.getDebugController().getNativeContext();
if( 0 != nativeContext )
_sourceTextProvider = new JSSourceTextProvider(nativeContext);
}
return _sourceTextProvider;
}
/**
* Get the SourceText item for the given URL
*/
public SourceTextItem findSourceTextItem( String url )
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return findSourceTextItem0(url);
}
// also called from native code...
private SourceTextItem findSourceTextItem0( String url )
{
synchronized( _sourceTextVector )
{
for (int i = 0; i < _sourceTextVector.size(); i++)
{
SourceTextItem src = (SourceTextItem) _sourceTextVector.elementAt(i);
if( src.getURL().equals(url) )
return src;
}
return null;
}
}
/**
* Return the vector of SourceTextItems.
* <p>
* This is NOT a copy. nor is it necessarily current
*/
public Vector getSourceTextVector()
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return _sourceTextVector;
}
/**
* Load the SourceText item for the given URL
* <p>
* <B>This is not guaranteed to be implemented</B>
*/
public synchronized SourceTextItem loadSourceTextItem( String url )
throws ForbiddenTargetException
{
PrivilegeManager.checkPrivilegeEnabled("Debugger");
return loadSourceTextItem0( url );
}
private native SourceTextItem loadSourceTextItem0( String url );
/**
* Refresh the vector to reflect any changes made in the
* underlying native system
*/
public synchronized native void refreshSourceTextVector();
private static SourceTextProvider _sourceTextProvider = null;
private Vector _sourceTextVector;
private long _nativeContext;
}

View File

@@ -1,51 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This interface provides access to the execution stack of a thread.
* It has several subclasses to distinguish between different kinds of
* stack frames: these currently include activations of Java methods
* or JavaScript functions.
* It is possible that synchronize blocks and try blocks deserve their own
* stack frames - to allow for later extensions a debugger should skip over
* stack frames it doesn't understand.
* Note that this appears very Java-specific. However, multiple threads and
* exceptions are relevant to JavaScript as well because of its
* interoperation with Java.
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public final class JSStackFrameInfo extends StackFrameInfo
{
public JSStackFrameInfo(JSThreadState threadState) {
super(threadState);
}
protected native StackFrameInfo getCaller0()
throws InvalidInfoException;
public native PC getPC()
throws InvalidInfoException;
private int _nativePtr; // used internally
}

View File

@@ -1,80 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This is the JavaScript specific implementation of the thread state
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public final class JSThreadState extends ThreadStateBase
{
/**
* <B><font color="red">Not Implemented.</font></B>
* Always throws <code>InternalError("unimplemented")</code>
*/
public static ThreadStateBase getThreadState(Thread t)
throws InvalidInfoException
{
throw new InternalError("unimplemented");
}
/**
* get the count of frames
*/
public native int countStackFrames()
throws InvalidInfoException;
/**
* get the 'top' frame
*/
public native StackFrameInfo getCurrentFrame()
throws InvalidInfoException;
/**
* <B><font color="red">Not Implemented.</font></B>
* Always throws <code>InternalError("unimplemented")</code>
*/
public Thread getThread()
{
throw new InternalError("unimplemented");
}
/**
* <B><font color="red">Not Implemented.</font></B>
* Always throws <code>InternalError("unimplemented")</code>
*/
public void leaveSuspended()
{
throw new InternalError("unimplemented");
}
/**
* <B><font color="red">Not Implemented.</font></B>
* Always throws <code>InternalError("unimplemented")</code>
*/
protected void resume0()
{
throw new InternalError("unimplemented");
}
protected int nativeThreadState; /* used internally */
}

View File

@@ -1,42 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* The PC class is an opaque representation of a program counter. It
* may have different implementations for interpreted Java methods,
* methods compiled by the JIT, JavaScript methods, etc.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public abstract class PC {
/**
* Get the SourceLocation associated with this PC value.
* returns null if the source location is unavailable.
*/
public abstract SourceLocation getSourceLocation();
/**
* Ask whether two program counter values are equal.
*/
public abstract boolean equals(Object obj);
}

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This instances of this class represent the JavaScript string object. This
* class is intended to only be constructed by the underlying native code.
* The DebugController will construct an instance of this class when scripts
* are created and that instance will always be used to reference the underlying
* script throughout the lifetime of that script.
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public final class Script
{
public String getURL() {return _url; }
public String getFunction() {return _function; }
public int getBaseLineNumber() {return _baseLineNumber;}
public int getLineExtent() {return _lineExtent; }
public boolean isValid() {return 0 != _nativePtr;}
/**
* Get the PC of the first executable code on or after the given
* line in this script. returns null if none
*/
public native JSPC getClosestPC(int line);
public String toString()
{
int end = _baseLineNumber+_lineExtent-1;
if( null == _function )
return "<Script "+_url+"["+_baseLineNumber+","+end+"]>";
else
return "<Script "+_url+"#"+_function+"()["+_baseLineNumber+","+end+"]>";
}
public int hashCode()
{
return _nativePtr;
}
public boolean equals(Object obj)
{
if( obj == this )
return true;
// In our system the native code is the only code that generates
// these objects. They are never duplicated
return false;
/*
if( !(obj instanceof Script) )
return false;
return 0 != _nativePtr && _nativePtr == ((Script)obj)._nativePtr;
*/
}
private synchronized void _setInvalid() {_nativePtr = 0;}
private String _url;
private String _function;
private int _baseLineNumber;
private int _lineExtent;
private int _nativePtr; // used internally
}

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* ScriptHook must be subclassed to respond to loading and
* unloading of scripts
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public class ScriptHook extends Hook
{
/**
* Create a ScriptHook for current the current VM.
*/
public ScriptHook() {}
/**
* Override this method to respond when a new script is
* loaded into the VM.
*
* @param script a script object created by the controller to
* represent this script. This exact same object will be used
* in all further references to the script.
*/
public void justLoadedScript(Script script) {
// defaults to no action
}
/**
* Override this method to respond when a class is
* about to be unloaded from the VM.
*
* @param script which will be unloaded
*/
public void aboutToUnloadScript(Script script) {
// defaults to no action
}
}

View File

@@ -1,53 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* An implementation of the SourceLocation interface is used to represent
* a location in a source file. Java classfiles only make source locations
* available at the line-by-line granularity, but other languages may
* include finer-grain information. At this time only line number
* information is included.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
/* XXX must source locations be contiguous? */
public abstract class SourceLocation {
/**
* Gets the first line number associated with this SourceLocation.
* This is the lowest common denominator information that will be
* available: some implementations may choose to include more
* specific location information in a subclass of SourceLocation.
*
* @returns source line number cooresponding to this location
*/
public abstract int getLine();
/**
* Get the first PC associated with a given SourceLocation.
* This is the place to set a breakpoint at that location.
*
* @returns pc object or null if there is no code corresponding
* to this source location.
*/
public abstract PC getPC();
}

View File

@@ -1,107 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This class is used to represent a file or url which contains
* JavaScript source text. The actual JavaScript source may be intermixed
* with other text (as in an html file) or raw. The debugger uses this
* interface to access the source. The file of the actual source need
* not physially exist anywhere; i.e. the underlying engine might synthesize
* it as needed.
* <p>
* The <i>url</i> of this class is immutable -- it represents a key in
* collections of these objects
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public class SourceTextItem
{
/* these coorespond to jsdebug.h values - change in both places if anywhere */
/**
* This object is initialized, but contains no text
*/
public static final int INITED = 0;
/**
* This object contains the full text
*/
public static final int FULL = 1;
/**
* This object contains the partial text (valid , but more may come later)
*/
public static final int PARTIAL = 2;
/**
* This object may contain partial text, but loading was aborted (by user?)
*/
public static final int ABORTED = 3;
/**
* This object may contain partial text, but loading failed (or the
* underlying debugger support was unable to capture it; e.g.
* not enough memory...)
*/
public static final int FAILED = 4;
/**
* This object contains no text because the debugger has signaled that
* the text is no longer needed
*/
public static final int CLEARED = 5;
/**
* Constuct for url (which is immutable during the lifetime of the object)
* <p>
* Presumably, text will be added later
* @param url url or filename by which this object will be known
*/
public SourceTextItem( String url )
{
this( url, (String)null, INITED );
}
/**
* Constuct for url with text and status
* <p>
* @param url url or filename by which this object will be known
* @param text source text this object should start with
* @param status status this object should start with
*/
public SourceTextItem( String url, String text, int status )
{
_url = url;
_text = text;
_status = status;
_dirty = true;
}
public String getURL() {return _url; }
public String getText() {return _text; }
public int getStatus() {return _status;}
public boolean getDirty() {return _dirty; }
public void setText(String text) {_text = text;}
public void setStatus(int status) {_status = status;}
public void setDirty(boolean b) {_dirty = b; }
private String _url;
private String _text;
private int _status;
private boolean _dirty;
}

View File

@@ -1,58 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
import netscape.util.Vector;
import netscape.security.ForbiddenTargetException;
/**
* Abstract class to represent entity capable of providing access to source text
*
* @author John Bandhauer
* @version 1.0
* @since 1.0
*/
public abstract class SourceTextProvider
{
public static SourceTextProvider getSourceTextProvider() throws Exception
{
return null;
}
/**
* Return the vector of SourceTextItems.
* <p>
* This is not liekly to be a copy. nor is it necessarily current
*/
public abstract Vector getSourceTextVector() throws ForbiddenTargetException;
/**
* Refresh the vector by whatever means to reflect any changes made in the
* underlying native system
*/
public abstract void refreshSourceTextVector();
/**
* Get the SourceText item for the given URL
*/
public abstract SourceTextItem findSourceTextItem( String url ) throws ForbiddenTargetException;
/**
* Load the SourceText item for the given URL
* <p>
* <B>This is not guaranteed to be implemented</B>
*/
public abstract SourceTextItem loadSourceTextItem( String url ) throws ForbiddenTargetException;
}

View File

@@ -1,94 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/**
* This interface provides access to the execution stack of a thread.
* It has several subclasses to distinguish between different kinds of
* stack frames: these currently include activations of Java methods
* or JavaScript functions.
* It is possible that synchronize blocks and try blocks deserve their own
* stack frames - to allow for later extensions a debugger should skip over
* stack frames it doesn't understand.
* Note that this appears very Java-specific. However, multiple threads and
* exceptions are relevant to JavaScript as well because of its
* interoperation with Java.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public abstract class StackFrameInfo {
ThreadStateBase threadState;
StackFrameInfo caller;
protected StackFrameInfo(ThreadStateBase threadState) {
this.threadState = threadState;
}
/**
* Return true if this stack frame is still valid. Stack frames
* may become invalid when the thread is resumed (this is more
* conservative than invalidating the frame only when it actually
* returns).
*/
public boolean isValid() {
return threadState.isValid();
}
/**
* Get the stack frame where this one was built, or null for the
* start of the stack.
*/
public synchronized StackFrameInfo getCaller()
throws InvalidInfoException {
if (caller == null)
caller = getCaller0();
if (!isValid())
throw new InvalidInfoException("invalid StackFrameInfo");
return caller;
}
protected abstract StackFrameInfo getCaller0()
throws InvalidInfoException;
/**
* Get the thread that this stack frame is a part of.
*/
public Thread getThread() {
return threadState.getThread();
}
/**
* Get the 'enclosing' thread state
*/
public ThreadStateBase getThreadState() {
return threadState;
}
/**
* Get the current program counter value. Note that the
* class JavaPC supports the getMethod() operation.
*/
public abstract PC getPC()
throws InvalidInfoException;
}

View File

@@ -1,241 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.jsdebug;
/*
* jband - 03/19/97
*
* This is an 'abstracted version of netscape.debug.ThreadState
*
* The methods that were 'native' there are 'abstract' here.
* Changed 'private' data to 'protected' (though native access is immune)
* Changed 'private' resume0() to 'protected'
* Removed ThreadHook referneces
*
*/
/**
* When a hook is hit, the debugger records the state of the
* thread before the hook in a ThreadState object. This object
* is then passed to any hook methods that are called, and can
* be used to change the state of the thread when it resumes from the
* hook.
*
* @author John Bandhauer
* @author Nick Thompson
* @version 1.0
* @since 1.0
*/
public abstract class ThreadStateBase {
protected Thread thread;
protected boolean valid;
protected boolean runningHook;
protected boolean resumeWhenDone;
protected int status;
protected int continueState;
protected StackFrameInfo[] stack; /* jband - 03/19/97 - had no access modifier */
protected Object returnValue;
protected Throwable currentException;
protected int currentFramePtr; /* used internally */
protected ThreadStateBase previous;
/**
* <B><font color="red">Not Implemented.</font></B>
* Always throws <code>InternalError("unimplemented")</code>
*/
public static ThreadStateBase getThreadState(Thread t)
throws InvalidInfoException
{
throw new InternalError("unimplemented");
}
/**
* Get the Thread that this ThreadState came from.
*/
public Thread getThread() {
return thread;
}
/**
* Return true if the Thread hasn't been resumed since this ThreadState
* was made.
*/
public boolean isValid() {
return valid;
}
/**
* Return true if the thread is currently running a hook
* for this ThreadState
*/
public boolean isRunningHook() {
return runningHook;
}
/**
* partial list of thread states from sun.debug.ThreadInfo.
* XXX some of these don't apply.
*/
public final static int THR_STATUS_UNKNOWN = 0x01;
public final static int THR_STATUS_ZOMBIE = 0x02;
public final static int THR_STATUS_RUNNING = 0x03;
public final static int THR_STATUS_SLEEPING = 0x04;
public final static int THR_STATUS_MONWAIT = 0x05;
public final static int THR_STATUS_CONDWAIT = 0x06;
public final static int THR_STATUS_SUSPENDED = 0x07;
public final static int THR_STATUS_BREAK = 0x08;
/**
* Get the state of the thread at the time it entered debug mode.
* This can't be modified directly.
*/
public int getStatus() {
return status;
}
/**
* Get the count of the stackframes
*/
public abstract int countStackFrames()
throws InvalidInfoException;
/**
* Get the 'top' stackframe; i.e. the one with the current instruction
*/
public abstract StackFrameInfo getCurrentFrame()
throws InvalidInfoException;
/**
* Get the thread's stack as an array. stack[stack.length-1] is the
* current frame, and stack[0] is the beginning of the stack.
*/
public synchronized StackFrameInfo[] getStack()
throws InvalidInfoException {
// XXX check valid?
if (stack == null) {
stack = new StackFrameInfo[countStackFrames()];
}
if (stack.length == 0)
return stack;
StackFrameInfo frame = getCurrentFrame();
stack[stack.length - 1] = frame;
for (int i = stack.length - 2; i >= 0; i--) {
frame = frame.getCaller();
stack[i] = frame;
}
// should really be read-only for safety
return stack;
}
/**
* Leave the thread in a suspended state when the hook method(s)
* finish. This can be undone by calling resume(). This is the
* default only if the break was the result of
* DebugController.sendInterrupt().
*/
public void leaveSuspended() {
resumeWhenDone = false;
}
/**
* Resume the thread. This is the default unless the break was the result
* of DebugController.sendInterrupt(). This method may be called from a
* hook method, in which case the thread will resume when the
* method returns.
* Alternatively, if there is no active hook method and
* the thread is suspended around in the DebugFrame, this resumes it
* immediately.
*/
public synchronized void resume() {
if (runningHook)
resumeWhenDone = true;
else
resume0();
}
protected abstract void resume0();
/**
* if the continueState is DEAD, the thread cannot
* be restarted.
*/
public final static int DEBUG_STATE_DEAD = 0x01;
/**
* if the continueState is RUN, the thread will
* proceed to the next program counter value when it resumes.
*/
public final static int DEBUG_STATE_RUN = 0x02;
/**
* if the continueState is RETURN, the thread will
* return from the current method with the value in getReturnValue()
* when it resumes.
*/
public final static int DEBUG_STATE_RETURN = 0x03;
/**
* if the continueState is THROW, the thread will
* throw an exception (accessible with getException()) when it
* resumes.
*/
public final static int DEBUG_STATE_THROW = 0x04;
/**
* This gets the current continue state of the debug frame, which
* will be one of the DEBUG_STATE_* values above.
*/
public int getContinueState() {
return continueState;
}
public int setContinueState(int state) {
int old = continueState;
continueState = state;
return old;
}
/**
* If the thread was stopped while in the process of returning
* a value, this call returns an object representing that value.
* non-Object values are wrapped as in the java.lang.reflect api.
* This is only relevant if the continue state is RETURN, and the
* method throws an IllegalStateException otherwise.
*/
public Object getReturnValue() throws IllegalStateException {
if (continueState != DEBUG_STATE_RETURN)
throw new IllegalStateException("no value being returned");
return returnValue;
}
/**
* If the thread was stopped while in the process of throwing an
* exception, this call returns that exception.
* This is only relevant if the continue state is THROW, and it
* throws an IllegalStateException otherwise.
*/
public Throwable getException() throws IllegalStateException {
if (continueState != DEBUG_STATE_THROW)
throw new IllegalStateException("no exception throw in progress");
return currentException;
}
}

View File

@@ -1,190 +0,0 @@
struct Thing {
string s;
long i;
};
interface StringReciever {
void recieveString(
in string arg0
);
void bounce(
in long arg0
);
};
interface TestInterface {
string getFirstAppInList();
void getAppNames(
in ::StringReciever arg0
);
typedef sequence<::Thing> sequence_of_Thing;
::TestInterface::sequence_of_Thing getThings();
void callBounce(
in ::StringReciever arg0,
in long arg1
);
};
interface ISourceTextProvider {
typedef sequence<string> sequence_of_string;
::ISourceTextProvider::sequence_of_string getAllPages();
void refreshAllPages();
boolean hasPage(
in string arg0
);
boolean loadPage(
in string arg0
);
void refreshPage(
in string arg0
);
string getPageText(
in string arg0
);
long getPageStatus(
in string arg0
);
long getPageAlterCount(
in string arg0
);
};
struct IScriptSection {
long base;
long extent;
};
typedef sequence<::IScriptSection> sequence_of_IScriptSection;
struct IScript {
string url;
string funname;
long base;
long extent;
long jsdscript;
::sequence_of_IScriptSection sections;
};
struct IJSPC {
::IScript script;
long offset;
};
struct IJSSourceLocation {
long line;
::IJSPC pc;
};
interface IJSErrorReporter {
long reportError(
in string arg0,
in string arg1,
in long arg2,
in string arg3,
in long arg4
);
};
interface IScriptHook {
void justLoadedScript(
in ::IScript arg0
);
void aboutToUnloadScript(
in ::IScript arg0
);
};
struct IJSStackFrameInfo {
::IJSPC pc;
long jsdframe;
};
typedef sequence<::IJSStackFrameInfo> sequence_of_IJSStackFrameInfo;
struct IJSThreadState {
::sequence_of_IJSStackFrameInfo stack;
long continueState;
string returnValue;
long status;
long jsdthreadstate;
long id;
};
interface IJSExecutionHook {
void aboutToExecute(
in ::IJSThreadState arg0,
in ::IJSPC arg1
);
};
struct IExecResult {
string result;
boolean errorOccured;
string errorMessage;
string errorFilename;
long errorLineNumber;
string errorLineBuffer;
long errorTokenOffset;
};
interface IDebugController {
long getMajorVersion();
long getMinorVersion();
::IJSErrorReporter setErrorReporter(
in ::IJSErrorReporter arg0
);
::IJSErrorReporter getErrorReporter();
::IScriptHook setScriptHook(
in ::IScriptHook arg0
);
::IScriptHook getScriptHook();
::IJSPC getClosestPC(
in ::IScript arg0,
in long arg1
);
::IJSSourceLocation getSourceLocation(
in ::IJSPC arg0
);
::IJSExecutionHook setInterruptHook(
in ::IJSExecutionHook arg0
);
::IJSExecutionHook getInterruptHook();
::IJSExecutionHook setDebugBreakHook(
in ::IJSExecutionHook arg0
);
::IJSExecutionHook getDebugBreakHook();
::IJSExecutionHook setInstructionHook(
in ::IJSExecutionHook arg0,
in ::IJSPC arg1
);
::IJSExecutionHook getInstructionHook(
in ::IJSPC arg0
);
void setThreadContinueState(
in long arg0,
in long arg1
);
void setThreadReturnValue(
in long arg0,
in string arg1
);
void sendInterrupt();
void sendInterruptStepInto(
in long arg0
);
void sendInterruptStepOver(
in long arg0
);
void sendInterruptStepOut(
in long arg0
);
void reinstateStepper(
in long arg0
);
::IExecResult executeScriptInStackFrame(
in long arg0,
in ::IJSStackFrameInfo arg1,
in string arg2,
in string arg3,
in long arg4
);
boolean isRunningHook(
in long arg0
);
boolean isWaitingForResume(
in long arg0
);
void leaveThreadSuspended(
in long arg0
);
void resumeThread(
in long arg0
);
void iterateScripts(
in ::IScriptHook arg0
);
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,777 +0,0 @@
#ifndef _ifaces_s_hh
#define _ifaces_s_hh
#include "ifaces_c.hh"
/************************************************************************/
/* */
/* This file is automatically generated by ORBeline IDL compiler */
/* Do not modify this file. */
/* */
/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */
/* */
/* The generated code conforms to OMG's IDL C++ mapping as */
/* specified in OMG Document Number: 94-9-14. */
/* */
/************************************************************************/
class _sk_StringReciever : public StringReciever
{
protected:
_sk_StringReciever(const char *object_name = (const char *)NULL);
_sk_StringReciever(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_StringReciever() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual void recieveString(const char * arg0) = 0;
virtual void bounce(CORBA::Long arg0) = 0;
// Skeleton Operations implemented automatically
static void _recieveString(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _bounce(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_StringReciever : public StringReciever
{
public:
_tie_StringReciever(T& t, const char *obj_name=(char*)NULL) :
StringReciever(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_StringReciever(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_StringReciever() {}
void recieveString(const char * arg0) {
_ref.recieveString(
arg0);
}
void bounce(CORBA::Long arg0) {
_ref.bounce(
arg0);
}
private:
T& _ref;
};
class _sk_TestInterface : public TestInterface
{
protected:
_sk_TestInterface(const char *object_name = (const char *)NULL);
_sk_TestInterface(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_TestInterface() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual char * getFirstAppInList() = 0;
virtual void getAppNames(StringReciever_ptr arg0) = 0;
virtual TestInterface::sequence_of_Thing * getThings() = 0;
virtual void callBounce(StringReciever_ptr arg0,
CORBA::Long arg1) = 0;
// Skeleton Operations implemented automatically
static void _getFirstAppInList(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getAppNames(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getThings(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _callBounce(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_TestInterface : public TestInterface
{
public:
_tie_TestInterface(T& t, const char *obj_name=(char*)NULL) :
TestInterface(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_TestInterface(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_TestInterface() {}
char * getFirstAppInList() {
return _ref.getFirstAppInList();
}
void getAppNames(StringReciever_ptr arg0) {
_ref.getAppNames(
arg0);
}
TestInterface::sequence_of_Thing * getThings() {
return _ref.getThings();
}
void callBounce(StringReciever_ptr arg0,
CORBA::Long arg1) {
_ref.callBounce(
arg0,
arg1);
}
private:
T& _ref;
};
class _sk_ISourceTextProvider : public ISourceTextProvider
{
protected:
_sk_ISourceTextProvider(const char *object_name = (const char *)NULL);
_sk_ISourceTextProvider(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_ISourceTextProvider() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual ISourceTextProvider::sequence_of_string * getAllPages() = 0;
virtual void refreshAllPages() = 0;
virtual CORBA::Boolean hasPage(const char * arg0) = 0;
virtual CORBA::Boolean loadPage(const char * arg0) = 0;
virtual void refreshPage(const char * arg0) = 0;
virtual char * getPageText(const char * arg0) = 0;
virtual CORBA::Long getPageStatus(const char * arg0) = 0;
virtual CORBA::Long getPageAlterCount(const char * arg0) = 0;
// Skeleton Operations implemented automatically
static void _getAllPages(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _refreshAllPages(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _hasPage(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _loadPage(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _refreshPage(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getPageText(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getPageStatus(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getPageAlterCount(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_ISourceTextProvider : public ISourceTextProvider
{
public:
_tie_ISourceTextProvider(T& t, const char *obj_name=(char*)NULL) :
ISourceTextProvider(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_ISourceTextProvider(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_ISourceTextProvider() {}
ISourceTextProvider::sequence_of_string * getAllPages() {
return _ref.getAllPages();
}
void refreshAllPages() {
_ref.refreshAllPages();
}
CORBA::Boolean hasPage(const char * arg0) {
return _ref.hasPage(
arg0);
}
CORBA::Boolean loadPage(const char * arg0) {
return _ref.loadPage(
arg0);
}
void refreshPage(const char * arg0) {
_ref.refreshPage(
arg0);
}
char * getPageText(const char * arg0) {
return _ref.getPageText(
arg0);
}
CORBA::Long getPageStatus(const char * arg0) {
return _ref.getPageStatus(
arg0);
}
CORBA::Long getPageAlterCount(const char * arg0) {
return _ref.getPageAlterCount(
arg0);
}
private:
T& _ref;
};
class _sk_IJSErrorReporter : public IJSErrorReporter
{
protected:
_sk_IJSErrorReporter(const char *object_name = (const char *)NULL);
_sk_IJSErrorReporter(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_IJSErrorReporter() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual CORBA::Long reportError(const char * arg0,
const char * arg1,
CORBA::Long arg2,
const char * arg3,
CORBA::Long arg4) = 0;
// Skeleton Operations implemented automatically
static void _reportError(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_IJSErrorReporter : public IJSErrorReporter
{
public:
_tie_IJSErrorReporter(T& t, const char *obj_name=(char*)NULL) :
IJSErrorReporter(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_IJSErrorReporter(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_IJSErrorReporter() {}
CORBA::Long reportError(const char * arg0,
const char * arg1,
CORBA::Long arg2,
const char * arg3,
CORBA::Long arg4) {
return _ref.reportError(
arg0,
arg1,
arg2,
arg3,
arg4);
}
private:
T& _ref;
};
class _sk_IScriptHook : public IScriptHook
{
protected:
_sk_IScriptHook(const char *object_name = (const char *)NULL);
_sk_IScriptHook(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_IScriptHook() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual void justLoadedScript(const IScript& arg0) = 0;
virtual void aboutToUnloadScript(const IScript& arg0) = 0;
// Skeleton Operations implemented automatically
static void _justLoadedScript(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _aboutToUnloadScript(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_IScriptHook : public IScriptHook
{
public:
_tie_IScriptHook(T& t, const char *obj_name=(char*)NULL) :
IScriptHook(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_IScriptHook(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_IScriptHook() {}
void justLoadedScript(const IScript& arg0) {
_ref.justLoadedScript(
arg0);
}
void aboutToUnloadScript(const IScript& arg0) {
_ref.aboutToUnloadScript(
arg0);
}
private:
T& _ref;
};
class _sk_IJSExecutionHook : public IJSExecutionHook
{
protected:
_sk_IJSExecutionHook(const char *object_name = (const char *)NULL);
_sk_IJSExecutionHook(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_IJSExecutionHook() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual void aboutToExecute(const IJSThreadState& arg0,
const IJSPC& arg1) = 0;
// Skeleton Operations implemented automatically
static void _aboutToExecute(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_IJSExecutionHook : public IJSExecutionHook
{
public:
_tie_IJSExecutionHook(T& t, const char *obj_name=(char*)NULL) :
IJSExecutionHook(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_IJSExecutionHook(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_IJSExecutionHook() {}
void aboutToExecute(const IJSThreadState& arg0,
const IJSPC& arg1) {
_ref.aboutToExecute(
arg0,
arg1);
}
private:
T& _ref;
};
class _sk_IDebugController : public IDebugController
{
protected:
_sk_IDebugController(const char *object_name = (const char *)NULL);
_sk_IDebugController(const char *service_name, const CORBA::ReferenceData& data);
virtual ~_sk_IDebugController() {}
public:
static const CORBA::TypeInfo _skel_info;
// The following operations need to be implemented by the server.
virtual CORBA::Long getMajorVersion() = 0;
virtual CORBA::Long getMinorVersion() = 0;
virtual IJSErrorReporter_ptr setErrorReporter(IJSErrorReporter_ptr arg0) = 0;
virtual IJSErrorReporter_ptr getErrorReporter() = 0;
virtual IScriptHook_ptr setScriptHook(IScriptHook_ptr arg0) = 0;
virtual IScriptHook_ptr getScriptHook() = 0;
virtual IJSPC * getClosestPC(const IScript& arg0,
CORBA::Long arg1) = 0;
virtual IJSSourceLocation * getSourceLocation(const IJSPC& arg0) = 0;
virtual IJSExecutionHook_ptr setInterruptHook(IJSExecutionHook_ptr arg0) = 0;
virtual IJSExecutionHook_ptr getInterruptHook() = 0;
virtual IJSExecutionHook_ptr setDebugBreakHook(IJSExecutionHook_ptr arg0) = 0;
virtual IJSExecutionHook_ptr getDebugBreakHook() = 0;
virtual IJSExecutionHook_ptr setInstructionHook(IJSExecutionHook_ptr arg0,
const IJSPC& arg1) = 0;
virtual IJSExecutionHook_ptr getInstructionHook(const IJSPC& arg0) = 0;
virtual void setThreadContinueState(CORBA::Long arg0,
CORBA::Long arg1) = 0;
virtual void setThreadReturnValue(CORBA::Long arg0,
const char * arg1) = 0;
virtual void sendInterrupt() = 0;
virtual void sendInterruptStepInto(CORBA::Long arg0) = 0;
virtual void sendInterruptStepOver(CORBA::Long arg0) = 0;
virtual void sendInterruptStepOut(CORBA::Long arg0) = 0;
virtual void reinstateStepper(CORBA::Long arg0) = 0;
virtual IExecResult * executeScriptInStackFrame(CORBA::Long arg0,
const IJSStackFrameInfo& arg1,
const char * arg2,
const char * arg3,
CORBA::Long arg4) = 0;
virtual CORBA::Boolean isRunningHook(CORBA::Long arg0) = 0;
virtual CORBA::Boolean isWaitingForResume(CORBA::Long arg0) = 0;
virtual void leaveThreadSuspended(CORBA::Long arg0) = 0;
virtual void resumeThread(CORBA::Long arg0) = 0;
virtual void iterateScripts(IScriptHook_ptr arg0) = 0;
// Skeleton Operations implemented automatically
static void _getMajorVersion(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getMinorVersion(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setErrorReporter(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getErrorReporter(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setScriptHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getScriptHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getClosestPC(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getSourceLocation(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setInterruptHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getInterruptHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setDebugBreakHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getDebugBreakHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setInstructionHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _getInstructionHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setThreadContinueState(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _setThreadReturnValue(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _sendInterrupt(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _sendInterruptStepInto(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _sendInterruptStepOver(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _sendInterruptStepOut(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _reinstateStepper(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _executeScriptInStackFrame(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _isRunningHook(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _isWaitingForResume(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _leaveThreadSuspended(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _resumeThread(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
static void _iterateScripts(void *obj,
CORBA::MarshalStream &strm,
CORBA::Principal_ptr principal,
const char *oper,
void *priv_data);
};
template <class T>
class _tie_IDebugController : public IDebugController
{
public:
_tie_IDebugController(T& t, const char *obj_name=(char*)NULL) :
IDebugController(obj_name),
_ref(t) {
_object_name(obj_name);
}
_tie_IDebugController(T& t, const char *service_name,
const CORBA::ReferenceData& id)
:_ref(t) {
_service(service_name, id);
}
~_tie_IDebugController() {}
CORBA::Long getMajorVersion() {
return _ref.getMajorVersion();
}
CORBA::Long getMinorVersion() {
return _ref.getMinorVersion();
}
IJSErrorReporter_ptr setErrorReporter(IJSErrorReporter_ptr arg0) {
return _ref.setErrorReporter(
arg0);
}
IJSErrorReporter_ptr getErrorReporter() {
return _ref.getErrorReporter();
}
IScriptHook_ptr setScriptHook(IScriptHook_ptr arg0) {
return _ref.setScriptHook(
arg0);
}
IScriptHook_ptr getScriptHook() {
return _ref.getScriptHook();
}
IJSPC * getClosestPC(const IScript& arg0,
CORBA::Long arg1) {
return _ref.getClosestPC(
arg0,
arg1);
}
IJSSourceLocation * getSourceLocation(const IJSPC& arg0) {
return _ref.getSourceLocation(
arg0);
}
IJSExecutionHook_ptr setInterruptHook(IJSExecutionHook_ptr arg0) {
return _ref.setInterruptHook(
arg0);
}
IJSExecutionHook_ptr getInterruptHook() {
return _ref.getInterruptHook();
}
IJSExecutionHook_ptr setDebugBreakHook(IJSExecutionHook_ptr arg0) {
return _ref.setDebugBreakHook(
arg0);
}
IJSExecutionHook_ptr getDebugBreakHook() {
return _ref.getDebugBreakHook();
}
IJSExecutionHook_ptr setInstructionHook(IJSExecutionHook_ptr arg0,
const IJSPC& arg1) {
return _ref.setInstructionHook(
arg0,
arg1);
}
IJSExecutionHook_ptr getInstructionHook(const IJSPC& arg0) {
return _ref.getInstructionHook(
arg0);
}
void setThreadContinueState(CORBA::Long arg0,
CORBA::Long arg1) {
_ref.setThreadContinueState(
arg0,
arg1);
}
void setThreadReturnValue(CORBA::Long arg0,
const char * arg1) {
_ref.setThreadReturnValue(
arg0,
arg1);
}
void sendInterrupt() {
_ref.sendInterrupt();
}
void sendInterruptStepInto(CORBA::Long arg0) {
_ref.sendInterruptStepInto(
arg0);
}
void sendInterruptStepOver(CORBA::Long arg0) {
_ref.sendInterruptStepOver(
arg0);
}
void sendInterruptStepOut(CORBA::Long arg0) {
_ref.sendInterruptStepOut(
arg0);
}
void reinstateStepper(CORBA::Long arg0) {
_ref.reinstateStepper(
arg0);
}
IExecResult * executeScriptInStackFrame(CORBA::Long arg0,
const IJSStackFrameInfo& arg1,
const char * arg2,
const char * arg3,
CORBA::Long arg4) {
return _ref.executeScriptInStackFrame(
arg0,
arg1,
arg2,
arg3,
arg4);
}
CORBA::Boolean isRunningHook(CORBA::Long arg0) {
return _ref.isRunningHook(
arg0);
}
CORBA::Boolean isWaitingForResume(CORBA::Long arg0) {
return _ref.isWaitingForResume(
arg0);
}
void leaveThreadSuspended(CORBA::Long arg0) {
_ref.leaveThreadSuspended(
arg0);
}
void resumeThread(CORBA::Long arg0) {
_ref.resumeThread(
arg0);
}
void iterateScripts(IScriptHook_ptr arg0) {
_ref.iterateScripts(
arg0);
}
private:
T& _ref;
};
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,68 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface IDebugController extends org.omg.CORBA.Object
{
public int getMajorVersion();
public int getMinorVersion();
public IJSErrorReporter setErrorReporter(IJSErrorReporter er);
public IJSErrorReporter getErrorReporter();
public IScriptHook setScriptHook(IScriptHook h);
public IScriptHook getScriptHook();
public IJSPC getClosestPC(IScript script, int line);
public IJSSourceLocation getSourceLocation(IJSPC pc);
public IJSExecutionHook setInterruptHook(IJSExecutionHook hook);
public IJSExecutionHook getInterruptHook();
public IJSExecutionHook setDebugBreakHook(IJSExecutionHook hook);
public IJSExecutionHook getDebugBreakHook();
public IJSExecutionHook setInstructionHook(IJSExecutionHook hook, IJSPC pc);
public IJSExecutionHook getInstructionHook(IJSPC pc);
public void setThreadContinueState(int threadID, int state);
public void setThreadReturnValue(int threadID, String value);
public void sendInterrupt();
public void sendInterruptStepInto(int threadID);
public void sendInterruptStepOver(int threadID);
public void sendInterruptStepOut(int threadID);
public void reinstateStepper(int threadID);
public IExecResult executeScriptInStackFrame(int threadID,
IJSStackFrameInfo frame,
String text,
String filename,
int lineno);
public boolean isRunningHook(int threadID);
public boolean isWaitingForResume(int threadID);
public void leaveThreadSuspended(int threadID);
public void resumeThread(int threadID);
public void iterateScripts(IScriptHook h);
}

View File

@@ -1,29 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IExecResult
{
public String result;
public boolean errorOccured;
public String errorMessage;
public String errorFilename;
public int errorLineNumber;
public String errorLineBuffer;
public int errorTokenOffset;
}

View File

@@ -1,32 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface IJSErrorReporter extends org.omg.CORBA.Object
{
/* keep these in sync with the numbers in jsdebug.h */
public static final int PASS_ALONG = 0;
public static final int RETURN = 1;
public static final int DEBUG = 2;
public int reportError( String msg,
String filename,
int lineno,
String linebuf,
int tokenOffset );
}

View File

@@ -1,22 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface IJSExecutionHook extends org.omg.CORBA.Object
{
public void aboutToExecute(IJSThreadState debug, IJSPC pc);
}

View File

@@ -1,24 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IJSPC
{
public IScript script;
public int offset;
}

View File

@@ -1,23 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IJSSourceLocation
{
public int line;
public IJSPC pc;
}

View File

@@ -1,23 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IJSStackFrameInfo
{
public IJSPC pc;
public int jsdframe;
}

View File

@@ -1,65 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IJSThreadState
{
/**
* partial list of thread states from sun.debug.ThreadInfo.
* XXX some of these don't apply.
*/
public final static int THR_STATUS_UNKNOWN = 0x01;
public final static int THR_STATUS_ZOMBIE = 0x02;
public final static int THR_STATUS_RUNNING = 0x03;
public final static int THR_STATUS_SLEEPING = 0x04;
public final static int THR_STATUS_MONWAIT = 0x05;
public final static int THR_STATUS_CONDWAIT = 0x06;
public final static int THR_STATUS_SUSPENDED = 0x07;
public final static int THR_STATUS_BREAK = 0x08;
public final static int DEBUG_STATE_DEAD = 0x01;
/**
* if the continueState is RUN, the thread will
* proceed to the next program counter value when it resumes.
*/
public final static int DEBUG_STATE_RUN = 0x02;
/**
* if the continueState is RETURN, the thread will
* return from the current method with the value in getReturnValue()
* when it resumes.
*/
public final static int DEBUG_STATE_RETURN = 0x03;
/**
* if the continueState is THROW, the thread will
* throw an exception (accessible with getException()) when it
* resumes.
*/
public final static int DEBUG_STATE_THROW = 0x04;
public IJSStackFrameInfo[] stack;
public int continueState;
public String returnValue;
public int status;
public int jsdthreadstate;
public int id; // used for referencing this object
}

View File

@@ -1,28 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IScript
{
public String url;
public String funname;
public int base;
public int extent;
public int jsdscript;
public IScriptSection[] sections;
}

View File

@@ -1,24 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface IScriptHook extends org.omg.CORBA.Object
{
public void justLoadedScript(IScript script);
public void aboutToUnloadScript(IScript script);
}

View File

@@ -1,23 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class IScriptSection
{
public int base;
public int extent;
}

View File

@@ -1,37 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface ISourceTextProvider extends org.omg.CORBA.Object
{
/* these coorespond to jsdebug.h values - change in both places if anywhere */
public static final int INITED = 0;
public static final int FULL = 1;
public static final int PARTIAL = 2;
public static final int ABORTED = 3;
public static final int FAILED = 4;
public static final int CLEARED = 5;
public String[] getAllPages();
public void refreshAllPages();
public boolean hasPage(String url);
public boolean loadPage(String url);
public void refreshPage(String url);
public String getPageText(String url);
public int getPageStatus(String url);
public int getPageAlterCount(String url);
}

View File

@@ -1,25 +0,0 @@
/* jband - 09/09/97 - readme for the dreaded js/jsd/corba system */
This stuff in js/jsd/corba/src is used to generate corba source in IDL, Java,
and C++. The raw source is all Java. The 'makefile' is mk.bat which is currently
expected to run only on jband's NT box. All of the important output of this
process should be checked in to cvs. mk.bat is only needed to regenerate new
sources as the interfaces change. Those new sources should then be committed to
cvs.
The main scheme here is to use the Java code in js/jsd/corba/src as idl.
mk.bat uses java2idl, orbeline, and idl2java to generate IDL and stubs and
skeletons in C++ and Java. There are a few hacks to deal with limitations of
these tools.
The C++ output is copied to js/jsd/corba.
The Java output is copied to
js/jsdj/classes/com/netscape/jsdebugging/remote/corba.
Note that the files:
StringReciever.java
TestInterface.java
Thing.java
are used only in test programs and are not part of the product

View File

@@ -1,24 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface StringReciever extends org.omg.CORBA.Object
{
public void recieveString(String s);
public void bounce(int count);
}

View File

@@ -1,26 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public interface TestInterface extends org.omg.CORBA.Object
{
public String getFirstAppInList();
public void getAppNames( StringReciever sr );
public Thing[] getThings();
public void callBounce( StringReciever sr, int count );
}

View File

@@ -1,24 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
public final class Thing
{
public String s;
public int i;
}

Binary file not shown.

View File

@@ -1,31 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// This class only exist to force a forward declaration in the outputed
// idl file.
//
// It should be handed to java2idl after IScriptSection.class but before
// IScript.class
//
public final class bogus0
{
public IScriptSection[] bogus;
}

View File

@@ -1,31 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//
// This class only exist to force a forward declaration in the outputed
// idl file.
//
// It should be handed to java2idl after IJSStackFrameInfo.class but before
// IJSThreadState.class
//
public final class bogus1
{
public IJSStackFrameInfo[] bogus;
}

View File

@@ -1,43 +0,0 @@
# -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
# see usage...
#
BEGIN {
skiplines_left = 0
if( 0 == lines || 0 == pat )
{
# show usage...
print "\n"
print "strips some lines when first line contains pattern\n"
print "\tusage -v pat=\"pattern\" -v lines=3"
}
}
{
if( skiplines_left )
skiplines_left--;
else
{
if( match($0, pat) != 0 )
skiplines_left = lines-1;
else
print $0;
}
}

View File

@@ -1,143 +0,0 @@
@echo off
REM
REM This needs to be run from the src dir. It generates sibling dirs and their
REM contents.
REM
set base_package=com.netscape.jsdebugging.remote.corba
set base_packslash=com\netscape\jsdebugging\remote\corba
set jsdj_classes_dir=..\..\..\jsdj\classes
set DELAY=6
rem -------------------------------------------------------------------------
rem -- show settings
echo.
echo commandline: %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
echo.
echo ES3_ROOT = %ES3_ROOT%
echo base_package = %base_package% // set in this file
echo jsdj_classes_dir = %jsdj_classes_dir% // set in this file
echo.
rem -------------------------------------------------------------------------
rem -- check for environment settings
if "%ES3_ROOT%" == "" goto usage
set jc=sj.exe
set cp=.;%ES3_ROOT%\wai\java\nisb.zip;%ES3_ROOT%\wai\java\WAI.zip;%ES3_ROOT%\plugins\Java\classes\serv3_0.zip
set old_classpath=%CLASSPATH%
set CLASSPATH=%CLASSPATH%;%ES3_ROOT%\wai\java\nisb.zip;%ES3_ROOT%\wai\java\WAI.zip
echo.
echo creating output dirs
if not exist ..\class\NUL mkdir ..\class
if not exist ..\idl\NUL mkdir ..\idl
if not exist ..\java\NUL mkdir ..\java
if not exist ..\cpp\NUL mkdir ..\cpp
echo.
echo compiling raw Java interfaces
%jc% -classpath %cp% *.java -d ..\class
..\src\wait %DELAY%
cd ..\class
echo.
echo.
echo generating idl
echo.
REM
REM THESE ARE HAND ORDERED TO DEAL WITH DEPENDENCIES
REM
%ES3_ROOT%\wai\bin\java2idl Thing.class StringReciever.class TestInterface.class ISourceTextProvider.class IScriptSection.class bogus0.class IScript.class IJSPC.class IJSSourceLocation.class IJSErrorReporter.class IScriptHook.class IJSStackFrameInfo.class bogus1.class IJSThreadState.class IJSExecutionHook.class IExecResult.class IDebugController.class > ..\idl\ifaces.idl
..\src\wait %DELAY%
cd ..\idl
echo.
echo.
echo stripping lines from idl which were added to correctly order declarations
echo.
copy ifaces.idl ifaces_original.idl
REM
REM since we currenly have 2 of these, we can avoid the copy
REM
gawk -v pat="struct bogus0" -v lines=3 -f ..\src\cutlines.awk < ifaces.idl > temp.idl
gawk -v pat="struct bogus1" -v lines=3 -f ..\src\cutlines.awk < temp.idl > ifaces.idl
REM copy temp.idl ifaces.idl
REM ..\src\wait %DELAY%
cd ..\cpp
echo.
echo.
echo generating cpp
echo.
%ES3_ROOT%\wai\bin\orbeline ..\idl\ifaces.idl
..\src\wait %DELAY%
cd ..\java
echo.
echo.
echo generating java
echo.
%ES3_ROOT%\wai\bin\idl2java ..\idl\ifaces.idl -package %base_package% -no_examples -no_tie -no_comments
..\src\wait %DELAY%
cd ..\src
echo.
echo. copying generated files
echo.
REM
REM preserve generated java, but put ours in the outdir
REM
xcopy /Q ..\java\%base_packslash%\*.java ..\java\%base_packslash%\_unused\*.jav
REM
REM *****CUSTOMIZE HERE AS NEW INTERFACES WITH static ints ARE ADDED*****
REM
copy ..\src\package_header.h+..\src\ISourceTextProvider.java ..\java\%base_packslash%\ISourceTextProvider.java
copy ..\src\package_header.h+..\src\IJSErrorReporter.java ..\java\%base_packslash%\IJSErrorReporter.java
copy ..\src\package_header.h+..\src\IJSThreadState.java ..\java\%base_packslash%\IJSThreadState.java
copy ..\src\package_header.h+..\src\IDebugController.java ..\java\%base_packslash%\IDebugController.java
REM
REM
xcopy /Q ..\cpp\ifaces_c.hh ..\
xcopy /Q ..\cpp\ifaces_s.hh ..\
xcopy /Q ..\cpp\ifaces_c.cc ..\ifaces_c.cpp
xcopy /Q ..\cpp\ifaces_s.cc ..\ifaces_s.cpp
if "%jsdj_classes_dir%" == "" goto done
if not exist %jsdj_classes_dir%\NUL goto done
xcopy /Q /S ..\java\*.java %jsdj_classes_dir%
goto done
:usage
echo.
echo usage:
echo mk
echo.
echo See "readme.txt" for details...
echo.
echo Rules:
echo.
echo These must be defined in environment:
echo ES3_ROOT // location of Enterprise Server (e.g. e:\Netscape\SuiteSpot)
echo.
:done
..\src\wait %DELAY%
cd ..\src
set base_package=
set base_packslash=
set jsdj_classes_dir=
set cp=
set jc=
set DELAY=
set CLASSPATH=%old_classpath%
set old_classpath=
echo.
echo.
echo done
echo.

View File

@@ -1,3 +0,0 @@
package com.netscape.jsdebugging.remote.corba;

View File

@@ -1,35 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* This supplies non-functional stubs for a couple of JNI functions we need
* in order to link LiveConnect
*/
#include "jni.h"
jint JNICALL JNI_GetDefaultJavaVMInitArgs(void * ignored)
{
return 0;
}
jint JNICALL JNI_CreateJavaVM(JavaVM ** vm, JNIEnv ** env, void * ignored)
{
return 0;
}

View File

@@ -1,33 +0,0 @@
JSDJNI = .
#CLASS_DIR_BASE = $(JSDJNI)\..\..\..\jsdj\dist\classes
# until jsdj moves to mozilla...
CLASS_DIR_BASE = $(JSDJNI)\..\..\..\..\..\ns\js\jsdj\dist\classes
GEN = $(JSDJNI)\_jni
HEADER_FILE = $(GEN)\jsdjnih.h
PACKAGE_SLASH = netscape\jsdebug
PACKAGE_DOT = netscape.jsdebug
STD_CLASSPATH = -classpath $(CLASS_DIR_BASE);$(CLASSPATH)
CLASSES_WITH_NATIVES = \
$(PACKAGE_DOT).DebugController \
$(PACKAGE_DOT).JSPC \
$(PACKAGE_DOT).JSSourceTextProvider \
$(PACKAGE_DOT).JSStackFrameInfo \
$(PACKAGE_DOT).JSThreadState \
$(PACKAGE_DOT).Script \
$(PACKAGE_DOT).SourceTextProvider \
$(PACKAGE_DOT).ThreadStateBase \
$(PACKAGE_DOT).Value
all: $(GEN)
@echo generating JNI headers
@javah -jni -o "$(HEADER_FILE)" $(STD_CLASSPATH) $(CLASSES_WITH_NATIVES)
$(GEN) :
@mkdir $(GEN)
clean:
@if exist $(HEADER_FILE) @del $(HEADER_FILE) > NUL

View File

@@ -1,134 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
* Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
/*
* Portable JRE support functions - pared this down to minimal set I need
*/
#include <string.h>
#include <stdlib.h>
#include <jni.h>
#include "jre.h"
/*
* Exits the runtime with the specified error message.
*/
void
JRE_FatalError(JNIEnv *env, const char *msg)
{
if ((*env)->ExceptionOccurred(env)) {
(*env)->ExceptionDescribe(env);
}
(*env)->FatalError(env, msg);
}
/*
* Parses a runtime version string. Returns 0 if the successful, otherwise
* returns -1 if the format of the version string was invalid.
*/
jint
JRE_ParseVersion(const char *ver, char **majorp, char **minorp, char **microp)
{
int n1 = 0, n2 = 0, n3 = 0;
sscanf(ver, "%*[0-9]%n.%*[0-9]%n.%*[0-9a-zA-Z]%n", &n1, &n2, &n3);
if (n1 == 0 || n2 == 0) {
return -1;
}
if (n3 != 0) {
if (n3 != (int)strlen(ver)) {
return -1;
}
} else if (n2 != (int)strlen(ver)) {
return -1;
}
*majorp = JRE_Malloc(n1 + 1);
strncpy(*majorp, ver, n1);
(*majorp)[n1] = 0;
*minorp = JRE_Malloc(n2 - n1);
strncpy(*minorp, ver + n1 + 1, n2 - n1 - 1);
(*minorp)[n2 - n1 - 1] = 0;
if (n3 != 0) {
*microp = JRE_Malloc(n3 - n2);
strncpy(*microp, ver + n2 + 1, n3 - n2 - 1);
(*microp)[n3 - n2 - 1] = 0;
}
return 0;
}
/*
* Creates a version number string from the specified major, minor, and
* micro version numbers.
*/
char *
JRE_MakeVersion(const char *major, const char *minor, const char *micro)
{
char *ver = 0;
if (major != 0 && minor != 0) {
int len = strlen(major) + strlen(minor);
if (micro != 0) {
ver = JRE_Malloc(len + strlen(micro) + 3);
sprintf(ver, "%s.%s.%s", major, minor, micro);
} else {
ver = JRE_Malloc(len + 2);
sprintf(ver, "%s.%s", major, minor);
}
}
return ver;
}
/*
* Allocate memory or die.
*/
void *
JRE_Malloc(size_t size)
{
void *p = malloc(size);
if (p == 0) {
perror("malloc");
exit(1);
}
return p;
}

View File

@@ -1,85 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
* Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
/*
* Portable JRE support functions - pared this down to minimal set I need
*/
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
#include "jre_md.h"
/*
* Java runtime settings.
*/
typedef struct JRESettings {
char *javaHome; /* Java home directory */
char *runtimeLib; /* Runtime shared library or DLL */
char *classPath; /* Default class path */
char *compiler; /* Just-in-time (JIT) compiler */
char *majorVersion; /* Major version of runtime */
char *minorVersion; /* Minor version of runtime */
char *microVersion; /* Micro version of runtime */
} JRESettings;
/*
* JRE functions.
*/
void *JRE_LoadLibrary(const char *path);
void JRE_UnloadLibrary(void *handle);
jint JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargsp);
jint JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp,
void *vmargsp);
jint JRE_GetCurrentSettings(JRESettings *set);
jint JRE_GetSettings(JRESettings *set, const char *ver);
jint JRE_GetDefaultSettings(JRESettings *set);
jint JRE_ParseVersion(const char *version,
char **majorp, char **minorp, char **microp);
char *JRE_MakeVersion(const char *major, const char *minor, const char *micro);
void *JRE_Malloc(size_t size);
void JRE_FatalError(JNIEnv *env, const char *msg);
char *JRE_GetDefaultRuntimeLib(const char *dir);
char *JRE_GetDefaultClassPath(const char *dir);

View File

@@ -1,290 +0,0 @@
/*
* @(#)jre_md.c 1.6 97/05/15 David Connelly
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
/*
* Win32 specific JRE support functions
*/
#include <windows.h>
#include <stdlib.h>
#include <jni.h>
#include "jre.h"
#define JRE_KEY "Software\\JavaSoft\\Java Runtime Environment"
#define JDK_KEY "Software\\JavaSoft\\Java Development Kit"
#define RUNTIME_LIB "javai.dll"
/* From jre_main.c */
extern jboolean debug;
/* Forward Declarations */
jint LoadSettings(JRESettings *set, HKEY key);
jint GetSettings(JRESettings *set, const char *version, const char *keyname);
char *GetStringValue(HKEY key, const char *name);
/*
* Retrieve settings from registry for current runtime version. Returns
* 0 if successful otherwise returns -1 if no installed runtime was found
* or the registry data was invalid.
*/
jint
JRE_GetCurrentSettings(JRESettings *set)
{
jint r = -1;
HKEY key;
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, JRE_KEY, 0, KEY_READ, &key) == 0) {
char *ver = GetStringValue(key, "CurrentVersion");
if (ver != 0) {
r = JRE_GetSettings(set, ver);
}
free(ver);
RegCloseKey(key);
}
return r;
}
/*
* Retrieves settings from registry for specified runtime version.
* Searches for either installed JRE and JDK runtimes. Returns 0 if
* successful otherwise returns -1 if requested version of runtime
* could not be found.
*/
jint
JRE_GetSettings(JRESettings *set, const char *version)
{
if (GetSettings(set, version, JRE_KEY) != 0) {
return GetSettings(set, version, JDK_KEY);
}
return 0;
}
jint
GetSettings(JRESettings *set, const char *version, const char *keyname)
{
HKEY key;
int r = -1;
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyname, 0, KEY_READ, &key) == 0) {
char *major, *minor, *micro = 0;
if (JRE_ParseVersion(version, &major, &minor, &micro) == 0) {
HKEY subkey;
char *ver = JRE_MakeVersion(major, minor, 0);
set->majorVersion = major;
set->minorVersion = minor;
if (RegOpenKeyEx(key, ver, 0, KEY_READ, &subkey) == 0) {
if ((r = LoadSettings(set, subkey)) == 0) {
if (micro != 0) {
if (set->microVersion == 0 ||
strcmp(micro, set->microVersion) != 0) {
r = -1;
}
}
}
RegCloseKey(subkey);
}
free(ver);
}
RegCloseKey(key);
}
return r;
}
/*
* Load runtime settings from specified registry key. Returns 0 if
* successful otherwise -1 if the registry data was invalid.
*/
static jint
LoadSettings(JRESettings *set, HKEY key)
{
/* Full path name of JRE home directory (required) */
set->javaHome = GetStringValue(key, "JavaHome");
if (set->javaHome == 0) {
return -1;
}
/* Full path name of JRE runtime DLL */
set->runtimeLib = GetStringValue(key, "RuntimeLib");
if (set->runtimeLib == 0) {
set->runtimeLib = JRE_GetDefaultRuntimeLib(set->javaHome);
}
/* Class path setting to override default */
set->classPath = GetStringValue(key, "ClassPath");
if (set->classPath == 0) {
set->classPath = JRE_GetDefaultClassPath(set->javaHome);
}
/* Optional JIT compiler library name */
set->compiler = GetStringValue(key, "Compiler");
/* Release micro-version */
set->microVersion = GetStringValue(key, "MicroVersion");
return 0;
}
/*
* Returns string data for the specified registry value name, or
* NULL if not found.
*/
static char *
GetStringValue(HKEY key, const char *name)
{
DWORD type, size;
char *value = 0;
if (RegQueryValueEx(key, name, 0, &type, 0, &size) == 0 &&
type == REG_SZ ) {
value = JRE_Malloc(size);
if (RegQueryValueEx(key, name, 0, 0, value, &size) != 0) {
free(value);
value = 0;
}
}
return value;
}
/*
* Returns default runtime settings based on location of this program.
* Makes best attempt at determining location of runtime. Returns 0
* if successful or -1 if a runtime could not be found.
*/
jint
JRE_GetDefaultSettings(JRESettings *set)
{
char buf[MAX_PATH], *bp;
int n;
// Try to obtain default value for Java home directory based on
// location of this executable.
if ((n = GetModuleFileName(0, buf, MAX_PATH)) == 0) {
return -1;
}
bp = buf + n;
while (*--bp != '\\') ;
bp -= 4;
if (bp < buf || strnicmp(bp, "\\bin", 4) != 0) {
return -1;
}
*bp = '\0';
set->javaHome = strdup(buf);
// Get default runtime library
set->runtimeLib = JRE_GetDefaultRuntimeLib(set->javaHome);
// Get default class path
set->classPath = JRE_GetDefaultClassPath(set->javaHome);
// Reset other fields since these are unknown
set->compiler = 0;
set->majorVersion = 0;
set->minorVersion = 0;
set->microVersion = 0;
return 0;
}
/*
* Return default runtime library for specified Java home directory.
*/
char *
JRE_GetDefaultRuntimeLib(const char *dir)
{
char *cp = JRE_Malloc(strlen(dir) + sizeof(RUNTIME_LIB) + 8);
sprintf(cp, "%s\\bin\\" RUNTIME_LIB, dir);
return cp;
}
/*
* Return default class path for specified Java home directory.
*/
char *
JRE_GetDefaultClassPath(const char *dir)
{
char *cp = JRE_Malloc(strlen(dir) * 4 + 64);
sprintf(cp, "%s\\lib\\rt.jar;%s\\lib\\i18n.jar;%s\\lib\\classes.zip;"
"%s\\classes", dir, dir, dir, dir);
return cp;
}
/*
* Loads the runtime library corresponding to 'libname' and returns
* an opaque handle to the library.
*/
void *
JRE_LoadLibrary(const char *path)
{
return (void *)LoadLibrary(path);
}
/*
* Unloads the runtime library associated with handle.
*/
void
JRE_UnloadLibrary(void *handle)
{
FreeLibrary(handle);
}
/*
* Loads default VM args for the specified runtime library handle.
*/
jint
JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargs)
{
FARPROC proc = GetProcAddress(handle, "JNI_GetDefaultJavaVMInitArgs");
return proc != 0 ? ((*proc)(vmargs), 0) : -1;
}
/*
* Creates a Java VM for the specified runtime library handle.
*/
jint
JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp, void *vmargs)
{
FARPROC proc = GetProcAddress(handle, "JNI_CreateJavaVM");
return proc != 0 ? (*proc)(vmp, envp, vmargs) : -1;
}
/*
* Entry point for JREW (Windows-only) version of the runtime loader.
* This entry point is called when the '-subsystem:windows' linker
* option is used, and will cause the resulting executable to run
* detached from the console.
*/
/**
* int WINAPI
* WinMain(HINSTANCE inst, HINSTANCE prevInst, LPSTR cmdLine, int cmdShow)
* {
* __declspec(dllimport) char **__initenv;
*
* __initenv = _environ;
* exit(main(__argc, __argv));
* }
*/

View File

@@ -1,36 +0,0 @@
/*
* @(#)jre_md.h 1.1 97/05/19 David Connelly
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
/*
* Win32 specific JRE support definitions
*/
#define FILE_SEPARATOR '\\'
#define PATH_SEPARATOR ';'

File diff suppressed because it is too large Load Diff

View File

@@ -1,349 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
* Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
/*
* Code to start a Java VM (*some* code from the JRE)
*/
#include "jsdj.h"
/***************************************************************************/
#ifdef JSD_STANDALONE_JAVA_VM
#include "jre.h"
static char* more_classpath[] =
{
{"..\\..\\jsdj\\dist\\classes"},
{"..\\..\\jsdj\\dist\\classes\\ifc11.jar"},
/*
* {"..\\..\\..\\jsdj\\dist\\classes"},
* {"..\\..\\..\\jsdj\\dist\\classes\\ifc12.jar"},
*/
/*
* {"..\\..\\samples\\jslogger"},
* {"classes"},
* {"ifc12.jar"},
* {"jsd10.jar"},
* {"jsdeb15.jar"}
*/
};
#define MORE_CLASSPATH_COUNT (sizeof(more_classpath)/sizeof(more_classpath[0]))
/*
* static char main_class[] = "callnative";
* static char main_class[] = "simpleIFC";
* static char* params[] = {"16 Dec 1997"};
* #define PARAM_COUNT (sizeof(params)/sizeof(params[0]))
*/
/*
* static char main_class[] = "netscape/jslogger/JSLogger";
* static char main_class[] = "LaunchJSDebugger";
*/
static char main_class[] = "com/netscape/jsdebugging/ifcui/launcher/local/LaunchJSDebugger";
static char* params[] = {NULL};
#define PARAM_COUNT 0
/* Globals */
static char **props; /* User-defined properties */
static int numProps, maxProps; /* Current, max number of properties */
static void *handle;
static JavaVM *jvm;
static JNIEnv *env;
/* Check for null value and return */
#define NULL_CHECK(e) if ((e) == 0) return 0
/*
* Adds a user-defined system property definition.
*/
void AddProperty(char *def)
{
if (numProps >= maxProps) {
if (props == 0) {
maxProps = 4;
props = JRE_Malloc(maxProps * sizeof(char **));
} else {
char **tmp;
maxProps *= 2;
tmp = JRE_Malloc(maxProps * sizeof(char **));
memcpy(tmp, props, numProps * sizeof(char **));
free(props);
props = tmp;
}
}
props[numProps++] = def;
}
/*
* Deletes a property definition by name.
*/
void DeleteProperty(const char *name)
{
int i;
for (i = 0; i < numProps; ) {
char *def = props[i];
char *c = strchr(def, '=');
int n;
if (c != 0) {
n = c - def;
} else {
n = strlen(def);
}
if (strncmp(name, def, n) == 0) {
if (i < --numProps) {
memmove(&props[i], &props[i+1], (numProps-i) * sizeof(char **));
}
} else {
i++;
}
}
}
/*
* Creates an array of Java string objects from the specified array of C
* strings. Returns 0 if the array could not be created.
*/
jarray NewStringArray(JNIEnv *env, char **cpp, int count)
{
jclass cls;
jarray ary;
int i;
NULL_CHECK(cls = (*env)->FindClass(env, "java/lang/String"));
NULL_CHECK(ary = (*env)->NewObjectArray(env, count, cls, 0));
for (i = 0; i < count; i++) {
jstring str = (*env)->NewStringUTF(env, *cpp++);
NULL_CHECK(str);
(*env)->SetObjectArrayElement(env, ary, i, str);
(*env)->DeleteLocalRef(env, str);
}
return ary;
}
/***************************************************************************/
static JNIEnv*
_CreateJavaVM(void)
{
JNIEnv* env = NULL;
JDK1_1InitArgs vmargs;
JRESettings set;
printf("Starting Java...\n");
if(JRE_GetCurrentSettings(&set) != 0)
{
if(JRE_GetDefaultSettings(&set) != 0)
{
fprintf(stderr, "Could not locate Java runtime\n");
return NULL;
}
}
/* Load runtime library */
handle = JRE_LoadLibrary(set.runtimeLib);
if (handle == 0) {
fprintf(stderr, "Could not load runtime library: %s\n",
set.runtimeLib);
return NULL;
}
/* Add pre-defined system properties */
if (set.javaHome != 0) {
char *def = JRE_Malloc(strlen(set.javaHome) + 16);
sprintf(def, "java.home=%s", set.javaHome);
AddProperty(def);
}
if (set.compiler != 0) {
char *def = JRE_Malloc(strlen(set.compiler) + 16);
sprintf(def, "java.compiler=%s", set.compiler);
AddProperty(def);
}
/*
* The following is used to specify that we require at least
* JNI version 1.1. Currently, this field is not checked but
* will be starting with JDK/JRE 1.2. The value returned after
* calling JNI_GetDefaultJavaVMInitArgs() is the actual JNI version
* supported, and is always higher that the requested version.
*/
vmargs.version = 0x00010001;
if (JRE_GetDefaultJavaVMInitArgs(handle, &vmargs) != 0) {
fprintf(stderr, "Could not initialize Java VM\n");
return NULL;
}
/* Tack on our classpath */
if(MORE_CLASSPATH_COUNT)
{
int i;
int size = strlen(set.classPath) + 1;
char sep[2];
sep[0] = PATH_SEPARATOR;
sep[1] = 0;
for(i = 0; i < MORE_CLASSPATH_COUNT; i++)
size += strlen(more_classpath[i]) + 1;
vmargs.classpath = malloc(size);
if(vmargs.classpath == 0)
{
fprintf(stderr, "malloc error\n");
return NULL;
}
strcpy(vmargs.classpath, set.classPath);
for(i = 0; i < MORE_CLASSPATH_COUNT; i++)
{
strcat(vmargs.classpath, sep);
strcat(vmargs.classpath, more_classpath[i]);
}
}
else
{
vmargs.classpath = set.classPath;
}
/*
* fprintf(stderr, "classpath: %s\n", vmargs.classpath);
*/
/* Set user-defined system properties for Java VM */
if (props != 0) {
if (numProps == maxProps) {
char **tmp = JRE_Malloc((numProps + 1) * sizeof(char **));
memcpy(tmp, props, numProps * sizeof(char **));
free(props);
props = tmp;
}
props[numProps] = 0;
vmargs.properties = props;
}
/* verbose? */
/*
* vmargs.verbose = JNI_TRUE;
*/
/* Load and initialize Java VM */
if (JRE_CreateJavaVM(handle, &jvm, &env, &vmargs) != 0) {
fprintf(stderr, "Could not create Java VM\n");
return NULL;
}
/* Free properties */
if (props != 0) {
free(props);
}
return env;
}
static JSBool
_StartDebuggerFE(JNIEnv* env)
{
jclass clazz;
jmethodID mid;
jarray args;
/* Find class */
clazz = (*env)->FindClass(env, main_class);
if (clazz == 0) {
fprintf(stderr, "Class not found: %s\n", main_class);
return JS_FALSE;
}
/* Find main method of class */
mid = (*env)->GetStaticMethodID(env, clazz, "main",
"([Ljava/lang/String;)V");
if (mid == 0) {
fprintf(stderr, "In class %s: public static void main(String args[])"
" is not defined\n");
return JS_FALSE;
}
/* Invoke main method */
args = NewStringArray(env, params, PARAM_COUNT);
if (args == 0) {
JRE_FatalError(env, "Couldn't build argument list for main\n");
}
(*env)->CallStaticVoidMethod(env, clazz, mid, args);
if ((*env)->ExceptionOccurred(env)) {
(*env)->ExceptionDescribe(env);
}
return JS_TRUE;
}
JNIEnv*
jsdj_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc)
{
JNIEnv* env = NULL;
env = _CreateJavaVM();
if( ! env )
return NULL;
jsdj_SetJNIEnvForCurrentThread(jsdjc, env);
if( ! jsdj_RegisterNatives(jsdjc) )
return NULL;
if( ! _StartDebuggerFE(env) )
return NULL;
return env;
}
#endif /* JSD_STANDALONE_JAVA_VM */
/***************************************************************************/

View File

@@ -1,147 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Header for JavaScript Debugger JNI support (internal functions)
*/
#ifndef jsdj_h___
#define jsdj_h___
/* Get jstypes.h included first. After that we can use PR macros for doing
* this extern "C" stuff!
*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "jstypes.h"
#ifdef __cplusplus
}
#endif
JS_BEGIN_EXTERN_C
#include "jsutil.h" /* Added by JSIFY */
#include "jshash.h" /* Added by JSIFY */
#include "jsdjava.h"
#include "jsobj.h"
#include "jsfun.h"
#include "jsdbgapi.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
JS_END_EXTERN_C
JS_BEGIN_EXTERN_C
/***************************************************************************/
/* defines copied from Java sources.
** NOTE: javah used to put these in the h files, but with JNI does not seem
** to do this anymore. Be careful with synchronization of these
**
*/
/* From: ThreadStateBase.java */
#define THR_STATUS_UNKNOWN 0x01
#define THR_STATUS_ZOMBIE 0x02
#define THR_STATUS_RUNNING 0x03
#define THR_STATUS_SLEEPING 0x04
#define THR_STATUS_MONWAIT 0x05
#define THR_STATUS_CONDWAIT 0x06
#define THR_STATUS_SUSPENDED 0x07
#define THR_STATUS_BREAK 0x08
#define DEBUG_STATE_DEAD 0x01
#define DEBUG_STATE_RUN 0x02
#define DEBUG_STATE_RETURN 0x03
#define DEBUG_STATE_THROW 0x04
/***************************************************************************/
/* Our structures */
typedef struct JSDJContext
{
JSDContext* jsdc;
JSHashTable* envTable;
jobject controller;
JSDJ_UserCallbacks callbacks;
void* user;
JSBool ownJSDC;
} JSDJContext;
/***************************************************************************/
/* Code validation support */
#ifdef DEBUG
extern void JSDJ_ASSERT_VALID_CONTEXT(JSDJContext* jsdjc);
#else
#define JSDJ_ASSERT_VALID_CONTEXT(x) ((void)0)
#endif
/***************************************************************************/
/* higher level functions */
extern JSDJContext*
jsdj_SimpleInitForSingleContextMode(JSDContext* jsdc,
JSDJ_GetJNIEnvProc getEnvProc, void* user);
extern JSBool
jsdj_SetSingleContextMode();
extern JSDJContext*
jsdj_CreateContext();
extern void
jsdj_DestroyContext(JSDJContext* jsdjc);
extern void
jsdj_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
void* user);
extern void
jsdj_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env);
extern JNIEnv*
jsdj_GetJNIEnvForCurrentThread(JSDJContext* jsdjc);
extern void
jsdj_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc);
extern JSDContext*
jsdj_GetJSDContext(JSDJContext* jsdjc);
extern JSBool
jsdj_RegisterNatives(JSDJContext* jsdjc);
/***************************************************************************/
#ifdef JSD_STANDALONE_JAVA_VM
extern JNIEnv*
jsdj_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc);
/**
* extern JNIEnv*
* jsdj_CreateJavaVM(JSDContext* jsdc);
*/
#endif /* JSD_STANDALONE_JAVA_VM */
/***************************************************************************/
JS_END_EXTERN_C
#endif /* jsdj_h___ */

View File

@@ -1,110 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Public functions to reflect JSD into Java
*/
#include "jsdj.h"
JSDJ_PUBLIC_API(JSDJContext*)
JSDJ_SimpleInitForSingleContextMode(JSDContext* jsdc,
JSDJ_GetJNIEnvProc getEnvProc, void* user)
{
return jsdj_SimpleInitForSingleContextMode(jsdc, getEnvProc, user);
}
JSDJ_PUBLIC_API(JSBool)
JSDJ_SetSingleContextMode()
{
return jsdj_SetSingleContextMode();
}
JSDJ_PUBLIC_API(JSDJContext*)
JSDJ_CreateContext()
{
return jsdj_CreateContext();
}
JSDJ_PUBLIC_API(void)
JSDJ_DestroyContext(JSDJContext* jsdjc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
jsdj_DestroyContext(jsdjc);
}
JSDJ_PUBLIC_API(void)
JSDJ_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
void* user)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
JS_ASSERT(!callbacks ||
(callbacks->size > 0 &&
callbacks->size <= sizeof(JSDJ_UserCallbacks)));
jsdj_SetUserCallbacks(jsdjc, callbacks, user);
}
JSDJ_PUBLIC_API(void)
JSDJ_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
JS_ASSERT(env);
jsdj_SetJNIEnvForCurrentThread(jsdjc, env);
}
JSDJ_PUBLIC_API(JNIEnv*)
JSDJ_GetJNIEnvForCurrentThread(JSDJContext* jsdjc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
return jsdj_GetJNIEnvForCurrentThread(jsdjc);
}
JSDJ_PUBLIC_API(void)
JSDJ_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
JS_ASSERT(jsdc);
jsdj_SetJSDContext(jsdjc, jsdc);
}
JSDJ_PUBLIC_API(JSDContext*)
JSDJ_GetJSDContext(JSDJContext* jsdjc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
return jsdj_GetJSDContext(jsdjc);
}
JSDJ_PUBLIC_API(JSBool)
JSDJ_RegisterNatives(JSDJContext* jsdjc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
return jsdj_RegisterNatives(jsdjc);
}
/***************************************************************************/
#ifdef JSD_STANDALONE_JAVA_VM
JSDJ_PUBLIC_API(JNIEnv*)
JSDJ_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc)
{
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
return jsdj_CreateJavaVMAndStartDebugger(jsdjc);
}
#endif /* JSD_STANDALONE_JAVA_VM */
/***************************************************************************/

View File

@@ -1,133 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Header for JavaScript Debugger JNI interfaces
*/
#ifndef jsdjava_h___
#define jsdjava_h___
/* Get jstypes.h included first. After that we can use PR macros for doing
* this extern "C" stuff!
*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "jstypes.h"
#ifdef __cplusplus
}
#endif
JS_BEGIN_EXTERN_C
#include "jsdebug.h"
#include "jni.h"
JS_END_EXTERN_C
JS_BEGIN_EXTERN_C
/*
* The linkage of JSDJ API functions differs depending on whether the file is
* used within the JSDJ library or not. Any source file within the JSDJ
* libraray should define EXPORT_JSDJ_API whereas any client of the library
* should not.
*/
#ifdef EXPORT_JSDJ_API
#define JSDJ_PUBLIC_API(t) JS_EXPORT_API(t)
#define JSDJ_PUBLIC_DATA(t) JS_EXPORT_DATA(t)
#else
#define JSDJ_PUBLIC_API(t) JS_IMPORT_API(t)
#define JSDJ_PUBLIC_DATA(t) JS_IMPORT_DATA(t)
#endif
#define JSDJ_FRIEND_API(t) JSDJ_PUBLIC_API(t)
#define JSDJ_FRIEND_DATA(t) JSDJ_PUBLIC_DATA(t)
/***************************************************************************/
/* Opaque typedefs for handles */
typedef struct JSDJContext JSDJContext;
/***************************************************************************/
/* High Level functions */
#define JSDJ_START_SUCCESS 1
#define JSDJ_START_FAILURE 2
#define JSDJ_STOP 3
typedef void
(*JSDJ_StartStopProc)(JSDJContext* jsdjc, int event, void *user);
typedef JNIEnv*
(*JSDJ_GetJNIEnvProc)(JSDJContext* jsdjc, void* user);
/* This struct could have more fields in future versions */
typedef struct
{
uintN size; /* size of this struct (init before use)*/
JSDJ_StartStopProc startStop;
JSDJ_GetJNIEnvProc getJNIEnv;
} JSDJ_UserCallbacks;
extern JSDJ_PUBLIC_API(JSDJContext*)
JSDJ_SimpleInitForSingleContextMode(JSDContext* jsdc,
JSDJ_GetJNIEnvProc getEnvProc, void* user);
extern JSDJ_PUBLIC_API(JSBool)
JSDJ_SetSingleContextMode();
extern JSDJ_PUBLIC_API(JSDJContext*)
JSDJ_CreateContext();
extern JSDJ_PUBLIC_API(void)
JSDJ_DestroyContext(JSDJContext* jsdjc);
extern JSDJ_PUBLIC_API(void)
JSDJ_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
void* user);
extern JSDJ_PUBLIC_API(void)
JSDJ_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env);
extern JSDJ_PUBLIC_API(JNIEnv*)
JSDJ_GetJNIEnvForCurrentThread(JSDJContext* jsdjc);
extern JSDJ_PUBLIC_API(void)
JSDJ_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc);
extern JSDJ_PUBLIC_API(JSDContext*)
JSDJ_GetJSDContext(JSDJContext* jsdjc);
extern JSDJ_PUBLIC_API(JSBool)
JSDJ_RegisterNatives(JSDJContext* jsdjc);
/***************************************************************************/
#ifdef JSD_STANDALONE_JAVA_VM
extern JSDJ_PUBLIC_API(JNIEnv*)
JSDJ_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc);
#endif /* JSD_STANDALONE_JAVA_VM */
/***************************************************************************/
JS_END_EXTERN_C
#endif /* jsdjava_h___ */

View File

@@ -1,78 +0,0 @@
PROJ = jsdjava
JSDJAVA = .
JSD = $(JSDJAVA)\..
JS = $(JSD)\..\src
JSPROJ = js32
JSDPROJ = jsd
!IF "$(BUILD_OPT)" != ""
OBJ = Release
CC_FLAGS = /DNDEBUG
!ELSE
OBJ = Debug
CC_FLAGS = /DDEBUG
LINK_FLAGS = /DEBUG
!ENDIF
QUIET=@
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
/I $(JS)\
/I $(JSD)\
/I $(JSDJAVA)\
/DDEBUG /DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
/DJSD_THREADSAFE\
/DEXPORT_JSDJ_API\
/DJSDEBUGGER\
!IF "$(JSD_STANDALONE_JAVA_VM)" != ""
/I $(JSDJAVA)\jre\
/I $(JSDJAVA)\jre\win32\
/DJSD_STANDALONE_JAVA_VM\
!ENDIF
$(CC_FLAGS)\
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
LFLAGS = /nologo /subsystem:console /DLL /incremental:no /machine:I386 \
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
LLIBS = kernel32.lib advapi32.lib \
$(JS)\$(OBJ)\$(JSPROJ).lib $(JSD)\$(OBJ)\$(JSDPROJ).lib
CPP=cl.exe
LINK32=link.exe
all: $(OBJ) $(OBJ)\$(PROJ).dll
$(OBJ)\$(PROJ).dll: \
!IF "$(JSD_STANDALONE_JAVA_VM)" != ""
$(OBJ)\jsd_jvm.obj \
$(OBJ)\jre.obj \
$(OBJ)\jre_md.obj \
!ENDIF
$(OBJ)\jsdjava.obj \
$(OBJ)\jsd_jntv.obj
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
{$(JSDJAVA)}.c{$(OBJ)}.obj :
$(QUIET)$(CPP) $(CFLAGS)
{$(JSDJAVA)\jre}.c{$(OBJ)}.obj :
$(QUIET)$(CPP) $(CFLAGS)
{$(JSDJAVA)\jre\win32}.c{$(OBJ)}.obj :
$(QUIET)$(CPP) $(CFLAGS)
$(OBJ) :
$(QUIET)mkdir $(OBJ)
clean:
@echo deleting old output
$(QUIET)del $(OBJ)\*.pch >NUL
$(QUIET)del $(OBJ)\*.obj >NUL
$(QUIET)del $(OBJ)\*.exp >NUL
$(QUIET)del $(OBJ)\*.lib >NUL
$(QUIET)del $(OBJ)\*.idb >NUL
$(QUIET)del $(OBJ)\*.pdb >NUL
$(QUIET)del $(OBJ)\*.dll >NUL

View File

@@ -1,147 +0,0 @@
PROJ = nativejsengine
PACKAGE_DOT = com.netscape.nativejsengine
NJSE = .
TESTS = $(NJSE)\tests
GEN = $(NJSE)\_jni
JSD = $(NJSE)\..
JS = $(JSD)\..\src
JSDJAVA = $(JSD)\java
JSPROJ = js32
JSDPROJ = jsd
JSDJAVAPROJ = jsdjava
EXPORT_BIN_BASE_DIR = $(NJSE)\..\..\jsdj\dist\bin
EXPORT_CLASSES_BASE_DIR = $(NJSE)\..\..\jsdj\dist\classes
!IF "$(BUILD_OPT)" != ""
OBJ = Release
CC_FLAGS = /DNDEBUG
!ELSE
OBJ = Debug
CC_FLAGS = /DDEBUG
LINK_FLAGS = /DEBUG
!ENDIF
QUIET=@
EXPORT_BIN_DIR = $(EXPORT_BIN_BASE_DIR)\$(OBJ)
STD_CLASSPATH = -classpath $(EXPORT_CLASSES_BASE_DIR);$(CLASSPATH)
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
/DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
/I $(JS)\
/I $(JSD)\
/I $(JSDJAVA)\
/DJSDEBUGGER\
/DJSD_THREADSAFE\
$(CC_FLAGS)\
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
LFLAGS = /nologo /subsystem:console /incremental:no /DLL /machine:I386 \
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
LLIBS = kernel32.lib advapi32.lib \
$(JS)\$(OBJ)\$(JSPROJ).lib \
$(JSD)\$(OBJ)\$(JSDPROJ).lib \
$(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).lib
CPP=cl.exe
LINK32=link.exe
CLASSES_WITH_NATIVES = \
$(PACKAGE_DOT).JSRuntime\
$(PACKAGE_DOT).JSContext
all: $(GEN) $(OBJ) dlls mkjniheaders $(OBJ)\$(PROJ).dll export_binaries
$(OBJ)\$(PROJ).dll: \
$(OBJ)\nativejsengine.obj
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
.c{$(OBJ)}.obj:
$(QUIET)$(CPP) $(CFLAGS)
$(GEN) :
@mkdir $(GEN)
$(OBJ) :
@mkdir $(OBJ)
dlls :
$(QUIET)cd ..\..\src
!IF "$(BUILD_OPT)" != ""
$(QUIET)nmake -f js.mak CFG="js - Win32 Release"
!ELSE
$(QUIET)nmake -f js.mak CFG="js - Win32 Debug"
!ENDIF
$(QUIET)cd ..\jsd\javawrap
$(QUIET)cd ..
$(QUIET)nmake -f jsd.mak JSD_THREADSAFE=1 $(OPT)
$(QUIET)cd javawrap
$(QUIET)cd ..\java
$(QUIET)nmake -f jsdjava.mak $(OPT)
$(QUIET)cd ..\javawrap
export_binaries : mk_export_dirs
@echo exporting binaries
$(QUIET)copy $(JS)\$(OBJ)\$(JSPROJ).dll $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(JS)\$(OBJ)\$(JSPROJ).pdb $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(JSD)\$(OBJ)\$(JSDPROJ).dll $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(JSD)\$(OBJ)\$(JSDPROJ).pdb $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).dll $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).pdb $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(OBJ)\$(PROJ).pdb $(EXPORT_BIN_DIR) >NUL
$(QUIET)copy $(OBJ)\$(PROJ).dll $(EXPORT_BIN_DIR) >NUL
mkjniheaders :
@echo generating JNI header
$(QUIET)javah -jni -d "$(GEN)" $(STD_CLASSPATH) $(CLASSES_WITH_NATIVES)
@touch *.c >NUL
mk_export_dirs:
@if not exist $(JS)\..\jsdj\dist\NUL @mkdir $(JS)\..\jsdj\dist
@if not exist $(JS)\..\jsdj\dist\bin\NUL @mkdir $(JS)\..\jsdj\dist\bin
@if not exist $(EXPORT_BIN_DIR)\NUL @mkdir $(EXPORT_BIN_DIR)
#mktest :
# @echo compiling Java test file
# @sj $(JAVAFLAGS) $(TEST_CLASSPATH) $(TESTS)\Main.java
# @echo copying js and jsd dlls
# @copy $(JS)\$(OBJ)\$(JSPROJ).dll $(OBJ) >NUL
# @copy $(JS)\$(OBJ)\$(JSPROJ).pdb $(OBJ) >NUL
# @copy $(JSD)\$(OBJ)\$(JSDPROJ).dll $(OBJ) >NUL
# @copy $(JSD)\$(OBJ)\$(JSDPROJ).pdb $(OBJ) >NUL
# @copy $(TESTS)\*.js $(OBJ) >NUL
clean:
@echo deleting old output
$(QUIET)del $(OBJ)\*.pch >NUL
$(QUIET)del $(OBJ)\*.obj >NUL
$(QUIET)del $(OBJ)\*.exp >NUL
$(QUIET)del $(OBJ)\*.lib >NUL
$(QUIET)del $(OBJ)\*.idb >NUL
$(QUIET)del $(OBJ)\*.pdb >NUL
$(QUIET)del $(OBJ)\*.dll >NUL
$(QUIET)del $(GEN)\*.h >NUL
deep_clean: clean
$(QUIET)cd ..\..\src
!IF "$(BUILD_OPT)" != ""
$(QUIET)nmake -f js.mak CFG="js - Win32 Release" clean
!ELSE
$(QUIET)nmake -f js.mak CFG="js - Win32 Debug" clean
!ENDIF
$(QUIET)cd ..\jsd\javawrap
$(QUIET)cd ..
$(QUIET)nmake -f jsd.mak clean
$(QUIET)cd javawrap
$(QUIET)cd ..\java
$(QUIET)nmake -f jsdjava.mak clean
$(QUIET)cd ..\javawrap

View File

@@ -1 +0,0 @@
nmake -f javawrap.mak %1 %2 %3 %4 %5

View File

@@ -1,616 +0,0 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "_jni/com_netscape_nativejsengine_JSRuntime.h"
#include "_jni/com_netscape_nativejsengine_JSContext.h"
#include "jsapi.h"
#include "jstypes.h"
#include "jsutil.h" /* Added by JSIFY */
#ifdef JSDEBUGGER
#include "jsdebug.h"
#include "jsdjava.h"
#endif
/***************************************************************************/
#define ASSERT_RETURN_VOID(x) \
JS_BEGIN_MACRO \
if(!(x)) \
{ \
JS_ASSERT(0); \
return; \
} \
JS_END_MACRO
#define ASSERT_RETURN_VALUE(x,v)\
JS_BEGIN_MACRO \
if(!(x)) \
{ \
JS_ASSERT(0); \
return v; \
} \
JS_END_MACRO
#define CHECK_RETURN_VOID(x) \
JS_BEGIN_MACRO \
if(!(x)) \
{ \
return; \
} \
JS_END_MACRO
#define CHECK_RETURN_VALUE(x,v) \
JS_BEGIN_MACRO \
if(!(x)) \
{ \
return v; \
} \
JS_END_MACRO
#define ASSERT_GOTO(x,w) \
JS_BEGIN_MACRO \
if(!(x)) \
{ \
JS_ASSERT(0); \
goto w; \
} \
JS_END_MACRO
#define CHECK_GOTO(x,w) \
JS_BEGIN_MACRO \
if(!(x)) \
{ \
goto w; \
} \
JS_END_MACRO
#ifdef DEBUG
#define ASSERT_CLEAR_EXCEPTION(e) \
JS_BEGIN_MACRO \
if((*e)->ExceptionOccurred(e)) \
{ \
(*e)->ExceptionDescribe(e); \
JS_ASSERT(0); \
} \
(*e)->ExceptionClear(e); \
JS_END_MACRO
#else /* ! DEBUG */
#define ASSERT_CLEAR_EXCEPTION(e) (*e)->ExceptionClear(e)
#endif /* DEBUG */
#define CHECK_CLEAR_EXCEPTION(e) (*e)->ExceptionClear(e)
/***************************************************************************/
typedef struct ContextInfo {
JNIEnv* env;
jobject contextObject;
} ContextInfo;
/***************************************************************************/
#ifdef JSDEBUGGER
static void
_jamSourceIntoJSD(JSContext *cx, const char* src, int len, const char* filename)
{
jclass clazz_self;
jclass clazz;
JSDJContext* jsdjc;
jobject rtObject;
jobject contextObject;
jmethodID mid;
jfieldID fid;
ContextInfo* info;
JNIEnv* env;
info = (ContextInfo*) JS_GetContextPrivate(cx);
ASSERT_RETURN_VOID(info);
env = info->env;
ASSERT_RETURN_VOID(env);
contextObject = info->contextObject;
ASSERT_RETURN_VOID(contextObject);
clazz_self = (*env)->GetObjectClass(env, contextObject);
ASSERT_RETURN_VOID(clazz_self);
fid = (*env)->GetFieldID(env, clazz_self, "_runtime",
"Lcom/netscape/nativejsengine/JSRuntime;");
ASSERT_RETURN_VOID(fid);
rtObject = (*env)->GetObjectField(env, contextObject, fid);
ASSERT_RETURN_VOID(rtObject);
clazz = (*env)->GetObjectClass(env, rtObject);
ASSERT_RETURN_VOID(clazz);
mid = (*env)->GetMethodID(env, clazz, "getNativeDebugSupport", "()J");
ASSERT_RETURN_VOID(mid);
jsdjc = (JSDJContext*) (*env)->CallObjectMethod(env, rtObject, mid);
if(jsdjc)
{
JSDContext* jsdc;
jsdc = JSDJ_GetJSDContext(jsdjc);
ASSERT_RETURN_VOID(jsdc);
JSD_AddFullSourceText(jsdc, src, len, filename);
}
}
#endif
static JSBool
_loadSingleFile(JSContext *cx, JSObject *obj, const char* filename)
{
char* buf;
FILE* file;
int file_len;
jsval result;
errno = 0;
file = fopen(filename, "rb");
if (!file) {
JS_ReportError(cx, "can't open %s: %s", filename, strerror(errno));
return JS_FALSE;
}
fseek(file, 0, SEEK_END);
file_len = ftell(file);
fseek(file, 0, SEEK_SET);
if(! file_len) {
fclose(file);
JS_ReportError(cx, "%s is empty", filename);
return JS_FALSE;
}
buf = (char*) malloc(file_len);
if(! buf) {
fclose(file);
JS_ReportError(cx, "memory alloc error while trying to read %s", filename);
return JS_FALSE;
}
fread(buf, 1, file_len, file);
fclose(file);
#ifdef JSDEBUGGER
_jamSourceIntoJSD(cx, buf, file_len, filename);
#endif
JS_EvaluateScript(cx, obj, buf, file_len, filename, 1, &result);
free(buf);
return JS_TRUE;
}
static void _sendPrintStringToJava(JNIEnv* env, jobject contextObject,
jmethodID mid, const char* str)
{
if(! str)
return;
(*env)->CallObjectMethod(env, contextObject, mid,
(*env)->NewStringUTF(env, str));
}
static JSBool
Print(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
uintN i, n;
JSString *str;
ContextInfo* info;
jmethodID mid;
jclass clazz;
JNIEnv* env;
info = (ContextInfo*) JS_GetContextPrivate(cx);
ASSERT_RETURN_VALUE(info, JS_FALSE);
env = info->env;
ASSERT_RETURN_VALUE(env, JS_FALSE);
clazz = (*env)->GetObjectClass(env, info->contextObject);
ASSERT_RETURN_VALUE(clazz, JS_FALSE);
mid = (*env)->GetMethodID(env, clazz, "_print", "(Ljava/lang/String;)V");
ASSERT_RETURN_VALUE(mid, JS_FALSE);
for (i = n = 0; i < argc; i++) {
str = JS_ValueToString(cx, argv[i]);
if (!str)
return JS_FALSE;
if(i)
_sendPrintStringToJava(env, info->contextObject, mid, "");
_sendPrintStringToJava(env, info->contextObject, mid, JS_GetStringBytes(str));
n++;
}
if (n)
_sendPrintStringToJava(env, info->contextObject, mid, "\n");
return JS_TRUE;
}
static JSBool
Version(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
if (argc > 0 && JSVAL_IS_INT(argv[0]))
*rval = INT_TO_JSVAL(JS_SetVersion(cx, JSVAL_TO_INT(argv[0])));
else
*rval = INT_TO_JSVAL(JS_GetVersion(cx));
return JS_TRUE;
}
static JSBool
Load(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
uintN i;
JSString *str;
const char *filename;
for (i = 0; i < argc; i++) {
str = JS_ValueToString(cx, argv[i]);
if (!str)
return JS_FALSE;
argv[i] = STRING_TO_JSVAL(str);
filename = JS_GetStringBytes(str);
if(! _loadSingleFile(cx, obj, filename))
return JS_FALSE;
}
return JS_TRUE;
}
static JSFunctionSpec shell_functions[] = {
{"version", Version, 0},
{"load", Load, 1},
{"print", Print, 0},
{0}
};
static void
my_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
{
ContextInfo* info;
jmethodID mid;
jclass clazz;
JNIEnv* env;
jobject msg = NULL;
jobject filename = NULL;
jobject lineBuf = NULL;
int lineno = 0;
int offset = 0;
info = (ContextInfo*) JS_GetContextPrivate(cx);
ASSERT_RETURN_VOID(info);
env = info->env;
ASSERT_RETURN_VOID(env);
clazz = (*env)->GetObjectClass(env, info->contextObject);
ASSERT_RETURN_VOID(clazz);
mid = (*env)->GetMethodID(env, clazz, "_reportError",
"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V");
ASSERT_RETURN_VOID(mid);
if(message)
msg = (*env)->NewStringUTF(env, message);
if(report)
{
lineno = report->lineno;
if(report->filename)
filename = (*env)->NewStringUTF(env, report->filename);
if(report->linebuf)
{
lineBuf = (*env)->NewStringUTF(env, report->linebuf);
if(report->tokenptr)
offset = report->tokenptr - report->linebuf;
}
}
(*env)->CallObjectMethod(env, info->contextObject, mid,
msg, filename, lineno, lineBuf, offset);
}
static JSClass global_class = {
"global", 0,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
};
/*
* Class: com_netscape_nativejsengine_JSRuntime
* Method: _init
* Signature: (Z)Z
*/
JNIEXPORT jboolean JNICALL Java_com_netscape_nativejsengine_JSRuntime__1init
(JNIEnv * env, jobject self, jboolean enableDebugging)
{
JSRuntime *rt;
jclass clazz;
jfieldID fid;
rt = JS_NewRuntime(8L * 1024L * 1024L);
ASSERT_RETURN_VALUE(rt, JNI_FALSE);
clazz = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VALUE(clazz, JNI_FALSE);
fid = (*env)->GetFieldID(env, clazz, "_nativeRuntime", "J");
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
(*env)->SetLongField(env, self, fid, (long) rt);
#ifdef JSDEBUGGER
if(enableDebugging)
{
JSDJContext* jsdjc;
JSDContext* jsdc;
jsdc = JSD_DebuggerOnForUser(rt, NULL, NULL);
ASSERT_RETURN_VALUE(jsdc, JNI_FALSE);
jsdjc = JSDJ_CreateContext();
ASSERT_RETURN_VALUE(jsdjc, JNI_FALSE);
JSDJ_SetJSDContext(jsdjc, jsdc);
JSDJ_SetJNIEnvForCurrentThread(jsdjc, env);
fid = (*env)->GetFieldID(env, clazz, "_nativeDebugSupport", "J");
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
(*env)->SetLongField(env, self, fid, (long) jsdjc);
}
#else
if(enableDebugging)
printf("ERROR - Context created with enableDebugging flag, but no debugging support compiled in!");
#endif
return JNI_TRUE;
}
/*
* Class: com_netscape_nativejsengine_JSRuntime
* Method: _exit
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSRuntime__1exit
(JNIEnv * env, jobject self)
{
jfieldID fid;
jclass clazz;
JSRuntime *rt;
JSContext *iterp = NULL;
clazz = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VOID(clazz);
fid = (*env)->GetFieldID(env, clazz, "_nativeRuntime", "J");
ASSERT_RETURN_VOID(fid);
rt = (JSRuntime *) (*env)->GetLongField(env, self, fid);
ASSERT_RETURN_VOID(rt);
/*
* Can't kill runtime if it holds any contexts
*
* However, JSD may make it's own context(s), so don't ASSERT
*/
CHECK_RETURN_VOID(!JS_ContextIterator(rt, &iterp));
printf("runtime = %d\n", (int)rt);
JS_DestroyRuntime(rt);
}
/***************************************************************************/
/*
* Class: com_netscape_nativejsengine_JSContext
* Method: _init
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_com_netscape_nativejsengine_JSContext__1init
(JNIEnv *env, jobject self)
{
JSContext *cx;
JSObject *glob;
jfieldID fid;
jmethodID mid;
JSRuntime *rt;
jobject rtObject;
jclass clazz;
jclass clazz_self;
JSBool ok;
ContextInfo* info;
#ifdef JSDEBUGGER
JSDJContext* jsdjc;
#endif
clazz_self = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VALUE(clazz_self, JNI_FALSE);
fid = (*env)->GetFieldID(env, clazz_self, "_runtime",
"Lcom/netscape/nativejsengine/JSRuntime;");
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
rtObject = (*env)->GetObjectField(env, self, fid);
ASSERT_RETURN_VALUE(rtObject, JNI_FALSE);
clazz = (*env)->GetObjectClass(env, rtObject);
ASSERT_RETURN_VALUE(clazz, JNI_FALSE);
mid = (*env)->GetMethodID(env, clazz, "getNativeRuntime", "()J");
ASSERT_RETURN_VALUE(mid, JNI_FALSE);
rt = (JSRuntime *) (*env)->CallObjectMethod(env, rtObject, mid);
ASSERT_RETURN_VALUE(rt, JNI_FALSE);
cx = JS_NewContext(rt, 8192);
ASSERT_RETURN_VALUE(cx, JNI_FALSE);
JS_SetErrorReporter(cx, my_ErrorReporter);
glob = JS_NewObject(cx, &global_class, NULL, NULL);
ASSERT_RETURN_VALUE(glob, JNI_FALSE);
ok = JS_InitStandardClasses(cx, glob);
ASSERT_RETURN_VALUE(ok, JNI_FALSE);
ok = JS_DefineFunctions(cx, glob, shell_functions);
ASSERT_RETURN_VALUE(ok, JNI_FALSE);
fid = (*env)->GetFieldID(env, clazz_self, "_nativeContext", "J");
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
(*env)->SetLongField(env, self, fid, (long) cx);
info = (ContextInfo*) malloc(sizeof(ContextInfo));
ASSERT_RETURN_VALUE(info, JNI_FALSE);
info->env = env;
info->contextObject = self;
JS_SetContextPrivate(cx, info);
#ifdef JSDEBUGGER
mid = (*env)->GetMethodID(env, clazz, "getNativeDebugSupport", "()J");
ASSERT_RETURN_VALUE(mid, JNI_FALSE);
jsdjc = (JSDJContext*) (*env)->CallObjectMethod(env, rtObject, mid);
if(jsdjc)
{
JSDContext* jsdc = JSDJ_GetJSDContext(jsdjc);
ASSERT_RETURN_VALUE(jsdc, JNI_FALSE);
JSDJ_SetJNIEnvForCurrentThread(jsdjc, env);
JSD_JSContextInUse(jsdc, cx);
}
#endif
return JNI_TRUE;
}
/*
* Class: com_netscape_nativejsengine_JSContext
* Method: _exit
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1exit
(JNIEnv *env, jobject self)
{
jfieldID fid;
jclass clazz;
JSContext *cx;
ContextInfo* info;
clazz = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VOID(clazz);
fid = (*env)->GetFieldID(env, clazz, "_nativeContext", "J");
ASSERT_RETURN_VOID(fid);
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
ASSERT_RETURN_VOID(cx);
info = (ContextInfo*) JS_GetContextPrivate(cx);
ASSERT_RETURN_VOID(info);
free(info);
printf("context = %d\n", (int)cx);
JS_DestroyContext(cx);
}
/*
* Class: com_netscape_nativejsengine_JSContext
* Method: _eval
* Signature: (Ljava/lang/String;)V
*/
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1eval
(JNIEnv * env, jobject self, jstring str, jstring filename, jint lineno)
{
jfieldID fid;
jclass clazz_self;
JSContext *cx;
JSObject *glob;
jsval rval;
int len;
const char* Cstr;
const char* Cfilename;
jboolean isCopy;
clazz_self = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VOID(clazz_self);
fid = (*env)->GetFieldID(env, clazz_self, "_nativeContext", "J");
ASSERT_RETURN_VOID(fid);
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
ASSERT_RETURN_VOID(cx);
glob = JS_GetGlobalObject(cx);
ASSERT_RETURN_VOID(glob);
len = (*env)->GetStringUTFLength(env, str);
Cstr = (*env)->GetStringUTFChars(env, str, &isCopy);
Cfilename = (*env)->GetStringUTFChars(env, filename, &isCopy);
#ifdef JSDEBUGGER
/*
* XXX this just overwrites any previous source for this url!
*/
_jamSourceIntoJSD(cx, Cstr, len, Cfilename);
#endif
JS_EvaluateScript(cx, glob, Cstr, len, Cfilename, lineno, &rval);
(*env)->ReleaseStringUTFChars(env, str, Cstr);
(*env)->ReleaseStringUTFChars(env, filename, Cfilename);
}
/*
* Class: com_netscape_nativejsengine_JSContext
* Method: _load
* Signature: (Ljava/lang/String;)V
*/
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1load
(JNIEnv *env, jobject self, jstring filename)
{
jfieldID fid;
jclass clazz;
JSContext *cx;
const char* Cfilename;
jboolean isCopy;
JSObject *glob;
clazz = (*env)->GetObjectClass(env, self);
ASSERT_RETURN_VOID(clazz);
fid = (*env)->GetFieldID(env, clazz, "_nativeContext", "J");
ASSERT_RETURN_VOID(fid);
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
ASSERT_RETURN_VOID(cx);
glob = JS_GetGlobalObject(cx);
ASSERT_RETURN_VOID(glob);
Cfilename = (*env)->GetStringUTFChars(env, filename, &isCopy);
_loadSingleFile(cx, glob, Cfilename);
(*env)->ReleaseStringUTFChars(env, filename, Cfilename);
}

View File

@@ -1,954 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Header for JavaScript Debugging support - Internal ONLY declarations
*/
#ifndef jsd_h___
#define jsd_h___
/*
* NOTE: This is a *private* header file and should only be included by
* the sources in js/jsd. Defining EXPORT_JSD_API in an outside module
* using jsd would be bad.
*/
#define EXPORT_JSD_API 1 /* if used, must be set before include of jsdebug.h */
/*
* These can be controled by the makefile, but this allows a place to set
* the values always used in the mozilla client, but perhaps done differnetly
* in other embeddings.
*/
#ifdef MOZILLA_CLIENT
#define JSD_THREADSAFE 1
#define JSD_HAS_DANGEROUS_THREAD 1
#define JSD_USE_NSPR_LOCKS 1
#endif /* MOZILLA_CLIENT */
/* Get jstypes.h included first. After that we can use PR macros for doing
* this extern "C" stuff!
*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "jstypes.h"
#ifdef __cplusplus
}
#endif
JS_BEGIN_EXTERN_C
#include "jsprf.h"
#include "jsutil.h" /* Added by JSIFY */
#include "jshash.h" /* Added by JSIFY */
#include "jsclist.h"
#include "jsdebug.h"
#include "jsapi.h"
#include "jsobj.h"
#include "jsfun.h"
#include "jsdbgapi.h"
#include "jsd_lock.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef LIVEWIRE
#include <base/pblock.h>
#include <base/session.h>
#include <frame/log.h>
#include <frame/req.h>
#endif /* LIVEWIRE */
JS_END_EXTERN_C
JS_BEGIN_EXTERN_C
#define JSD_MAJOR_VERSION 1
#define JSD_MINOR_VERSION 1
/***************************************************************************/
/* handy macros */
#undef CHECK_BIT_FLAG
#define CHECK_BIT_FLAG(f,b) ((f)&(b))
#undef SET_BIT_FLAG
#define SET_BIT_FLAG(f,b) ((f)|=(b))
#undef CLEAR_BIT_FLAG
#define CLEAR_BIT_FLAG(f,b) ((f)&=(~(b)))
/***************************************************************************/
/* These are not exposed in jsdebug.h - typedef here for consistency */
typedef struct JSDExecHook JSDExecHook;
typedef struct JSDAtom JSDAtom;
/***************************************************************************/
/* Our structures */
/*
* XXX What I'm calling a JSDContext is really more of a JSDTaskState.
*/
struct JSDContext
{
JSCList links; /* we are part of a JSCList */
JSBool inited;
JSD_ScriptHookProc scriptHook;
void* scriptHookData;
JSD_ExecutionHookProc interruptHook;
void* interruptHookData;
JSRuntime* jsrt;
JSD_ErrorReporter errorReporter;
void* errorReporterData;
JSCList threadsStates;
JSD_ExecutionHookProc debugBreakHook;
void* debugBreakHookData;
JSD_ExecutionHookProc debuggerHook;
void* debuggerHookData;
JSD_ExecutionHookProc throwHook;
void* throwHookData;
JSContext* dumbContext;
JSObject* glob;
JSD_UserCallbacks userCallbacks;
void* user;
JSCList scripts;
JSCList sources;
JSCList removedSources;
uintN sourceAlterCount;
JSHashTable* atoms;
JSCList objectsList;
JSHashTable* objectsTable;
#ifdef JSD_THREADSAFE
void* scriptsLock;
void* sourceTextLock;
void* objectsLock;
void* atomsLock;
void* threadStatesLock;
#endif /* JSD_THREADSAFE */
#ifdef JSD_HAS_DANGEROUS_THREAD
void* dangerousThread;
#endif /* JSD_HAS_DANGEROUS_THREAD */
};
struct JSDScript
{
JSCList links; /* we are part of a JSCList */
JSDContext* jsdc; /* JSDContext for this jsdscript */
JSScript* script; /* script we are wrapping */
JSFunction* function; /* back pointer to owning function (can be NULL) */
uintN lineBase; /* we cache this */
uintN lineExtent; /* we cache this */
JSCList hooks; /* JSCList of JSDExecHooks for this script */
char* url;
#ifdef LIVEWIRE
LWDBGApp* app;
LWDBGScript* lwscript;
#endif
};
struct JSDSourceText
{
JSCList links; /* we are part of a JSCList */
char* url;
char* text;
uintN textLength;
uintN textSpace;
JSBool dirty;
JSDSourceStatus status;
uintN alterCount;
JSBool doingEval;
};
struct JSDExecHook
{
JSCList links; /* we are part of a JSCList */
JSDScript* jsdscript;
jsuword pc;
JSD_ExecutionHookProc hook;
void* callerdata;
};
struct JSDThreadState
{
JSCList links; /* we are part of a JSCList */
JSContext* context;
void* thread;
JSCList stack;
uintN stackDepth;
};
struct JSDStackFrameInfo
{
JSCList links; /* we are part of a JSCList */
JSDThreadState* jsdthreadstate;
JSDScript* jsdscript;
jsuword pc;
JSStackFrame* fp;
};
#define GOT_PROTO ((short) (1 << 0))
#define GOT_PROPS ((short) (1 << 1))
#define GOT_PARENT ((short) (1 << 2))
#define GOT_CTOR ((short) (1 << 3))
struct JSDValue
{
jsval val;
intN nref;
JSCList props;
JSString* string;
const char* funName;
const char* className;
JSDValue* proto;
JSDValue* parent;
JSDValue* ctor;
uintN flags;
};
struct JSDProperty
{
JSCList links; /* we are part of a JSCList */
intN nref;
JSDValue* val;
JSDValue* name;
JSDValue* alias;
uintN slot;
uintN flags;
};
struct JSDAtom
{
char* str; /* must be first element in stuct for compare */
intN refcount;
};
struct JSDObject
{
JSCList links; /* we are part of a JSCList */
JSObject* obj;
JSDAtom* newURL;
uintN newLineno;
JSDAtom* ctorURL;
uintN ctorLineno;
JSDAtom* ctorName;
};
/***************************************************************************/
/* Code validation support */
#ifdef DEBUG
extern void JSD_ASSERT_VALID_CONTEXT(JSDContext* jsdc);
extern void JSD_ASSERT_VALID_SCRIPT(JSDScript* jsdscript);
extern void JSD_ASSERT_VALID_SOURCE_TEXT(JSDSourceText* jsdsrc);
extern void JSD_ASSERT_VALID_THREAD_STATE(JSDThreadState* jsdthreadstate);
extern void JSD_ASSERT_VALID_STACK_FRAME(JSDStackFrameInfo* jsdframe);
extern void JSD_ASSERT_VALID_EXEC_HOOK(JSDExecHook* jsdhook);
extern void JSD_ASSERT_VALID_VALUE(JSDValue* jsdval);
extern void JSD_ASSERT_VALID_PROPERTY(JSDProperty* jsdprop);
extern void JSD_ASSERT_VALID_OBJECT(JSDObject* jsdobj);
#else
#define JSD_ASSERT_VALID_CONTEXT(x) ((void)0)
#define JSD_ASSERT_VALID_SCRIPT(x) ((void)0)
#define JSD_ASSERT_VALID_SOURCE_TEXT(x) ((void)0)
#define JSD_ASSERT_VALID_THREAD_STATE(x)((void)0)
#define JSD_ASSERT_VALID_STACK_FRAME(x) ((void)0)
#define JSD_ASSERT_VALID_EXEC_HOOK(x) ((void)0)
#define JSD_ASSERT_VALID_VALUE(x) ((void)0)
#define JSD_ASSERT_VALID_PROPERTY(x) ((void)0)
#define JSD_ASSERT_VALID_OBJECT(x) ((void)0)
#endif
/***************************************************************************/
/* higher level functions */
extern JSDContext*
jsd_DebuggerOnForUser(JSRuntime* jsrt,
JSD_UserCallbacks* callbacks,
void* user);
extern JSDContext*
jsd_DebuggerOn(void);
extern void
jsd_DebuggerOff(JSDContext* jsdc);
extern void
jsd_SetUserCallbacks(JSRuntime* jsrt, JSD_UserCallbacks* callbacks, void* user);
extern JSDContext*
jsd_JSDContextForJSContext(JSContext* context);
extern JSBool
jsd_SetErrorReporter(JSDContext* jsdc,
JSD_ErrorReporter reporter,
void* callerdata);
extern JSBool
jsd_GetErrorReporter(JSDContext* jsdc,
JSD_ErrorReporter* reporter,
void** callerdata);
JS_STATIC_DLL_CALLBACK(JSBool)
jsd_DebugErrorHook(JSContext *cx, const char *message,
JSErrorReport *report, void *closure);
/***************************************************************************/
/* Script functions */
extern void
jsd_DestroyAllJSDScripts(JSDContext* jsdc);
extern JSDScript*
jsd_FindJSDScript(JSDContext* jsdc,
JSScript *script);
extern JSDScript*
jsd_IterateScripts(JSDContext* jsdc, JSDScript **iterp);
extern JSBool
jsd_IsActiveScript(JSDContext* jsdc, JSDScript *jsdscript);
extern const char*
jsd_GetScriptFilename(JSDContext* jsdc, JSDScript *jsdscript);
extern const char*
jsd_GetScriptFunctionName(JSDContext* jsdc, JSDScript *jsdscript);
extern uintN
jsd_GetScriptBaseLineNumber(JSDContext* jsdc, JSDScript *jsdscript);
extern uintN
jsd_GetScriptLineExtent(JSDContext* jsdc, JSDScript *jsdscript);
extern JSBool
jsd_SetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc hook, void* callerdata);
extern JSBool
jsd_GetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc* hook, void** callerdata);
extern jsuword
jsd_GetClosestPC(JSDContext* jsdc, JSDScript* jsdscript, uintN line);
extern uintN
jsd_GetClosestLine(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc);
extern void JS_DLL_CALLBACK
jsd_NewScriptHookProc(
JSContext *cx,
const char *filename, /* URL this script loads from */
uintN lineno, /* line where this script starts */
JSScript *script,
JSFunction *fun,
void* callerdata);
extern void JS_DLL_CALLBACK
jsd_DestroyScriptHookProc(
JSContext *cx,
JSScript *script,
void* callerdata);
/* Script execution hook functions */
extern JSBool
jsd_SetExecutionHook(JSDContext* jsdc,
JSDScript* jsdscript,
jsuword pc,
JSD_ExecutionHookProc hook,
void* callerdata);
extern JSBool
jsd_ClearExecutionHook(JSDContext* jsdc,
JSDScript* jsdscript,
jsuword pc);
extern JSBool
jsd_ClearAllExecutionHooksForScript(JSDContext* jsdc, JSDScript* jsdscript);
extern JSBool
jsd_ClearAllExecutionHooks(JSDContext* jsdc);
extern void
jsd_ScriptCreated(JSDContext* jsdc,
JSContext *cx,
const char *filename, /* URL this script loads from */
uintN lineno, /* line where this script starts */
JSScript *script,
JSFunction *fun);
extern void
jsd_ScriptDestroyed(JSDContext* jsdc,
JSContext *cx,
JSScript *script);
/***************************************************************************/
/* Source Text functions */
extern JSDSourceText*
jsd_IterateSources(JSDContext* jsdc, JSDSourceText **iterp);
extern JSDSourceText*
jsd_FindSourceForURL(JSDContext* jsdc, const char* url);
extern const char*
jsd_GetSourceURL(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern JSBool
jsd_GetSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc,
const char** ppBuf, intN* pLen);
extern void
jsd_ClearSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern JSDSourceStatus
jsd_GetSourceStatus(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern JSBool
jsd_IsSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern void
jsd_SetSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc, JSBool dirty);
extern uintN
jsd_GetSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern uintN
jsd_IncrementSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern JSDSourceText*
jsd_NewSourceText(JSDContext* jsdc, const char* url);
extern JSDSourceText*
jsd_AppendSourceText(JSDContext* jsdc,
JSDSourceText* jsdsrc,
const char* text, /* *not* zero terminated */
size_t length,
JSDSourceStatus status);
extern JSDSourceText*
jsd_AppendUCSourceText(JSDContext* jsdc,
JSDSourceText* jsdsrc,
const jschar* text, /* *not* zero terminated */
size_t length,
JSDSourceStatus status);
/* convienence function for adding complete source of url in one call */
extern JSBool
jsd_AddFullSourceText(JSDContext* jsdc,
const char* text, /* *not* zero terminated */
size_t length,
const char* url);
extern void
jsd_DestroyAllSources(JSDContext* jsdc);
extern const char*
jsd_BuildNormalizedURL(const char* url_string);
extern void
jsd_StartingEvalUsingFilename(JSDContext* jsdc, const char* url);
extern void
jsd_FinishedEvalUsingFilename(JSDContext* jsdc, const char* url);
/***************************************************************************/
/* Interrupt Hook functions */
extern JSBool
jsd_SetInterruptHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata);
extern JSBool
jsd_ClearInterruptHook(JSDContext* jsdc);
extern JSBool
jsd_SetDebugBreakHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata);
extern JSBool
jsd_ClearDebugBreakHook(JSDContext* jsdc);
extern JSBool
jsd_SetDebuggerHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata);
extern JSBool
jsd_ClearDebuggerHook(JSDContext* jsdc);
extern JSTrapStatus
jsd_CallExecutionHook(JSDContext* jsdc,
JSContext *cx,
JSDHookType type,
JSD_ExecutionHookProc hook,
void* hookData,
jsval* rval);
extern JSBool
jsd_SetThrowHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata);
extern JSBool
jsd_ClearThrowHook(JSDContext* jsdc);
extern JSTrapStatus JS_DLL_CALLBACK
jsd_DebuggerHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
jsval *rval, void *closure);
extern JSTrapStatus JS_DLL_CALLBACK
jsd_ThrowHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
jsval *rval, void *closure);
/***************************************************************************/
/* Stack Frame functions */
extern uintN
jsd_GetCountOfStackFrames(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
extern JSDStackFrameInfo*
jsd_GetStackFrame(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
extern JSDStackFrameInfo*
jsd_GetCallingStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDScript*
jsd_GetScriptForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern jsuword
jsd_GetPCForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDValue*
jsd_GetCallObjectForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDValue*
jsd_GetScopeChainForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDValue*
jsd_GetThisForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDThreadState*
jsd_NewThreadState(JSDContext* jsdc, JSContext *cx);
extern void
jsd_DestroyThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
extern JSBool
jsd_EvaluateScriptInStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe,
const char *bytes, uintN length,
const char *filename, uintN lineno, jsval *rval);
extern JSString*
jsd_ValToStringInStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe,
jsval val);
extern JSBool
jsd_IsValidThreadState(JSDContext* jsdc,
JSDThreadState* jsdthreadstate);
extern JSBool
jsd_IsValidFrameInThreadState(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe);
extern JSDValue*
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
extern JSBool
jsd_SetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate,
JSDValue* jsdval);
/***************************************************************************/
/* Locking support */
/* protos are in js_lock.h for:
* jsd_CreateLock
* jsd_Lock
* jsd_Unlock
* jsd_IsLocked
* jsd_CurrentThread
*/
#ifdef JSD_THREADSAFE
/* the system-wide lock */
extern void* _jsd_global_lock;
#define JSD_LOCK() \
JS_BEGIN_MACRO \
if(!_jsd_global_lock) \
_jsd_global_lock = jsd_CreateLock(); \
JS_ASSERT(_jsd_global_lock); \
jsd_Lock(_jsd_global_lock); \
JS_END_MACRO
#define JSD_UNLOCK() \
JS_BEGIN_MACRO \
JS_ASSERT(_jsd_global_lock); \
jsd_Unlock(_jsd_global_lock); \
JS_END_MACRO
/* locks for the subsystems of a given context */
#define JSD_INIT_LOCKS(jsdc) \
( (NULL != (jsdc->scriptsLock = jsd_CreateLock())) && \
(NULL != (jsdc->sourceTextLock = jsd_CreateLock())) && \
(NULL != (jsdc->atomsLock = jsd_CreateLock())) && \
(NULL != (jsdc->objectsLock = jsd_CreateLock())) && \
(NULL != (jsdc->threadStatesLock = jsd_CreateLock())) )
#define JSD_LOCK_SCRIPTS(jsdc) jsd_Lock(jsdc->scriptsLock)
#define JSD_UNLOCK_SCRIPTS(jsdc) jsd_Unlock(jsdc->scriptsLock)
#define JSD_LOCK_SOURCE_TEXT(jsdc) jsd_Lock(jsdc->sourceTextLock)
#define JSD_UNLOCK_SOURCE_TEXT(jsdc) jsd_Unlock(jsdc->sourceTextLock)
#define JSD_LOCK_ATOMS(jsdc) jsd_Lock(jsdc->atomsLock)
#define JSD_UNLOCK_ATOMS(jsdc) jsd_Unlock(jsdc->atomsLock)
#define JSD_LOCK_OBJECTS(jsdc) jsd_Lock(jsdc->objectsLock)
#define JSD_UNLOCK_OBJECTS(jsdc) jsd_Unlock(jsdc->objectsLock)
#define JSD_LOCK_THREADSTATES(jsdc) jsd_Lock(jsdc->threadStatesLock)
#define JSD_UNLOCK_THREADSTATES(jsdc) jsd_Unlock(jsdc->threadStatesLock)
#else /* !JSD_THREADSAFE */
#define JSD_LOCK() ((void)0)
#define JSD_UNLOCK() ((void)0)
#define JSD_INIT_LOCKS(jsdc) 1
#define JSD_LOCK_SCRIPTS(jsdc) ((void)0)
#define JSD_UNLOCK_SCRIPTS(jsdc) ((void)0)
#define JSD_LOCK_SOURCE_TEXT(jsdc) ((void)0)
#define JSD_UNLOCK_SOURCE_TEXT(jsdc) ((void)0)
#define JSD_LOCK_ATOMS(jsdc) ((void)0)
#define JSD_UNLOCK_ATOMS(jsdc) ((void)0)
#define JSD_LOCK_OBJECTS(jsdc) ((void)0)
#define JSD_UNLOCK_OBJECTS(jsdc) ((void)0)
#define JSD_LOCK_THREADSTATES(jsdc) ((void)0)
#define JSD_UNLOCK_THREADSTATES(jsdc) ((void)0)
#endif /* JSD_THREADSAFE */
/* NOTE: These are intended for ASSERTs. Thus we supply checks for both
* LOCKED and UNLOCKED (rather that just LOCKED and !LOCKED) so that in
* the DEBUG non-Threadsafe case we can have an ASSERT that always succeeds
* without having to special case things in the code.
*/
#if defined(JSD_THREADSAFE) && defined(DEBUG)
#define JSD_SCRIPTS_LOCKED(jsdc) (jsd_IsLocked(jsdc->scriptsLock))
#define JSD_SOURCE_TEXT_LOCKED(jsdc) (jsd_IsLocked(jsdc->sourceTextLock))
#define JSD_ATOMS_LOCKED(jsdc) (jsd_IsLocked(jsdc->atomsLock))
#define JSD_OBJECTS_LOCKED(jsdc) (jsd_IsLocked(jsdc->objectsLock))
#define JSD_THREADSTATES_LOCKED(jsdc) (jsd_IsLocked(jsdc->threadStatesLock))
#define JSD_SCRIPTS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->scriptsLock))
#define JSD_SOURCE_TEXT_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->sourceTextLock))
#define JSD_ATOMS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->atomsLock))
#define JSD_OBJECTS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->objectsLock))
#define JSD_THREADSTATES_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->threadStatesLock))
#else
#define JSD_SCRIPTS_LOCKED(jsdc) 1
#define JSD_SOURCE_TEXT_LOCKED(jsdc) 1
#define JSD_ATOMS_LOCKED(jsdc) 1
#define JSD_OBJECTS_LOCKED(jsdc) 1
#define JSD_THREADSTATES_LOCKED(jsdc) 1
#define JSD_SCRIPTS_UNLOCKED(jsdc) 1
#define JSD_SOURCE_TEXT_UNLOCKED(jsdc) 1
#define JSD_ATOMS_UNLOCKED(jsdc) 1
#define JSD_OBJECTS_UNLOCKED(jsdc) 1
#define JSD_THREADSTATES_UNLOCKED(jsdc) 1
#endif /* defined(JSD_THREADSAFE) && defined(DEBUG) */
/***************************************************************************/
/* Threading support */
#ifdef JSD_THREADSAFE
#define JSD_CURRENT_THREAD() jsd_CurrentThread()
#else /* !JSD_THREADSAFE */
#define JSD_CURRENT_THREAD() ((void*)0)
#endif /* JSD_THREADSAFE */
/***************************************************************************/
/* Dangerous thread support */
#ifdef JSD_HAS_DANGEROUS_THREAD
#define JSD_IS_DANGEROUS_THREAD(jsdc) \
(JSD_CURRENT_THREAD() == jsdc->dangerousThread)
#else /* !JSD_HAS_DANGEROUS_THREAD */
#define JSD_IS_DANGEROUS_THREAD(jsdc) 0
#endif /* JSD_HAS_DANGEROUS_THREAD */
/***************************************************************************/
/* Value and Property Functions */
extern JSDValue*
jsd_NewValue(JSDContext* jsdc, jsval val);
extern void
jsd_DropValue(JSDContext* jsdc, JSDValue* jsdval);
extern jsval
jsd_GetValueWrappedJSVal(JSDContext* jsdc, JSDValue* jsdval);
extern void
jsd_RefreshValue(JSDContext* jsdc, JSDValue* jsdval);
/**************************************************/
extern JSBool
jsd_IsValueObject(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueNumber(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueInt(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueDouble(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueString(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueBoolean(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueNull(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueVoid(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValuePrimitive(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueFunction(JSDContext* jsdc, JSDValue* jsdval);
extern JSBool
jsd_IsValueNative(JSDContext* jsdc, JSDValue* jsdval);
/**************************************************/
extern JSBool
jsd_GetValueBoolean(JSDContext* jsdc, JSDValue* jsdval);
extern int32
jsd_GetValueInt(JSDContext* jsdc, JSDValue* jsdval);
extern jsdouble*
jsd_GetValueDouble(JSDContext* jsdc, JSDValue* jsdval);
extern JSString*
jsd_GetValueString(JSDContext* jsdc, JSDValue* jsdval);
extern const char*
jsd_GetValueFunctionName(JSDContext* jsdc, JSDValue* jsdval);
/**************************************************/
extern uintN
jsd_GetCountOfProperties(JSDContext* jsdc, JSDValue* jsdval);
extern JSDProperty*
jsd_IterateProperties(JSDContext* jsdc, JSDValue* jsdval, JSDProperty **iterp);
extern JSDProperty*
jsd_GetValueProperty(JSDContext* jsdc, JSDValue* jsdval, JSString* name);
extern JSDValue*
jsd_GetValuePrototype(JSDContext* jsdc, JSDValue* jsdval);
extern JSDValue*
jsd_GetValueParent(JSDContext* jsdc, JSDValue* jsdval);
extern JSDValue*
jsd_GetValueConstructor(JSDContext* jsdc, JSDValue* jsdval);
extern const char*
jsd_GetValueClassName(JSDContext* jsdc, JSDValue* jsdval);
/**************************************************/
extern void
jsd_DropProperty(JSDContext* jsdc, JSDProperty* jsdprop);
extern JSDValue*
jsd_GetPropertyName(JSDContext* jsdc, JSDProperty* jsdprop);
extern JSDValue*
jsd_GetPropertyValue(JSDContext* jsdc, JSDProperty* jsdprop);
extern JSDValue*
jsd_GetPropertyAlias(JSDContext* jsdc, JSDProperty* jsdprop);
extern JSDPropertyFlags
jsd_GetPropertyFlags(JSDContext* jsdc, JSDProperty* jsdprop);
extern uintN
jsd_GetPropertyVarArgSlot(JSDContext* jsdc, JSDProperty* jsdprop);
/**************************************************/
/* Stepping Functions */
extern void * JS_DLL_CALLBACK
jsd_InterpreterHook(JSContext *cx, JSStackFrame *fp, JSBool before,
JSBool *ok, void *closure);
/**************************************************/
/* Object Functions */
extern JSBool
jsd_InitObjectManager(JSDContext* jsdc);
extern void
jsd_DestroyObjectManager(JSDContext* jsdc);
extern void JS_DLL_CALLBACK
jsd_ObjectHook(JSContext *cx, JSObject *obj, JSBool isNew, void *closure);
extern void
jsd_Constructing(JSDContext* jsdc, JSContext *cx, JSObject *obj,
JSStackFrame *fp);
extern JSDObject*
jsd_IterateObjects(JSDContext* jsdc, JSDObject** iterp);
extern JSObject*
jsd_GetWrappedObject(JSDContext* jsdc, JSDObject* jsdobj);
extern const char*
jsd_GetObjectNewURL(JSDContext* jsdc, JSDObject* jsdobj);
extern uintN
jsd_GetObjectNewLineNumber(JSDContext* jsdc, JSDObject* jsdobj);
extern const char*
jsd_GetObjectConstructorURL(JSDContext* jsdc, JSDObject* jsdobj);
extern uintN
jsd_GetObjectConstructorLineNumber(JSDContext* jsdc, JSDObject* jsdobj);
extern const char*
jsd_GetObjectConstructorName(JSDContext* jsdc, JSDObject* jsdobj);
extern JSDObject*
jsd_GetJSDObjectForJSObject(JSDContext* jsdc, JSObject* jsobj);
extern JSDObject*
jsd_GetObjectForValue(JSDContext* jsdc, JSDValue* jsdval);
/*
* returns new refcounted JSDValue
*/
extern JSDValue*
jsd_GetValueForObject(JSDContext* jsdc, JSDObject* jsdobj);
/**************************************************/
/* Atom Functions */
extern JSBool
jsd_CreateAtomTable(JSDContext* jsdc);
extern void
jsd_DestroyAtomTable(JSDContext* jsdc);
extern JSDAtom*
jsd_AddAtom(JSDContext* jsdc, const char* str);
extern JSDAtom*
jsd_CloneAtom(JSDContext* jsdc, JSDAtom* atom);
extern void
jsd_DropAtom(JSDContext* jsdc, JSDAtom* atom);
#define JSD_ATOM_TO_STRING(a) ((const char*)((a)->str))
/***************************************************************************/
/* Livewire specific API */
#ifdef LIVEWIRE
extern LWDBGScript*
jsdlw_GetLWScript(JSDContext* jsdc, JSDScript* jsdscript);
extern char*
jsdlw_BuildAppRelativeFilename(LWDBGApp* app, const char* filename);
extern JSDSourceText*
jsdlw_PreLoadSource(JSDContext* jsdc, LWDBGApp* app,
const char* filename, JSBool clear);
extern JSDSourceText*
jsdlw_ForceLoadSource(JSDContext* jsdc, JSDSourceText* jsdsrc);
extern JSBool
jsdlw_UserCodeAtPC(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc);
extern JSBool
jsdlw_RawToProcessedLineNumber(JSDContext* jsdc, JSDScript* jsdscript,
uintN lineIn, uintN* lineOut);
extern JSBool
jsdlw_ProcessedToRawLineNumber(JSDContext* jsdc, JSDScript* jsdscript,
uintN lineIn, uintN* lineOut);
#if 0
/* our hook proc for LiveWire app start/stop */
extern void JS_DLL_CALLBACK
jsdlw_AppHookProc(LWDBGApp* app,
JSBool created,
void *callerdata);
#endif
#endif
/***************************************************************************/
JS_END_EXTERN_C
#endif /* jsd_h___ */

View File

@@ -1,70 +0,0 @@
PROJ = jsd
JSD = .
JS = $(JSD)\..\src
JSPROJ = js32
!IF "$(BUILD_OPT)" != ""
OBJ = Release
CC_FLAGS = /DNDEBUG
!ELSE
OBJ = Debug
CC_FLAGS = /DDEBUG
LINK_FLAGS = /DEBUG
!ENDIF
QUIET=@
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
/I $(JS)\
/I $(JSD)\
/DDEBUG /DWIN32 /D_CONSOLE /DXP_PC /D_WINDOWS /D_WIN32\
/DJSDEBUGGER\
!IF "$(JSD_THREADSAFE)" != ""
/DJSD_THREADSAFE\
!ENDIF
/DEXPORT_JSD_API\
$(CC_FLAGS)\
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
LFLAGS = /nologo /subsystem:console /DLL /incremental:no /machine:I386 \
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
LLIBS = kernel32.lib advapi32.lib $(JS)\$(OBJ)\$(JSPROJ).lib
# unused... user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib
CPP=cl.exe
LINK32=link.exe
all: $(OBJ) $(OBJ)\$(PROJ).dll
$(OBJ)\$(PROJ).dll: \
$(OBJ)\jsdebug.obj \
$(OBJ)\jsd_atom.obj \
$(OBJ)\jsd_high.obj \
$(OBJ)\jsd_hook.obj \
$(OBJ)\jsd_obj.obj \
$(OBJ)\jsd_scpt.obj \
$(OBJ)\jsd_stak.obj \
$(OBJ)\jsd_step.obj \
$(OBJ)\jsd_text.obj \
$(OBJ)\jsd_lock.obj \
$(OBJ)\jsd_val.obj
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
{$(JSD)}.c{$(OBJ)}.obj :
$(QUIET)$(CPP) $(CFLAGS)
$(OBJ) :
$(QUIET)mkdir $(OBJ)
clean:
@echo deleting old output
$(QUIET)del $(OBJ)\*.pch >NUL
$(QUIET)del $(OBJ)\*.obj >NUL
$(QUIET)del $(OBJ)\*.exp >NUL
$(QUIET)del $(OBJ)\*.lib >NUL
$(QUIET)del $(OBJ)\*.idb >NUL
$(QUIET)del $(OBJ)\*.pdb >NUL
$(QUIET)del $(OBJ)\*.dll >NUL

View File

@@ -1,89 +0,0 @@
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
;
; The contents of this file are subject to the Netscape Public License
; Version 1.0 (the "NPL"); you may not use this file except in
; compliance with the NPL. You may obtain a copy of the NPL at
; http://www.mozilla.org/NPL/
;
; Software distributed under the NPL is distributed on an "AS IS" basis,
; WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
; for the specific language governing rights and limitations under the
; NPL.
;
; The Initial Developer of this code under the NPL is Netscape
; Communications Corporation. Portions created by Netscape are
; Copyright (C) 1998 Netscape Communications Corporation. All Rights
; Reserved.
LIBRARY JSD1640.DLL
EXETYPE WINDOWS
PROTMODE
DESCRIPTION 'Netscape 16-bit JavaScript Debugger Library'
CODE LOADONCALL MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE SINGLE
HEAPSIZE 8192
EXPORTS
WEP @1 RESIDENTNAME NONAME
_JSD_AppendSourceText
_JSD_ClearAllExecutionHooks
_JSD_ClearAllExecutionHooksForScript
_JSD_ClearDebugBreakHook
_JSD_ClearExecutionHook
_JSD_ClearInterruptHook
_JSD_ClearSourceText
_JSD_DebuggerOff
_JSD_DebuggerOn
_JSD_EvaluateScriptInStackFrame
_JSD_FindSourceForURL
_JSD_GetCallingStackFrame
_JSD_GetClosestLine
_JSD_GetClosestPC
_JSD_GetCountOfStackFrames
_JSD_GetDefaultJSContext
_JSD_GetMajorVersion
_JSD_GetMinorVersion
_JSD_GetPCForStackFrame
_JSD_GetScriptBaseLineNumber
_JSD_GetScriptFilename
_JSD_GetScriptForStackFrame
_JSD_GetScriptFunctionName
_JSD_GetScriptHook
_JSD_GetScriptLineExtent
_JSD_GetSourceAlterCount
_JSD_GetSourceStatus
_JSD_GetSourceText
_JSD_GetSourceURL
_JSD_GetStackFrame
_JSD_IncrementSourceAlterCount
_JSD_IsSourceDirty
_JSD_IterateScripts
_JSD_IterateSources
_JSD_LockScriptSubsystem
_JSD_LockSourceTextSubsystem
_JSD_NewSourceText
_JSD_SetDebugBreakHook
_JSD_SetErrorReporter
_JSD_SetExecutionHook
_JSD_SetInterruptHook
_JSD_SetScriptHook
_JSD_SetSourceDirty
_JSD_SetUserCallbacks
_JSD_UnlockScriptSubsystem
_JSD_UnlockSourceTextSubsystem
_Java_netscape_jsdebug_DebugController__0005fsetController_stub
_Java_netscape_jsdebug_DebugController_executeScriptInStackFrame_stub
_Java_netscape_jsdebug_DebugController_sendInterrupt_stub
_Java_netscape_jsdebug_DebugController_setInstructionHook0_stub
_Java_netscape_jsdebug_JSPC_getSourceLocation_stub
_Java_netscape_jsdebug_JSSourceTextProvider_loadSourceTextItem_stub
_Java_netscape_jsdebug_JSSourceTextProvider_refreshSourceTextVector_stub
_Java_netscape_jsdebug_JSStackFrameInfo_getCaller0_stub
_Java_netscape_jsdebug_JSStackFrameInfo_getPC_stub
_Java_netscape_jsdebug_JSThreadState_countStackFrames_stub
_Java_netscape_jsdebug_JSThreadState_getCurrentFrame_stub
_Java_netscape_jsdebug_Script_getClosestPC_stub

View File

@@ -1,80 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/////////////////////////////////////////////////////////////////////////////
// Version stamp for this .DLL
#include <windows.h>
#include <ver.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4 // major, minor, release (alpha 1), build #
PRODUCTVERSION 4
FILEFLAGSMASK 0
FILEFLAGS 0 // final version
FILEOS VOS_DOS_WINDOWS16
FILETYPE VFT_DLL
FILESUBTYPE 0 // not used
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
BEGIN
VALUE "CompanyName", "Netscape Communications Corporation\0"
VALUE "FileDescription", "Netscape 16-bit JavaScript Debugger Module\0"
VALUE "FileVersion", "4.0\0"
VALUE "InternalName", "JSD1640\0"
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
VALUE "OriginalFilename","JSD1640.DLL\0"
VALUE "ProductName", "NETSCAPE\0"
VALUE "ProductVersion", "4.0\0"
END
END
END

View File

@@ -1,99 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winver.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,0,0,0
PRODUCTVERSION 4,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x10004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "Netscape Communications Corporation\0"
VALUE "FileDescription", "Netscape 32-bit JavaScript Debugger Module\0"
VALUE "FileVersion", "4.0\0"
VALUE "InternalName", "JSD3240\0"
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
VALUE "OriginalFilename", "jsd3240.dll\0"
VALUE "ProductName", "NETSCAPE\0"
VALUE "ProductVersion", "4.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""winver.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////

View File

@@ -1,159 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Atom support
*/
#include "jsd.h"
/* #define TEST_ATOMS 1 */
#ifdef TEST_ATOMS
static void
_testAtoms(JSDContext*jsdc)
{
JSDAtom* atom0 = jsd_AddAtom(jsdc, "foo");
JSDAtom* atom1 = jsd_AddAtom(jsdc, "foo");
JSDAtom* atom2 = jsd_AddAtom(jsdc, "bar");
JSDAtom* atom3 = jsd_CloneAtom(jsdc, atom1);
JSDAtom* atom4 = jsd_CloneAtom(jsdc, atom2);
const char* c0 = JSD_ATOM_TO_STRING(atom0);
const char* c1 = JSD_ATOM_TO_STRING(atom1);
const char* c2 = JSD_ATOM_TO_STRING(atom2);
const char* c3 = JSD_ATOM_TO_STRING(atom3);
const char* c4 = JSD_ATOM_TO_STRING(atom4);
jsd_DropAtom(jsdc, atom0);
jsd_DropAtom(jsdc, atom1);
jsd_DropAtom(jsdc, atom2);
jsd_DropAtom(jsdc, atom3);
jsd_DropAtom(jsdc, atom4);
}
#endif
JS_STATIC_DLL_CALLBACK(intN)
_atom_smasher(JSHashEntry *he, intN i, void *arg)
{
JS_ASSERT(he);
JS_ASSERT(he->value);
JS_ASSERT(((JSDAtom*)(he->value))->str);
free(((JSDAtom*)(he->value))->str);
free(he->value);
he->value = NULL;
he->key = NULL;
return HT_ENUMERATE_NEXT;
}
JS_STATIC_DLL_CALLBACK(intN)
_compareAtomKeys(const void *v1, const void *v2)
{
return 0 == strcmp((const char*)v1, (const char*)v2);
}
JS_STATIC_DLL_CALLBACK(intN)
_compareAtoms(const void *v1, const void *v2)
{
return 0 == strcmp(((JSDAtom*)v1)->str, ((JSDAtom*)v2)->str);
}
JSBool
jsd_CreateAtomTable(JSDContext* jsdc)
{
jsdc->atoms = JS_NewHashTable(256, JS_HashString,
_compareAtomKeys, _compareAtoms,
NULL, NULL);
#ifdef TEST_ATOMS
_testAtoms(jsdc);
#endif
return (JSBool) jsdc->atoms;
}
void
jsd_DestroyAtomTable(JSDContext* jsdc)
{
if( jsdc->atoms )
{
JS_HashTableEnumerateEntries(jsdc->atoms, _atom_smasher, NULL);
JS_HashTableDestroy(jsdc->atoms);
jsdc->atoms = NULL;
}
}
JSDAtom*
jsd_AddAtom(JSDContext* jsdc, const char* str)
{
JSDAtom* atom;
if(!str)
{
JS_ASSERT(0);
return NULL;
}
JSD_LOCK_ATOMS(jsdc);
atom = (JSDAtom*) JS_HashTableLookup(jsdc->atoms, str);
if( atom )
atom->refcount++;
else
{
atom = (JSDAtom*) malloc(sizeof(JSDAtom));
if( atom )
{
atom->str = strdup(str);
atom->refcount = 1;
if(!JS_HashTableAdd(jsdc->atoms, atom->str, atom))
{
free(atom->str);
free(atom);
atom = NULL;
}
}
}
JSD_UNLOCK_ATOMS(jsdc);
return atom;
}
JSDAtom*
jsd_CloneAtom(JSDContext* jsdc, JSDAtom* atom)
{
JSD_LOCK_ATOMS(jsdc);
atom->refcount++;
JSD_UNLOCK_ATOMS(jsdc);
return atom;
}
void
jsd_DropAtom(JSDContext* jsdc, JSDAtom* atom)
{
JSD_LOCK_ATOMS(jsdc);
if(! --atom->refcount)
{
JS_HashTableRemove(jsdc->atoms, atom->str);
free(atom->str);
free(atom);
}
JSD_UNLOCK_ATOMS(jsdc);
}

View File

@@ -1,348 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - 'High Level' functions
*/
#include "jsd.h"
/***************************************************************************/
/* XXX not 'static' because of old Mac CodeWarrior bug */
JSCList _jsd_context_list = JS_INIT_STATIC_CLIST(&_jsd_context_list);
/* these are used to connect JSD_SetUserCallbacks() with JSD_DebuggerOn() */
static JSD_UserCallbacks _callbacks;
static void* _user = NULL;
static JSRuntime* _jsrt = NULL;
#ifdef JSD_HAS_DANGEROUS_THREAD
static void* _dangerousThread = NULL;
#endif
#ifdef JSD_THREADSAFE
void* _jsd_global_lock = NULL;
#endif
#ifdef DEBUG
void JSD_ASSERT_VALID_CONTEXT(JSDContext* jsdc)
{
JS_ASSERT(jsdc->inited);
JS_ASSERT(jsdc->jsrt);
JS_ASSERT(jsdc->dumbContext);
JS_ASSERT(jsdc->glob);
}
#endif
static JSClass global_class = {
"JSDGlobal", 0,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
};
static JSBool
_validateUserCallbacks(JSD_UserCallbacks* callbacks)
{
return !callbacks ||
(callbacks->size && callbacks->size <= sizeof(JSD_UserCallbacks));
}
static JSDContext*
_newJSDContext(JSRuntime* jsrt,
JSD_UserCallbacks* callbacks,
void* user)
{
JSDContext* jsdc = NULL;
if( ! jsrt )
return NULL;
if( ! _validateUserCallbacks(callbacks) )
return NULL;
jsdc = (JSDContext*) calloc(1, sizeof(JSDContext));
if( ! jsdc )
goto label_newJSDContext_failure;
if( ! JSD_INIT_LOCKS(jsdc) )
goto label_newJSDContext_failure;
JS_INIT_CLIST(&jsdc->links);
jsdc->jsrt = jsrt;
if( callbacks )
memcpy(&jsdc->userCallbacks, callbacks, callbacks->size);
jsdc->user = user;
#ifdef JSD_HAS_DANGEROUS_THREAD
jsdc->dangerousThread = _dangerousThread;
#endif
JS_INIT_CLIST(&jsdc->threadsStates);
JS_INIT_CLIST(&jsdc->scripts);
JS_INIT_CLIST(&jsdc->sources);
JS_INIT_CLIST(&jsdc->removedSources);
jsdc->sourceAlterCount = 1;
if( ! jsd_CreateAtomTable(jsdc) )
goto label_newJSDContext_failure;
if( ! jsd_InitObjectManager(jsdc) )
goto label_newJSDContext_failure;
jsdc->dumbContext = JS_NewContext(jsdc->jsrt, 256);
if( ! jsdc->dumbContext )
goto label_newJSDContext_failure;
jsdc->glob = JS_NewObject(jsdc->dumbContext, &global_class, NULL, NULL);
if( ! jsdc->glob )
goto label_newJSDContext_failure;
if( ! JS_InitStandardClasses(jsdc->dumbContext, jsdc->glob) )
goto label_newJSDContext_failure;
jsdc->inited = JS_TRUE;
JSD_LOCK();
JS_INSERT_LINK(&jsdc->links, &_jsd_context_list);
JSD_UNLOCK();
return jsdc;
label_newJSDContext_failure:
jsd_DestroyObjectManager(jsdc);
jsd_DestroyAtomTable(jsdc);
if( jsdc )
free(jsdc);
return NULL;
}
static void
_destroyJSDContext(JSDContext* jsdc)
{
JSD_ASSERT_VALID_CONTEXT(jsdc);
JSD_LOCK();
JS_REMOVE_LINK(&jsdc->links);
JSD_UNLOCK();
jsd_DestroyObjectManager(jsdc);
jsd_DestroyAtomTable(jsdc);
jsdc->inited = JS_FALSE;
/*
* We should free jsdc here, but we let it leak in case there are any
* asynchronous hooks calling into the system using it as a handle
*
* XXX we also leak the locks
*/
}
/***************************************************************************/
JSDContext*
jsd_DebuggerOnForUser(JSRuntime* jsrt,
JSD_UserCallbacks* callbacks,
void* user)
{
JSDContext* jsdc;
JSContext* iter = NULL;
jsdc = _newJSDContext(jsrt, callbacks, user);
if( ! jsdc )
return NULL;
/* set hooks here */
JS_SetNewScriptHookProc(jsdc->jsrt, jsd_NewScriptHookProc, jsdc);
JS_SetDestroyScriptHookProc(jsdc->jsrt, jsd_DestroyScriptHookProc, jsdc);
JS_SetDebuggerHandler(jsdc->jsrt, jsd_DebuggerHandler, jsdc);
JS_SetExecuteHook(jsdc->jsrt, jsd_InterpreterHook, jsdc);
JS_SetCallHook(jsdc->jsrt, jsd_InterpreterHook, jsdc);
JS_SetObjectHook(jsdc->jsrt, jsd_ObjectHook, jsdc);
JS_SetThrowHook(jsdc->jsrt, jsd_ThrowHandler, jsdc);
JS_SetDebugErrorHook(jsdc->jsrt, jsd_DebugErrorHook, jsdc);
#ifdef LIVEWIRE
LWDBG_SetNewScriptHookProc(jsd_NewScriptHookProc, jsdc);
#endif
if( jsdc->userCallbacks.setContext )
jsdc->userCallbacks.setContext(jsdc, jsdc->user);
return jsdc;
}
JSDContext*
jsd_DebuggerOn(void)
{
JS_ASSERT(_jsrt);
JS_ASSERT(_validateUserCallbacks(&_callbacks));
return jsd_DebuggerOnForUser(_jsrt, &_callbacks, _user);
}
void
jsd_DebuggerOff(JSDContext* jsdc)
{
/* clear hooks here */
JS_SetNewScriptHookProc(jsdc->jsrt, NULL, NULL);
JS_SetDestroyScriptHookProc(jsdc->jsrt, NULL, NULL);
JS_SetDebuggerHandler(jsdc->jsrt, NULL, NULL);
JS_SetExecuteHook(jsdc->jsrt, NULL, NULL);
JS_SetCallHook(jsdc->jsrt, NULL, NULL);
JS_SetObjectHook(jsdc->jsrt, NULL, NULL);
JS_SetThrowHook(jsdc->jsrt, NULL, NULL);
JS_SetDebugErrorHook(jsdc->jsrt, NULL, NULL);
#ifdef LIVEWIRE
LWDBG_SetNewScriptHookProc(NULL,NULL);
#endif
/* clean up */
jsd_DestroyAllJSDScripts(jsdc);
jsd_DestroyAllSources(jsdc);
_destroyJSDContext(jsdc);
if( jsdc->userCallbacks.setContext )
jsdc->userCallbacks.setContext(NULL, jsdc->user);
}
void
jsd_SetUserCallbacks(JSRuntime* jsrt, JSD_UserCallbacks* callbacks, void* user)
{
_jsrt = jsrt;
_user = user;
#ifdef JSD_HAS_DANGEROUS_THREAD
_dangerousThread = JSD_CURRENT_THREAD();
#endif
if( callbacks )
memcpy(&_callbacks, callbacks, sizeof(JSD_UserCallbacks));
else
memset(&_callbacks, 0 , sizeof(JSD_UserCallbacks));
}
JSDContext*
jsd_JSDContextForJSContext(JSContext* context)
{
JSDContext* iter;
JSDContext* jsdc = NULL;
JSRuntime* runtime = JS_GetRuntime(context);
JSD_LOCK();
for( iter = (JSDContext*)_jsd_context_list.next;
iter != (JSDContext*)&_jsd_context_list;
iter = (JSDContext*)iter->links.next )
{
if( runtime == iter->jsrt )
{
jsdc = iter;
break;
}
}
JSD_UNLOCK();
return jsdc;
}
JS_STATIC_DLL_CALLBACK(JSBool)
jsd_DebugErrorHook(JSContext *cx, const char *message,
JSErrorReport *report, void *closure)
{
JSDContext* jsdc = (JSDContext*) closure;
JSD_ErrorReporter errorReporter;
void* errorReporterData;
if( ! jsdc )
{
JS_ASSERT(0);
return JS_TRUE;
}
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return JS_TRUE;
/* local in case hook gets cleared on another thread */
JSD_LOCK();
errorReporter = jsdc->errorReporter;
errorReporterData = jsdc->errorReporterData;
JSD_UNLOCK();
if(!errorReporter)
return JS_TRUE;
switch(errorReporter(jsdc, cx, message, report, errorReporterData))
{
case JSD_ERROR_REPORTER_PASS_ALONG:
return JS_TRUE;
case JSD_ERROR_REPORTER_RETURN:
return JS_FALSE;
case JSD_ERROR_REPORTER_DEBUG:
{
jsval rval;
JSD_ExecutionHookProc hook;
void* hookData;
/* local in case hook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->debugBreakHook;
hookData = jsdc->debugBreakHookData;
JSD_UNLOCK();
jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_DEBUG_REQUESTED,
hook, hookData, &rval);
/* XXX Should make this dependent on ExecutionHook retval */
return JS_TRUE;
}
case JSD_ERROR_REPORTER_CLEAR_RETURN:
if(report && JSREPORT_IS_EXCEPTION(report->flags))
JS_ClearPendingException(cx);
return JS_FALSE;
default:
JS_ASSERT(0);
break;
}
return JS_TRUE;
}
JSBool
jsd_SetErrorReporter(JSDContext* jsdc,
JSD_ErrorReporter reporter,
void* callerdata)
{
JSD_LOCK();
jsdc->errorReporter = reporter;
jsdc->errorReporterData = callerdata;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_GetErrorReporter(JSDContext* jsdc,
JSD_ErrorReporter* reporter,
void** callerdata)
{
JSD_LOCK();
if( reporter )
*reporter = jsdc->errorReporter;
if( callerdata )
*callerdata = jsdc->errorReporterData;
JSD_UNLOCK();
return JS_TRUE;
}

View File

@@ -1,260 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Hook support
*/
#include "jsd.h"
JSTrapStatus JS_DLL_CALLBACK
jsd_InterruptHandler(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval,
void *closure)
{
JSDScript* jsdscript;
JSDContext* jsdc = (JSDContext*) closure;
JSD_ExecutionHookProc hook;
void* hookData;
if( ! jsdc || ! jsdc->inited )
return JSTRAP_CONTINUE;
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return JSTRAP_CONTINUE;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return JSTRAP_CONTINUE;
#ifdef LIVEWIRE
if( ! jsdlw_UserCodeAtPC(jsdc, jsdscript, (jsuword)pc) )
return JSTRAP_CONTINUE;
#endif
/* local in case jsdc->interruptHook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->interruptHook;
hookData = jsdc->interruptHookData;
JSD_UNLOCK();
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_INTERRUPTED,
hook, hookData, rval);
}
JSTrapStatus JS_DLL_CALLBACK
jsd_DebuggerHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
jsval *rval, void *closure)
{
JSDScript* jsdscript;
JSDContext* jsdc = (JSDContext*) closure;
JSD_ExecutionHookProc hook;
void* hookData;
if( ! jsdc || ! jsdc->inited )
return JSTRAP_CONTINUE;
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return JSTRAP_CONTINUE;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return JSTRAP_CONTINUE;
/* local in case jsdc->debuggerHook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->debuggerHook;
hookData = jsdc->debuggerHookData;
JSD_UNLOCK();
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_DEBUGGER_KEYWORD,
hook, hookData, rval);
}
JSTrapStatus JS_DLL_CALLBACK
jsd_ThrowHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
jsval *rval, void *closure)
{
JSDScript* jsdscript;
JSDContext* jsdc = (JSDContext*) closure;
JSD_ExecutionHookProc hook;
void* hookData;
JS_GetPendingException(cx, rval);
if( ! jsdc || ! jsdc->inited )
return JSD_HOOK_RETURN_CONTINUE_THROW;
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return JSD_HOOK_RETURN_CONTINUE_THROW;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return JSD_HOOK_RETURN_CONTINUE_THROW;
/* local in case jsdc->throwHook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->throwHook;
hookData = jsdc->throwHookData;
JSD_UNLOCK();
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_THROW,
hook, hookData, rval);
}
JSTrapStatus
jsd_CallExecutionHook(JSDContext* jsdc,
JSContext *cx,
JSDHookType type,
JSD_ExecutionHookProc hook,
void* hookData,
jsval* rval)
{
JSDHookResult hookanswer = JSD_HOOK_THROW == type ?
JSD_HOOK_RETURN_CONTINUE_THROW :
JSD_HOOK_RETURN_CONTINUE;
JSDThreadState* jsdthreadstate;
if(hook && NULL != (jsdthreadstate = jsd_NewThreadState(jsdc,cx)))
{
hookanswer = hook(jsdc, jsdthreadstate, type, hookData, rval);
jsd_DestroyThreadState(jsdc, jsdthreadstate);
}
switch(hookanswer)
{
case JSD_HOOK_RETURN_ABORT:
case JSD_HOOK_RETURN_HOOK_ERROR:
return JSTRAP_ERROR;
case JSD_HOOK_RETURN_RET_WITH_VAL:
return JSTRAP_RETURN;
case JSD_HOOK_RETURN_THROW_WITH_VAL:
return JSTRAP_THROW;
case JSD_HOOK_RETURN_CONTINUE:
break;
case JSD_HOOK_RETURN_CONTINUE_THROW:
/* only makes sense for jsd_ThrowHandler (which init'd rval) */
JS_ASSERT(JSD_HOOK_THROW == type);
return JSTRAP_THROW;
default:
JS_ASSERT(0);
break;
}
return JSTRAP_CONTINUE;
}
JSBool
jsd_SetInterruptHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata)
{
JSD_LOCK();
jsdc->interruptHookData = callerdata;
jsdc->interruptHook = hook;
JS_SetInterrupt(jsdc->jsrt, jsd_InterruptHandler, (void*) jsdc);
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearInterruptHook(JSDContext* jsdc)
{
JSD_LOCK();
JS_ClearInterrupt(jsdc->jsrt, NULL, NULL );
jsdc->interruptHook = NULL;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_SetDebugBreakHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata)
{
JSD_LOCK();
jsdc->debugBreakHookData = callerdata;
jsdc->debugBreakHook = hook;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearDebugBreakHook(JSDContext* jsdc)
{
JSD_LOCK();
jsdc->debugBreakHook = NULL;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_SetDebuggerHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata)
{
JSD_LOCK();
jsdc->debuggerHookData = callerdata;
jsdc->debuggerHook = hook;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearDebuggerHook(JSDContext* jsdc)
{
JSD_LOCK();
jsdc->debuggerHook = NULL;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_SetThrowHook(JSDContext* jsdc,
JSD_ExecutionHookProc hook,
void* callerdata)
{
JSD_LOCK();
jsdc->throwHookData = callerdata;
jsdc->throwHook = hook;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearThrowHook(JSDContext* jsdc)
{
JSD_LOCK();
jsdc->throwHook = NULL;
JSD_UNLOCK();
return JS_TRUE;
}

View File

@@ -1,801 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/* this is all going away... replaced by code in js/jsd/java */
#if 0
#include "native.h"
#include "jsdebug.h"
#ifndef XP_MAC
#include "_gen/netscape_jsdebug_DebugController.h"
#include "_gen/netscape_jsdebug_Script.h"
#include "_gen/netscape_jsdebug_JSThreadState.h"
#include "_gen/netscape_jsdebug_JSStackFrameInfo.h"
#include "_gen/netscape_jsdebug_JSPC.h"
#include "_gen/netscape_jsdebug_JSSourceTextProvider.h"
#include "_gen/netscape_jsdebug_JSErrorReporter.h"
#else
#include "n_jsdebug_DebugController.h"
#include "netscape_jsdebug_Script.h"
#include "n_jsdebug_JSThreadState.h"
#include "n_jsdebug_JSStackFrameInfo.h"
#include "netscape_jsdebug_JSPC.h"
#include "n_j_JSSourceTextProvider.h"
#include "n_jsdebug_JSErrorReporter.h"
#endif
static JSDContext* context = 0;
static struct Hnetscape_jsdebug_DebugController* controller = 0;
/***************************************************************************/
/* helpers */
static JHandle*
_constructInteger(ExecEnv *ee, long i)
{
return (JHandle*)
execute_java_constructor(ee, "java/lang/Integer", 0, "(I)", i);
}
static JHandle*
_putHash(ExecEnv *ee, JHandle* tbl, JHandle* key, JHandle* ob)
{
return (JHandle*)
execute_java_dynamic_method(
ee, tbl, "put",
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;",
key, ob );
}
static JHandle*
_getHash(ExecEnv *ee, JHandle* tbl, JHandle* key)
{
return (JHandle*)
execute_java_dynamic_method(
ee, tbl, "get",
"(Ljava/lang/Object;)Ljava/lang/Object;",
key );
}
static JHandle*
_removeHash(ExecEnv *ee, JHandle* tbl, JHandle* key)
{
return (JHandle*)
execute_java_dynamic_method(
ee, tbl, "remove",
"(Ljava/lang/Object;)Ljava/lang/Object;",
key );
}
struct Hnetscape_jsdebug_JSStackFrameInfo*
_constructJSStackFrameInfo( ExecEnv* ee, JSDStackFrameInfo* jsdframe,
struct Hnetscape_jsdebug_JSThreadState* threadState )
{
struct Hnetscape_jsdebug_JSStackFrameInfo* frame;
frame = (struct Hnetscape_jsdebug_JSStackFrameInfo*)
execute_java_constructor( ee, "netscape/jsdebug/JSStackFrameInfo", 0,
"(Lnetscape/jsdebug/JSThreadState;)",
threadState );
if( ! frame )
return NULL;
/* XXX fill in additional fields */
unhand(frame)->_nativePtr = (long) jsdframe;
return frame;
}
struct Hnetscape_jsdebug_JSPC*
_constructJSPC( ExecEnv* ee, struct Hnetscape_jsdebug_Script* script, long pc )
{
struct Hnetscape_jsdebug_JSPC * pcOb;
pcOb = (struct Hnetscape_jsdebug_JSPC *)
execute_java_constructor( ee, "netscape/jsdebug/JSPC", 0,
"(Lnetscape/jsdebug/Script;I)",
script, pc );
if( ! pcOb )
return NULL;
/* XXX fill in additional fields */
return pcOb;
}
static Hnetscape_jsdebug_Script*
_scriptObFromJSDScriptPtr( ExecEnv* ee, JSDScript* jsdscript )
{
JHandle* tbl = (JHandle*) unhand(controller)->scriptTable;
JHandle* key = _constructInteger(ee,(long)jsdscript);
return (Hnetscape_jsdebug_Script*) _getHash( ee, tbl, key );
}
/***************************************************************************/
void PR_CALLBACK
_scriptHook( JSDContext* jsdc,
JSDScript* jsdscript,
JSBool creating,
void* callerdata )
{
Hnetscape_jsdebug_Script* script;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return;
if( creating )
{
char* url = (char*)JSD_GetScriptFilename (jsdc, jsdscript);
char* function = (char*)JSD_GetScriptFunctionName (jsdc, jsdscript);
int base = JSD_GetScriptBaseLineNumber (jsdc, jsdscript);
int extent = JSD_GetScriptLineExtent (jsdc, jsdscript);
if( ! url )
{
return;
/* url = ""; */
}
/* create Java Object for Script */
script = (Hnetscape_jsdebug_Script*)
execute_java_constructor(ee, "netscape/jsdebug/Script", 0, "()");
if( ! script )
return;
/* set the members */
unhand(script)->_url = makeJavaString(url,strlen(url));
unhand(script)->_function = function ? makeJavaString(function,strlen(function)) : 0;
unhand(script)->_baseLineNumber = base;
unhand(script)->_lineExtent = extent;
unhand(script)->_nativePtr = (long)jsdscript;
/* add it to the hash table */
_putHash( ee, (JHandle*) unhand(controller)->scriptTable,
_constructInteger(ee, (long)jsdscript), (JHandle*)script );
/* call the hook */
if( unhand(controller)->scriptHook )
{
execute_java_dynamic_method( ee,(JHandle*)unhand(controller)->scriptHook,
"justLoadedScript",
"(Lnetscape/jsdebug/Script;)V",
script );
}
}
else
{
JHandle* tbl = (JHandle*) unhand(controller)->scriptTable;
JHandle* key = _constructInteger(ee,(long)jsdscript);
/* find Java Object for Script */
script = (Hnetscape_jsdebug_Script*) _getHash( ee, tbl, key );
if( ! script )
return;
/* remove it from the hash table */
_removeHash( ee, tbl, key );
/* call the hook */
if( unhand(controller)->scriptHook )
{
execute_java_dynamic_method( ee,(JHandle*)unhand(controller)->scriptHook,
"aboutToUnloadScript",
"(Lnetscape/jsdebug/Script;)V",
script );
}
/* set the Script as invalid */
execute_java_dynamic_method( ee,(JHandle*)script,
"_setInvalid",
"()V" );
}
}
/***************************************************************************/
PRUintn PR_CALLBACK
_executionHook( JSDContext* jsdc,
JSDThreadState* jsdstate,
PRUintn type,
void* callerdata )
{
Hnetscape_jsdebug_JSThreadState* threadState;
Hnetscape_jsdebug_Script* script;
JHandle* pcOb;
JSDStackFrameInfo* jsdframe;
JSDScript* jsdscript;
int pc;
JHandle* tblScript;
JHandle* keyScript;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* get the JSDStackFrameInfo */
jsdframe = JSD_GetStackFrame(jsdc, jsdstate);
if( ! jsdframe )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* get the JSDScript */
jsdscript = JSD_GetScriptForStackFrame(jsdc, jsdstate, jsdframe);
if( ! jsdscript )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* find Java Object for Script */
tblScript = (JHandle*) unhand(controller)->scriptTable;
keyScript = _constructInteger(ee, (long)jsdscript);
script = (Hnetscape_jsdebug_Script*) _getHash( ee, tblScript, keyScript );
if( ! script )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* generate a JSPC */
pc = JSD_GetPCForStackFrame(jsdc, jsdstate, jsdframe);
pcOb = (JHandle*)
_constructJSPC(ee, script, pc);
if( ! pcOb )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* build a JSThreadState */
threadState = (struct Hnetscape_jsdebug_JSThreadState*)
execute_java_constructor( ee, "netscape/jsdebug/JSThreadState",0,"()");
if( ! threadState )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* populate the ThreadState */
/* XXX FILL IN THE REST... */
unhand(threadState)->valid = 1; /* correct value for true? */
unhand(threadState)->currentFramePtr = (long) jsdframe;
unhand(threadState)->nativeThreadState = (long) jsdstate;
unhand(threadState)->continueState = netscape_jsdebug_JSThreadState_DEBUG_STATE_RUN;
/* XXX FILL IN THE REST... */
/* find and call the appropriate Hook */
if( JSD_HOOK_INTERRUPTED == type )
{
JHandle* hook;
/* clear the JSD level hook (must reset on next sendInterrupt0()*/
JSD_ClearInterruptHook(context);
hook = (JHandle*) unhand(controller)->interruptHook;
if( ! hook )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* call the hook */
execute_java_dynamic_method(
ee, hook, "aboutToExecute",
"(Lnetscape/jsdebug/ThreadStateBase;Lnetscape/jsdebug/PC;)V",
threadState, pcOb );
}
else if( JSD_HOOK_DEBUG_REQUESTED == type )
{
JHandle* hook;
hook = (JHandle*) unhand(controller)->debugBreakHook;
if( ! hook )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* call the hook */
execute_java_dynamic_method(
ee, hook, "aboutToExecute",
"(Lnetscape/jsdebug/ThreadStateBase;Lnetscape/jsdebug/PC;)V",
threadState, pcOb );
}
else if( JSD_HOOK_BREAKPOINT == type )
{
JHandle* hook;
hook = (JHandle*)
execute_java_dynamic_method(
ee,(JHandle*)controller,
"getInstructionHook0",
"(Lnetscape/jsdebug/PC;)Lnetscape/jsdebug/InstructionHook;",
pcOb );
if( ! hook )
return JSD_HOOK_RETURN_HOOK_ERROR;
/* call the hook */
execute_java_dynamic_method(
ee, hook, "aboutToExecute",
"(Lnetscape/jsdebug/ThreadStateBase;)V",
threadState );
}
if( netscape_jsdebug_JSThreadState_DEBUG_STATE_THROW ==
unhand(threadState)->continueState )
return JSD_HOOK_RETURN_ABORT;
return JSD_HOOK_RETURN_CONTINUE;
}
PRUintn PR_CALLBACK
_errorReporter( JSDContext* jsdc,
JSContext* cx,
const char* message,
JSErrorReport* report,
void* callerdata )
{
JHandle* reporter;
JHandle* msg = NULL;
JHandle* filename = NULL;
int lineno = 0;
JHandle* linebuf = NULL;
int tokenOffset = 0;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return JSD_ERROR_REPORTER_PASS_ALONG;
reporter = (JHandle*) unhand(controller)->errorReporter;
if( ! reporter )
return JSD_ERROR_REPORTER_PASS_ALONG;
if( message )
msg = (JHandle*) makeJavaString((char*)message, strlen(message));
if( report && report->filename )
filename = (JHandle*) makeJavaString((char*)report->filename, strlen(report->filename));
if( report && report->linebuf )
linebuf = (JHandle*) makeJavaString((char*)report->linebuf, strlen(report->linebuf));
if( report )
lineno = report->lineno;
if( report && report->linebuf && report->tokenptr )
tokenOffset = report->tokenptr - report->linebuf;
return (int)
execute_java_dynamic_method(
ee, reporter, "reportError",
"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)I",
msg,
filename,
lineno,
linebuf,
tokenOffset );
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_DebugController.h" */
/* XXX HACK */
JSDContext* _simContext = 0;
void netscape_jsdebug_DebugController__setController(struct Hnetscape_jsdebug_DebugController * self,/*boolean*/ long on)
{
if(on)
{
context = JSD_DebuggerOn();
if( ! context )
return;
_simContext = context; /* XXX HACK */
unhand(self)->_nativeContext = (long) context;
controller = self;
JSD_SetScriptHook(context, _scriptHook, (void*)1 );
JSD_SetErrorReporter(context, _errorReporter, (void*)1 );
JSD_SetDebugBreakHook(context, _executionHook, (void*)1 );
}
else
{
/* XXX stop somehow... */
/* kill context */
JSD_SetDebugBreakHook(context, NULL, NULL );
JSD_SetErrorReporter(context, NULL, NULL);
JSD_SetScriptHook(context, NULL, NULL);
context = 0;
controller = 0;
}
}
void netscape_jsdebug_DebugController_setInstructionHook0(struct Hnetscape_jsdebug_DebugController * self,struct Hnetscape_jsdebug_PC * pcOb)
{
Hnetscape_jsdebug_Script* script;
JSDScript* jsdscript;
PRUintn pc;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return;
script = (Hnetscape_jsdebug_Script*)
execute_java_dynamic_method(ee, (JHandle*)pcOb, "getScript","()Lnetscape/jsdebug/Script;");
if( ! script )
return;
jsdscript = (JSDScript*) unhand(script)->_nativePtr;
if( ! jsdscript )
return;
pc = (PRUintn)
execute_java_dynamic_method(ee, (JHandle*)pcOb, "getPC","()I");
JSD_SetExecutionHook(context, jsdscript, pc, _executionHook, 0);
}
void netscape_jsdebug_DebugController_sendInterrupt0(struct Hnetscape_jsdebug_DebugController * self)
{
if( ! context || ! controller )
return;
JSD_SetInterruptHook(context, _executionHook, 0);
}
struct Hjava_lang_String *netscape_jsdebug_DebugController_executeScriptInStackFrame0(struct Hnetscape_jsdebug_DebugController *self,struct Hnetscape_jsdebug_JSStackFrameInfo *frame,struct Hjava_lang_String *src,struct Hjava_lang_String *filename,long lineno)
{
struct Hnetscape_jsdebug_JSThreadState* threadStateOb;
JSDThreadState* jsdthreadstate;
JSDStackFrameInfo* jsdframe;
char* filenameC;
char* srcC;
JSString* jsstr;
jsval rval;
JSBool success;
int srclen;
threadStateOb = (struct Hnetscape_jsdebug_JSThreadState*)unhand(frame)->threadState;
jsdthreadstate = (JSDThreadState*) unhand(threadStateOb)->nativeThreadState;
jsdframe = (JSDStackFrameInfo*) unhand(frame)->_nativePtr;
if( ! context || ! controller || ! jsdframe )
return NULL;
filenameC = allocCString(filename);
if( ! filenameC )
return NULL;
srcC = allocCString(src);
if( ! srcC )
{
free(filenameC);
return NULL;
}
srclen = strlen(srcC);
success = JSD_EvaluateScriptInStackFrame(context, jsdthreadstate, jsdframe,
srcC, srclen,
filenameC, lineno, &rval);
/* XXX crashing on Windows under Symantec (though I can't see why!)*/
free(filenameC);
free(srcC);
if( ! success )
return NULL;
if( JSVAL_IS_NULL(rval) || JSVAL_IS_VOID(rval) )
return NULL;
jsstr = JSD_ValToStringInStackFrame(context,jsdthreadstate,jsdframe,rval);
if( ! jsstr )
return NULL;
/* XXXbe should use JS_GetStringChars and preserve Unicode. */
return makeJavaString((char*)JS_GetStringBytes(jsstr), JS_GetStringLength(jsstr));
}
long netscape_jsdebug_DebugController_getNativeMajorVersion(struct Hnetscape_jsdebug_DebugController* self)
{
return (long) JSD_GetMajorVersion();
}
long netscape_jsdebug_DebugController_getNativeMinorVersion(struct Hnetscape_jsdebug_DebugController* self)
{
return (long) JSD_GetMinorVersion();
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_Script.h" */
struct Hnetscape_jsdebug_JSPC *netscape_jsdebug_Script_getClosestPC(struct Hnetscape_jsdebug_Script * self,long line)
{
PRUintn pc;
JSDScript* jsdscript;
if( ! context || ! controller )
return 0;
jsdscript = (JSDScript*) unhand(self)->_nativePtr;
if( ! jsdscript )
return 0;
pc = JSD_GetClosestPC(context, jsdscript, line);
if( -1 == pc )
return 0;
return _constructJSPC( 0, self, pc);
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_JSThreadState.h" */
long netscape_jsdebug_JSThreadState_countStackFrames(struct Hnetscape_jsdebug_JSThreadState * self)
{
JSDThreadState* jsdstate;
if( ! context || ! controller )
return 0;
jsdstate = (JSDThreadState*) unhand(self)->nativeThreadState;
if( ! jsdstate )
return 0;
return (long) JSD_GetCountOfStackFrames(context, jsdstate);
}
struct Hnetscape_jsdebug_StackFrameInfo *netscape_jsdebug_JSThreadState_getCurrentFrame(struct Hnetscape_jsdebug_JSThreadState * self)
{
JSDThreadState* jsdstate;
JSDStackFrameInfo* jsdframe;
if( ! context || ! controller )
return NULL;
jsdstate = (JSDThreadState*) unhand(self)->nativeThreadState;
if( ! jsdstate )
return NULL;
jsdframe = JSD_GetStackFrame(context, jsdstate);
if( ! jsdframe )
return NULL;
return (struct Hnetscape_jsdebug_StackFrameInfo*)
_constructJSStackFrameInfo( 0, jsdframe, self );
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_JSStackFrameInfo.h" */
struct Hnetscape_jsdebug_StackFrameInfo *netscape_jsdebug_JSStackFrameInfo_getCaller0(struct Hnetscape_jsdebug_JSStackFrameInfo * self)
{
JSDStackFrameInfo* jsdframeCur;
JSDStackFrameInfo* jsdframeCaller;
struct Hnetscape_jsdebug_JSThreadState* threadState;
JSDThreadState* jsdthreadstate;
if( ! context || ! controller )
return NULL;
jsdframeCur = (JSDStackFrameInfo*) unhand(self)->_nativePtr;
if( ! jsdframeCur )
return NULL;
threadState = (struct Hnetscape_jsdebug_JSThreadState*) unhand(self)->threadState;
if( ! threadState )
return NULL;
jsdthreadstate = (JSDThreadState*) unhand(threadState)->nativeThreadState;
if( ! jsdthreadstate )
return NULL;
jsdframeCaller = JSD_GetCallingStackFrame(context, jsdthreadstate, jsdframeCur);
if( ! jsdframeCaller )
return NULL;
return (struct Hnetscape_jsdebug_StackFrameInfo*)
_constructJSStackFrameInfo( 0, jsdframeCaller, threadState );
}
struct Hnetscape_jsdebug_PC *netscape_jsdebug_JSStackFrameInfo_getPC(struct Hnetscape_jsdebug_JSStackFrameInfo * self)
{
JSDScript* jsdscript;
JSDStackFrameInfo* jsdframe;
struct Hnetscape_jsdebug_Script* script;
struct Hnetscape_jsdebug_JSThreadState* threadState;
JSDThreadState* jsdthreadstate;
int pc;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return NULL;
jsdframe = (JSDStackFrameInfo*) unhand(self)->_nativePtr;
if( ! jsdframe )
return NULL;
threadState = (struct Hnetscape_jsdebug_JSThreadState*) unhand(self)->threadState;
if( ! threadState )
return NULL;
jsdthreadstate = (JSDThreadState*) unhand(threadState)->nativeThreadState;
if( ! jsdthreadstate )
return NULL;
jsdscript = JSD_GetScriptForStackFrame(context, jsdthreadstate, jsdframe );
if( ! jsdscript )
return NULL;
script = _scriptObFromJSDScriptPtr(ee, jsdscript);
if( ! script )
return NULL;
pc = JSD_GetPCForStackFrame(context, jsdthreadstate, jsdframe);
if( ! pc )
return NULL;
return (struct Hnetscape_jsdebug_PC*) _constructJSPC(ee, script, pc);
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_JSPC.h" */
struct Hnetscape_jsdebug_SourceLocation *netscape_jsdebug_JSPC_getSourceLocation(struct Hnetscape_jsdebug_JSPC * self)
{
JSDScript* jsdscript;
struct Hnetscape_jsdebug_Script* script;
struct Hnetscape_jsdebug_JSPC* newPCOb;
int line;
int newpc;
int pc;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return NULL;
script = unhand(self)->script;
if( ! script )
return NULL;
jsdscript = (JSDScript*) unhand(script)->_nativePtr;
if( ! jsdscript )
return NULL;
pc = unhand(self)->pc;
line = JSD_GetClosestLine(context, jsdscript, pc);
newpc = JSD_GetClosestPC(context, jsdscript, line);
newPCOb = _constructJSPC(ee, script, newpc );
if( ! newPCOb )
return NULL;
return (struct Hnetscape_jsdebug_SourceLocation *)
execute_java_constructor( ee, "netscape/jsdebug/JSSourceLocation", 0,
"(Lnetscape/jsdebug/JSPC;I)",
newPCOb, line );
}
/***************************************************************************/
/* from "_gen\netscape_jsdebug_JSSourceTextProvider.h" */
struct Hnetscape_jsdebug_SourceTextItem *netscape_jsdebug_JSSourceTextProvider_loadSourceTextItem0(struct Hnetscape_jsdebug_JSSourceTextProvider * self,struct Hjava_lang_String * url)
{
/* this should attempt to load the source for the indicated URL */
return NULL;
}
void netscape_jsdebug_JSSourceTextProvider_refreshSourceTextVector(struct Hnetscape_jsdebug_JSSourceTextProvider * self)
{
JHandle* vec;
JHandle* itemOb;
JSDSourceText* iterp = 0;
JSDSourceText* item;
const char* url;
struct Hjava_lang_String* urlOb;
ExecEnv* ee = EE();
if( ! context || ! controller || ! ee )
return;
/* create new vector */
vec = (JHandle*) execute_java_constructor(ee, "netscape/util/Vector", 0, "()");
if( ! vec )
return;
/* lock the native subsystem */
JSD_LockSourceTextSubsystem(context);
/* iterate through the native items */
while( 0 != (item = JSD_IterateSources(context, &iterp)) )
{
int urlStrLen;
int status = JSD_GetSourceStatus(context,item);
/* try to find Java object */
url = JSD_GetSourceURL(context, item);
if( ! url || 0 == (urlStrLen = strlen(url)) ) /* ignoring those with no url */
continue;
urlOb = makeJavaString((char*)url,urlStrLen);
if( ! urlOb )
continue;
itemOb = (JHandle*)
execute_java_dynamic_method( ee, (JHandle*)self, "findSourceTextItem0",
"(Ljava/lang/String;)Lnetscape/jsdebug/SourceTextItem;",
urlOb );
if( ! itemOb )
{
/* if not found then generate new item */
struct Hjava_lang_String* textOb;
const char* str;
int length;
if( ! JSD_GetSourceText(context, item, &str, &length ) )
{
str = "";
length = 0;
}
textOb = makeJavaString((char*)str, length);
itemOb = (JHandle*)
execute_java_constructor(ee, "netscape/jsdebug/SourceTextItem",0,
"(Ljava/lang/String;Ljava/lang/String;I)",
urlOb, textOb, status );
}
else if( JSD_IsSourceDirty(context, item) &&
JSD_SOURCE_CLEARED != status )
{
/* if found and dirty then update */
struct Hjava_lang_String* textOb;
const char* str;
int length;
if( ! JSD_GetSourceText(context, item, &str, &length ) )
{
str = "";
length = 0;
}
textOb = makeJavaString((char*)str, length);
execute_java_dynamic_method(ee, itemOb, "setText",
"(Ljava/lang/String;)V", textOb);
execute_java_dynamic_method(ee, itemOb, "setStatus",
"(I)V", status );
execute_java_dynamic_method(ee, itemOb, "setDirty", "(Z)V", 1 );
}
/* we have our copy; clear the native cached text */
if( JSD_SOURCE_INITED != status &&
JSD_SOURCE_PARTIAL != status &&
JSD_SOURCE_CLEARED != status )
{
JSD_ClearSourceText(context, item);
}
/* set the item clean */
JSD_SetSourceDirty(context, item, FALSE );
/* add the item to the vector */
if( itemOb )
execute_java_dynamic_method(ee, vec, "addElement",
"(Ljava/lang/Object;)V", itemOb );
}
/* unlock the native subsystem */
JSD_UnlockSourceTextSubsystem(context);
/* set main vector to our new vector */
unhand(self)->_sourceTextVector = (struct Hnetscape_util_Vector*) vec;
}
#endif

View File

@@ -1,236 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Locking and threading support
*/
/*
* ifdef JSD_USE_NSPR_LOCKS then you musat build and run against NSPR2.
* Otherwise, there are stubs that can be filled in with your own locking
* code. Also, note that these stubs include a jsd_CurrentThread()
* implementation that only works on Win32 - this is needed for the inprocess
* Java-based debugger.
*/
#include "jsd.h"
#ifdef JSD_THREADSAFE
#ifdef JSD_USE_NSPR_LOCKS
#include "prlock.h"
#include "prthread.h"
#ifdef JSD_ATTACH_THREAD_HACK
#include "pprthred.h" /* need this as long as JS_AttachThread is needed */
#endif
typedef struct JSDStaticLock
{
void* owner;
PRLock* lock;
int count;
#ifdef DEBUG
uint16 sig;
#endif
} JSDStaticLock;
/*
* This exists to wrap non-NSPR theads (e.g. Java threads) in NSPR wrappers.
* XXX We ignore the memory leak issue.
* It is claimed that future versions of NSPR will automatically wrap on
* the call to PR_GetCurrentThread.
*
* XXX We ignore the memory leak issue - i.e. we never call PR_DetachThread.
*
*/
#undef _CURRENT_THREAD
#ifdef JSD_ATTACH_THREAD_HACK
#define _CURRENT_THREAD(out) \
JS_BEGIN_MACRO \
out = (void*) PR_GetCurrentThread(); \
if(!out) \
out = (void*) JS_AttachThread(PR_USER_THREAD,PR_PRIORITY_NORMAL,NULL);\
JS_ASSERT(out); \
JS_END_MACRO
#else
#define _CURRENT_THREAD(out) \
JS_BEGIN_MACRO \
out = (void*) PR_GetCurrentThread(); \
JS_ASSERT(out); \
JS_END_MACRO
#endif
#ifdef DEBUG
#define JSD_LOCK_SIG 0x10CC10CC
void ASSERT_VALID_LOCK(JSDStaticLock* lock)
{
JS_ASSERT(lock);
JS_ASSERT(lock->lock);
JS_ASSERT(lock->count >= 0);
JS_ASSERT((! lock->count && ! lock->owner) || (lock->count && lock->owner));
JS_ASSERT(lock->sig == (uint16) JSD_LOCK_SIG);
}
#else
#define ASSERT_VALID_LOCK(x) ((void)0)
#endif
void*
jsd_CreateLock()
{
JSDStaticLock* lock;
if( ! (lock = calloc(1, sizeof(JSDStaticLock))) ||
! (lock->lock = PR_NewLock()) )
{
if(lock)
{
free(lock);
lock = NULL;
}
}
#ifdef DEBUG
if(lock) lock->sig = (uint16) JSD_LOCK_SIG;
#endif
return lock;
}
void
jsd_Lock(JSDStaticLock* lock)
{
void* me;
_CURRENT_THREAD(me);
ASSERT_VALID_LOCK(lock);
if(lock->owner == me)
lock->count++;
else
{
PR_Lock(lock->lock); /* this can block... */
JS_ASSERT(lock->owner == 0);
lock->count = 1;
lock->owner = me;
}
ASSERT_VALID_LOCK(lock);
}
void
jsd_Unlock(JSDStaticLock* lock)
{
void* me;
ASSERT_VALID_LOCK(lock);
_CURRENT_THREAD(me);
if(lock->owner != me)
{
JS_ASSERT(0); /* it's an error to unlock a lock you don't own */
return;
}
if(--lock->count == 0)
{
lock->owner = NULL;
PR_Unlock(lock->lock);
}
ASSERT_VALID_LOCK(lock);
}
#ifdef DEBUG
JSBool
jsd_IsLocked(JSDStaticLock* lock)
{
void* me;
ASSERT_VALID_LOCK(lock);
_CURRENT_THREAD(me);
return lock->owner == me ? JS_TRUE : JS_FALSE;
}
#endif /* DEBUG */
void*
jsd_CurrentThread()
{
void* me;
_CURRENT_THREAD(me);
return me;
}
#else /* ! JSD_USE_NSPR_LOCKS */
#ifdef WIN32
#pragma message("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
#pragma message("!! you are compiling the stubbed version of jsd_lock.c !!")
#pragma message("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
#endif
/*
* NOTE: 'Real' versions of these locks must be reentrant in the sense that
* they support nested calls to lock and unlock.
*/
void*
jsd_CreateLock()
{
return (void*)1;
}
void
jsd_Lock(void* lock)
{
}
void
jsd_Unlock(void* lock)
{
}
#ifdef DEBUG
JSBool
jsd_IsLocked(void* lock)
{
return JS_TRUE;
}
#endif /* DEBUG */
/*
* This Windows only thread id code is here to allow the Java-based
* JSDebugger to work with the single threaded js.c shell (even without
* real locking and threading support).
*/
#ifdef WIN32
/* bogus (but good enough) declaration*/
extern void* __stdcall GetCurrentThreadId(void);
#endif
void*
jsd_CurrentThread()
{
#ifdef WIN32
return GetCurrentThreadId();
#else
return (void*)1;
#endif
}
#endif /* JSD_USE_NSPR_LOCKS */
#endif /* JSD_THREADSAFE */

View File

@@ -1,53 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Header for JavaScript Debugging support - Locking and threading functions
*/
#ifndef jsd_lock_h___
#define jsd_lock_h___
/*
* If you want to support threading and locking, define JSD_THREADSAFE and
* implement the functions below.
*/
/*
* NOTE: These locks must be reentrant in the sense that they support
* nested calls to lock and unlock.
*/
extern void*
jsd_CreateLock();
extern void
jsd_Lock(void* lock);
extern void
jsd_Unlock(void* lock);
#ifdef DEBUG
extern JSBool
jsd_IsLocked(void* lock);
#endif /* DEBUG */
extern void*
jsd_CurrentThread();
#endif /* jsd_lock_h___ */

View File

@@ -1,307 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Object support
*/
#include "jsd.h"
/*
* #define JSD_TRACE 1
*/
#ifdef JSD_TRACE
#define TRACEOBJ(jsdc, jsdobj, which) _traceObj(jsdc, jsdobj, which)
static char *
_describeObj(JSDContext* jsdc, JSDObject *jsdobj)
{
return
JS_smprintf("%0x new'd in %s at line %d using ctor %s in %s at line %d",
(int)jsdobj,
JSD_GetObjectNewURL(jsdc, jsdobj),
JSD_GetObjectNewLineNumber(jsdc, jsdobj),
JSD_GetObjectConstructorName(jsdc, jsdobj),
JSD_GetObjectConstructorURL(jsdc, jsdobj),
JSD_GetObjectConstructorLineNumber(jsdc, jsdobj));
}
static void
_traceObj(JSDContext* jsdc, JSDObject* jsdobj, int which)
{
char* description;
if( !jsdobj )
return;
description = _describeObj(jsdc, jsdobj);
printf("%s : %s\n",
which == 0 ? "new " :
which == 1 ? "final" :
"ctor ",
description);
if(description)
free(description);
}
#else
#define TRACEOBJ(jsdc, jsdobj, which) ((void)0)
#endif /* JSD_TRACE */
#ifdef DEBUG
void JSD_ASSERT_VALID_OBJECT(JSDObject* jsdobj)
{
JS_ASSERT(jsdobj);
JS_ASSERT(!JS_CLIST_IS_EMPTY(&jsdobj->links));
JS_ASSERT(jsdobj->obj);
}
#endif
static void
_destroyJSDObject(JSDContext* jsdc, JSDObject* jsdobj)
{
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
JS_REMOVE_LINK(&jsdobj->links);
JS_HashTableRemove(jsdc->objectsTable, jsdobj->obj);
if(jsdobj->newURL)
jsd_DropAtom(jsdc, jsdobj->newURL);
if(jsdobj->ctorURL)
jsd_DropAtom(jsdc, jsdobj->ctorURL);
if(jsdobj->ctorName)
jsd_DropAtom(jsdc, jsdobj->ctorName);
free(jsdobj);
}
static JSDObject*
_createJSDObject(JSDContext* jsdc, JSContext *cx, JSObject *obj)
{
JSDObject* jsdobj;
JSStackFrame* fp;
JSStackFrame* iter = NULL;
const char* newURL;
jsbytecode* pc;
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
jsdobj = (JSDObject*) calloc(1, sizeof(JSDObject));
if( jsdobj )
{
JS_INIT_CLIST(&jsdobj->links);
JS_APPEND_LINK(&jsdobj->links, &jsdc->objectsList);
jsdobj->obj = obj;
JS_HashTableAdd(jsdc->objectsTable, obj, jsdobj);
/* walk the stack to find js frame (if any) causing creation */
while( NULL != (fp = JS_FrameIterator(cx, &iter)) )
{
if( !JS_IsNativeFrame(cx, fp) )
{
JSScript* script = JS_GetFrameScript(cx, fp);
if( !script )
continue;
newURL = JS_GetScriptFilename(cx, script);
if( newURL )
jsdobj->newURL = jsd_AddAtom(jsdc, newURL);
pc = JS_GetFramePC(cx, fp);
if( pc )
jsdobj->newLineno = JS_PCToLineNumber(cx, script, pc);
break;
}
}
}
return jsdobj;
}
void JS_DLL_CALLBACK
jsd_ObjectHook(JSContext *cx, JSObject *obj, JSBool isNew, void *closure)
{
JSDObject* jsdobj;
JSDContext* jsdc = (JSDContext*) closure;
if( ! jsdc || ! jsdc->inited )
return;
JSD_LOCK_OBJECTS(jsdc);
if(isNew)
{
jsdobj = _createJSDObject(jsdc, cx, obj);
TRACEOBJ(jsdc, jsdobj, 0);
}
else
{
jsdobj = jsd_GetJSDObjectForJSObject(jsdc, obj);
if( jsdobj )
{
TRACEOBJ(jsdc, jsdobj, 1);
_destroyJSDObject(jsdc, jsdobj);
}
}
JSD_UNLOCK_OBJECTS(jsdc);
}
void
jsd_Constructing(JSDContext* jsdc, JSContext *cx, JSObject *obj,
JSStackFrame *fp)
{
JSDObject* jsdobj;
JSScript* script;
JSDScript* jsdscript;
const char* ctorURL;
const char* ctorName;
JSD_LOCK_OBJECTS(jsdc);
jsdobj = jsd_GetJSDObjectForJSObject(jsdc, obj);
if( jsdobj && !jsdobj->ctorURL && !JS_IsNativeFrame(cx, fp) )
{
script = JS_GetFrameScript(cx, fp);
if( script )
{
ctorURL = JS_GetScriptFilename(cx, script);
if( ctorURL )
jsdobj->ctorURL = jsd_AddAtom(jsdc, ctorURL);
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( jsdscript )
{
ctorName = jsd_GetScriptFunctionName(jsdc, jsdscript);
if( ctorName )
jsdobj->ctorName = jsd_AddAtom(jsdc, ctorName);
}
jsdobj->ctorLineno = JS_GetScriptBaseLineNumber(cx, script);
}
}
TRACEOBJ(jsdc, jsdobj, 3);
JSD_UNLOCK_OBJECTS(jsdc);
}
JS_STATIC_DLL_CALLBACK(JSHashNumber)
_hash_root(const void *key)
{
return ((JSHashNumber) key) >> 2; /* help lame MSVC1.5 on Win16 */
}
JSBool
jsd_InitObjectManager(JSDContext* jsdc)
{
JS_INIT_CLIST(&jsdc->objectsList);
jsdc->objectsTable = JS_NewHashTable(256, _hash_root,
JS_CompareValues, JS_CompareValues,
NULL, NULL);
return (JSBool) jsdc->objectsTable;
}
void
jsd_DestroyObjectManager(JSDContext* jsdc)
{
JSD_LOCK_OBJECTS(jsdc);
while( !JS_CLIST_IS_EMPTY(&jsdc->objectsList) )
_destroyJSDObject(jsdc, (JSDObject*)JS_NEXT_LINK(&jsdc->objectsList));
JS_HashTableDestroy(jsdc->objectsTable);
JSD_UNLOCK_OBJECTS(jsdc);
}
JSDObject*
jsd_IterateObjects(JSDContext* jsdc, JSDObject** iterp)
{
JSDObject *jsdobj = *iterp;
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
if( !jsdobj )
jsdobj = (JSDObject *)jsdc->objectsList.next;
if( jsdobj == (JSDObject *)&jsdc->objectsList )
return NULL;
*iterp = (JSDObject*) jsdobj->links.next;
return jsdobj;
}
JSObject*
jsd_GetWrappedObject(JSDContext* jsdc, JSDObject* jsdobj)
{
return jsdobj->obj;
}
const char*
jsd_GetObjectNewURL(JSDContext* jsdc, JSDObject* jsdobj)
{
if( jsdobj->newURL )
return JSD_ATOM_TO_STRING(jsdobj->newURL);
return NULL;
}
uintN
jsd_GetObjectNewLineNumber(JSDContext* jsdc, JSDObject* jsdobj)
{
return jsdobj->newLineno;
}
const char*
jsd_GetObjectConstructorURL(JSDContext* jsdc, JSDObject* jsdobj)
{
if( jsdobj->ctorURL )
return JSD_ATOM_TO_STRING(jsdobj->ctorURL);
return NULL;
}
uintN
jsd_GetObjectConstructorLineNumber(JSDContext* jsdc, JSDObject* jsdobj)
{
return jsdobj->ctorLineno;
}
const char*
jsd_GetObjectConstructorName(JSDContext* jsdc, JSDObject* jsdobj)
{
if( jsdobj->ctorName )
return JSD_ATOM_TO_STRING(jsdobj->ctorName);
return NULL;
}
JSDObject*
jsd_GetJSDObjectForJSObject(JSDContext* jsdc, JSObject* jsobj)
{
JSDObject* jsdobj;
JSD_LOCK_OBJECTS(jsdc);
jsdobj = (JSDObject*) JS_HashTableLookup(jsdc->objectsTable, jsobj);
JSD_UNLOCK_OBJECTS(jsdc);
return jsdobj;
}
JSDObject*
jsd_GetObjectForValue(JSDContext* jsdc, JSDValue* jsdval)
{
return jsd_GetJSDObjectForJSObject(jsdc, JSVAL_TO_OBJECT(jsdval->val));
}
JSDValue*
jsd_GetValueForObject(JSDContext* jsdc, JSDObject* jsdobj)
{
return jsd_NewValue(jsdc, OBJECT_TO_JSVAL(jsdobj->obj));
}

View File

@@ -1,668 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Script support
*/
#include "jsd.h"
/* Comment this out to disable (NT specific) dumping as we go */
/*
** #ifdef DEBUG
** #define JSD_DUMP 1
** #endif
*/
#define NOT_SET_YET -1
/***************************************************************************/
#ifdef DEBUG
void JSD_ASSERT_VALID_SCRIPT(JSDScript* jsdscript)
{
JS_ASSERT(jsdscript);
JS_ASSERT(jsdscript->script);
}
void JSD_ASSERT_VALID_EXEC_HOOK(JSDExecHook* jsdhook)
{
JS_ASSERT(jsdhook);
JS_ASSERT(jsdhook->hook);
}
#endif
#ifdef LIVEWIRE
static JSBool
HasFileExtention(const char* name, const char* ext)
{
int i;
int len = strlen(ext);
const char* p = strrchr(name,'.');
if( !p )
return JS_FALSE;
p++;
for(i = 0; i < len; i++ )
{
JS_ASSERT(islower(ext[i]));
if( 0 == p[i] || tolower(p[i]) != ext[i] )
return JS_FALSE;
}
if( 0 != p[i] )
return JS_FALSE;
return JS_TRUE;
}
#endif /* LIVEWIRE */
static JSDScript*
_newJSDScript(JSDContext* jsdc,
JSContext *cx,
JSScript *script,
JSFunction* function)
{
JSDScript* jsdscript;
uintN lineno;
const char* raw_filename;
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
/* these are inlined javascript: urls and we can't handle them now */
lineno = (uintN) JS_GetScriptBaseLineNumber(cx, script);
if( lineno == 0 )
return NULL;
jsdscript = (JSDScript*) calloc(1, sizeof(JSDScript));
if( ! jsdscript )
return NULL;
raw_filename = JS_GetScriptFilename(cx,script);
JS_APPEND_LINK(&jsdscript->links, &jsdc->scripts);
jsdscript->jsdc = jsdc;
jsdscript->script = script;
jsdscript->function = function;
jsdscript->lineBase = lineno;
jsdscript->lineExtent = (uintN)NOT_SET_YET;
#ifndef LIVEWIRE
jsdscript->url = (char*) jsd_BuildNormalizedURL(raw_filename);
#else
jsdscript->app = LWDBG_GetCurrentApp();
if( jsdscript->app && raw_filename )
{
jsdscript->url = jsdlw_BuildAppRelativeFilename(jsdscript->app, raw_filename);
if( function )
{
jsdscript->lwscript =
LWDBG_GetScriptOfFunction(jsdscript->app,
JS_GetFunctionName(function));
/* also, make sure this file is added to filelist if is .js file */
if( HasFileExtention(raw_filename,"js") ||
HasFileExtention(raw_filename,"sjs") )
{
jsdlw_PreLoadSource(jsdc, jsdscript->app, raw_filename, JS_FALSE);
}
}
else
{
jsdscript->lwscript = LWDBG_GetCurrentTopLevelScript();
}
}
#endif
JS_INIT_CLIST(&jsdscript->hooks);
return jsdscript;
}
static void
_destroyJSDScript(JSDContext* jsdc,
JSDScript* jsdscript)
{
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
/* destroy all hooks */
jsd_ClearAllExecutionHooksForScript(jsdc, jsdscript);
JS_REMOVE_LINK(&jsdscript->links);
if(jsdscript->url)
free(jsdscript->url);
if(jsdscript)
free(jsdscript);
}
/***************************************************************************/
#ifdef JSD_DUMP
static void
_dumpJSDScript(JSDContext* jsdc, JSDScript* jsdscript, const char* leadingtext)
{
const char* name;
const char* fun;
uintN base;
uintN extent;
char Buf[256];
name = jsd_GetScriptFilename(jsdc, jsdscript);
fun = jsd_GetScriptFunctionName(jsdc, jsdscript);
base = jsd_GetScriptBaseLineNumber(jsdc, jsdscript);
extent = jsd_GetScriptLineExtent(jsdc, jsdscript);
sprintf( Buf, "%sscript=%08X, %s, %s, %d-%d\n",
leadingtext,
(unsigned) jsdscript->script,
name ? name : "no URL",
fun ? fun : "no fun",
base, base + extent - 1 );
OutputDebugString( Buf );
}
static void
_dumpJSDScriptList( JSDContext* jsdc )
{
JSDScript* iterp = NULL;
JSDScript* jsdscript = NULL;
OutputDebugString( "*** JSDScriptDump\n" );
while( NULL != (jsdscript = jsd_IterateScripts(jsdc, &iterp)) )
_dumpJSDScript( jsdc, jsdscript, " script: " );
}
#endif /* JSD_DUMP */
/***************************************************************************/
void
jsd_DestroyAllJSDScripts( JSDContext* jsdc )
{
JSDScript *jsdscript;
JSDScript *next;
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
for( jsdscript = (JSDScript*)jsdc->scripts.next;
jsdscript != (JSDScript*)&jsdc->scripts;
jsdscript = next )
{
next = (JSDScript*)jsdscript->links.next;
_destroyJSDScript( jsdc, jsdscript );
}
}
JSDScript*
jsd_FindJSDScript( JSDContext* jsdc,
JSScript *script )
{
JSDScript *jsdscript;
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
for( jsdscript = (JSDScript *)jsdc->scripts.next;
jsdscript != (JSDScript *)&jsdc->scripts;
jsdscript = (JSDScript *)jsdscript->links.next )
{
if (jsdscript->script == script)
return jsdscript;
}
return NULL;
}
JSDScript*
jsd_IterateScripts(JSDContext* jsdc, JSDScript **iterp)
{
JSDScript *jsdscript = *iterp;
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
if( !jsdscript )
jsdscript = (JSDScript *)jsdc->scripts.next;
if( jsdscript == (JSDScript *)&jsdc->scripts )
return NULL;
*iterp = (JSDScript*) jsdscript->links.next;
return jsdscript;
}
JSBool
jsd_IsActiveScript(JSDContext* jsdc, JSDScript *jsdscript)
{
JSDScript *current;
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
for( current = (JSDScript *)jsdc->scripts.next;
current != (JSDScript *)&jsdc->scripts;
current = (JSDScript *)current->links.next )
{
if(jsdscript == current)
return JS_TRUE;
}
return JS_FALSE;
}
const char*
jsd_GetScriptFilename(JSDContext* jsdc, JSDScript *jsdscript)
{
return jsdscript->url;
}
const char*
jsd_GetScriptFunctionName(JSDContext* jsdc, JSDScript *jsdscript)
{
if( ! jsdscript->function )
return NULL;
return JS_GetFunctionName(jsdscript->function);
}
uintN
jsd_GetScriptBaseLineNumber(JSDContext* jsdc, JSDScript *jsdscript)
{
return jsdscript->lineBase;
}
uintN
jsd_GetScriptLineExtent(JSDContext* jsdc, JSDScript *jsdscript)
{
if( NOT_SET_YET == jsdscript->lineExtent )
jsdscript->lineExtent = JS_GetScriptLineExtent(jsdc->dumbContext, jsdscript->script);
return jsdscript->lineExtent;
}
jsuword
jsd_GetClosestPC(JSDContext* jsdc, JSDScript* jsdscript, uintN line)
{
#ifdef LIVEWIRE
if( jsdscript && jsdscript->lwscript )
{
uintN newline;
jsdlw_RawToProcessedLineNumber(jsdc, jsdscript, line, &newline);
if( line != newline )
line = newline;
}
#endif
return (jsuword) JS_LineNumberToPC(jsdc->dumbContext,
jsdscript->script, line );
}
uintN
jsd_GetClosestLine(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc)
{
uintN first = jsdscript->lineBase;
uintN last = first + jsd_GetScriptLineExtent(jsdc, jsdscript) - 1;
uintN line = JS_PCToLineNumber(jsdc->dumbContext,
jsdscript->script, (jsbytecode*)pc);
if( line < first )
return first;
if( line > last )
return last;
#ifdef LIVEWIRE
if( jsdscript && jsdscript->lwscript )
{
uintN newline;
jsdlw_ProcessedToRawLineNumber(jsdc, jsdscript, line, &newline);
line = newline;
}
#endif
return line;
}
JSBool
jsd_SetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc hook, void* callerdata)
{
JSD_LOCK();
jsdc->scriptHook = hook;
jsdc->scriptHookData = callerdata;
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_GetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc* hook, void** callerdata)
{
JSD_LOCK();
if( hook )
*hook = jsdc->scriptHook;
if( callerdata )
*callerdata = jsdc->scriptHookData;
JSD_UNLOCK();
return JS_TRUE;
}
/***************************************************************************/
void JS_DLL_CALLBACK
jsd_NewScriptHookProc(
JSContext *cx,
const char *filename, /* URL this script loads from */
uintN lineno, /* line where this script starts */
JSScript *script,
JSFunction *fun,
void* callerdata )
{
JSDScript* jsdscript = NULL;
JSDContext* jsdc = (JSDContext*) callerdata;
JSD_ScriptHookProc hook;
void* hookData;
JSD_ASSERT_VALID_CONTEXT(jsdc);
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return;
#ifdef LIVEWIRE
if( 1 == lineno )
jsdlw_PreLoadSource(jsdc, LWDBG_GetCurrentApp(), filename, JS_TRUE );
#endif
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = _newJSDScript(jsdc, cx, script, fun);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return;
#ifdef JSD_DUMP
JSD_LOCK_SCRIPTS(jsdc);
_dumpJSDScript(jsdc, jsdscript, "***NEW Script: ");
_dumpJSDScriptList( jsdc );
JSD_UNLOCK_SCRIPTS(jsdc);
#endif /* JSD_DUMP */
/* local in case jsdc->scriptHook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->scriptHook;
hookData = jsdc->scriptHookData;
JSD_UNLOCK();
if( hook )
hook(jsdc, jsdscript, JS_TRUE, hookData);
}
void JS_DLL_CALLBACK
jsd_DestroyScriptHookProc(
JSContext *cx,
JSScript *script,
void* callerdata )
{
JSDScript* jsdscript = NULL;
JSDContext* jsdc = (JSDContext*) callerdata;
JSD_ScriptHookProc hook;
void* hookData;
JSD_ASSERT_VALID_CONTEXT(jsdc);
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return;
#ifdef JSD_DUMP
JSD_LOCK_SCRIPTS(jsdc);
_dumpJSDScript(jsdc, jsdscript, "***DESTROY Script: ");
JSD_UNLOCK_SCRIPTS(jsdc);
#endif /* JSD_DUMP */
/* local in case hook gets cleared on another thread */
JSD_LOCK();
hook = jsdc->scriptHook;
hookData = jsdc->scriptHookData;
JSD_UNLOCK();
if( hook )
hook(jsdc, jsdscript, JS_FALSE, hookData);
JSD_LOCK_SCRIPTS(jsdc);
_destroyJSDScript(jsdc, jsdscript);
JSD_UNLOCK_SCRIPTS(jsdc);
#ifdef JSD_DUMP
JSD_LOCK_SCRIPTS(jsdc);
_dumpJSDScriptList(jsdc);
JSD_UNLOCK_SCRIPTS(jsdc);
#endif /* JSD_DUMP */
}
/***************************************************************************/
static JSDExecHook*
_findHook(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc)
{
JSDExecHook* jsdhook;
JSCList* list = &jsdscript->hooks;
for( jsdhook = (JSDExecHook*)list->next;
jsdhook != (JSDExecHook*)list;
jsdhook = (JSDExecHook*)jsdhook->links.next )
{
if (jsdhook->pc == pc)
return jsdhook;
}
return NULL;
}
static JSBool
_isActiveHook(JSDContext* jsdc, JSScript *script, JSDExecHook* jsdhook)
{
JSDExecHook* current;
JSCList* list;
JSDScript* jsdscript;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
if( ! jsdscript)
{
JSD_UNLOCK_SCRIPTS(jsdc);
return JS_FALSE;
}
list = &jsdscript->hooks;
for( current = (JSDExecHook*)list->next;
current != (JSDExecHook*)list;
current = (JSDExecHook*)current->links.next )
{
if(current == jsdhook)
{
JSD_UNLOCK_SCRIPTS(jsdc);
return JS_TRUE;
}
}
JSD_UNLOCK_SCRIPTS(jsdc);
return JS_FALSE;
}
JSTrapStatus JS_DLL_CALLBACK
jsd_TrapHandler(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval,
void *closure)
{
JSDExecHook* jsdhook = (JSDExecHook*) closure;
JSD_ExecutionHookProc hook;
void* hookData;
JSDContext* jsdc;
JSDScript* jsdscript;
JSD_LOCK();
if( NULL == (jsdc = jsd_JSDContextForJSContext(cx)) ||
! _isActiveHook(jsdc, script, jsdhook) )
{
JSD_UNLOCK();
return JSTRAP_CONTINUE;
}
JSD_ASSERT_VALID_EXEC_HOOK(jsdhook);
JS_ASSERT(jsdhook->pc == (jsuword)pc);
JS_ASSERT(jsdhook->jsdscript->script == script);
JS_ASSERT(jsdhook->jsdscript->jsdc == jsdc);
hook = jsdhook->hook;
hookData = jsdhook->callerdata;
jsdscript = jsdhook->jsdscript;
/* do not use jsdhook-> after this point */
JSD_UNLOCK();
if( ! jsdc || ! jsdc->inited )
return JSTRAP_CONTINUE;
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
return JSTRAP_CONTINUE;
#ifdef LIVEWIRE
if( ! jsdlw_UserCodeAtPC(jsdc, jsdscript, (jsuword)pc) )
return JSTRAP_CONTINUE;
#endif
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_BREAKPOINT,
hook, hookData, rval);
}
JSBool
jsd_SetExecutionHook(JSDContext* jsdc,
JSDScript* jsdscript,
jsuword pc,
JSD_ExecutionHookProc hook,
void* callerdata)
{
JSDExecHook* jsdhook;
JSD_LOCK();
if( ! hook )
{
jsd_ClearExecutionHook(jsdc, jsdscript, pc);
JSD_UNLOCK();
return JS_TRUE;
}
jsdhook = _findHook(jsdc, jsdscript, pc);
if( jsdhook )
{
jsdhook->hook = hook;
jsdhook->callerdata = callerdata;
return JS_TRUE;
}
/* else... */
jsdhook = (JSDExecHook*)calloc(1, sizeof(JSDExecHook));
if( ! jsdhook )
return JS_FALSE;
jsdhook->jsdscript = jsdscript;
jsdhook->pc = pc;
jsdhook->hook = hook;
jsdhook->callerdata = callerdata;
if( ! JS_SetTrap(jsdc->dumbContext, jsdscript->script,
(jsbytecode*)pc, jsd_TrapHandler, (void*) jsdhook) )
{
free(jsdhook);
return JS_FALSE;
}
JS_APPEND_LINK(&jsdhook->links, &jsdscript->hooks);
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearExecutionHook(JSDContext* jsdc,
JSDScript* jsdscript,
jsuword pc)
{
JSDExecHook* jsdhook;
JSD_LOCK();
jsdhook = _findHook(jsdc, jsdscript, pc);
if( ! jsdhook )
{
JS_ASSERT(0);
JSD_UNLOCK();
return JS_FALSE;
}
JS_ClearTrap(jsdc->dumbContext, jsdscript->script,
(jsbytecode*)pc, NULL, NULL );
JS_REMOVE_LINK(&jsdhook->links);
free(jsdhook);
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearAllExecutionHooksForScript(JSDContext* jsdc, JSDScript* jsdscript)
{
JSDExecHook* jsdhook;
JSCList* list = &jsdscript->hooks;
JSD_LOCK();
while( (JSDExecHook*)list != (jsdhook = (JSDExecHook*)list->next) )
{
JS_REMOVE_LINK(&jsdhook->links);
free(jsdhook);
}
JS_ClearScriptTraps(jsdc->dumbContext, jsdscript->script);
JSD_UNLOCK();
return JS_TRUE;
}
JSBool
jsd_ClearAllExecutionHooks(JSDContext* jsdc)
{
JSDScript* jsdscript;
JSDScript* iterp = NULL;
JSD_LOCK();
while( NULL != (jsdscript = jsd_IterateScripts(jsdc, &iterp)) )
jsd_ClearAllExecutionHooksForScript(jsdc, jsdscript);
JSD_UNLOCK();
return JS_TRUE;
}
void
jsd_ScriptCreated(JSDContext* jsdc,
JSContext *cx,
const char *filename, /* URL this script loads from */
uintN lineno, /* line where this script starts */
JSScript *script,
JSFunction *fun)
{
jsd_NewScriptHookProc(cx, filename, lineno, script, fun, jsdc);
}
void
jsd_ScriptDestroyed(JSDContext* jsdc,
JSContext *cx,
JSScript *script)
{
jsd_DestroyScriptHookProc(cx, script, jsdc);
}

View File

@@ -1,429 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Call stack support
*/
#include "jsd.h"
#ifdef DEBUG
void JSD_ASSERT_VALID_THREAD_STATE(JSDThreadState* jsdthreadstate)
{
JS_ASSERT(jsdthreadstate);
JS_ASSERT(jsdthreadstate->stackDepth > 0);
}
void JSD_ASSERT_VALID_STACK_FRAME(JSDStackFrameInfo* jsdframe)
{
JS_ASSERT(jsdframe);
JS_ASSERT(jsdframe->jsdthreadstate);
}
#endif
static JSDStackFrameInfo*
_addNewFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSScript* script,
jsuword pc,
JSStackFrame* fp)
{
JSDStackFrameInfo* jsdframe;
JSDScript* jsdscript;
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if( ! jsdscript )
return NULL;
jsdframe = (JSDStackFrameInfo*) calloc(1, sizeof(JSDStackFrameInfo));
if( ! jsdframe )
return NULL;
jsdframe->jsdthreadstate = jsdthreadstate;
jsdframe->jsdscript = jsdscript ;
jsdframe->pc = pc ;
jsdframe->fp = fp ;
JS_APPEND_LINK(&jsdframe->links, &jsdthreadstate->stack);
jsdthreadstate->stackDepth++;
return jsdframe;
}
static void
_destroyFrame(JSDStackFrameInfo* jsdframe)
{
/* kill any alloc'd objects in frame here... */
if( jsdframe )
free(jsdframe);
}
JSDThreadState*
jsd_NewThreadState(JSDContext* jsdc, JSContext *cx )
{
JSDThreadState* jsdthreadstate;
JSStackFrame * iter = NULL;
JSStackFrame * fp;
jsdthreadstate = (JSDThreadState*)calloc(1, sizeof(JSDThreadState));
if( ! jsdthreadstate )
return NULL;
jsdthreadstate->context = cx;
jsdthreadstate->thread = JSD_CURRENT_THREAD();
JS_INIT_CLIST(&jsdthreadstate->stack);
jsdthreadstate->stackDepth = 0;
while( NULL != (fp = JS_FrameIterator(cx, &iter)) )
{
JSScript* script = JS_GetFrameScript(cx, fp);
jsuword pc = (jsuword) JS_GetFramePC(cx, fp);
if( ! script || ! pc || JS_IsNativeFrame(cx, fp) )
continue;
_addNewFrame( jsdc, jsdthreadstate, script, pc, fp );
}
/* if there is no stack, then this threadstate can not be constructed */
if( 0 == jsdthreadstate->stackDepth )
{
free(jsdthreadstate);
return NULL;
}
JSD_LOCK_THREADSTATES(jsdc);
JS_APPEND_LINK(&jsdthreadstate->links, &jsdc->threadsStates);
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdthreadstate;
}
void
jsd_DestroyThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
{
JSDStackFrameInfo* jsdframe;
JSCList* list;
JSD_ASSERT_VALID_THREAD_STATE(jsdthreadstate);
JS_ASSERT(JSD_CURRENT_THREAD() == jsdthreadstate->thread);
JSD_LOCK_THREADSTATES(jsdc);
JS_REMOVE_LINK(&jsdthreadstate->links);
JSD_UNLOCK_THREADSTATES(jsdc);
list = &jsdthreadstate->stack;
while( (JSDStackFrameInfo*)list != (jsdframe = (JSDStackFrameInfo*)list->next) )
{
JS_REMOVE_LINK(&jsdframe->links);
_destroyFrame(jsdframe);
}
free(jsdthreadstate);
}
uintN
jsd_GetCountOfStackFrames(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
{
uintN count = 0;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidThreadState(jsdc, jsdthreadstate) )
count = jsdthreadstate->stackDepth;
JSD_UNLOCK_THREADSTATES(jsdc);
return count;
}
JSDStackFrameInfo*
jsd_GetStackFrame(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
{
JSDStackFrameInfo* jsdframe = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidThreadState(jsdc, jsdthreadstate) )
jsdframe = (JSDStackFrameInfo*) JS_LIST_HEAD(&jsdthreadstate->stack);
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdframe;
}
JSDStackFrameInfo*
jsd_GetCallingStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JSDStackFrameInfo* nextjsdframe = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
if( JS_LIST_HEAD(&jsdframe->links) != &jsdframe->jsdthreadstate->stack )
nextjsdframe = (JSDStackFrameInfo*) JS_LIST_HEAD(&jsdframe->links);
JSD_UNLOCK_THREADSTATES(jsdc);
return nextjsdframe;
}
JSDScript*
jsd_GetScriptForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JSDScript* jsdscript = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
jsdscript = jsdframe->jsdscript;
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdscript;
}
jsuword
jsd_GetPCForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
jsuword pc = 0;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
pc = jsdframe->pc;
JSD_UNLOCK_THREADSTATES(jsdc);
return pc;
}
JSDValue*
jsd_GetCallObjectForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JSObject* obj;
JSDValue* jsdval = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
{
obj = JS_GetFrameCallObject(jsdthreadstate->context, jsdframe->fp);
if(obj)
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
}
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdval;
}
JSDValue*
jsd_GetScopeChainForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JSObject* obj;
JSDValue* jsdval = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
{
obj = JS_GetFrameScopeChain(jsdthreadstate->context, jsdframe->fp);
if(obj)
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
}
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdval;
}
JSDValue*
jsd_GetThisForStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JSObject* obj;
JSDValue* jsdval = NULL;
JSD_LOCK_THREADSTATES(jsdc);
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
{
obj = JS_GetFrameThis(jsdthreadstate->context, jsdframe->fp);
if(obj)
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
}
JSD_UNLOCK_THREADSTATES(jsdc);
return jsdval;
}
JSBool
jsd_EvaluateScriptInStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe,
const char *bytes, uintN length,
const char *filename, uintN lineno, jsval *rval)
{
JSBool retval;
JSBool valid;
JSExceptionState* exceptionState;
JSContext* cx;
JS_ASSERT(JSD_CURRENT_THREAD() == jsdthreadstate->thread);
JSD_LOCK_THREADSTATES(jsdc);
valid = jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe);
JSD_UNLOCK_THREADSTATES(jsdc);
if( ! valid )
return JS_FALSE;
cx = jsdthreadstate->context;
JS_ASSERT(cx);
exceptionState = JS_SaveExceptionState(cx);
jsd_StartingEvalUsingFilename(jsdc, filename);
retval = JS_EvaluateInStackFrame(cx, jsdframe->fp, bytes, length,
filename, lineno, rval);
jsd_FinishedEvalUsingFilename(jsdc, filename);
JS_RestoreExceptionState(cx, exceptionState);
return retval;
}
JSString*
jsd_ValToStringInStackFrame(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe,
jsval val)
{
JSBool valid;
JSString* retval;
JSExceptionState* exceptionState;
JSContext* cx;
JSD_LOCK_THREADSTATES(jsdc);
valid = jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe);
JSD_UNLOCK_THREADSTATES(jsdc);
if( ! valid )
return NULL;
cx = jsdthreadstate->context;
JS_ASSERT(cx);
exceptionState = JS_SaveExceptionState(cx);
retval = JS_ValueToString(cx, val);
JS_RestoreExceptionState(cx, exceptionState);
return retval;
}
JSBool
jsd_IsValidThreadState(JSDContext* jsdc,
JSDThreadState* jsdthreadstate)
{
JSDThreadState *cur;
JS_ASSERT( JSD_THREADSTATES_LOCKED(jsdc) );
for( cur = (JSDThreadState*)jsdc->threadsStates.next;
cur != (JSDThreadState*)&jsdc->threadsStates;
cur = (JSDThreadState*)cur->links.next )
{
if( cur == jsdthreadstate )
return JS_TRUE;
}
return JS_FALSE;
}
JSBool
jsd_IsValidFrameInThreadState(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
JSDStackFrameInfo* jsdframe)
{
JS_ASSERT(JSD_THREADSTATES_LOCKED(jsdc));
if( ! jsd_IsValidThreadState(jsdc, jsdthreadstate) )
return JS_FALSE;
if( jsdframe->jsdthreadstate != jsdthreadstate )
return JS_FALSE;
JSD_ASSERT_VALID_THREAD_STATE(jsdthreadstate);
JSD_ASSERT_VALID_STACK_FRAME(jsdframe);
return JS_TRUE;
}
static JSContext*
_getContextForThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
{
JSBool valid;
JSD_LOCK_THREADSTATES(jsdc);
valid = jsd_IsValidThreadState(jsdc, jsdthreadstate);
JSD_UNLOCK_THREADSTATES(jsdc);
if( valid )
return jsdthreadstate->context;
return NULL;
}
JSDValue*
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
{
JSContext* cx;
jsval val;
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
return NULL;
if(JS_GetPendingException(cx, &val))
return jsd_NewValue(jsdc, val);
return NULL;
}
JSBool
jsd_SetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate,
JSDValue* jsdval)
{
JSContext* cx;
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
return JS_FALSE;
if(jsdval)
JS_SetPendingException(cx, JSD_GetValueWrappedJSVal(jsdc, jsdval));
else
JS_ClearPendingException(cx);
return JS_TRUE;
}

View File

@@ -1,116 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Stepping support
*/
#include "jsd.h"
/*
* #define JSD_TRACE 1
*/
#ifdef JSD_TRACE
static char*
_indentSpaces(int i)
{
#define MAX_INDENT 63
static char* p = NULL;
if(!p)
{
p = calloc(1, MAX_INDENT+1);
if(!p) return "";
memset(p, ' ', MAX_INDENT);
}
if(i > MAX_INDENT) return p;
return p + MAX_INDENT-i;
}
static void
_interpreterTrace(JSDContext* jsdc, JSContext *cx, JSStackFrame *fp,
JSBool before, JSBool *ok)
{
JSDScript* jsdscript = NULL;
JSScript * script;
static indent = 0;
char* buf;
const char* funName = NULL;
script = JS_GetFrameScript(cx, fp);
if(script)
{
JSD_LOCK_SCRIPTS(jsdc);
jsdscript = jsd_FindJSDScript(jsdc, script);
JSD_UNLOCK_SCRIPTS(jsdc);
if(jsdscript)
funName = JSD_GetScriptFunctionName(jsdc, jsdscript);
}
if(!funName)
funName = "TOP_LEVEL";
if(before)
{
buf = JS_smprintf("%sentering %s %s this: %0x\n",
_indentSpaces(indent++),
funName,
JS_IsContructorFrame(cx, fp) ? "constructing":"",
(int)JS_GetFrameThis(cx, fp));
}
else
{
buf = JS_smprintf("%sleaving %s\n",
_indentSpaces(--indent),
funName);
}
JS_ASSERT(indent >= 0);
if(!buf)
return;
printf(buf);
free(buf);
}
#endif
void * JS_DLL_CALLBACK
jsd_InterpreterHook(JSContext *cx, JSStackFrame *fp, JSBool before,
JSBool *ok, void *closure)
{
JSDContext* jsdc = (JSDContext*) closure;
if( ! jsdc || ! jsdc->inited )
return NULL;
if(before && JS_IsContructorFrame(cx, fp))
jsd_Constructing(jsdc, cx, JS_GetFrameThis(cx, fp), fp);
#ifdef JSD_TRACE
_interpreterTrace(jsdc, cx, fp, before, ok);
return closure;
#else
return NULL;
#endif
/*
* use this before calling any hook...
* if( JSD_IS_DANGEROUS_THREAD(jsdc) )
* return NULL;
*/
}

View File

@@ -1,547 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Source Text functions
*/
#include "jsd.h"
#ifdef DEBUG
void JSD_ASSERT_VALID_SOURCE_TEXT(JSDSourceText* jsdsrc)
{
JS_ASSERT(jsdsrc);
JS_ASSERT(jsdsrc->url);
}
#endif
/***************************************************************************/
/* XXX add notification */
static void
_clearText(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
if( jsdsrc->text )
free(jsdsrc->text);
jsdsrc->text = NULL;
jsdsrc->textLength = 0;
jsdsrc->textSpace = 0;
jsdsrc->status = JSD_SOURCE_CLEARED;
jsdsrc->dirty = JS_TRUE;
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
jsdsrc->doingEval = JS_FALSE;
}
static JSBool
_appendText(JSDContext* jsdc, JSDSourceText* jsdsrc,
const char* text, size_t length)
{
#define MEMBUF_GROW 1000
uintN neededSize = jsdsrc->textLength + length;
if( neededSize > jsdsrc->textSpace )
{
char* newBuf;
uintN iNewSize;
/* if this is the first alloc, the req might be all that's needed*/
if( ! jsdsrc->textSpace )
iNewSize = length;
else
iNewSize = (neededSize * 5 / 4) + MEMBUF_GROW;
newBuf = (char*) realloc(jsdsrc->text, iNewSize);
if( ! newBuf )
{
/* try again with the minimal size really asked for */
iNewSize = neededSize;
newBuf = (char*) realloc(jsdsrc->text, iNewSize);
if( ! newBuf )
{
/* out of memory */
_clearText( jsdc, jsdsrc );
jsdsrc->status = JSD_SOURCE_FAILED;
return JS_FALSE;
}
}
jsdsrc->text = newBuf;
jsdsrc->textSpace = iNewSize;
}
memcpy(jsdsrc->text + jsdsrc->textLength, text, length);
jsdsrc->textLength += length;
return JS_TRUE;
}
static JSDSourceText*
_newSource(JSDContext* jsdc, const char* url)
{
JSDSourceText* jsdsrc = (JSDSourceText*)calloc(1,sizeof(JSDSourceText));
if( ! jsdsrc )
return NULL;
jsdsrc->url = (char*) url; /* already a copy */
jsdsrc->status = JSD_SOURCE_INITED;
jsdsrc->dirty = JS_TRUE;
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
return jsdsrc;
}
static void
_destroySource(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
JS_ASSERT(NULL == jsdsrc->text); /* must _clearText() first */
free(jsdsrc->url);
free(jsdsrc);
}
static void
_removeSource(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
JS_REMOVE_LINK(&jsdsrc->links);
_clearText(jsdc, jsdsrc);
_destroySource(jsdc, jsdsrc);
}
static JSDSourceText*
_addSource(JSDContext* jsdc, const char* url)
{
JSDSourceText* jsdsrc = _newSource(jsdc, url);
if( ! jsdsrc )
return NULL;
JS_INSERT_LINK(&jsdsrc->links, &jsdc->sources);
return jsdsrc;
}
static void
_moveSourceToFront(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
JS_REMOVE_LINK(&jsdsrc->links);
JS_INSERT_LINK(&jsdsrc->links, &jsdc->sources);
}
static void
_moveSourceToRemovedList(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
_clearText(jsdc, jsdsrc);
JS_REMOVE_LINK(&jsdsrc->links);
JS_INSERT_LINK(&jsdsrc->links, &jsdc->removedSources);
}
static void
_removeSourceFromRemovedList( JSDContext* jsdc, JSDSourceText* jsdsrc )
{
JS_REMOVE_LINK(&jsdsrc->links);
_destroySource( jsdc, jsdsrc );
}
static JSBool
_isSourceInSourceList(JSDContext* jsdc, JSDSourceText* jsdsrcToFind)
{
JSDSourceText *jsdsrc;
for( jsdsrc = (JSDSourceText*)jsdc->sources.next;
jsdsrc != (JSDSourceText*)&jsdc->sources;
jsdsrc = (JSDSourceText*)jsdsrc->links.next )
{
if( jsdsrc == jsdsrcToFind )
return JS_TRUE;
}
return JS_FALSE;
}
/* compare strings in a case insensitive manner with a length limit
*/
static int
strncasecomp (const char* one, const char * two, int n)
{
const char *pA;
const char *pB;
for(pA=one, pB=two;; pA++, pB++)
{
int tmp;
if (pA == one+n)
return 0;
if (!(*pA && *pB))
return *pA - *pB;
tmp = tolower(*pA) - tolower(*pB);
if (tmp)
return tmp;
}
}
static char file_url_prefix[] = "file:";
#define FILE_URL_PREFIX_LEN (sizeof file_url_prefix - 1)
const char*
jsd_BuildNormalizedURL( const char* url_string )
{
char *new_url_string;
if( ! url_string )
return NULL;
if (!strncasecomp(url_string, file_url_prefix, FILE_URL_PREFIX_LEN) &&
url_string[FILE_URL_PREFIX_LEN + 0] == '/' &&
url_string[FILE_URL_PREFIX_LEN + 1] == '/') {
new_url_string = JS_smprintf("%s%s",
file_url_prefix,
url_string + FILE_URL_PREFIX_LEN + 2);
} else {
new_url_string = strdup(url_string);
}
return new_url_string;
}
/***************************************************************************/
void
jsd_DestroyAllSources( JSDContext* jsdc )
{
JSDSourceText *jsdsrc;
JSDSourceText *next;
for( jsdsrc = (JSDSourceText*)jsdc->sources.next;
jsdsrc != (JSDSourceText*)&jsdc->sources;
jsdsrc = next )
{
next = (JSDSourceText*)jsdsrc->links.next;
_removeSource( jsdc, jsdsrc );
}
for( jsdsrc = (JSDSourceText*)jsdc->removedSources.next;
jsdsrc != (JSDSourceText*)&jsdc->removedSources;
jsdsrc = next )
{
next = (JSDSourceText*)jsdsrc->links.next;
_removeSourceFromRemovedList( jsdc, jsdsrc );
}
}
JSDSourceText*
jsd_IterateSources(JSDContext* jsdc, JSDSourceText **iterp)
{
JSDSourceText *jsdsrc = *iterp;
if( !jsdsrc )
jsdsrc = (JSDSourceText *)jsdc->sources.next;
if( jsdsrc == (JSDSourceText *)&jsdc->sources )
return NULL;
*iterp = (JSDSourceText *)jsdsrc->links.next;
return jsdsrc;
}
JSDSourceText*
jsd_FindSourceForURL(JSDContext* jsdc, const char* url)
{
JSDSourceText *jsdsrc;
for( jsdsrc = (JSDSourceText *)jsdc->sources.next;
jsdsrc != (JSDSourceText *)&jsdc->sources;
jsdsrc = (JSDSourceText *)jsdsrc->links.next )
{
if( 0 == strcmp(jsdsrc->url, url) )
return jsdsrc;
}
return NULL;
}
const char*
jsd_GetSourceURL(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
return jsdsrc->url;
}
JSBool
jsd_GetSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc,
const char** ppBuf, intN* pLen )
{
*ppBuf = jsdsrc->text;
*pLen = jsdsrc->textLength;
return JS_TRUE;
}
void
jsd_ClearSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
if( JSD_SOURCE_INITED != jsdsrc->status &&
JSD_SOURCE_PARTIAL != jsdsrc->status )
{
_clearText(jsdc, jsdsrc);
}
}
JSDSourceStatus
jsd_GetSourceStatus(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
return jsdsrc->status;
}
JSBool
jsd_IsSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
return jsdsrc->dirty;
}
void
jsd_SetSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc, JSBool dirty)
{
jsdsrc->dirty = dirty;
}
uintN
jsd_GetSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
return jsdsrc->alterCount;
}
uintN
jsd_IncrementSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc)
{
return jsdsrc->alterCount = jsdc->sourceAlterCount++;
}
/***************************************************************************/
#if defined(DEBUG) && 0
void DEBUG_ITERATE_SOURCES( JSDContext* jsdc )
{
JSDSourceText* iterp = NULL;
JSDSourceText* jsdsrc = NULL;
int dummy;
while( NULL != (jsdsrc = jsd_IterateSources(jsdc, &iterp)) )
{
const char* url;
const char* text;
int len;
JSBool dirty;
JSDStreamStatus status;
JSBool gotSrc;
url = JSD_GetSourceURL(jsdc, jsdsrc);
dirty = JSD_IsSourceDirty(jsdc, jsdsrc);
status = JSD_GetSourceStatus(jsdc, jsdsrc);
gotSrc = JSD_GetSourceText(jsdc, jsdsrc, &text, &len );
dummy = 0; /* gives us a line to set breakpoint... */
}
}
#else
#define DEBUG_ITERATE_SOURCES(x) ((void)x)
#endif
/***************************************************************************/
JSDSourceText*
jsd_NewSourceText(JSDContext* jsdc, const char* url)
{
JSDSourceText* jsdsrc;
const char* new_url_string;
JSD_LOCK_SOURCE_TEXT(jsdc);
#ifdef LIVEWIRE
new_url_string = url; /* we take ownership of alloc'd string */
#else
new_url_string = jsd_BuildNormalizedURL(url);
#endif
if( ! new_url_string )
return NULL;
jsdsrc = jsd_FindSourceForURL(jsdc, new_url_string);
if( jsdsrc )
{
if( jsdsrc->doingEval )
{
#ifdef LIVEWIRE
free((char*)new_url_string);
#endif
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return NULL;
}
else
_moveSourceToRemovedList(jsdc, jsdsrc);
}
jsdsrc = _addSource( jsdc, new_url_string );
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return jsdsrc;
}
JSDSourceText*
jsd_AppendSourceText(JSDContext* jsdc,
JSDSourceText* jsdsrc,
const char* text, /* *not* zero terminated */
size_t length,
JSDSourceStatus status)
{
JSD_LOCK_SOURCE_TEXT(jsdc);
if( jsdsrc->doingEval )
{
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return NULL;
}
if( ! _isSourceInSourceList( jsdc, jsdsrc ) )
{
_removeSourceFromRemovedList( jsdc, jsdsrc );
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return NULL;
}
if( text && length && ! _appendText( jsdc, jsdsrc, text, length ) )
{
jsdsrc->dirty = JS_TRUE;
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
jsdsrc->status = JSD_SOURCE_FAILED;
_moveSourceToRemovedList(jsdc, jsdsrc);
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return NULL;
}
jsdsrc->dirty = JS_TRUE;
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
jsdsrc->status = status;
DEBUG_ITERATE_SOURCES(jsdc);
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return jsdsrc;
}
JSDSourceText*
jsd_AppendUCSourceText(JSDContext* jsdc,
JSDSourceText* jsdsrc,
const jschar* text, /* *not* zero terminated */
size_t length,
JSDSourceStatus status)
{
#define UNICODE_TRUNCATE_BUF_SIZE 1024
static char* buf = NULL;
int remaining = length;
if(!text || !length)
return jsd_AppendSourceText(jsdc, jsdsrc, NULL, 0, status);
JSD_LOCK_SOURCE_TEXT(jsdc);
if(!buf)
{
buf = malloc(UNICODE_TRUNCATE_BUF_SIZE);
if(!buf)
{
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return NULL;
}
}
while(remaining && jsdsrc) {
int bytes = JS_MIN(remaining, UNICODE_TRUNCATE_BUF_SIZE);
int i;
for(i = 0; i < bytes; i++)
buf[i] = (const char) *(text++);
jsdsrc = jsd_AppendSourceText(jsdc,jsdsrc,
buf, bytes,
JSD_SOURCE_PARTIAL);
remaining -= bytes;
}
if(jsdsrc && status != JSD_SOURCE_PARTIAL)
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc, NULL, 0, status);
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return jsdsrc;
}
/* convienence function for adding complete source of url in one call */
JSBool
jsd_AddFullSourceText(JSDContext* jsdc,
const char* text, /* *not* zero terminated */
size_t length,
const char* url)
{
JSDSourceText* jsdsrc;
JSD_LOCK_SOURCE_TEXT(jsdc);
jsdsrc = jsd_NewSourceText(jsdc, url);
if( jsdsrc )
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc,
text, length, JSD_SOURCE_PARTIAL );
if( jsdsrc )
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc,
NULL, 0, JSD_SOURCE_COMPLETED );
JSD_UNLOCK_SOURCE_TEXT(jsdc);
return jsdsrc ? JS_TRUE : JS_FALSE;
}
/***************************************************************************/
void
jsd_StartingEvalUsingFilename(JSDContext* jsdc, const char* url)
{
JSDSourceText* jsdsrc;
/* NOTE: We leave it locked! */
JSD_LOCK_SOURCE_TEXT(jsdc);
jsdsrc = jsd_FindSourceForURL(jsdc, url);
if(jsdsrc)
{
#if 0
#ifndef JSD_LOWLEVEL_SOURCE
JS_ASSERT(! jsdsrc->doingEval);
#endif
#endif
jsdsrc->doingEval = JS_TRUE;
}
}
void
jsd_FinishedEvalUsingFilename(JSDContext* jsdc, const char* url)
{
JSDSourceText* jsdsrc;
/* NOTE: We ASSUME it is locked! */
jsdsrc = jsd_FindSourceForURL(jsdc, url);
if(jsdsrc)
{
#if 0
#ifndef JSD_LOWLEVEL_SOURCE
/*
* when using this low level source addition, this jsdsrc might
* not have existed before the eval, but does exist now (without
* this flag set!)
*/
JS_ASSERT(jsdsrc->doingEval);
#endif
#endif
jsdsrc->doingEval = JS_FALSE;
}
JSD_UNLOCK_SOURCE_TEXT(jsdc);
}

View File

@@ -1,601 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JavaScript Debugging support - Value and Property support
*/
#include "jsd.h"
#ifdef DEBUG
void JSD_ASSERT_VALID_VALUE(JSDValue* jsdval)
{
JS_ASSERT(jsdval);
JS_ASSERT(jsdval->nref > 0);
if(!JS_CLIST_IS_EMPTY(&jsdval->props))
{
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS));
JS_ASSERT(JSVAL_IS_OBJECT(jsdval->val));
}
if(jsdval->proto)
{
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PROTO));
JS_ASSERT(jsdval->proto->nref > 0);
}
if(jsdval->parent)
{
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PARENT));
JS_ASSERT(jsdval->parent->nref > 0);
}
if(jsdval->ctor)
{
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_CTOR));
JS_ASSERT(jsdval->ctor->nref > 0);
}
}
void JSD_ASSERT_VALID_PROPERTY(JSDProperty* jsdprop)
{
JS_ASSERT(jsdprop);
JS_ASSERT(jsdprop->name);
JS_ASSERT(jsdprop->name->nref > 0);
JS_ASSERT(jsdprop->val);
JS_ASSERT(jsdprop->val->nref > 0);
if(jsdprop->alias)
JS_ASSERT(jsdprop->alias->nref > 0);
}
#endif
JSBool
jsd_IsValueObject(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_OBJECT(jsdval->val);
}
JSBool
jsd_IsValueNumber(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_NUMBER(jsdval->val);
}
JSBool
jsd_IsValueInt(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_INT(jsdval->val);
}
JSBool
jsd_IsValueDouble(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_DOUBLE(jsdval->val);
}
JSBool
jsd_IsValueString(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_STRING(jsdval->val);
}
JSBool
jsd_IsValueBoolean(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_BOOLEAN(jsdval->val);
}
JSBool
jsd_IsValueNull(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_NULL(jsdval->val);
}
JSBool
jsd_IsValueVoid(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_VOID(jsdval->val);
}
JSBool
jsd_IsValuePrimitive(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_PRIMITIVE(jsdval->val);
}
JSBool
jsd_IsValueFunction(JSDContext* jsdc, JSDValue* jsdval)
{
return JSVAL_IS_FUNCTION(jsdc->dumbContext, jsdval->val);
}
JSBool
jsd_IsValueNative(JSDContext* jsdc, JSDValue* jsdval)
{
JSContext* cx = jsdc->dumbContext;
jsval val = jsdval->val;
JSFunction* fun;
JSExceptionState* exceptionState;
if(!JSVAL_IS_OBJECT(val))
return JS_FALSE;
if(JSVAL_IS_FUNCTION(cx, val))
{
exceptionState = JS_SaveExceptionState(cx);
fun = JS_ValueToFunction(cx, val);
JS_RestoreExceptionState(cx, exceptionState);
if(!fun)
{
JS_ASSERT(0);
return JS_FALSE;
}
return JS_GetFunctionScript(cx, fun) ? JS_FALSE : JS_TRUE;
}
return JSVAL_TO_OBJECT(val) && OBJ_IS_NATIVE(JSVAL_TO_OBJECT(val));
}
/***************************************************************************/
JSBool
jsd_GetValueBoolean(JSDContext* jsdc, JSDValue* jsdval)
{
jsval val = jsdval->val;
if(!JSVAL_IS_BOOLEAN(val))
return JS_FALSE;
return JSVAL_TO_BOOLEAN(val);
}
int32
jsd_GetValueInt(JSDContext* jsdc, JSDValue* jsdval)
{
jsval val = jsdval->val;
if(!JSVAL_IS_INT(val))
return 0;
return JSVAL_TO_INT(val);
}
jsdouble*
jsd_GetValueDouble(JSDContext* jsdc, JSDValue* jsdval)
{
jsval val = jsdval->val;
if(!JSVAL_IS_DOUBLE(val))
return 0;
return JSVAL_TO_DOUBLE(val);
}
JSString*
jsd_GetValueString(JSDContext* jsdc, JSDValue* jsdval)
{
JSContext* cx = jsdc->dumbContext;
JSExceptionState* exceptionState;
if(!jsdval->string)
{
/* if the jsval is a string, then we don't need to double root it */
if(JSVAL_IS_STRING(jsdval->val))
jsdval->string = JSVAL_TO_STRING(jsdval->val);
else
{
exceptionState = JS_SaveExceptionState(cx);
jsdval->string = JS_ValueToString(cx, jsdval->val);
JS_RestoreExceptionState(cx, exceptionState);
if(jsdval->string)
{
if(!JS_AddRoot(cx, &jsdval->string))
jsdval->string = NULL;
}
}
}
return jsdval->string;
}
const char*
jsd_GetValueFunctionName(JSDContext* jsdc, JSDValue* jsdval)
{
JSContext* cx = jsdc->dumbContext;
jsval val = jsdval->val;
JSFunction* fun;
JSExceptionState* exceptionState;
if(!jsdval->funName && JSVAL_IS_FUNCTION(cx, val))
{
exceptionState = JS_SaveExceptionState(cx);
fun = JS_ValueToFunction(cx, val);
JS_RestoreExceptionState(cx, exceptionState);
if(!fun)
return NULL;
jsdval->funName = JS_GetFunctionName(fun);
}
return jsdval->funName;
}
/***************************************************************************/
JSDValue*
jsd_NewValue(JSDContext* jsdc, jsval val)
{
JSDValue* jsdval;
if(!(jsdval = (JSDValue*) calloc(1, sizeof(JSDValue))))
return NULL;
if(JSVAL_IS_GCTHING(val))
{
if(!JS_AddRoot(jsdc->dumbContext, &jsdval->val))
{
free(jsdval);
return NULL;
}
}
jsdval->val = val;
jsdval->nref = 1;
JS_INIT_CLIST(&jsdval->props);
return jsdval;
}
void
jsd_DropValue(JSDContext* jsdc, JSDValue* jsdval)
{
JS_ASSERT(jsdval->nref > 0);
if(0 == --jsdval->nref)
{
jsd_RefreshValue(jsdc, jsdval);
if(JSVAL_IS_GCTHING(jsdval->val))
JS_RemoveRoot(jsdc->dumbContext, &jsdval->val);
free(jsdval);
}
}
jsval
jsd_GetValueWrappedJSVal(JSDContext* jsdc, JSDValue* jsdval)
{
return jsdval->val;
}
static JSDProperty* _newProperty(JSDContext* jsdc, JSPropertyDesc* pd,
uintN additionalFlags)
{
JSDProperty* jsdprop;
if(!(jsdprop = (JSDProperty*) calloc(1, sizeof(JSDProperty))))
return NULL;
JS_INIT_CLIST(&jsdprop->links);
jsdprop->nref = 1;
jsdprop->flags = pd->flags | additionalFlags;
jsdprop->slot = pd->slot;
if(!(jsdprop->name = jsd_NewValue(jsdc, pd->id)))
goto new_prop_fail;
if(!(jsdprop->val = jsd_NewValue(jsdc, pd->value)))
goto new_prop_fail;
if((jsdprop->flags & JSDPD_ALIAS) &&
!(jsdprop->alias = jsd_NewValue(jsdc, pd->alias)))
goto new_prop_fail;
return jsdprop;
new_prop_fail:
jsd_DropProperty(jsdc, jsdprop);
return NULL;
}
static void _freeProps(JSDContext* jsdc, JSDValue* jsdval)
{
JSDProperty* jsdprop;
while(jsdprop = (JSDProperty*)jsdval->props.next,
jsdprop != (JSDProperty*)&jsdval->props)
{
JS_REMOVE_AND_INIT_LINK(&jsdprop->links);
jsd_DropProperty(jsdc, jsdprop);
}
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdval->props));
CLEAR_BIT_FLAG(jsdval->flags, GOT_PROPS);
}
static JSBool _buildProps(JSDContext* jsdc, JSDValue* jsdval)
{
JSContext* cx = jsdc->dumbContext;
JSPropertyDescArray pda;
uintN i;
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdval->props));
JS_ASSERT(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)));
JS_ASSERT(JSVAL_IS_OBJECT(jsdval->val));
if(!JSVAL_IS_OBJECT(jsdval->val) || JSVAL_IS_NULL(jsdval->val))
return JS_FALSE;
if(!JS_GetPropertyDescArray(cx, JSVAL_TO_OBJECT(jsdval->val), &pda))
return JS_FALSE;
for(i = 0; i < pda.length; i++)
{
JSDProperty* prop = _newProperty(jsdc, &pda.array[i], 0);
if(!prop)
{
_freeProps(jsdc, jsdval);
break;
}
JS_APPEND_LINK(&prop->links, &jsdval->props);
}
JS_PutPropertyDescArray(cx, &pda);
SET_BIT_FLAG(jsdval->flags, GOT_PROPS);
return !JS_CLIST_IS_EMPTY(&jsdval->props);
}
#undef DROP_CLEAR_VALUE
#define DROP_CLEAR_VALUE(jsdc, x) if(x){jsd_DropValue(jsdc,x); x = NULL;}
void
jsd_RefreshValue(JSDContext* jsdc, JSDValue* jsdval)
{
JSContext* cx = jsdc->dumbContext;
if(jsdval->string)
{
/* if the jsval is a string, then we didn't need to root the string */
if(!JSVAL_IS_STRING(jsdval->val))
JS_RemoveRoot(cx, &jsdval->string);
jsdval->string = NULL;
}
jsdval->funName = NULL;
jsdval->className = NULL;
DROP_CLEAR_VALUE(jsdc, jsdval->proto);
DROP_CLEAR_VALUE(jsdc, jsdval->parent);
DROP_CLEAR_VALUE(jsdc, jsdval->ctor);
_freeProps(jsdc, jsdval);
jsdval->flags = 0;
}
/***************************************************************************/
uintN
jsd_GetCountOfProperties(JSDContext* jsdc, JSDValue* jsdval)
{
JSDProperty* jsdprop;
uintN count = 0;
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)))
if(!_buildProps(jsdc, jsdval))
return 0;
for(jsdprop = (JSDProperty*)jsdval->props.next;
jsdprop != (JSDProperty*)&jsdval->props;
jsdprop = (JSDProperty*)jsdprop->links.next)
{
count++;
}
return count;
}
JSDProperty*
jsd_IterateProperties(JSDContext* jsdc, JSDValue* jsdval, JSDProperty **iterp)
{
JSDProperty* jsdprop = *iterp;
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)))
{
JS_ASSERT(!jsdprop);
if(!_buildProps(jsdc, jsdval))
return NULL;
}
if(!jsdprop)
jsdprop = (JSDProperty*)jsdval->props.next;
if(jsdprop == (JSDProperty*)&jsdval->props)
return NULL;
*iterp = (JSDProperty*)jsdprop->links.next;
JS_ASSERT(jsdprop);
jsdprop->nref++;
return jsdprop;
}
JSDProperty*
jsd_GetValueProperty(JSDContext* jsdc, JSDValue* jsdval, JSString* name)
{
JSContext* cx = jsdc->dumbContext;
JSDProperty* jsdprop;
JSDProperty* iter = NULL;
JSObject* obj;
uintN attrs = 0;
JSBool found;
JSPropertyDesc pd;
const jschar * nameChars;
size_t nameLen;
jsval val;
if(!jsd_IsValueObject(jsdc, jsdval))
return NULL;
/* If we already have the prop, then return it */
while(NULL != (jsdprop = jsd_IterateProperties(jsdc, jsdval, &iter)))
{
JSString* propName = jsd_GetValueString(jsdc, jsdprop->name);
if(propName && !JS_CompareStrings(propName, name))
return jsdprop;
JSD_DropProperty(jsdc, jsdprop);
}
/* Not found in property list, look it up explicitly */
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
return NULL;
nameChars = JS_GetStringChars(name);
nameLen = JS_GetStringLength(name);
/* It's OK if this fails - we just don't get attribs */
JS_GetUCPropertyAttributes(cx, obj, nameChars, nameLen, &attrs, &found);
if(!JS_GetUCProperty(cx, obj, nameChars, nameLen, &val))
return NULL;
/* XXX screwy! no good way to detect that property does not exist at all */
if(!found && JSVAL_IS_VOID(val))
return NULL;
pd.id = STRING_TO_JSVAL(name);
pd.value = val;
pd.alias = pd.slot = pd.spare = 0;
pd.flags = 0
| (attrs & JSPROP_ENUMERATE) ? JSPD_ENUMERATE : 0
| (attrs & JSPROP_READONLY) ? JSPD_READONLY : 0
| (attrs & JSPROP_PERMANENT) ? JSPD_PERMANENT : 0;
return _newProperty(jsdc, &pd, JSDPD_HINTED);
}
JSDValue*
jsd_GetValuePrototype(JSDContext* jsdc, JSDValue* jsdval)
{
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROTO)))
{
JSObject* obj;
JSObject* proto;
JS_ASSERT(!jsdval->proto);
SET_BIT_FLAG(jsdval->flags, GOT_PROTO);
if(!JSVAL_IS_OBJECT(jsdval->val))
return NULL;
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
return NULL;
if(!(proto = OBJ_GET_PROTO(jsdc->dumbContext,obj)))
return NULL;
jsdval->proto = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(proto));
}
if(jsdval->proto)
jsdval->proto->nref++;
return jsdval->proto;
}
JSDValue*
jsd_GetValueParent(JSDContext* jsdc, JSDValue* jsdval)
{
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PARENT)))
{
JSObject* obj;
JSObject* parent;
JS_ASSERT(!jsdval->parent);
SET_BIT_FLAG(jsdval->flags, GOT_PARENT);
if(!JSVAL_IS_OBJECT(jsdval->val))
return NULL;
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
return NULL;
if(!(parent = OBJ_GET_PARENT(jsdc->dumbContext,obj)))
return NULL;
jsdval->parent = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(parent));
}
if(jsdval->parent)
jsdval->parent->nref++;
return jsdval->parent;
}
JSDValue*
jsd_GetValueConstructor(JSDContext* jsdc, JSDValue* jsdval)
{
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_CTOR)))
{
JSObject* obj;
JSObject* proto;
JSObject* ctor;
JS_ASSERT(!jsdval->ctor);
SET_BIT_FLAG(jsdval->flags, GOT_CTOR);
if(!JSVAL_IS_OBJECT(jsdval->val))
return NULL;
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
return NULL;
if(!(proto = OBJ_GET_PROTO(jsdc->dumbContext,obj)))
return NULL;
if(!(ctor = JS_GetConstructor(jsdc->dumbContext,proto)))
return NULL;
jsdval->ctor = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(ctor));
}
if(jsdval->ctor)
jsdval->ctor->nref++;
return jsdval->ctor;
}
const char*
jsd_GetValueClassName(JSDContext* jsdc, JSDValue* jsdval)
{
jsval val = jsdval->val;
if(!jsdval->className && JSVAL_IS_OBJECT(val))
{
JSObject* obj;
if(!(obj = JSVAL_TO_OBJECT(val)))
return NULL;
if(OBJ_GET_CLASS(jsdc->dumbContext, obj))
jsdval->className = OBJ_GET_CLASS(jsdc->dumbContext, obj)->name;
}
return jsdval->className;
}
/***************************************************************************/
/***************************************************************************/
JSDValue*
jsd_GetPropertyName(JSDContext* jsdc, JSDProperty* jsdprop)
{
jsdprop->name->nref++;
return jsdprop->name;
}
JSDValue*
jsd_GetPropertyValue(JSDContext* jsdc, JSDProperty* jsdprop)
{
jsdprop->val->nref++;
return jsdprop->val;
}
JSDValue*
jsd_GetPropertyAlias(JSDContext* jsdc, JSDProperty* jsdprop)
{
if(jsdprop->alias)
jsdprop->alias->nref++;
return jsdprop->alias;
}
JSDPropertyFlags
jsd_GetPropertyFlags(JSDContext* jsdc, JSDProperty* jsdprop)
{
return jsdprop->flags;
}
uintN
jsd_GetPropertyVarArgSlot(JSDContext* jsdc, JSDProperty* jsdprop)
{
return jsdprop->slot;
}
void
jsd_DropProperty(JSDContext* jsdc, JSDProperty* jsdprop)
{
JS_ASSERT(jsdprop->nref > 0);
if(0 == --jsdprop->nref)
{
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdprop->links));
DROP_CLEAR_VALUE(jsdc, jsdprop->val);
DROP_CLEAR_VALUE(jsdc, jsdprop->name);
DROP_CLEAR_VALUE(jsdc, jsdprop->alias);
free(jsdprop);
}
}

View File

@@ -1,12 +0,0 @@
/* jband - 10/26/98 - */
js/jsd/jsdb is a console debugger using only native code. It is experimental.
The only makefile supplied is for Win32.
jsdb.mak will build a debugger enabled js/src/js.c shell. The debugger is
implemented by reflecting the JSD api into JavaScript. The actual debugger
logic is fully implemented in debugger.js. The debugger can debug itself. It
can also be modified and reloaded at runtime.
The JavaScript keyword 'debugger' is used to break into the debugger. A 'help()'
command is supplied to show available commands when exectution is stopped.

File diff suppressed because it is too large Load Diff

View File

@@ -1,46 +0,0 @@
/**
* for(var p in Script.scripts) {
*
* var script = Script.scripts[p];
* var handle = script.handle;
* var base = script.base;
* var limit = base + script.extent;
*
* print(script+"\n");
*
* for(var i = base; i < limit; i++) {
* var pc = jsd.GetClosestPC(handle,i)
* var hascode = String(pc).length && i == jsd.GetClosestLine(handle,pc);
* print("line "+i+" "+ (hascode ? "has code" : "has NO code"));
* }
* print("...............................\n");
* }
*/
function rlocals()
{
var retval = "";
var name = "___UNIQUE_NAME__";
var fun = ""+
"var text = \\\"\\\";"+
"for(var p in ob)"+
"{"+
" if(text != \\\"\\\")"+
" text += \\\",\\\";"+
" text += p;"+
"}"+
"return text;";
reval(name+" = new Function(\"ob\",\""+fun+"\")");
// show(name);
retval = _reval([name+"("+"arguments.callee"+")"]);
reval("delete "+name);
return retval;
}
function e(a)
{
return eval(a);
}

View File

@@ -1,449 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* JSDB public and callback functions
*/
#include "jsdbpriv.h"
/***************************************************************************/
JS_STATIC_DLL_CALLBACK(void)
_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
{
int i, j, k, n;
fputs("jsdb: ", stderr);
if (!report) {
fprintf(stderr, "%s\n", message);
return;
}
if (report->filename)
fprintf(stderr, "%s, ", report->filename);
if (report->lineno)
fprintf(stderr, "line %u: ", report->lineno);
fputs(message, stderr);
if (!report->linebuf) {
putc('\n', stderr);
return;
}
fprintf(stderr, ":\n%s\n", report->linebuf);
n = report->tokenptr - report->linebuf;
for (i = j = 0; i < n; i++) {
if (report->linebuf[i] == '\t') {
for (k = (j + 8) & ~7; j < k; j++)
putc('.', stderr);
continue;
}
putc('.', stderr);
j++;
}
fputs("^\n", stderr);
}
JS_STATIC_DLL_CALLBACK(void)
jsdb_ScriptHookProc(JSDContext* jsdc,
JSDScript* jsdscript,
JSBool creating,
void* callerdata)
{
JSDB_Data* data = (JSDB_Data*) callerdata;
JSFunction* fun;
if(data->jsScriptHook &&
NULL != (fun = JS_ValueToFunction(data->cxDebugger, data->jsScriptHook)))
{
jsval result;
jsval args[2] = {P2H_SCRIPT(data->cxDebugger, jsdscript),
creating ? JSVAL_TRUE : JSVAL_FALSE };
JS_CallFunction(data->cxDebugger, NULL, fun, 2, args, &result);
}
}
uintN JS_DLL_CALLBACK
jsdb_ExecHookHandler(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
uintN type,
void* callerdata,
jsval* rval)
{
uintN ourRetVal = JSD_HOOK_RETURN_CONTINUE;
jsval result;
JSFunction* fun;
int answer;
JSDB_Data* data = (JSDB_Data*) callerdata;
JS_ASSERT(data);
/* if we're already stopped, then don't stop */
if(data->jsdthreadstate)
return JSD_HOOK_RETURN_CONTINUE;
if(!jsdb_SetThreadState(data, jsdthreadstate))
goto label_bail;
if(data->jsExecutionHook &&
NULL != (fun = JS_ValueToFunction(data->cxDebugger, data->jsExecutionHook)))
{
jsval arg = INT_TO_JSVAL((int)type);
if(!JS_CallFunction(data->cxDebugger, NULL, fun, 1, &arg, &result))
goto label_bail;
if(!JSVAL_IS_INT(result))
goto label_bail;
answer = JSVAL_TO_INT(result);
if((answer == JSD_HOOK_RETURN_RET_WITH_VAL ||
answer == JSD_HOOK_RETURN_THROW_WITH_VAL) &&
!jsdb_EvalReturnExpression(data, rval))
{
goto label_bail;
}
if(answer >= JSD_HOOK_RETURN_HOOK_ERROR &&
answer <= JSD_HOOK_RETURN_CONTINUE_THROW)
ourRetVal = answer;
else
ourRetVal = JSD_HOOK_RETURN_CONTINUE;
}
label_bail:
jsdb_SetThreadState(data, NULL);
return ourRetVal;
}
typedef enum
{
ARG_MSG = 0,
ARG_FILENAME,
ARG_LINENO,
ARG_LINEBUF,
ARG_TOKEN_OFFSET,
ARG_LIMIT
} ER_ARGS;
uintN JS_DLL_CALLBACK
jsdb_ErrorReporter(JSDContext* jsdc,
JSContext* cx,
const char* message,
JSErrorReport* report,
void* callerdata)
{
uintN ourRetVal = JSD_ERROR_REPORTER_PASS_ALONG;
jsval result;
JSFunction* fun;
int32 answer;
JSDB_Data* data = (JSDB_Data*) callerdata;
JS_ASSERT(data);
if(data->jsErrorReporterHook &&
NULL != (fun = JS_ValueToFunction(data->cxDebugger,
data->jsErrorReporterHook)))
{
jsval args[ARG_LIMIT] = {JSVAL_NULL};
if(message)
args[ARG_MSG] =
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, message));
if(report && report->filename)
args[ARG_FILENAME] =
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, report->filename));
if(report && report->linebuf)
args[ARG_LINEBUF] =
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, report->linebuf));
if(report)
args[ARG_LINENO] =
INT_TO_JSVAL(report->lineno);
if(report && report->linebuf && report->tokenptr)
args[ARG_TOKEN_OFFSET] =
INT_TO_JSVAL((int)(report->tokenptr - report->linebuf));
if(!JS_CallFunction(data->cxDebugger, NULL, fun, ARG_LIMIT, args, &result))
return ourRetVal;
if(JS_ValueToInt32(data->cxDebugger, result, &answer))
ourRetVal = (uintN) answer;
}
return ourRetVal;
}
JS_STATIC_DLL_CALLBACK(JSBool)
Load(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
uintN i;
JSString *str;
const char *filename;
JSScript *script;
JSBool ok;
jsval result;
ok = JS_TRUE;
for (i = 0; i < argc; i++) {
str = JS_ValueToString(cx, argv[i]);
if (!str) {
ok = JS_FALSE;
break;
}
argv[i] = STRING_TO_JSVAL(str);
filename = JS_GetStringBytes(str);
errno = 0;
script = JS_CompileFile(cx, obj, filename);
if (!script)
continue;
ok = JS_ExecuteScript(cx, obj, script, &result);
JS_DestroyScript(cx, script);
if (!ok)
break;
}
JS_GC(cx);
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
return ok;
}
JS_STATIC_DLL_CALLBACK(JSBool)
Write(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
JSString *str = JS_ValueToString(cx, argv[0]);
if (!str)
return JS_FALSE;
printf(JS_GetStringBytes(str));
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
return JS_TRUE;
}
JS_STATIC_DLL_CALLBACK(JSBool)
Gets(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
char buf[1024];
if(! gets(buf))
return JS_FALSE;
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, buf));
return JS_TRUE;
}
JS_STATIC_DLL_CALLBACK(JSBool)
Version(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
if (argc > 0 && JSVAL_IS_INT(argv[0]))
*rval = INT_TO_JSVAL(JS_SetVersion(cx, JSVAL_TO_INT(argv[0])));
else
*rval = INT_TO_JSVAL(JS_GetVersion(cx));
return JS_TRUE;
}
JS_STATIC_DLL_CALLBACK(JSBool)
SafeEval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
static char default_filename[] = "jsdb_eval";
/* JSContext *cx2; */
JSString* textJSString;
char* filename;
int32 lineno;
JSDB_Data* data = (JSDB_Data*) JS_GetContextPrivate(cx);
JS_ASSERT(data);
if(argc < 1 || !(textJSString = JS_ValueToString(cx, argv[0])))
{
JS_ReportError(cx, "safeEval requires source text as a first argument");
return JS_FALSE;
}
if(argc < 2)
filename = default_filename;
else
{
JSString* filenameJSString;
if(!(filenameJSString = JS_ValueToString(cx, argv[1])))
{
JS_ReportError(cx, "safeEval passed non-string filename as 2nd param");
return JS_FALSE;
}
filename = JS_GetStringBytes(filenameJSString);
}
if(argc < 3)
lineno = 1;
else
{
if(!JS_ValueToInt32(cx, argv[2], &lineno))
{
JS_ReportError(cx, "safeEval passed non-int lineno as 3rd param");
return JS_FALSE;
}
}
if(! JS_EvaluateScript(cx, obj,
JS_GetStringBytes(textJSString),
JS_GetStringLength(textJSString),
filename, lineno, rval))
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
return JS_TRUE;
}
JS_STATIC_DLL_CALLBACK(JSBool)
NativeBreak(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
#ifdef _WINDOWS
_asm int 3;
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,"did _asm int 3;"));
#else
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,"only supported for Windows"));
#endif
return JS_TRUE;
}
static JSFunctionSpec debugger_functions[] = {
{"version", Version, 0},
{"load", Load, 1},
{"write", Write, 0},
{"gets", Gets, 0},
{"safeEval", SafeEval, 3},
{"nativeBreak", NativeBreak, 0},
{0}
};
static JSClass debugger_global_class = {
"debugger_global", 0,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
};
/***************************************************************************/
#ifdef JSD_LOWLEVEL_SOURCE
/*
* This facilitates sending source to JSD (the debugger system) in the shell
* where the source is loaded using the JSFILE hack in jsscan. The function
* below is used as a callback for the jsdbgapi JS_SetSourceHandler hook.
* A more normal embedding (e.g. mozilla) loads source itself and can send
* source directly to JSD without using this hook scheme.
*/
static void
SendSourceToJSDebugger(const char *filename, uintN lineno,
jschar *str, size_t length,
void **listenerTSData, JSDContext* jsdc)
{
JSDSourceText *jsdsrc = (JSDSourceText *) *listenerTSData;
if (!jsdsrc) {
if (!filename)
filename = "typein";
if (1 == lineno) {
jsdsrc = JSD_NewSourceText(jsdc, filename);
} else {
jsdsrc = JSD_FindSourceForURL(jsdc, filename);
if (jsdsrc && JSD_SOURCE_PARTIAL !=
JSD_GetSourceStatus(jsdc, jsdsrc)) {
jsdsrc = NULL;
}
}
}
if (jsdsrc) {
jsdsrc = JSD_AppendUCSourceText(jsdc,jsdsrc, str, length,
JSD_SOURCE_PARTIAL);
}
*listenerTSData = jsdsrc;
}
#endif /* JSD_LOWLEVEL_SOURCE */
static JSBool
_initReturn(const char* str, JSBool retval)
{
if(str)
printf("%s\n", str);
if(retval)
; /* printf("debugger initialized\n"); */
else
{
JS_ASSERT(0);
printf("debugger FAILED to initialize\n");
}
return retval;
}
#define MAX_DEBUGGER_DEPTH 3
JS_EXPORT_API(JSBool)
JSDB_InitDebugger(JSRuntime* rt, JSDContext* jsdc, int depth)
{
jsval rvalIgnore;
static char load_deb[] = "load('debugger.js')";
JSDB_Data* data = (JSDB_Data*) calloc(1, sizeof(JSDB_Data));
if(!data)
return _initReturn("memory alloc error", JS_FALSE);
data->rtTarget = rt;
data->jsdcTarget = jsdc;
data->debuggerDepth = depth+1;
if(!(data->rtDebugger = JS_NewRuntime(8L * 1024L * 1024L)))
return _initReturn("debugger runtime creation error", JS_FALSE);
if(!(data->cxDebugger = JS_NewContext(data->rtDebugger, 8192)))
return _initReturn("debugger creation error", JS_FALSE);
JS_SetContextPrivate(data->cxDebugger, data);
JS_SetErrorReporter(data->cxDebugger, _ErrorReporter);
if(!(data->globDebugger =
JS_NewObject(data->cxDebugger, &debugger_global_class, NULL, NULL)))
return _initReturn("debugger global object creation error", JS_FALSE);
if(!JS_InitStandardClasses(data->cxDebugger, data->globDebugger))
return _initReturn("debugger InitStandardClasses error", JS_FALSE);
if(!JS_DefineFunctions(data->cxDebugger, data->globDebugger, debugger_functions))
return _initReturn("debugger DefineFunctions error", JS_FALSE);
if(!jsdb_ReflectJSD(data))
return _initReturn("debugger reflection of JSD API error", JS_FALSE);
if(data->debuggerDepth < MAX_DEBUGGER_DEPTH)
{
JSDContext* jsdc;
if(!(jsdc = JSD_DebuggerOnForUser(data->rtDebugger, NULL, NULL)))
return _initReturn("failed to create jsdc for nested debugger", JS_FALSE);
JSD_JSContextInUse(jsdc, data->cxDebugger);
if(!JSDB_InitDebugger(data->rtDebugger, jsdc, data->debuggerDepth))
return _initReturn("failed to init nested debugger", JS_FALSE);
}
JSD_SetScriptHook(jsdc, jsdb_ScriptHookProc, data);
JSD_SetDebuggerHook(jsdc, jsdb_ExecHookHandler, data);
JSD_SetThrowHook(jsdc, jsdb_ExecHookHandler, data);
JSD_SetDebugBreakHook(jsdc, jsdb_ExecHookHandler, data);
JSD_SetErrorReporter(jsdc, jsdb_ErrorReporter, data);
#ifdef JSD_LOWLEVEL_SOURCE
JS_SetSourceHandler(data->rtDebugger, SendSourceToJSDebugger, jsdc);
#endif /* JSD_LOWLEVEL_SOURCE */
JS_EvaluateScript(data->cxDebugger, data->globDebugger,
load_deb, sizeof(load_deb)-1, "jsdb_autoload", 1,
&rvalIgnore);
return _initReturn(NULL, JS_TRUE);
}

View File

@@ -1,50 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Public headers for JSDB
*/
#ifndef jsdb_h___
#define jsdb_h___
/* Get jstypes.h included first. After that we can use PR macros for doing
* this extern "C" stuff!
*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "jstypes.h"
#ifdef __cplusplus
}
#endif
JS_BEGIN_EXTERN_C
#include "jsapi.h"
#include "jsdebug.h"
JS_END_EXTERN_C
JS_BEGIN_EXTERN_C
extern JS_EXPORT_API(JSBool)
JSDB_InitDebugger(JSRuntime* rt, JSDContext* jsdc, int depth);
JS_END_EXTERN_C
#endif /* jsdb_h___ */

View File

@@ -1,102 +0,0 @@
PROJ = jsdb
JSDB = .
JSD = $(JSDB)\..
JSSRC = $(JSD)\..\src
!IF "$(BUILD_OPT)" != ""
OBJ = Release
CC_FLAGS = /DNDEBUG
!ELSE
OBJ = Debug
CC_FLAGS = /DDEBUG
LINK_FLAGS = /DEBUG
!ENDIF
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
/I $(JSSRC)\
/I $(JSD)\
/I $(JSDB)\
$(CC_FLAGS)\
/DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
/DJSDEBUGGER\
/DJSDEBUGGER_C_UI\
/DJSD_LOWLEVEL_SOURCE\
/DJSFILE\
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
LFLAGS = /nologo /subsystem:console /incremental:no /machine:I386 $(LINK_FLAGS)\
/pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).exe
LLIBS = kernel32.lib advapi32.lib $(JSSRC)\$(OBJ)\js32.lib $(JSD)\$(OBJ)\jsd.lib
CPP=cl.exe
LINK32=link.exe
all: $(OBJ) dlls $(OBJ)\$(PROJ).exe $(OBJ)\debugger.js
HEADERS = $(JSDB)\jsdb.h \
$(JSDB)\jsdbpriv.h
OBJECTS = $(OBJ)\js.obj \
$(OBJ)\jsdb.obj \
$(OBJ)\jsdrefl.obj
$(OBJECTS) : $(HEADERS)
$(OBJ)\$(PROJ).exe: $(OBJECTS)
$(LINK32) $(LFLAGS) $** $(LLIBS)
.c{$(OBJ)}.obj:
$(CPP) $(CFLAGS)
{$(JSSRC)}.c.obj:
$(CPP) $(CFLAGS)
$(OBJ) :
mkdir $(OBJ)
$(OBJ)\js32.dll :
@cd ..\..\src
@nmake -f js.mak CFG="js - Win32 Debug"
@cd ..\jsd\jsdb
@echo Copying dll from js/src
@copy $(JSSRC)\$(OBJ)\js32.dll $(OBJ) >NUL
@copy $(JSSRC)\$(OBJ)\js32.pdb $(OBJ) >NUL
$(OBJ)\jsd.dll :
@cd ..
@nmake -f jsd.mak JSD_THREADSAFE=1
@cd jsdb
@echo Copying dll from js/jsd
@copy $(JSD)\$(OBJ)\jsd.dll $(OBJ) >NUL
@copy $(JSD)\$(OBJ)\jsd.pdb $(OBJ) >NUL
dlls : $(OBJ)\js32.dll $(OBJ)\jsd.dll
$(OBJ)\debugger.js: *.js
@echo Copying *.js
@copy *.js $(OBJ) >NUL
clean:
@echo Deleting built files
@del $(OBJ)\*.pch >NUL
@del $(OBJ)\*.obj >NUL
@del $(OBJ)\*.exp >NUL
@del $(OBJ)\*.lib >NUL
@del $(OBJ)\*.idb >NUL
@del $(OBJ)\*.pdb >NUL
@del $(OBJ)\*.dll >NUL
@del $(OBJ)\*.exe >NUL
deep_clean: clean
@cd ..\..\src
@nmake -f js.mak CFG="js - Win32 Debug" clean
@cd ..\jsd\jsdb
@cd ..
@nmake -f jsd.mak clean
@cd jsdb

View File

@@ -1,117 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
* Private Headers for JSDB
*/
#ifndef jsdbpriv_h___
#define jsdbpriv_h___
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jstypes.h"
#include "jsutil.h" /* Added by JSIFY */
#include "jsprf.h"
#include "jsdbgapi.h"
#include "jsdb.h"
/***************************************************************************/
typedef struct JSDB_Data
{
JSDContext* jsdcTarget;
JSRuntime* rtTarget;
JSRuntime* rtDebugger;
JSContext* cxDebugger;
JSObject* globDebugger;
JSObject* jsdOb;
jsval jsScriptHook;
jsval jsExecutionHook;
jsval jsErrorReporterHook;
JSDThreadState* jsdthreadstate;
int debuggerDepth;
} JSDB_Data;
extern JSBool
jsdb_ReflectJSD(JSDB_Data* data);
/***********************************/
/*
* System to store JSD_xxx handles in jsvals. This supports tracking the
* handle's type - both for debugging and for automatic 'dropping' of
* reference counted handle types (e.g. JSDValue).
*/
typedef enum
{
JSDB_GENERIC = 0,
JSDB_CONTEXT,
JSDB_SCRIPT,
JSDB_SOURCETEXT,
JSDB_THREADSTATE,
JSDB_STACKFRAMEINFO,
JSDB_VALUE,
JSDB_PROPERTY,
JSDB_OBJECT
} JSDBHandleType;
#define H2P_GENERIC(cx,val) (void*) jsdb_HandleValToPointer((cx),(val),JSDB_GENERIC)
#define H2P_CONTEXT(cx,val) (JSDContext*) jsdb_HandleValToPointer((cx),(val),JSDB_CONTEXT)
#define H2P_SCRIPT(cx,val) (JSDScript*) jsdb_HandleValToPointer((cx),(val),JSDB_SCRIPT)
#define H2P_SOURCETEXT(cx,val) (JSDSourceText*) jsdb_HandleValToPointer((cx),(val),JSDB_SOURCETEXT)
#define H2P_THREADSTATE(cx,val) (JSDThreadState*) jsdb_HandleValToPointer((cx),(val),JSDB_THREADSTATE)
#define H2P_STACKFRAMEINFO(cx,val) (JSDStackFrameInfo*) jsdb_HandleValToPointer((cx),(val),JSDB_STACKFRAMEINFO)
#define H2P_VALUE(cx,val) (JSDValue*) jsdb_HandleValToPointer((cx),(val),JSDB_VALUE)
#define H2P_PROPERTY(cx,val) (JSDProperty*) jsdb_HandleValToPointer((cx),(val),JSDB_PROPERTY)
#define H2P_OBJECT(cx,val) (JSDObject*) jsdb_HandleValToPointer((cx),(val),JSDB_OBJECT)
#define P2H_GENERIC(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_GENERIC)
#define P2H_CONTEXT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_CONTEXT)
#define P2H_SCRIPT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_SCRIPT)
#define P2H_SOURCETEXT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_SOURCETEXT)
#define P2H_THREADSTATE(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_THREADSTATE)
#define P2H_STACKFRAMEINFO(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_STACKFRAMEINFO)
#define P2H_VALUE(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_VALUE)
#define P2H_PROPERTY(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_PROPERTY)
#define P2H_OBJECT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_OBJECT)
extern jsval
jsdb_PointerToNewHandleVal(JSContext *cx, void* ptr, JSDBHandleType type);
extern void*
jsdb_HandleValToPointer(JSContext *cx, jsval val, JSDBHandleType type);
/***********************************/
extern JSBool
jsdb_SetThreadState(JSDB_Data* data, JSDThreadState* jsdthreadstate);
extern uintN JS_DLL_CALLBACK
jsdb_ExecHookHandler(JSDContext* jsdc,
JSDThreadState* jsdthreadstate,
uintN type,
void* callerdata,
jsval* rval);
extern JSBool
jsdb_EvalReturnExpression(JSDB_Data* data, jsval* rval);
#endif /* jsdbpriv_h___ */

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
nmake -f jsdb.mak %1 %2 %3 %4 %5 %6 %7 %8 %9

View File

@@ -1,56 +0,0 @@
// some tests...
function set_a(a) {this.a = a;}
function set_b(b) {this.b = b;}
function set_c(c) {this.c = c;}
function f_ctor(a,b,c)
{
this.set_a = set_a;
this.set_b = set_b;
this.set_c = set_c;
// NOTE: these break JSD_LOWLEVEL_SOURCE in shell debugger
this.get_a = new Function("return this.a;");
// this.get_b = new Function("return this.b;");
// this.get_c = new Function("return this.c;");
// this.get_a = function() {return this.a;};
this.get_b = function() {return this.b;};
this.get_c = function() {return this.c;};
this.set_a(a);
this.set_b(b);
this.set_c(c);
}
function f2_ctor(param)
{
this.A = new f_ctor(1,2,3);
this.b = new f_ctor("A","B","C");
this.number = param;
}
function callMe()
{
var A = new f2_ctor(1);
debugger;
var b = new f2_ctor(5);
}
function foo(a,b,c,d,e,f)
{
var g;
var h;
var i;
var j;
debugger;
}
A = new f2_ctor(0);
AA = new f2_ctor(100);
callMe();
foo(1,2,3,4,5);
A.A.set_b(8);
print(A.A.get_b());

View File

@@ -1 +0,0 @@
load('objects.js')

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More