Compare commits

..

1342 Commits

Author SHA1 Message Date
bryner%uiuc.edu
666ff43be0 Updating for rdf branch. Not part of build.
git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@77603 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 07:20:38 +00:00
(no author)
73f91c8955 This commit was manufactured by cvs2svn to create branch
'RDF_FILEPICKER_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@77601 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 07:15:24 +00:00
bryner%uiuc.edu
4b41f7560f Adding filepicker.dtd on the branch.
git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@77170 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-25 04:35:29 +00:00
(no author)
db8b93f218 This commit was manufactured by cvs2svn to create branch
'RDF_FILEPICKER_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@77148 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-25 01:56:40 +00:00
bryner%uiuc.edu
790f0b060f RDF filepicker changes.
git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@77124 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 22:38:19 +00:00
(no author)
bd57f5acca This commit was manufactured by cvs2svn to create branch
'RDF_FILEPICKER_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/RDF_FILEPICKER_BRANCH@76608 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 02:32:10 +00:00
bryner%uiuc.edu
de41f8b3c2 Fixing 47984 - crash when filepicker starts in invalid
directory.  r=pavlov.


git-svn-id: svn://10.0.0.236/trunk@76607 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 02:32:09 +00:00
mscott%netscape.com
9f33dfe18f Bug #46522 --> use weak references for message pane docshell and
root docshell to avoid a crash when you switch themes and we pull out
these docshells....
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76606 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:47:44 +00:00
rcassin%supernova.org
a1433e6d19 Fix for 45645 (Can paste into ReadOnly textfield) r=akkana
git-svn-id: svn://10.0.0.236/trunk@76605 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:34:22 +00:00
akkana%netscape.com
ceaf606725 46643: Attempt to fix intermittent crash when clearing clipboard. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@76604 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:33:09 +00:00
morse%netscape.com
32a7d35469 bug 49393, context menu in ftp is wrong, fix=jrgm, r=morse
git-svn-id: svn://10.0.0.236/trunk@76603 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:28:58 +00:00
morse%netscape.com
20ba5c833d bug 49393, edit menu in ftp is wrong, fix=jrgm, r=morse
git-svn-id: svn://10.0.0.236/trunk@76602 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:28:23 +00:00
bryner%uiuc.edu
02c02201e8 Making saari's debug output #ifdef DEBUG_FOCUS. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@76601 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:24:57 +00:00
mccabe%netscape.com
f10846667d Rectify // comment to /** comment
git-svn-id: svn://10.0.0.236/trunk@76600 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:09:29 +00:00
ftang%netscape.com
c2db6c347e *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76599 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:47:03 +00:00
beard%netscape.com
1d1f0fda1b standard leak format for leaksoup r=waterson (not part of build)
git-svn-id: svn://10.0.0.236/trunk@76598 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:45:24 +00:00
alecf%netscape.com
70722673f2 other part of fix for filter stuff r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@76597 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:18:29 +00:00
alecf%netscape.com
74c3d3a8a4 fix for #48994 - correctly clear the default account pref when the default account is deleted
r=ducarroz


git-svn-id: svn://10.0.0.236/trunk@76596 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:10:15 +00:00
ducarroz%netscape.com
b82006948f Fix for bug 48994. Take the first identity if we don't have a default one. R=alecf
git-svn-id: svn://10.0.0.236/trunk@76595 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:08:59 +00:00
brendan%mozilla.org
b9dbc566ac Add jsdhash.
git-svn-id: svn://10.0.0.236/trunk@76594 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:04:53 +00:00
rcassin%supernova.org
437af36574 Checkin kin's fix for bug 48879, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76593 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 23:55:32 +00:00
alecf%netscape.com
80deab3bd6 search & filter revamp
- fixes #41711, #48698, #48238 among other things
- moves some XBL into straight JS where it belongs
- fixes bad XBL setters to return the value that comes in
- fire more notification when filter attributes/operators change


git-svn-id: svn://10.0.0.236/trunk@76592 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 23:54:52 +00:00
gayatrib%netscape.com
44fad5837d fix for bugs 38107 and 40175. review=putterman
git-svn-id: svn://10.0.0.236/trunk@76591 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 23:48:42 +00:00
mccabe%netscape.com
85cc5c05a9 Fix to 49365.
Work around dump() logging messages to the js console by not having the js console call dump().  Also fix the console code so that string messages (originating from logStringMessage() calls) get printed properly, and adjust the number of saved console messages to match that of the underlying console service.

r=jband, a=beard


git-svn-id: svn://10.0.0.236/trunk@76590 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 23:39:49 +00:00
hyatt%netscape.com
5dda7e45d5 Fix for 48187, r=danm
git-svn-id: svn://10.0.0.236/trunk@76589 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 22:44:01 +00:00
rods%netscape.com
a62d36cc93 removing "return NS_OK" because it keeps it from doing the call to
nsFrame which calls HandleRelease. Without HandleRelease the EventStateManager
mMouseGrabber never gets cleared and it keeps thinking events need to go to the view.
b=48792 r=pollmann


git-svn-id: svn://10.0.0.236/trunk@76588 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 22:39:13 +00:00
pavlov%netscape.com
149c937939 patch to hold on to the image gc when possible. reduces the number of creategc/freegc calls r=imot. linux performance bug 26502
git-svn-id: svn://10.0.0.236/trunk@76587 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:53:10 +00:00
ftang%netscape.com
327bcf3b2c fix 47114. remap 6 characters to the MacOS truetype value for symbol fonts. r=nhotta
git-svn-id: svn://10.0.0.236/trunk@76586 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:47:42 +00:00
pavlov%netscape.com
9101782fbb patch from Tomi Leppikangas <Tomi.Leppikangas@oulu.fi> to reuse GCs when the only person holding on to them is the GC cache (i.e. don't create/destroy, just change) r=pavlov,shaver. work on linux performance bug 26502
git-svn-id: svn://10.0.0.236/trunk@76585 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:44:11 +00:00
akkana%netscape.com
eb5cd788d6 Define NS_VK keycodes in terms of nsIDOMKeyEvent keycodes. r=saari. Requires undefining ERROR on Win32, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@76584 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:43:26 +00:00
rods%netscape.com
652bee7703 listbox - selecting with keyboard no longer allows you to stop on a disabled option, it skips them
as does page up and page down
combobox - selecting a disabled option didn't clear the "mouse down" flag and it still thought it was selecting
combobox - selecting a disabled option clears mSelectedIndex, this side effect could be seen by selected
a disabled item then clicking on a link and then hit "back",
b=48903 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76583 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:38:15 +00:00
pavlov%netscape.com
b605aca85a fir for bug 46729. convert things like smart quotes to normal quotes when pasting as plain text r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@76582 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:37:09 +00:00
alecf%netscape.com
bacf3de7b8 remove mac and windows-specific messenger.css, just use XP one
r=putterman (no bug, just a build issue)


git-svn-id: svn://10.0.0.236/trunk@76581 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:22:42 +00:00
hyatt%netscape.com
d9127a969f Fix for 48150, r=danm
git-svn-id: svn://10.0.0.236/trunk@76580 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:11:38 +00:00
scc%mozilla.org
cf1b290be1 not part of the build; temporarily patching these files to use the old (what is currently in the tree) |GetReadableFragment| scheme, so that clients can start using this now both on the tip and on the DOMAPI... branch
git-svn-id: svn://10.0.0.236/trunk@76579 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:07:45 +00:00
danm%netscape.com
3950205ea9 HandleContent now forces a new window by suppressing the target name if it could be interpreted as something in parentWindow. bug 44797 r=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76578 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:05:42 +00:00
kmcclusk%netscape.com
5c41f2d533 Destroy offscreen surfaces using a singleton nsIRenderingContext instance instead of creating a nsIRenderingContext during shutdown b=48190 r=attinasi@netscape.com
Allways destroy the global array of ViewManager's when last view manager instance is destroyed b=45921 r=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@76577 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 21:05:16 +00:00
harishd%netscape.com
6368271fde bug 22886 - Relax refresh header paring, in the sink, a little bit.
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@76576 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:55:48 +00:00
harishd%netscape.com
be80e197f0 bug 30487 ( nsbeta3+ ) - Watch out for barriers before popping off any stylistic
information
bug 37618 ( nsbeta3+ ) - Orpahaned residual tag can close only inline parents.
bug 44085 ( nsbeta3+ ) - Push comment into misplaced list if there are items in
queued in the list.
bug 22886 ( nsbeta3+ ) - Relax refresh header parsing, in the sink, a little bit
so that '.' is accounted for.

r=pollmann


git-svn-id: svn://10.0.0.236/trunk@76575 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:54:49 +00:00
bryner%uiuc.edu
fc97c0badb Fixing bug 42345 - hook up NS_MOVE events when a toplevel window is moved
on Linux.  Also use get_root_origin instead of get_origin so that we
persist the correct position.  r=blizzard.


git-svn-id: svn://10.0.0.236/trunk@76574 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:51:43 +00:00
radha%netscape.com
2bfd21680d fix for 45770 r=nisheeth.
git-svn-id: svn://10.0.0.236/trunk@76573 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:44:43 +00:00
bryner%uiuc.edu
fd8aac2f02 Fixing 48311 - make * (All files) really show all files in linux
filepicker.  r=pavlov, jag.


git-svn-id: svn://10.0.0.236/trunk@76572 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:31:21 +00:00
jgmyers%netscape.com
f56e5dd53a fix host header syntax for IPv6 address literals: bug 45891 r=gagan a=waterson
git-svn-id: svn://10.0.0.236/trunk@76571 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:19:15 +00:00
bienvenu%netscape.com
16668c3260 disable filters with invalid move targets 46876 r=alecf
git-svn-id: svn://10.0.0.236/trunk@76570 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:10:51 +00:00
rods%netscape.com
2d4f1df8f2 fixes when to use preferred size versus computed size versus available size.
b=40596, r=evaughan,hyatt,kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76569 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:08:44 +00:00
edburns%acm.org
f8f85a7b78 bug=49293
r=gbarney
a=edburns

M classes_spec/org/mozilla/webclient/test/EMWindow.java
A src_ie/CMyDialog.cpp
A src_ie/CMyDialog.h
M src_ie/CurrentPageImpl.cpp
M src_ie/HistoryImpl.cpp
M src_ie/Makefile.win
M src_ie/NativeEventThread.cpp
M src_ie/WindowControlImpl.cpp
M src_ie/WrapperFactoryImpl.cpp
M src_ie/ie_util.cpp
M src_ie/ie_util.h

cvs diff -u classes_spec/org/mozilla/webclient/test/EMWindow.java src_ie/CMyDialog.cpp src_ie/CMyDialog.h src_ie/CurrentPageImpl.cpp src_ie/HistoryImpl.cpp src_ie/Makefile.win src_ie/NativeEventThread.cpp src_ie/WindowControlImpl.cpp src_ie/WrapperFactoryImpl.cpp src_ie/ie_util.cpp src_ie/ie_util.h

This change adds listener DocumentLoadListener support to src_ie.

tar -cvf 49293.tar classes_spec/org/mozilla/webclient/test/EMWindow.java src_ie/CMyDialog.cpp src_ie/CMyDialog.h src_ie/CurrentPageImpl.cpp src_ie/HistoryImpl.cpp src_ie/Makefile.win src_ie/NativeEventThread.cpp src_ie/WindowControlImpl.cpp src_ie/WrapperFactoryImpl.cpp src_ie/ie_util.cpp src_ie/ie_util.h


git-svn-id: svn://10.0.0.236/trunk@76568 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:54:43 +00:00
edburns%acm.org
ec836104c1 r=ashuk
bug=47357
a=edburns
Files in this checkin

M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

cvs diff -u src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change moves out listener constants and other support data from
src_moz into src_share to enable it to be used in src_ie.

tar -cvf 47357.tar src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h


git-svn-id: svn://10.0.0.236/trunk@76567 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:52:15 +00:00
morse%netscape.com
e985102af6 bug 48742, adding privacy tutorial, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@76566 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:32:58 +00:00
dbragg%netscape.com
daf4d51382 Fix for bugs 47058 and 47097. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@76565 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:28:06 +00:00
av%netscape.com
f4cecefbae Part of 46490 fix, r=adamlock
git-svn-id: svn://10.0.0.236/trunk@76564 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:26:15 +00:00
av%netscape.com
30b41b305e Fixing 46490, r=sean, r=waterson, r=valeski, a=adamlock
git-svn-id: svn://10.0.0.236/trunk@76563 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:16:39 +00:00
blizzard%redhat.com
1f49190e84 unused files for simple embedding shell
git-svn-id: svn://10.0.0.236/trunk@76562 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:12:23 +00:00
mcafee%netscape.com
d822c9dfd9 Minor layout tweak to Integration pref pane (40888).
git-svn-id: svn://10.0.0.236/trunk@76561 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:03:27 +00:00
edburns%acm.org
05d77f9269 r=ashuk
a=edburns
Files in this checkin

M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

cvs diff -u src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change moves out listener constants and other support data from
src_moz into src_share to enable it to be used in src_ie.

tar -cvf 47357.tar src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h


git-svn-id: svn://10.0.0.236/trunk@76560 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 18:29:18 +00:00
pierre%netscape.com
413d134dfe 43420 + CSS3 update: renamed "text-align:-moz-default" into "text-align:start"
git-svn-id: svn://10.0.0.236/trunk@76558 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 13:28:18 +00:00
mkaply%us.ibm.com
105698a14e OS/2 Tinderbox break
OK will someone WAKE UP and realize that we need XP_WIN defined in the build?
XP_PC does NOT mean XP_WIN.
WE NEED XP_WIN IN THE BUILD
SOMEONE TURN IT ON IN THE MAKEFILE!


git-svn-id: svn://10.0.0.236/trunk@76557 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 12:52:04 +00:00
nboyd%atg.com
6c5a6c1c92 Fix for bug 49302
git-svn-id: svn://10.0.0.236/trunk@76556 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 12:37:32 +00:00
nboyd%atg.com
1be29d3f63 Fix 49301.
git-svn-id: svn://10.0.0.236/trunk@76555 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 12:28:46 +00:00
jfrancis%netscape.com
6376ebe2b4 gave a pref a better name and a more traditional set of values.
git-svn-id: svn://10.0.0.236/trunk@76554 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 09:51:27 +00:00
hyatt%netscape.com
7e348287cb Fix for 38461, r=ben
git-svn-id: svn://10.0.0.236/trunk@76553 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 09:15:51 +00:00
pierre%netscape.com
4c4599562d 49154: uninitialized variable. Thanks to bruce@cubik.org (Bruce Mitchener)
git-svn-id: svn://10.0.0.236/trunk@76552 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 08:26:53 +00:00
hyatt%netscape.com
2b2574bdf1 Fix for 43375, r=ben
git-svn-id: svn://10.0.0.236/trunk@76551 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 08:15:47 +00:00
hyatt%netscape.com
84a22f9437 First-stage fix for dogfood bug 49012. r=ben
git-svn-id: svn://10.0.0.236/trunk@76550 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 08:11:11 +00:00
mscott%netscape.com
7cdd9ead65 Bug #47681 --> more polish on the message header pane, reformat the date header so it matches the format we use in the thread pane.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76549 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:35:25 +00:00
mscott%netscape.com
d977ab70c3 For modern skin:
Bug #46348, 22960 --> fix expensive style rules to make the message header pane faster,
fix vertical alignment problem between header values by forcing our html tags to
have 0 margins (they were inheriting a default margin size)
Bug #47681 Force proper alignment of the header names in the message pane.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76548 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:25:00 +00:00
mscott%netscape.com
40bd7d26f5 For classic windows skin:
Bug #46348, 22960 --> fix expensive style rules to make the message header pane faster,
fix vertical alignment problem between header values by forcing our html tags to
have 0 margins (they were inheriting a default margin size)
Bug #47681 Force proper alignment of the header names in the message pane.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76547 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:24:37 +00:00
mscott%netscape.com
48ef99a6e8 For classic skin:
Bug #46348, 22960 --> fix expensive style rules to make the message header pane faster,
fix vertical alignment problem between header values by forcing our html tags to
have 0 margins (they were inheriting a default margin size)
Bug #47681 Force proper alignment of the header names in the message pane.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76546 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:24:20 +00:00
mscott%netscape.com
babd5a5b29 Bug #46348, 22960 --> fix expensive style rules to make the message header pane faster,
fix vertical alignment problem between header values by forcing our html tags to
have 0 margins (they were inheriting a default margin size)
Bug #47681 Force proper alignment of the header names in the message pane.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76545 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:23:26 +00:00
mscott%netscape.com
305b4925f9 Bug #22960 --> rewrite the email address widget so it extends from xul:box instead of
base text. Remove needless box from the widget. This gets rid of the awful assertion
saying the widget had bad xul whenever we created one.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76544 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:21:51 +00:00
jst%netscape.com
ce9e38761e Fixing nsbeta3+ bug 30534. Don't lie about what DOM features we support, be honest./paralellCheckout | & less r=nisheeth@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76543 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 07:09:05 +00:00
jst%netscape.com
f3eeaaab8a Fixing nsbeta3+ bug 44002. Don't use non boolean values (the value 2 in this case) as a boolean true since 2 != true in JS. This caused scripts that rely on img.complete == true when an image has loaded to break. r=nisheeth@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76542 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 06:28:47 +00:00
jst%netscape.com
9baadc5225 Fixing nsbeta3+ bug 43327. Make window.history act like an array to be compatible with 4.x, and add proper security checks for DOM array access. r=mstoltz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76541 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 05:56:44 +00:00
jfrancis%netscape.com
879fac6cf9 adding a hidden pref for the editor:
editor.liReturnBehavior "no" will disable the default behavior of popping you out of lists if you hit return in an empty list item.


git-svn-id: svn://10.0.0.236/trunk@76539 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 05:26:32 +00:00
dougt%netscape.com
6e0d004a19 b=47143, r=valeski. Puts the real object release on the proper thread.
git-svn-id: svn://10.0.0.236/trunk@76538 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 05:02:37 +00:00
jfrancis%netscape.com
693d1707a2 fix for 48132: editor observer list maintainance was even less safe than i would have guessed...
git-svn-id: svn://10.0.0.236/trunk@76537 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 04:50:04 +00:00
pinkerton%netscape.com
65a9162688 Fix for 48291, r=saari. For internal formats that are not CF_TEXT, eg text/html,
treat them like they are unicode and do the fiddling required for win98.


git-svn-id: svn://10.0.0.236/trunk@76536 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 04:19:14 +00:00
jfrancis%netscape.com
3a6540f7dd 44684: adding a "GetAlignment" call to the editor so that ui can reflect alignment of selection
git-svn-id: svn://10.0.0.236/trunk@76535 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:59:50 +00:00
saari%netscape.com
3ae9cffa35 fix for nsbeta3+ 43254. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@76534 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:41:56 +00:00
saari%netscape.com
d08a39d4a3 fix for nsbeta3+ 29800; deactivate not firing properly on linux. r=bryner
git-svn-id: svn://10.0.0.236/trunk@76533 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:29:06 +00:00
mkaply%us.ibm.com
8670ca92e9 OS/2 Tinderbox break
OK will someone WAKE UP and realize that we need XP_WIN defined in the build?
XP_PC does NOT mean XP_WIN.
WE NEED XP_WIN IN THE BUILD
SOMEONE TURN IT ON IN THE MAKEFILE!


git-svn-id: svn://10.0.0.236/trunk@76532 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:18:03 +00:00
pinkerton%netscape.com
9f1b839c48 more build bustage fixes.
git-svn-id: svn://10.0.0.236/trunk@76531 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:11:33 +00:00
pinkerton%netscape.com
d51fc708c4 fix bustage a better way, include nsRDFResource.cpp directly instead of the shlb, which was just plain wrong. r=beard.
git-svn-id: svn://10.0.0.236/trunk@76530 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 02:32:40 +00:00
mcafee%netscape.com
e4ab603cfa Fix build warning, trailing slash looks run-on comment to the egcs compiler.
git-svn-id: svn://10.0.0.236/trunk@76529 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 01:53:59 +00:00
pinkerton%netscape.com
0f738af7ef add rdf lib to fix bustage
git-svn-id: svn://10.0.0.236/trunk@76528 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 01:49:49 +00:00
jband%netscape.com
090c61aae5 fix bug 49137 by using PR_GetEnv rather than prefs to get these developer options r=mccabe
git-svn-id: svn://10.0.0.236/trunk@76527 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 01:20:02 +00:00
scc%mozilla.org
c91876a661 not yet part of the build, this new class provides a more consistent and flexible answer to the need for functions like |AppendInt| and |AppendFloat|. It is a short readable string produced with printf.
git-svn-id: svn://10.0.0.236/trunk@76526 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 01:08:30 +00:00
mcafee%netscape.com
496587e3dd Moving autocomplete pref from message composition pane to addressing pane to save screen space (40888). r=slamm, a=glick
git-svn-id: svn://10.0.0.236/trunk@76525 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 01:06:27 +00:00
mcafee%netscape.com
29a929804f Splitting debug pref pane into 3 panes to save room (40888). Debug gets general stuff, debug1 gets events stuff, debug2 gets networking stuff. Explicitly picked generic names for these files in case usage changes later. r=slamm
git-svn-id: svn://10.0.0.236/trunk@76524 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:51:18 +00:00
ftang%netscape.com
0ef45c8297 move about.html from content to locale
fix bug 1547


git-svn-id: svn://10.0.0.236/trunk@76523 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:36:23 +00:00
ftang%netscape.com
5cc60ce8ae fix bug 1547 r=mcafee move about.html from content to locale
git-svn-id: svn://10.0.0.236/trunk@76522 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:32:00 +00:00
ftang%netscape.com
38fc2a3564 fix bug 1547 move about.html from content to locale
git-svn-id: svn://10.0.0.236/trunk@76521 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:31:02 +00:00
rogerl%netscape.com
3c89b06dc3 Backing out fix to see if Linux build passes alivetest.
git-svn-id: svn://10.0.0.236/trunk@76520 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:30:57 +00:00
ftang%netscape.com
a0d6347214 fix bug 1547 move about.html from content to locale
r=mcafee


git-svn-id: svn://10.0.0.236/trunk@76519 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:29:31 +00:00
ftang%netscape.com
ad30306e3c fix bug 1547. move about.html from content to locale
r=mcafee


git-svn-id: svn://10.0.0.236/trunk@76518 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:28:34 +00:00
ftang%netscape.com
a384444f4f move about.html to locale from content fix bug 1547 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@76517 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:25:16 +00:00
tao%netscape.com
419c2f6ca1 Take out debug printout. (r,a)=ftang.
git-svn-id: svn://10.0.0.236/trunk@76516 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:17:51 +00:00
dbaron%fas.harvard.edu
9b56742a81 Attempt to fix Sun/HP/AIX bustage. r=cls
git-svn-id: svn://10.0.0.236/trunk@76515 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:15:50 +00:00
hyatt%netscape.com
a3f1e2295b Fix for 48083. r=danm
git-svn-id: svn://10.0.0.236/trunk@76514 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:10:40 +00:00
akkana%netscape.com
4df3e025f1 23587: Make accelerator and menu access keys settable through a pref. r=saari
git-svn-id: svn://10.0.0.236/trunk@76513 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:09:16 +00:00
ftang%netscape.com
491f25c126 add perl tool which convert CP932.TXT to a JIS0208 table
git-svn-id: svn://10.0.0.236/trunk@76512 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:07:54 +00:00
alecf%netscape.com
e1dfaacaac oops, forgot these in my last checkin
git-svn-id: svn://10.0.0.236/trunk@76511 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:05:31 +00:00
ftang%netscape.com
9d3908cda6 fix bug 35166 and 41666. Change the conversion to use the source from CP932.TXT
so we can convert round trip correctly with the other direction
the table is generated by ufrom. r=ftang


git-svn-id: svn://10.0.0.236/trunk@76510 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:03:06 +00:00
pinkerton%netscape.com
ef604420b0 Don't break VC5 (yawn). 48862, a=waterson
git-svn-id: svn://10.0.0.236/trunk@76509 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:02:38 +00:00
ftang%netscape.com
1318142bff correct the spelling of jis_0208-1983 and jis_0212-1990 (extra x)
r=nhotta fix bug 49107


git-svn-id: svn://10.0.0.236/trunk@76508 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:01:31 +00:00
hyatt%netscape.com
20a43ac75c Fix for 32661, r=brendan
git-svn-id: svn://10.0.0.236/trunk@76507 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:57:03 +00:00
bienvenu%netscape.com
825be26c71 don't link in js, that was just for testing
git-svn-id: svn://10.0.0.236/trunk@76506 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:52:32 +00:00
hyatt%netscape.com
3a019b1360 Fix for 44227, r=ben
git-svn-id: svn://10.0.0.236/trunk@76505 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:51:35 +00:00
alecf%netscape.com
3b07c56c25 rework nsMessages so they are generic across all server/folder types, so that we can recycle them later
r=putterman
for bug #26456


git-svn-id: svn://10.0.0.236/trunk@76504 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:45:58 +00:00
mcafee%netscape.com
218b8b30be Adding entry for images pref pane. r=matt
git-svn-id: svn://10.0.0.236/trunk@76503 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:45:12 +00:00
bienvenu%netscape.com
b38e8b4b9b fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@76502 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:42:00 +00:00
hyatt%netscape.com
f0014800a4 Fix for 48450. r=morse
git-svn-id: svn://10.0.0.236/trunk@76501 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:41:32 +00:00
saari%netscape.com
2fdc688449 Fixing focus regression I caused by over eargly releasing documents from nsEventStateManager
git-svn-id: svn://10.0.0.236/trunk@76500 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:38:54 +00:00
bienvenu%netscape.com
dcdf6981f7 fix undo of imap delete r=mscott 29039
git-svn-id: svn://10.0.0.236/trunk@76497 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:35:48 +00:00
bienvenu%netscape.com
70ee0e056f part of fix for writing out newsrc files on a timer r=mscott 29743
git-svn-id: svn://10.0.0.236/trunk@76496 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:33:19 +00:00
dprice%netscape.com
7a7ea92f9c adding platform specific jar.mn
git-svn-id: svn://10.0.0.236/trunk@76495 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:29:55 +00:00
dprice%netscape.com
427d885360 moving platform specific files to their own manifest files.
git-svn-id: svn://10.0.0.236/trunk@76494 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:28:40 +00:00
robinf%netscape.com
a68ee3daa9 updating this image to remove license and readme icons
git-svn-id: svn://10.0.0.236/trunk@76493 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:26:21 +00:00
bienvenu%netscape.com
f15e25ecbe cache charset converters used in msg dispaly r=nhotta 47542
git-svn-id: svn://10.0.0.236/trunk@76492 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:22:26 +00:00
bienvenu%netscape.com
9dfe4183e4 fix begins with search, r=alecf 49049
git-svn-id: svn://10.0.0.236/trunk@76491 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:19:51 +00:00
dbaron%fas.harvard.edu
aea37551a9 Fix string leaks from nsWindow::SetTitle. r=pavlov b=49148
git-svn-id: svn://10.0.0.236/trunk@76490 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:18:33 +00:00
dbaron%fas.harvard.edu
cec97be5f7 Fix leak of strings used as hash table keys. r=waterson b=48880
git-svn-id: svn://10.0.0.236/trunk@76489 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:16:21 +00:00
hyatt%netscape.com
f7c2acd171 Fix for 45728. r=saari
git-svn-id: svn://10.0.0.236/trunk@76488 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:14:50 +00:00
dbaron%fas.harvard.edu
eb3bc9d467 Fix a leak of the keys used as strings in all cases. r=waterson b=44051
git-svn-id: svn://10.0.0.236/trunk@76487 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:14:08 +00:00
kin%netscape.com
1e4907fd53 Partial fix for bug #45152: Typed text does not render in TextAreas with a horizontal scrollbar
Made Reflow() invalidate the correct region during an incremental or dirty reflow.
r=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@76486 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:12:19 +00:00
dbaron%fas.harvard.edu
34be9dc90a Fix two string leaks: one in nsBrowserInstance::LoadInitialPage, and the other in nsBrowserInstance::GetDocumentCharset. r=waterson
git-svn-id: svn://10.0.0.236/trunk@76485 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:11:31 +00:00
nbhatla%netscape.com
adf077bbc2 #46519-> Mac Classic Polish Fixes. Fixes editor disabled states for bold, underline, italic, ol, and ul buttons in format toolbar. Also pertains to bugs #47685 and #48700. r=cmanske,sfraser
git-svn-id: svn://10.0.0.236/trunk@76484 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:09:15 +00:00
terry%mozilla.org
4fdca29a5d Deflect email away from me.
git-svn-id: svn://10.0.0.236/trunk@76483 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:07:37 +00:00
nbhatla%netscape.com
9ba567b5ab #46519 -> Mac Classic Skin Polish. Updates to Editor Format Toolbar icons, for bugs #47685 and #48700. Also removed duplicate lines from navigator.css. r=hangas
git-svn-id: svn://10.0.0.236/trunk@76482 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:06:56 +00:00
morse%netscape.com
65b4d1ab32 bug 42438, always display capture on context menu when prefill is displayed, r=law
git-svn-id: svn://10.0.0.236/trunk@76481 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:06:52 +00:00
dbaron%fas.harvard.edu
35100701ae Count the nsFontGTK class in the leak stats. Some of these are leaked, so the numbers may go up. r=waterson
git-svn-id: svn://10.0.0.236/trunk@76480 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:05:56 +00:00
morse%netscape.com
7f6759ad63 bug 49189, crash when updating wallet tables, r=pnunn
git-svn-id: svn://10.0.0.236/trunk@76479 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:05:03 +00:00
dbaron%fas.harvard.edu
1adb256d88 Reduce the risk of parser leaks by releasing the parsers owned by CSSLoaders when no longer needed. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@76478 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:04:42 +00:00
dbaron%fas.harvard.edu
52df7f5eb4 Change the stack trace format printed by the Boehm GC on Linux so it can be post-processed by addr2line. r=wade
git-svn-id: svn://10.0.0.236/trunk@76477 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:02:40 +00:00
ssu%netscape.com
3cf904db1a fixing bug #33342 - new exit setup string. a=dveditz r=sgehani
git-svn-id: svn://10.0.0.236/trunk@76476 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:02:19 +00:00
ssu%netscape.com
a8a3467272 fixing bug #44364 - uninstaller no longer leaves .rdf files around. a=dveditz r=sgehani
git-svn-id: svn://10.0.0.236/trunk@76475 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:01:21 +00:00
kmcclusk%netscape.com
1f4900b52c Suppress nsWidget::Move if the window is already at location specified b=44476 (p=Tomi.Leppikangas@oulu.fi) r=syd@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76474 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:58:15 +00:00
putterman%netscape.com
450542aba4 Fix for 40818. Remove mail items from search menu. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76473 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:57:51 +00:00
putterman%netscape.com
23bcdd7d66 Fix for 37314. Delete works in standalone message window. r=alecf,mscott
git-svn-id: svn://10.0.0.236/trunk@76472 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:57:20 +00:00
putterman%netscape.com
f93fedfbe7 Fix for 40818. Clean up search menus. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76471 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:56:32 +00:00
putterman%netscape.com
bb273bf350 Fix for bugs 43879 and 40818. Fix up search menus and remove folder picker from rename dialog. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76470 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:56:09 +00:00
mcafee%netscape.com
447a4a4066 Adding thin separator, r=slamm
git-svn-id: svn://10.0.0.236/trunk@76469 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:54:56 +00:00
putterman%netscape.com
90bf8a86b7 Fix for 45402. In threaded mode clicking on twisty now opens entire thread. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76468 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:54:43 +00:00
kmcclusk%netscape.com
a3b80ef3fc Suppress nsWindow::Move if the window is already at location specified b=44476 (p=Tomi.Leppikangas@oulu.fi) r=syd@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76467 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:53:32 +00:00
mcafee%netscape.com
2f0f0b53c6 Minor rewording of label in smart browsing pref pane.
git-svn-id: svn://10.0.0.236/trunk@76466 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:51:42 +00:00
hyatt%netscape.com
815a18a9b2 Fix for 49118, r=ben
git-svn-id: svn://10.0.0.236/trunk@76464 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:50:25 +00:00
mcafee%netscape.com
77052ae329 Remove unused id walletServer, finishing morses checkin for 48267.
git-svn-id: svn://10.0.0.236/trunk@76463 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:49:54 +00:00
hyatt%netscape.com
a95fc61e73 Fix for 48459, r=danm
git-svn-id: svn://10.0.0.236/trunk@76462 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:49:31 +00:00
chuang%netscape.com
e7756d72db Bug 44831 Drop down list in New Mailing List window doesn't display the Address Book names. r=putterman
git-svn-id: svn://10.0.0.236/trunk@76461 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:48:56 +00:00
mcafee%netscape.com
5dacba2386 Making mousewheel pref pane more readable. r=slamm
git-svn-id: svn://10.0.0.236/trunk@76460 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:48:49 +00:00
chuang%netscape.com
417182d7c0 Bug 45331, 45332 Remove 3 buttons in mailing list dialog, r=putterman
git-svn-id: svn://10.0.0.236/trunk@76459 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:48:02 +00:00
nhotta%netscape.com
89830f7ad6 Changed to generate HTML 3.2 CER instead of HTML 4 for both file and mail, bug 48041, r=akkana.
git-svn-id: svn://10.0.0.236/trunk@76458 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:47:35 +00:00
nhotta%netscape.com
3946171a50 Changed charset names as case sensitive, bug 39793, r=cata.
git-svn-id: svn://10.0.0.236/trunk@76457 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:46:37 +00:00
rogerl%netscape.com
e1d7a156e3 Bug #31255. r,a=brendan. Once more unto the '-->' accepted as line comment
fix.


git-svn-id: svn://10.0.0.236/trunk@76456 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:46:04 +00:00
mcafee%netscape.com
04292a0f3d Adding width for mousewheel prefs pulldown (40888). r=slamm
git-svn-id: svn://10.0.0.236/trunk@76455 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:45:48 +00:00
mcafee%netscape.com
2b33731fbf Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@76454 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:44:35 +00:00
rogerl%netscape.com
7a6dd29961 Bug #39141, r=mccabe, a=beard. Fix crash for empty array initializer.
git-svn-id: svn://10.0.0.236/trunk@76453 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:43:26 +00:00
sgehani%netscape.com
3425279758 Can now install to Macs with boot volumes that have slashes in their names.
[nsbeta3+ b=18482; r=ssu; a=dveditz]


git-svn-id: svn://10.0.0.236/trunk@76452 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:43:08 +00:00
racham%netscape.com
47ba7e7bae Fixing bug 46320. Reducing the number of global files by moving profile regitry to the product sub-directory under HOME. r=dougt
git-svn-id: svn://10.0.0.236/trunk@76451 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:40:36 +00:00
racham%netscape.com
afbbb2afc0 Fixing bug 46320. Reducing the number of global files by moving profile registry to product sub-directory under HOME. r=dougt
git-svn-id: svn://10.0.0.236/trunk@76450 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:40:27 +00:00
sfraser%netscape.com
e4582186b3 Fix for bug 49196 -- buttons not showing up in Save/Don't save dialogs. Correctly used collapsed, not hidden, to make hyatt's change. r=ducarroz, a=leaf.
git-svn-id: svn://10.0.0.236/trunk@76448 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 21:28:25 +00:00
ducarroz%netscape.com
272f7ad402 Fix Mac bustage. Added nsICommandHandler.cpp to the project
git-svn-id: svn://10.0.0.236/trunk@76442 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 16:40:49 +00:00
ducarroz%netscape.com
6e3c7f793f Fix Mac bustage. Added nsIContextMenuListener.idl and nsICommandHandler.idl to the project
git-svn-id: svn://10.0.0.236/trunk@76441 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 16:40:17 +00:00
mkaply%us.ibm.com
049de0d702 #44517
r=dougt, a=brendan
Make OS/2 Desktop directory NLS aware


git-svn-id: svn://10.0.0.236/trunk@76440 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 14:27:18 +00:00
pete%alphanumerica.com
47f1260e9d Fixed problem i was having returning array from readDir member function.
Thanks jband for the fix.

not part of the build

r=jband

--pete


git-svn-id: svn://10.0.0.236/trunk@76439 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 13:35:13 +00:00
locka%iol.ie
7c63d2a576 Changed implementation of OnShowContextMenu to reflect updated IDL. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76438 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 09:00:44 +00:00
locka%iol.ie
98a262bb01 Added nsICommandHandler and nsCommandHandler.cpp to build. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76437 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:56:37 +00:00
locka%iol.ie
75c06667fb Added newline to end of file. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76436 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:54:49 +00:00
locka%iol.ie
22274c8788 Change consts to unsigned long. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76435 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:53:57 +00:00
locka%iol.ie
221c92cd8f Added mouse DOM listener to listen for context menu events and notify the embedding client. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76434 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:51:58 +00:00
locka%iol.ie
68dda5d2f6 Fixed some incorrect embedding issues. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76433 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:50:00 +00:00
locka%iol.ie
9c15cfb380 Added newline to end of file. b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76432 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:47:57 +00:00
locka%iol.ie
ac6f43e8ef Added command handler to module's factory list b=48270 a=valeski
git-svn-id: svn://10.0.0.236/trunk@76431 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:44:58 +00:00
ben%netscape.com
01dd19a973 46613..
git-svn-id: svn://10.0.0.236/trunk@76430 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:30:42 +00:00
hyatt%netscape.com
f69d98b3e6 Fix for 45248, r=ben
git-svn-id: svn://10.0.0.236/trunk@76429 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:14:01 +00:00
alecf%netscape.com
d933e2c805 remove commented-out functions (not used anyway)
git-svn-id: svn://10.0.0.236/trunk@76428 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 08:01:34 +00:00
ben%netscape.com
6173356268 46613...
git-svn-id: svn://10.0.0.236/trunk@76427 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:58:13 +00:00
ben%netscape.com
a42af0bdcb 46613..
git-svn-id: svn://10.0.0.236/trunk@76426 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:57:31 +00:00
alecf%netscape.com
7431c64b15 fix a bunch of UMRs r=syd
(no bug but I needed these to get my purify build going)


git-svn-id: svn://10.0.0.236/trunk@76425 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:39:38 +00:00
dp%netscape.com
b3a71129e7 Removed unused static.
git-svn-id: svn://10.0.0.236/trunk@76424 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:33:23 +00:00
dp%netscape.com
d1fcc74895 Fixed debug stmt to reflect code changes around it. Not compiled by default.
git-svn-id: svn://10.0.0.236/trunk@76423 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:26:46 +00:00
hyatt%netscape.com
79c8d5c024 Fix for 47303. r=mscott
git-svn-id: svn://10.0.0.236/trunk@76422 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:26:45 +00:00
dprice%netscape.com
7639d09723 adding forgotten files
git-svn-id: svn://10.0.0.236/trunk@76421 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:26:09 +00:00
saari%netscape.com
665e7d658e fix for nsbeta3+ leak 35553; leak document on shutdown. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@76420 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 06:37:51 +00:00
dprice%netscape.com
ba864a022d adding forgotten file
git-svn-id: svn://10.0.0.236/trunk@76419 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:50:52 +00:00
dprice%netscape.com
5789cd97a2 adding some files that were forgotten
git-svn-id: svn://10.0.0.236/trunk@76418 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:46:18 +00:00
ben%netscape.com
6f294b092a 46613...
git-svn-id: svn://10.0.0.236/trunk@76417 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:44:10 +00:00
dprice%netscape.com
1a126d8faa removing duplicated files
git-svn-id: svn://10.0.0.236/trunk@76416 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:37:06 +00:00
dprice%netscape.com
2d3ab8edb0 adding in pref-passwords.xul
git-svn-id: svn://10.0.0.236/trunk@76415 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:08:07 +00:00
ben%netscape.com
723100aa26 46613..
git-svn-id: svn://10.0.0.236/trunk@76414 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:08:01 +00:00
ben%netscape.com
5366458b10 46613...
git-svn-id: svn://10.0.0.236/trunk@76413 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 05:05:21 +00:00
dprice%netscape.com
cbbc6f4aae moving pref-irc.xul to core.jar
git-svn-id: svn://10.0.0.236/trunk@76412 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:57:23 +00:00
bryner%uiuc.edu
bc30436d00 Patch from disttsc@bart.nl for bug 49089 -- using Enter in filepicker was
broken because we needed to change event.which to event.keyCode.  r=me.


git-svn-id: svn://10.0.0.236/trunk@76411 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:23:58 +00:00
dprice%netscape.com
e2a9da576d replacing this file in the right spot.
git-svn-id: svn://10.0.0.236/trunk@76410 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:23:40 +00:00
ben%netscape.com
544ea04016 fixing mac
git-svn-id: svn://10.0.0.236/trunk@76409 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:14:34 +00:00
dprice%netscape.com
fb5531a9d1 adding dtd file to en-US.jar
git-svn-id: svn://10.0.0.236/trunk@76408 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:10:00 +00:00
shaver%mozilla.org
84ea4561c3 Fix 47354 and 39975 by providing a system-privileged scope backstop for
JS Components, and teaching the ScriptSecurityManager to check for
XPC-wrapped native objects in the scope chain when looking for an
object's principal. r=jband/a=brendan


git-svn-id: svn://10.0.0.236/trunk@76407 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 04:01:02 +00:00
nbhatla%netscape.com
84fc7b931c #48704 -> Adding print button styles to navigator in win/unix classic skin. Forgot to submit this in last checkin with mac classic fix.
git-svn-id: svn://10.0.0.236/trunk@76406 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:37:43 +00:00
ben%netscape.com
0470757724 add a default binding for menubutton-dual
git-svn-id: svn://10.0.0.236/trunk@76405 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:34:22 +00:00
ben%netscape.com
f81051a308 46613, more classic skin work
git-svn-id: svn://10.0.0.236/trunk@76404 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:31:42 +00:00
ben%netscape.com
6078340884 fix for 46613 (classic skin polish) and 47636 (cannot go back to multiple
search engine listing)


git-svn-id: svn://10.0.0.236/trunk@76403 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:30:24 +00:00
ben%netscape.com
d72b1ce951 46613 and 47636 (classic skin work, and make it so that you can go back
to the multiple search results listing)


git-svn-id: svn://10.0.0.236/trunk@76402 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:29:32 +00:00
nbhatla%netscape.com
fe5478ece9 #46519 -> Mac Classic Skin Polish. Work mostly on the editor and messenger, fixing icons and mouseOver/toggled behavior. #47680-> CSS fix for proper modern tab borders. #17924-> Fix for status bar height. #45685-> Added column header icons and splitter functionality in classic mail. #45128-> Mail thread icons show proper new message states like 4.x. r=hangas
git-svn-id: svn://10.0.0.236/trunk@76401 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:27:44 +00:00
dbaron%fas.harvard.edu
a8abdedbbd Add newline to end of file to fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@76400 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:26:51 +00:00
putterman%netscape.com
84c31a66d2 Fix for 48929. Put Order Received back in. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76399 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:24:35 +00:00
putterman%netscape.com
081783e2eb Fixes 45149. Can now Print from the standalone window. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76398 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:23:21 +00:00
waterson%netscape.com
58c8e0075d Backing out pnunn/syd's changes in order to try to get smoketests back. r=pnunn
git-svn-id: svn://10.0.0.236/trunk@76397 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:16:46 +00:00
mkaply%us.ibm.com
c627ac14a9 OS/2 Tinderbox break
Hey conrad@ingress.com - please watch out for us. You are breaking us A LOT.


git-svn-id: svn://10.0.0.236/trunk@76396 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:13:16 +00:00
nbhatla%netscape.com
7d1fb2d74a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@76395 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:09:18 +00:00
nbhatla%netscape.com
48d305f50c Fix for #48704 -> Adding print button to browser navigation toolbar. r=hangas.
git-svn-id: svn://10.0.0.236/trunk@76394 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:08:02 +00:00
dprice%netscape.com
069f6a55b4 removing navigator/wallet/* from jar.mn
git-svn-id: svn://10.0.0.236/trunk@76393 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 03:00:25 +00:00
dprice%netscape.com
afa61f82c1 removed communicator/wallet/* from jar.mn, those folders are gone.
git-svn-id: svn://10.0.0.236/trunk@76391 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 02:46:26 +00:00
morse%netscape.com
7bafd119d9 bug 49116, javascript errors when doing edit in javascript window, r=waterson
git-svn-id: svn://10.0.0.236/trunk@76390 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 02:35:43 +00:00
danm%netscape.com
e2a01acf37 adding handling for _top targets, which strangely seemed to just be missing. bug 32342 r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@76389 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 02:16:11 +00:00
jband%netscape.com
a4e301356a initial checkin - NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@76388 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 02:07:37 +00:00
waterson%netscape.com
ba0a825e73 Bug 44480. Remove more obsolete files that I missed the first time around.
git-svn-id: svn://10.0.0.236/trunk@76387 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 02:00:59 +00:00
waterson%netscape.com
0aa08c1512 Bug 44480. Demote 'width' and 'height' to NSHTMLDocument. r=jst
git-svn-id: svn://10.0.0.236/trunk@76386 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:56:00 +00:00
pinkerton%netscape.com
0bcf10dbff put code in InvokeDragSession() to turn off mouseCapture when the drag begins. moved code that finds a frame from a DOM node from mac code into base class. bug 48250.
git-svn-id: svn://10.0.0.236/trunk@76384 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:46:34 +00:00
pinkerton%netscape.com
119973f434 full backout of code i commented out, the fixes go elsewhere.
git-svn-id: svn://10.0.0.236/trunk@76383 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:45:23 +00:00
morse%netscape.com
d56a3f796f bug 47256, minor wording change, change=verah r=morse
git-svn-id: svn://10.0.0.236/trunk@76382 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:43:23 +00:00
morse%netscape.com
b67c3e5390 bug 48949, fix UTF8Get routine to work with multibyte characters, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@76381 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:34:58 +00:00
pnunn%netscape.com
398f60ff0b bug#46704: chrome priority in imgcache. syd, r:pnunn.
git-svn-id: svn://10.0.0.236/trunk@76380 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:20:39 +00:00
pnunn%netscape.com
9d8c0da490 bug#46704: chrome priority in image cache. syd, r:pnunn.
git-svn-id: svn://10.0.0.236/trunk@76379 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:19:44 +00:00
waterson%netscape.com
e71218e1d0 Bug 47154. Treat '\\n' and '\\r' as whitespace, too. Also, use 'inline' instead of macros to avoid multiple argument evaluation. r=ftang
git-svn-id: svn://10.0.0.236/trunk@76378 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:08:43 +00:00
waterson%netscape.com
efe0fb7e1b Bug 44480. Remove obsolete files.
git-svn-id: svn://10.0.0.236/trunk@76376 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:05:22 +00:00
waterson%netscape.com
e029e1cca8 Bug 44480. Demote 'width' and 'height' attributes from NSDocument to NSHTMLDocument and XULDocument; make nsHTMLDocument's implementation use the <body> element's frame (instead of the <html> element's frame) to determine metrics. r=jst
git-svn-id: svn://10.0.0.236/trunk@76375 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 01:04:52 +00:00
javi%netscape.com
91bf2b5156 Remove some unnecessary access paths from the project file.
git-svn-id: svn://10.0.0.236/trunk@76372 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:56:53 +00:00
beard%netscape.com
569a41dfec bug #47920: fixes unitialized variable.
git-svn-id: svn://10.0.0.236/trunk@76371 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:46:17 +00:00
pinkerton%netscape.com
99b7fce821 Dead code removal
git-svn-id: svn://10.0.0.236/trunk@76370 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:44:15 +00:00
hyatt%netscape.com
b4caa66fbf Fix that is needed for 46719, r=ducarroz,ben
git-svn-id: svn://10.0.0.236/trunk@76369 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:42:13 +00:00
pinkerton%netscape.com
92c3e51c6b Add KillPendingTimers() to nsIMenuParent and call it when we open a sibling
submenu. Not clearing out this timer causes confusion with the rollup
listeners. Fixes 48989 and 28309. Thanks to Dean, who put me on the right
track. r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@76368 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:35:04 +00:00
warren%netscape.com
fcb1b8f06c Changes to allow uncopied string keys. Changes to copy string key's null byte. code=jband, r=warren
git-svn-id: svn://10.0.0.236/trunk@76367 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:32:59 +00:00
sgehani%netscape.com
e61f27f091 Fix scrollbar crasher in custom install dialog for mac installer.
[nsbeta3+ b=48882; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@76366 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:32:56 +00:00
hyatt%netscape.com
837b4508e8 Backing out fix to 40596 and fixing bug #49051, r=putterman
git-svn-id: svn://10.0.0.236/trunk@76364 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:20:29 +00:00
hyatt%netscape.com
1cca5f9c05 Better fix for 49066. r=saari,danm
git-svn-id: svn://10.0.0.236/trunk@76361 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:58:12 +00:00
hyatt%netscape.com
ae6e08c788 Fix for bug #49066, r=saari
git-svn-id: svn://10.0.0.236/trunk@76360 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:46:09 +00:00
robinf%netscape.com
845817de98 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76359 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:41:32 +00:00
robinf%netscape.com
e0e4fa0141 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76358 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:34:21 +00:00
edburns%acm.org
14ce93d1c7 bug=45127
r=edburns
a=edburns
author=avm@sparc.spb.su

Wrong URL for kRDF_type.


git-svn-id: svn://10.0.0.236/trunk@76357 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:09:05 +00:00
robinf%netscape.com
e81c19cca3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76356 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:44:31 +00:00
jgmyers%netscape.com
7372c3b207 remove 'no acceptable authetication' dialog box: bug 31737 r=javi a=lord
git-svn-id: svn://10.0.0.236/trunk@76355 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:23:49 +00:00
javi%netscape.com
80049c0c23 Whomp the SECURITY_MAC_BRANCH onto the tip.
git-svn-id: svn://10.0.0.236/trunk@76354 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:10:38 +00:00
robinf%netscape.com
e1cb4fbc1f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76353 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:10:35 +00:00
javi%netscape.com
cf61dc720b Whomp SECURITY_MAC_BRANCH onto tip
git-svn-id: svn://10.0.0.236/trunk@76352 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:09:21 +00:00
hyatt%netscape.com
7cc5153fd3 Fix for 49009. r=danm
git-svn-id: svn://10.0.0.236/trunk@76351 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 21:00:52 +00:00
dmose%mozilla.org
2d67cccf73 refine to assign to the prototype rather than the created objects, and add debugging stuff to help shaver. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@76350 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 20:58:17 +00:00
danm%netscape.com
a7f044e069 treat width/height=* features to mean size of parent window. compatibility with Nav 4. bug 30394.
git-svn-id: svn://10.0.0.236/trunk@76349 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 20:01:20 +00:00
mkaply%us.ibm.com
402e059347 OS/2 tinderbox break - not sure how to fix it right, so just fix it for OS/2
git-svn-id: svn://10.0.0.236/trunk@76348 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 19:57:44 +00:00
sfraser%netscape.com
23d76bb604 Fix for 34741 -- command-drag background windows when a dialog is up. r=danm
git-svn-id: svn://10.0.0.236/trunk@76347 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 19:14:04 +00:00
leaf%mozilla.org
ef74e721c7 Automated update
git-svn-id: svn://10.0.0.236/trunk@76344 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:45:09 +00:00
colin%theblakes.com
138965b630 libIDL fix for OpenVMS only. r=leaf
git-svn-id: svn://10.0.0.236/trunk@76343 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:30:59 +00:00
pinkerton%netscape.com
85f9625e19 mark thread tree as one that doesn't allow drops between rows. bug# 47105
git-svn-id: svn://10.0.0.236/trunk@76342 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:25:07 +00:00
pinkerton%netscape.com
67ffa161ec remove the ondragOver handler as it wasn't doing anythning but drawing useless drag feedback. bug 43421.
git-svn-id: svn://10.0.0.236/trunk@76341 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:24:00 +00:00
pinkerton%netscape.com
e4d7aed5a5 fix for 47105, retooling of tree d&d to not be so confusing, to use the style system a little more, and to handle the case where a tree won't let you drop anything between rows.
git-svn-id: svn://10.0.0.236/trunk@76340 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:23:34 +00:00
pinkerton%netscape.com
c90a093e1b part of fix for 47105, clear canDrop every time we dispatch a dragOver event. it will be set accordingly if it is meant to be.
git-svn-id: svn://10.0.0.236/trunk@76339 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:22:39 +00:00
rbs%maths.uq.edu.au
d4465be0f3 [not part of default build] Another go at fixing build bustage b:42793. It prevented the enabling of xprint with mathml. Paul B. Saitta <pbs@po.cwru.edu> verified that the changes compile and run, after accidently forgetting to turn xprint on the other time. a:waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@76338 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:22:31 +00:00
pinkerton%netscape.com
9d9cbe5eb9 Fix for 43421, add a style rule to use the selection color when a folder is hovered over during drags. r=ben.
git-svn-id: svn://10.0.0.236/trunk@76337 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 18:21:40 +00:00
attinasi%netscape.com
7c743c6f44 New Daily Run data: not part of build
git-svn-id: svn://10.0.0.236/trunk@76336 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 17:30:17 +00:00
despotdaemon%netscape.com
84fa1698af Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@76333 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 16:41:58 +00:00
nboyd%atg.com
0846db0ec2 Merge changes from EXP_DEBUGGER branch into tip.
Implements simple command-line debugger for scripts.


git-svn-id: svn://10.0.0.236/trunk@76330 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 15:54:46 +00:00
pete%alphanumerica.com
3b3c182ed7 moving APPEND comment. Wrong spot.
r=dougt

--pete


git-svn-id: svn://10.0.0.236/trunk@76329 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 13:14:51 +00:00
pete%alphanumerica.com
fbc81cccf5 added readDir(dirPath) member function.
Also fixed a small bug in copy to return if the source file is a dir.
r=dougt

--pete


git-svn-id: svn://10.0.0.236/trunk@76328 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 12:37:40 +00:00
mcgreer%netscape.com
1a7dd97349 should be able to set negative offset during cert creation
git-svn-id: svn://10.0.0.236/trunk@76327 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 05:08:13 +00:00
morse%netscape.com
30b370c86b bug 48986, remove form prefill and capture from tasks menu
git-svn-id: svn://10.0.0.236/trunk@76326 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 03:47:45 +00:00
leaf%mozilla.org
287702623d Automated update
git-svn-id: svn://10.0.0.236/trunk@76325 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 03:02:53 +00:00
rjc%netscape.com
ee4f909197 Fix bug # 47927: crash loading 2nd ftp URL. r=waterson
git-svn-id: svn://10.0.0.236/trunk@76324 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 01:43:42 +00:00
valeski%netscape.com
5bd6accae5 26719. applying patch for bns_robson@hotmail.com to fix handle leak. r=valeski
git-svn-id: svn://10.0.0.236/trunk@76323 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 01:35:30 +00:00
jgaunt%netscape.com
df95a315cc r=jdunn@netscape.com r=edburns@acm.org r=cls@netscape.com
a=leaf@netscape.com a=drapeau@eng.sun.com
bug=#43090
fix for hpux java plugin, generalized through configure.in for anyone.


git-svn-id: svn://10.0.0.236/trunk@76321 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:32:14 +00:00
ducarroz%netscape.com
2d4503bc07 Fix for bug 41928. Fix wrong menu id. R=putterman
git-svn-id: svn://10.0.0.236/trunk@76320 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:28:18 +00:00
dmose%mozilla.org
8d84ef21cf Major fixes to the code that cleans up at the end of an LDAP search and/or when a search has been cancelled. Most visible effect: the throbber should always stop spinning at the end of a search, rather than sometimes lingering on indefinitely. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@76319 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:16:03 +00:00
law%netscape.com
345de6f67f Bug 40792; remove obsolete error-handling code to prevent crash; r=slamm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76318 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:12:50 +00:00
dmose%mozilla.org
185aabb68c add debugging frobs to XP_UNIX platforms. setenv XPCOM_DEBUG_BREAK to make NS_ASSERTION have other behaviors, like dumping the stack to stderr or sending SIGSTOP to the pgrp to allow attaching with gdb for race condition debugging. r=bryner@netscape.com, a=brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@76317 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:09:39 +00:00
pinkerton%netscape.com
2a0b7d8d70 backing out my last change, it breaks scrollbars.
git-svn-id: svn://10.0.0.236/trunk@76316 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:03:25 +00:00
valeski%netscape.com
bf4bad597e 48884, r=morse. fixing cookie list ordering problem and cookie insertion problem.
git-svn-id: svn://10.0.0.236/trunk@76314 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:00:54 +00:00
valeski%netscape.com
1131b6e0aa 48884, r=morse. removing extraneous io service and newuri usage.
git-svn-id: svn://10.0.0.236/trunk@76313 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 23:00:13 +00:00
mcgreer%netscape.com
47afd9ecca wrong header
git-svn-id: svn://10.0.0.236/trunk@76312 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:50:36 +00:00
sgehani%netscape.com
520950ea41 Eliminate engine thread yielding to main thread duirng XPCOM extraction.
[nsbeta3+ b=1895; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@76310 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:40:14 +00:00
dougt%netscape.com
6591791df9 Changing the nsDirectoryService define. This should have been done with the rest of the nsDirectorySerivce changes. r=conrad.
git-svn-id: svn://10.0.0.236/trunk@76309 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:38:27 +00:00
dougt%netscape.com
faa139162d Fix for 48832, r=conrad. a regression.
git-svn-id: svn://10.0.0.236/trunk@76307 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:33:45 +00:00
pinkerton%netscape.com
9a6dd56096 for 48250, turn off mouse capture when a drag gesture begins. r=mjudge.
git-svn-id: svn://10.0.0.236/trunk@76306 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:29:03 +00:00
pinkerton%netscape.com
ecbc628010 making CaptureMouse a public interface on nsIFrame r=mjudge for bug 48250.
git-svn-id: svn://10.0.0.236/trunk@76305 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:28:41 +00:00
nelsonb%netscape.com
142b5d73b3 Build des.c and desblapi.c.
git-svn-id: svn://10.0.0.236/trunk@76304 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:28:10 +00:00
nelsonb%netscape.com
f7c0752c6c The Initial Developer of the Original Code is Nelson B. Bolyard,
nelsonb@iname.com.  Portions created by Nelson B. Bolyard are
Copyright (C) 1990, 2000  Nelson B. Bolyard, All Rights Reserved.


git-svn-id: svn://10.0.0.236/trunk@76303 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:27:20 +00:00
kestes%staff.mail.com
783b144faa document that you should get the tests working first.
put in a warning that it may be hard to install.


git-svn-id: svn://10.0.0.236/trunk@76302 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:22:15 +00:00
waterson%netscape.com
b270876b7f Back out shanjian's last change as it was causing several whitespace-related regressions. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@76301 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:11:41 +00:00
rods%netscape.com
690d980baf was not unregistering the listers correctly. Not they unreg with the
listener object.
b=48915 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76300 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:05:28 +00:00
wtc%netscape.com
59621a3060 Bugzilla bug #15906: added GC_LEAK_DETECTOR support for Linux.
Modified files: config.mk, primpl.h, pr/src/Makefile, pr/src/Makefile.in,
pr/src/memory/Makefile, pr/src/memory/Makefile.in, prthinfo.c, ptthread.c


git-svn-id: svn://10.0.0.236/trunk@76299 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:05:22 +00:00
mcgreer%netscape.com
6305e4dc20 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76298 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:04:22 +00:00
gayatrib%netscape.com
53b043c015 fix for bug 41987. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76297 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:03:23 +00:00
rods%netscape.com
4177506b45 it was incorrctly painting both images
b=48156 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76296 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:01:05 +00:00
kestes%staff.mail.com
e32a3a2ff9 fix typo, '.' should have been ','
git-svn-id: svn://10.0.0.236/trunk@76295 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:58:58 +00:00
ftang%netscape.com
012884125b fix bug 27906. Obsolete old Japanese converter to save some space. r=nhotta
git-svn-id: svn://10.0.0.236/trunk@76294 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:52:06 +00:00
waterson%netscape.com
17e17805d2 Bug 48086. Be sure to update XUL document's ID-to-element map when removing generated content. r=rjc
git-svn-id: svn://10.0.0.236/trunk@76293 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:46:04 +00:00
naving%netscape.com
ee1066bc5f Fixed bugs #42998 and #44883.
Removed "this space for rent" from subscribe dlg and add progressmeter to the
subscribe dlg. r = scottip, alecf


git-svn-id: svn://10.0.0.236/trunk@76292 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:43:19 +00:00
gayatrib%netscape.com
11ee4b211a Fix for bug 45806. r=putterman
git-svn-id: svn://10.0.0.236/trunk@76291 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:41:04 +00:00
mscott%netscape.com
781ca234f5 not part of the regular build. For those of us that have the show user agent string turned on for mail, the toolbar
wasn't being hidden properly when viewing a message that didn't have a user agent.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76289 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:29:41 +00:00
ducarroz%netscape.com
f2dcb34b9e Fix for bug 47506. Migrate some of the modification made to the editor formating toolbar to the message compose one. R=sfraser
git-svn-id: svn://10.0.0.236/trunk@76288 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:29:33 +00:00
nelsonb%netscape.com
5e8c99dc31 "clean" target will also remove primes.c from mpi.
git-svn-id: svn://10.0.0.236/trunk@76287 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 21:04:46 +00:00
hyatt%netscape.com
195caf091d Fix for 48931, r=danm,scc
git-svn-id: svn://10.0.0.236/trunk@76286 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 18:52:47 +00:00
tara%tequilarista.org
4952badec4 Landing zach's \n for #48947
git-svn-id: svn://10.0.0.236/trunk@76285 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 18:44:54 +00:00
pete%alphanumerica.com
b4a9e7c39e added two more member functions:
*       9. copy(source, dest);
*       10.leaf(path);

Fixed a bug i found in exists() member function.
Expanded tabs out of file. Tested.
not part of the build.

r=dougt

--pete


git-svn-id: svn://10.0.0.236/trunk@76283 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 17:14:29 +00:00
rods%netscape.com
ef90930d3b a better fix for when min size come into play with unconstrained sizes
b=40596 r=lmcclusk


git-svn-id: svn://10.0.0.236/trunk@76281 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 14:45:29 +00:00
rods%netscape.com
1562d3aab9 added weak reference and ref counted event listener to listbox intead of
having the the non-recounted frame add itself. It is now the same as GfxList
b=21629, r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76280 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 14:42:12 +00:00
putterman%netscape.com
866b11f782 Fix for 41824, 40743, and 47440. r=mscott. Selecting an account clears the thread pane,
deleting the last message clears the message pane, and all columns are resizeable.


git-svn-id: svn://10.0.0.236/trunk@76279 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 14:40:33 +00:00
putterman%netscape.com
4c1b916df2 Fix for 40728. Remove struct phrases from pref ui. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@76278 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 14:39:33 +00:00
rods%netscape.com
c22ad560c5 added textarea with -moz-fixed so it has the proper default font in quirks mode
b=44656 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76277 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 14:10:21 +00:00
rods%netscape.com
c215a20a77 css button and caption font is set to be two point sizes larger than the default GUI size.
caption font shouldn't (and now doesn't) use the actual Windows platform specific "caption" font
b=33312 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@76276 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 13:54:50 +00:00
jfrancis%netscape.com
691e87aa2b groundwork for 44684: adding a "GetAlignment" call to the editor so that ui can reflect alignment of selection
git-svn-id: svn://10.0.0.236/trunk@76274 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 12:07:10 +00:00
ben%netscape.com
3035e50272 classic skin polish (46613)
git-svn-id: svn://10.0.0.236/trunk@76273 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 09:34:20 +00:00
bryner%uiuc.edu
fb987ae864 Bulletproofing the tree to not divide by 0 in the case of scrolling or
asking the row count of a 0-row tree.  Bug 48306.  r=syd.


git-svn-id: svn://10.0.0.236/trunk@76272 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 07:06:49 +00:00
hyatt%netscape.com
4d77bfbb21 Fixing harpoon.
git-svn-id: svn://10.0.0.236/trunk@76271 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 04:29:54 +00:00
ben%netscape.com
b09555e826 classic skin polish + remove a dump
git-svn-id: svn://10.0.0.236/trunk@76270 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 04:23:57 +00:00
ben%netscape.com
962339b029 classic skin polish, 46613
git-svn-id: svn://10.0.0.236/trunk@76269 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 04:23:06 +00:00
morse%netscape.com
6ddf84038d bug 42438, add wallet capture and prefill to context menu
git-svn-id: svn://10.0.0.236/trunk@76268 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 04:11:02 +00:00
hyatt%netscape.com
272bbaad57 Work on 48150 and XBL performance (async and arenas).
git-svn-id: svn://10.0.0.236/trunk@76267 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 04:04:18 +00:00
conrad%ingress.com
8661316900 Not part of build.
1. Removed MMozillaApp mixin class from project. This is now handled by EmbedAPI lib.
2. Added routine to show how to start up the app with a given profile.


git-svn-id: svn://10.0.0.236/trunk@76266 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 03:04:08 +00:00
conrad%ingress.com
4b0ebc514a Not part of build.
Removed MMozillaApp mixin class from project. This is now handled by EmbedAPI lib.


git-svn-id: svn://10.0.0.236/trunk@76265 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 03:03:05 +00:00
conrad%ingress.com
cc57ab067a Not part of build.
Added EmbedAPI lib to project.


git-svn-id: svn://10.0.0.236/trunk@76264 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 03:01:10 +00:00
conrad%ingress.com
d42e858cee Not part of the build!
git-svn-id: svn://10.0.0.236/trunk@76263 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:49:08 +00:00
jfrancis%netscape.com
0b49f3bca3 fix for 48297: ome edit operations not scroling selection into view; r=fm
git-svn-id: svn://10.0.0.236/trunk@76262 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:39:37 +00:00
morse%netscape.com
b327a99d4e minor wording change, part of bug 48742
git-svn-id: svn://10.0.0.236/trunk@76261 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:37:16 +00:00
BlakeR1234%aol.com
ab04012940 Classic skin polish (46613). Make context menus thinner. r=ben, nsbeta3+
git-svn-id: svn://10.0.0.236/trunk@76260 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:34:57 +00:00
morse%netscape.com
8e9b177e00 minor wording change, part of bug 48742
git-svn-id: svn://10.0.0.236/trunk@76259 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:16:14 +00:00
morse%netscape.com
6aa37b52b9 bug 48592, cookie viewer deleting wrong cookie, caused by incorrect change in version 1.78
git-svn-id: svn://10.0.0.236/trunk@76258 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:58:37 +00:00
jfrancis%netscape.com
70ab4acbc7 fixing bustage. bizarre merge error?
git-svn-id: svn://10.0.0.236/trunk@76257 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:53:41 +00:00
rhp%netscape.com
f12beb46c1 Fix for crash when printing emails - Bug #: 48437 - r: xxxxx
git-svn-id: svn://10.0.0.236/trunk@76256 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:46:45 +00:00
rhp%netscape.com
10f693c0e0 Fix for adding display name automatically on ABSync operation - Bug #: 1942 - r: xxxxx
git-svn-id: svn://10.0.0.236/trunk@76255 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:45:51 +00:00
jfrancis%netscape.com
765bda40d2 fix for 45281, cannot insert a table caption. r=fm
git-svn-id: svn://10.0.0.236/trunk@76254 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 23:53:34 +00:00
morse%netscape.com
7d6e4f0a70 bug 42438, add wallet functions to edit menu, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@76253 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 23:38:08 +00:00
bienvenu%netscape.com
dd1de0eba2 fix build warnings
git-svn-id: svn://10.0.0.236/trunk@76252 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 23:00:42 +00:00
bienvenu%netscape.com
03b20d0970 fix bugs with partial uidl, stopping pop3 download, and deleting msgs on server r=putterman 43489 45727 33943
git-svn-id: svn://10.0.0.236/trunk@76251 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 22:56:40 +00:00
rhp%netscape.com
6896cab2a5 Fix for bug #17294 for vCard display on mac - r: putterman
git-svn-id: svn://10.0.0.236/trunk@76250 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 22:11:59 +00:00
morse%netscape.com
b3ba9ee8f5 stage 1 for bug 42438, adding wallet functions to edit menu, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@76249 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 20:50:23 +00:00
BlakeR1234%aol.com
e775085b3e Fix bug 48829, simple two-line change to make tree columns resizable in mailnews subscribe dialog. r=me a=gemal
git-svn-id: svn://10.0.0.236/trunk@76248 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 17:30:15 +00:00
putterman%netscape.com
e7230f5f0d r=bienvenu. Fixes for 16998, 40401, 47946, 47948, 48098, 45272, 45403. Sort by Flag and Unread columns,
Clean up View | Messages menu. Remove folder property menu items.  Remove Newsgroup menu items and branded mail menu item.
Fixed Account tooltip. Make new button work in Select Addresses dialog.


git-svn-id: svn://10.0.0.236/trunk@76247 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 17:04:46 +00:00
jeff.dyer%compilercompany.com
412bcfa517 Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@76246 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 15:07:42 +00:00
jeff.dyer%compilercompany.com
5f9b87830d Bug#34746,34853,40077: Implementation for new method for checking permission to run java.
git-svn-id: svn://10.0.0.236/trunk@76245 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 14:05:18 +00:00
jeff.dyer%compilercompany.com
a7f12cbf24 Bug#16438: Wire up use of new unwrap api.
git-svn-id: svn://10.0.0.236/trunk@76244 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 14:04:32 +00:00
jeff.dyer%compilercompany.com
795227ba5e Bug#16438: New method for unwrapping wrapped java objects for liveconnect.
git-svn-id: svn://10.0.0.236/trunk@76243 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 14:02:53 +00:00
jeff.dyer%compilercompany.com
0a8d03816e Bug#34746,34853,40077: New method for checking permission to run java.
git-svn-id: svn://10.0.0.236/trunk@76242 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 14:01:23 +00:00
ben%netscape.com
8ae3356992 i suck
git-svn-id: svn://10.0.0.236/trunk@76241 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 09:33:56 +00:00
ben%netscape.com
22c71b3ec1 classic skin polish, 46613
git-svn-id: svn://10.0.0.236/trunk@76240 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 09:13:14 +00:00
ben%netscape.com
8ee9f95ce0 classic skin polish (fix sidebarheader for mail folders) 46613
git-svn-id: svn://10.0.0.236/trunk@76239 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 09:10:27 +00:00
ben%netscape.com
3bf5024c38 classic skin polish, 46613
git-svn-id: svn://10.0.0.236/trunk@76238 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 09:06:08 +00:00
ben%netscape.com
a33e5c8953 fix dependencies
git-svn-id: svn://10.0.0.236/trunk@76237 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 06:15:30 +00:00
bryner%uiuc.edu
93be0b73b4 Fixing 48752 - filepicker doesn't show any files. This is fallout from
the recent changes to nsDirectoryService.  r=disttsc@bart.nl.


git-svn-id: svn://10.0.0.236/trunk@76236 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 06:12:00 +00:00
ben%netscape.com
54bb3d482c remove dependency on mailnews from history/navigator
git-svn-id: svn://10.0.0.236/trunk@76235 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 06:02:01 +00:00
ben%netscape.com
c1ad6c583d sidebar tweaks for classic skin, 46613
git-svn-id: svn://10.0.0.236/trunk@76234 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 04:33:19 +00:00
ben%netscape.com
8acc383e96 fix some of the problems introduced by my checkin to this file last night (radiogroup => horizontal, & provide
intial + minimum height to this tree)


git-svn-id: svn://10.0.0.236/trunk@76233 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 03:49:47 +00:00
ben%netscape.com
cc9cc7082a fix broken classic splitters (46613)
git-svn-id: svn://10.0.0.236/trunk@76232 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 03:48:11 +00:00
BlakeR1234%aol.com
8f6778192a Fix bug 47429, just add a style rule to change cursors. r=me a=german
git-svn-id: svn://10.0.0.236/trunk@76231 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 00:05:15 +00:00
BlakeR1234%aol.com
c93397ff17 Fix bug 47430, just add a style rule to change cursors. r=me a=germa
git-svn-id: svn://10.0.0.236/trunk@76230 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 23:54:51 +00:00
dave%intrec.com
8229bb32ee Re-fixing bug 30824 the correct way (which also fixes bug 46753)
git-svn-id: svn://10.0.0.236/trunk@76229 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 23:30:51 +00:00
alecf%netscape.com
e659c72f59 fix ben's bustage of the filter editor (more to come)
git-svn-id: svn://10.0.0.236/trunk@76228 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 22:38:10 +00:00
saari%netscape.com
d178dd6d0f undoing hackery and fixing a leak. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@76227 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 22:19:55 +00:00
mkaply%us.ibm.com
037be63490 OS/2 and AIX Tinderbox break
I have no idea why we don't like having two semicolons in a row, but who the heck would put them there?


git-svn-id: svn://10.0.0.236/trunk@76226 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 20:26:33 +00:00
mozilla.BenB%bucksch.org
a395e2a1ae 28355: Synchronize with server at "Get New Mail". "Contributed" :) by bienvenu, r=BenB, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@76225 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:56:38 +00:00
roc+%cs.cmu.edu
91d3cb9ba7 Adding call to new view API so that the view of a fixed-position frame has a Z-order/clipping parent which is not its geometric parent. Bug 39621. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76224 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:44:11 +00:00
roc+%cs.cmu.edu
dafb67d22b Adding new nsIView/nsIViewManager APIs so that a view can have a different parent for Z-order/clipping purposes than its geometric parent. Bug 39621. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76223 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:05:52 +00:00
blizzard%redhat.com
2d316adc3e fix for bug #48640. fix UMR in offscreen window initialization. a=brendan
git-svn-id: svn://10.0.0.236/trunk@76222 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 17:34:44 +00:00
mkaply%us.ibm.com
bfbf7b1559 OS/2 and AIX Tinderbox break
Short answer: Be consistent about NS_IF_ADDREFing const and non const of the same type in the same file.
Long answer: Send me email


git-svn-id: svn://10.0.0.236/trunk@76221 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 15:03:24 +00:00
ben%netscape.com
01dfc52a92 added file to jar.mn
git-svn-id: svn://10.0.0.236/trunk@76220 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 10:17:02 +00:00
warren%netscape.com
d9fdedd4d4 Fixed path to jar.mn in comment
git-svn-id: svn://10.0.0.236/trunk@76219 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 10:11:50 +00:00
ben%netscape.com
0b40da7144 ditto
git-svn-id: svn://10.0.0.236/trunk@76218 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:48:36 +00:00
ben%netscape.com
09e9e13722 fix preferences -> preferences...
git-svn-id: svn://10.0.0.236/trunk@76217 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:47:56 +00:00
ben%netscape.com
2711569c6f old throbber. no one liked the new one. maybe another throbber contest? (46613)
git-svn-id: svn://10.0.0.236/trunk@76216 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:34:32 +00:00
ben%netscape.com
03bb4f4be7 46613, classic skin polish
git-svn-id: svn://10.0.0.236/trunk@76215 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:27:10 +00:00
ben%netscape.com
e7439f6117 46613, classic skin polish
git-svn-id: svn://10.0.0.236/trunk@76214 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:12:23 +00:00
hyatt%netscape.com
5050d7bca4 Linux linux linux... will we ever teach you how comptrs work?
git-svn-id: svn://10.0.0.236/trunk@76213 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 09:00:25 +00:00
hyatt%netscape.com
ce1540a14a Linux sucks.
git-svn-id: svn://10.0.0.236/trunk@76212 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 07:58:54 +00:00
hyatt%netscape.com
5b7b5430bb Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@76211 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 07:13:52 +00:00
hyatt%netscape.com
67e86b1a57 Fix for 21890 and numerous other bugs. r=pierre, waterson, jst, attinasi, brendan
git-svn-id: svn://10.0.0.236/trunk@76210 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:39:24 +00:00
ben%netscape.com
a7f92a120a 46613...
git-svn-id: svn://10.0.0.236/trunk@76209 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:37:37 +00:00
ben%netscape.com
c5c8ddeba3 polish changes to the account manager, filter and search dialogs. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76208 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:33:18 +00:00
hyatt%netscape.com
a729ae916b Fix for 21890 and numerous other bugs. r=pierre, waterson, jst, attinasi, brendan
git-svn-id: svn://10.0.0.236/trunk@76207 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:28:02 +00:00
jj%netscape.com
48bb2dfa6e #24312: moved Component Registry from [xpcom.xpi] to [browser.xpi]
git-svn-id: svn://10.0.0.236/trunk@76206 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:05:04 +00:00
ben%netscape.com
743e4cad79 jar.mn update
git-svn-id: svn://10.0.0.236/trunk@76205 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:04:33 +00:00
ben%netscape.com
d2cf978a69 46613, classic skin polish
git-svn-id: svn://10.0.0.236/trunk@76204 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 06:01:04 +00:00
rjc%netscape.com
4959563fd7 Fix buf # 44324 (error msg if overloaded FTP server) and bug # 31586 (resolution when logging into user home directory via FTP). r=gagan
git-svn-id: svn://10.0.0.236/trunk@76203 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 05:13:29 +00:00
ben%netscape.com
6649201adf classic skin stuff, 46613
git-svn-id: svn://10.0.0.236/trunk@76202 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 04:24:29 +00:00
svn%xmlterm.org
189ad8f1c3 --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
Fixed overlay to XMLterm back into the tasks menu.


git-svn-id: svn://10.0.0.236/trunk@76201 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 03:51:02 +00:00
danm%netscape.com
380c312459 plug leaking nsWindow. bug 48066. code=sean@beatnik.com r=law@netscape.com, me
git-svn-id: svn://10.0.0.236/trunk@76200 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 02:35:58 +00:00
sfraser%netscape.com
4e94847de0 Fix typo, bug 48616. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@76199 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:42:04 +00:00
BlakeR1234%aol.com
f698420a5b Fix bug 42957 - make enter/return work properly in the XPInstall dialog. r=dveditz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@76197 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:31:32 +00:00
mcafee%netscape.com
5081846ce5 splitting forms-and-passwords pref pane into two panes, out of realestate (40888). r=slamm
git-svn-id: svn://10.0.0.236/trunk@76196 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:30:18 +00:00
mcafee%netscape.com
fb81e8a614 Saving space in winhooks pref panel (40888). r=slamm
git-svn-id: svn://10.0.0.236/trunk@76195 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:29:01 +00:00
sfraser%netscape.com
9c6d4bcbfc Final part of fix for 25161 -- use the new user-select: _moz_all that pierre just checked in.
git-svn-id: svn://10.0.0.236/trunk@76194 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:26:39 +00:00
edburns%acm.org
cdaf385ad3 Changes to make it build in the BAL case.
git-svn-id: svn://10.0.0.236/trunk@76193 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:22:18 +00:00
cyeh%bluemartini.com
70d7d094e9 fix for bug #44691, patch submitted by jmrobins@tgix.com (Joe Robins)
git-svn-id: svn://10.0.0.236/trunk@76192 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:14:25 +00:00
edburns%acm.org
7e99186539 Make it so BAL_INTERFACE=1 compiles on solaris.
git-svn-id: svn://10.0.0.236/trunk@76191 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:08:37 +00:00
putterman%netscape.com
fcea01ecdb Fix for 48314. Unable to toggle between flag and unflagged in threadpane. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76190 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:08:09 +00:00
edburns%acm.org
89d95f4ec6 Make it so BAL_INTERFACE=1 compiles on Solaris.
git-svn-id: svn://10.0.0.236/trunk@76189 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:08:04 +00:00
putterman%netscape.com
abbd64706f Fix for 46342. Remove remember last selected message from preferences. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76188 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:06:16 +00:00
pierre%netscape.com
83df3e3c44 48096: Need a -moz-all value for user-select. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@76187 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:00:14 +00:00
sfraser%netscape.com
0c4e6f39c9 Toolbar cleanup 47506 -- less obnoxious toggled color. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@76186 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:58:45 +00:00
sfraser%netscape.com
e4b56f3564 Fixes for 37815 -- editor toolbar cleanup. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@76184 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:47:05 +00:00
sfraser%netscape.com
f11ecfb1ad Work for 37815 -- better dropdown CSS and images. r=cmanske.
git-svn-id: svn://10.0.0.236/trunk@76183 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:45:23 +00:00
beard%netscape.com
82866616d8 Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@76182 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:45:09 +00:00
saari%netscape.com
3b61368cb8 Fix more leaks bug 48126 again. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@76180 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:38:22 +00:00
ducarroz%netscape.com
9eb73796ed Fix for bug 47855. Implement Save as File and fix command Save to remember which default action to performe (save as file, save as draft or save as template). R=ducarroz
git-svn-id: svn://10.0.0.236/trunk@76177 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:29:43 +00:00
sfraser%netscape.com
b2984ba0ab Part of fix for 47855 -- don't show title prompt when saving from mail or plaintext. r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@76175 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:16:10 +00:00
sfraser%netscape.com
b34448f00f CSS for editor toolbar buttons for bug 38792. r=cmanske, ben.
git-svn-id: svn://10.0.0.236/trunk@76173 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:02:56 +00:00
sfraser%netscape.com
b25e165fa5 Fix for bugs 38792, 47506 -- tidyup of editor toolbar. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@76172 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:02:32 +00:00
mccabe%netscape.com
9657613bc1 Fix to 39438.
Add a TokenStream entry to the regexp parser state so that regexps compiled at script-compilation time can report filename and line number on error.


git-svn-id: svn://10.0.0.236/trunk@76171 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 23:55:07 +00:00
jband%netscape.com
8e8146c9c7 Pass the buffer length in bytes to nsCRT::memcmp. a=warren
git-svn-id: svn://10.0.0.236/trunk@76170 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 23:46:09 +00:00
cmanske%netscape.com
5bdca17f9e Fixing editor ui bugs 47697, image dialog button problem (part of 47651). r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76169 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 23:43:12 +00:00
morse%netscape.com
3c119236b1 bug 48267, remove a textfield from wallet's pref panel, r=danm
git-svn-id: svn://10.0.0.236/trunk@76165 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 22:38:55 +00:00
cmanske%netscape.com
3351e53730 Fixed spacing around text in titledboxes for Modern skin. b=46423, 42331. r=beppe
git-svn-id: svn://10.0.0.236/trunk@76164 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 22:27:09 +00:00
jst%netscape.com
c69109493c Backing out changes that should've been checked onto a branch. Sorry about that.
git-svn-id: svn://10.0.0.236/trunk@76159 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 22:10:35 +00:00
law%netscape.com
eb9cb69f88 Bug 21137; make Shift-Reload force reload from server; r=radha@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76158 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 22:08:13 +00:00
edburns%acm.org
1968a5ae56 bug=47357
a=edburns
r=edburns
author=avm

This fix adds a length parameter to the loading of URLs.  It also adds a new util function util_getStringLength().


git-svn-id: svn://10.0.0.236/trunk@76157 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:58:56 +00:00
mcafee%netscape.com
4113e0d3f3 Thin separators to save space (40888)
git-svn-id: svn://10.0.0.236/trunk@76155 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:54:18 +00:00
morse%netscape.com
ad18cdd128 bug 46989, cookies don't work if components.reg is missing, r=dougt
git-svn-id: svn://10.0.0.236/trunk@76153 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:51:52 +00:00
pchen%netscape.com
034f671d83 bug 22342, r=danm, back out ben's hack to try to load URL in current window if empty otherwise load in a new window, now always load using openTopWin()
git-svn-id: svn://10.0.0.236/trunk@76152 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:49:53 +00:00
javi%netscape.com
88199bbfc6 Fix for bug #44652
git-svn-id: svn://10.0.0.236/trunk@76151 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:43:57 +00:00
jst%netscape.com
82c4f10195 DOM API string changes...
git-svn-id: svn://10.0.0.236/trunk@76150 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:41:59 +00:00
edburns%acm.org
e962e3882f Update makefile to pull JNI includes from src_share.
git-svn-id: svn://10.0.0.236/trunk@76148 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:35:29 +00:00
ruslan%netscape.com
2d3c31f3be Fix 47408, a=gagan,r=neeti
git-svn-id: svn://10.0.0.236/trunk@76147 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:31:13 +00:00
valeski%netscape.com
6392db4d27 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@76146 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:12:27 +00:00
varada%netscape.com
e15fac2346 fix for bug #46323;unable to launch alternate 3panewindow from addressbook; r= ducarroz
git-svn-id: svn://10.0.0.236/trunk@76145 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:04:43 +00:00
scc%mozilla.org
5266231e55 not part of the build; adding multi-fragment strings to the test suite
git-svn-id: svn://10.0.0.236/trunk@76144 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:54:25 +00:00
varada%netscape.com
cace056fe0 fix for bug#40368; removing Stop button from msg compose window; r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@76143 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:52:39 +00:00
law%netscape.com
4d86094da6 Bug 17524; add 'Bookmark this Link' context menu choice; r=slamm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76140 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:44:06 +00:00
conrad%ingress.com
a2cf6be101 Changed from using strings for nsIDirectoryService props to using macro names defined in nsDirectoryServiceDefs.h
r=valeski


git-svn-id: svn://10.0.0.236/trunk@76139 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:31:57 +00:00
mccabe%netscape.com
d9ba450d3d Spelling fix.
git-svn-id: svn://10.0.0.236/trunk@76138 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:31:17 +00:00
roc+%cs.cmu.edu
c2df6ad973 Testcase for bug 25707.
git-svn-id: svn://10.0.0.236/trunk@76137 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:28:49 +00:00
conrad%ingress.com
dfbe032f38 Added appfilelocprovider usage
r=valeski


git-svn-id: svn://10.0.0.236/trunk@76136 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:28:32 +00:00
mcafee%netscape.com
50b23735dd Saving space in pref pane (40888). r=slamm
git-svn-id: svn://10.0.0.236/trunk@76135 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:26:30 +00:00
conrad%ingress.com
48e7ec20b8 1. Changed from using strings to using macro names for property keys
2. Fixed return val of RegisterProvider
r=valeski


git-svn-id: svn://10.0.0.236/trunk@76134 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:25:18 +00:00
conrad%ingress.com
2a7d6c6682 Added an impl of nsIDirectoryServiceProvider to nsProfile.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@76133 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:23:14 +00:00
conrad%ingress.com
2f2ea9dd4e Added the building of appfilelocationprovider lib.
r=sfraser


git-svn-id: svn://10.0.0.236/trunk@76132 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:21:09 +00:00
conrad%ingress.com
f111d7d465 Added appfilelocationprovider lib
git-svn-id: svn://10.0.0.236/trunk@76131 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:18:43 +00:00
conrad%ingress.com
a38d3b0a77 Added appfilelocationprovider lib
r=valeski


git-svn-id: svn://10.0.0.236/trunk@76130 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:17:55 +00:00
conrad%ingress.com
fa1b9b93d7 Changed call of NS_InitEmbedding.
r=adamlock


git-svn-id: svn://10.0.0.236/trunk@76129 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:14:31 +00:00
conrad%ingress.com
1ebdcd7cba Changed params to NS_InitEmbedding.
git-svn-id: svn://10.0.0.236/trunk@76128 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:14:02 +00:00
conrad%ingress.com
03c7af5044 Changed call of NS_InitEmbedding.
git-svn-id: svn://10.0.0.236/trunk@76127 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:13:41 +00:00
nhotta%netscape.com
80721dda88 Disabled caching for encoders since they hold states, bug 48284, r=cata,ftang.
git-svn-id: svn://10.0.0.236/trunk@76126 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:13:31 +00:00
pchen%netscape.com
19cc303013 bug 46137, r=putterman, add id="printMenuItem" to print menu item so that Print Plus overlay gets added right after it
git-svn-id: svn://10.0.0.236/trunk@76125 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:11:25 +00:00
matt%netscape.com
4371f8a557 fix for bug 30375 rev. matt patch taken
git-svn-id: svn://10.0.0.236/trunk@76124 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:10:50 +00:00
conrad%ingress.com
409fc82b6b 1. Removed NS_Init which took a path.
2. Added appfilelocation provider param.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@76123 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:10:06 +00:00
conrad%ingress.com
a46cb958bf 1. Uses appfilelocationprovider. Can pass one in or pass nsnull and default is made.
2. Removed version of NS_InitEmbedding which took char* path.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@76122 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:09:05 +00:00
roc+%cs.cmu.edu
4c56115614 When computing the max-element-size, base percentage margins on the size of the contained max-element-size, not on the container's desired size. Bug 25707. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76121 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:08:15 +00:00
leaf%mozilla.org
89132c59f4 adding mozilla/modules/appfilelocprovider to SeaMonkeyCore --leaf
git-svn-id: svn://10.0.0.236/trunk@76120 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 19:58:25 +00:00
anthonyd%netscape.com
7d90e93839 fix for bug#48472
apparently nsIContent::ChildAt can be successful
and not return a child. now checking fo that.
r: smfr
a: beppe


git-svn-id: svn://10.0.0.236/trunk@76116 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 19:55:39 +00:00
wtc%netscape.com
7006b5f542 Bugzilla bug #39731: the imported pipe needs to have its
secret->md.sync_file_io set to PR_TRUE on NT because unnamed pipes
don't support async io.


git-svn-id: svn://10.0.0.236/trunk@76114 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 18:36:38 +00:00
thayes%netscape.com
c0a3673fd8 Add Pragma: no-cache to PSM UI pages. This prevents caching by the client
and avoids bugs due to missing UI Events, and display of stale content.


git-svn-id: svn://10.0.0.236/trunk@76113 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 17:32:25 +00:00
bienvenu%netscape.com
fc352ff208 work for 22960 speed up msg display performance by speeding up history ab i18n function use r=putterman
git-svn-id: svn://10.0.0.236/trunk@76108 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 13:58:17 +00:00
warren%netscape.com
fafff3b825 Jar manifest updates.
git-svn-id: svn://10.0.0.236/trunk@76107 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 09:05:40 +00:00
morse%netscape.com
f0798011ba bug 48539, needed defensive code to prevent infinite loop on corrupted data
git-svn-id: svn://10.0.0.236/trunk@76106 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 07:12:07 +00:00
BlakeR1234%aol.com
3d414e29c8 Fix bug 48414 - enable tree column resizing in the password manager. r=syd a=morse
git-svn-id: svn://10.0.0.236/trunk@76105 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:52:06 +00:00
BlakeR1234%aol.com
6fca72c24b Fix bug 48414 - enable tree column resizing in the cookie and image managers. r=syd a=morse
git-svn-id: svn://10.0.0.236/trunk@76104 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:50:32 +00:00
saari%netscape.com
36b1afb126 nsbeta3+ bug 28508, select all is flakey from the context menu. Make sure popups don't steal focus. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@76103 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:31:09 +00:00
waldemar%netscape.com
c3f9a7aef7 Updated to generate Netscape 6-compatible HTML
git-svn-id: svn://10.0.0.236/trunk@76102 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:27:55 +00:00
waldemar%netscape.com
412bbaa229 Added attributes to for-initializers and no-line-breaks in a few places
git-svn-id: svn://10.0.0.236/trunk@76101 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:27:25 +00:00
waldemar%netscape.com
2a6f7a997f Updated to match documentation site
git-svn-id: svn://10.0.0.236/trunk@76100 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:24:57 +00:00
waldemar%netscape.com
130d41b297 Updated to match styles.css on documentation site
git-svn-id: svn://10.0.0.236/trunk@76099 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:24:39 +00:00
mcafee%netscape.com
6466c19e72 Editor pref files changed locations, but internal chrome: URLs did not and pref panes were blank. Fixing chrome: URLs. r=syd
git-svn-id: svn://10.0.0.236/trunk@76098 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:17:45 +00:00
putterman%netscape.com
d422473358 Fix for 45072. Make address book columns resizeable. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@76097 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 06:00:51 +00:00
mcafee%netscape.com
39724aac3f Saving space in prefs (40888). r=syd
git-svn-id: svn://10.0.0.236/trunk@76095 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 05:30:49 +00:00
warren%netscape.com
88b71c97d5 Fixed to clean up files and directories properly. Fixed mod times of copied files so they don't get re-jarred.
git-svn-id: svn://10.0.0.236/trunk@76094 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 05:16:15 +00:00
nelsonb%netscape.com
e07feb7d25 Add commented-out lines to build on other platforms.
Clean target now removes libmpi.a also.


git-svn-id: svn://10.0.0.236/trunk@76093 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 05:01:59 +00:00
cmanske%netscape.com
aa6f5ab8c7 Restrict nsEditorShellMouseListener to HTML editor; fix to optimize GetSelectedNode for named anchors, b=47687, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76092 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:59:37 +00:00
alecf%netscape.com
655d4029e9 speedup for 26456 - use autostring instead of PR_smprintf
r=putterman


git-svn-id: svn://10.0.0.236/trunk@76091 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:32:08 +00:00
mstoltz%netscape.com
bf3ffda0ef bug 47670. r=jtaylor
git-svn-id: svn://10.0.0.236/trunk@76090 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:31:08 +00:00
alecf%netscape.com
76cac84419 local mail speedup for #26456 r=putterman
use autostrings not PR_smprintf


git-svn-id: svn://10.0.0.236/trunk@76089 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:28:49 +00:00
alecf%netscape.com
f9cf749d55 speedup for #26456 - use autostring instead of PR_smprintf r=putterman
git-svn-id: svn://10.0.0.236/trunk@76088 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:27:37 +00:00
danm%netscape.com
bc5dce6605 Request scrollbars in new window opened in toOpenWindowByType. Necessary now that scrollbars=no is supported.
git-svn-id: svn://10.0.0.236/trunk@76087 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:00:29 +00:00
danm%netscape.com
c007797bdf sync with nsWebShellWindow.h rev 1.109
git-svn-id: svn://10.0.0.236/trunk@76086 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:44:49 +00:00
danm%netscape.com
b399772bf1 adding ability to open a browser without scrollbars (window.open(...scrollbars=no)) bug 28193
git-svn-id: svn://10.0.0.236/trunk@76085 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:43:44 +00:00
cmanske%netscape.com
28dc46ae74 More editor UI bug fixes: 47653, 47688, 47693, 47687. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76083 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:20:47 +00:00
jtaylor%netscape.com
0a53eb51a1 Fixes bug #45877. r=mstoltz.
git-svn-id: svn://10.0.0.236/trunk@76081 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:11:24 +00:00
cmanske%netscape.com
21c98fdd2d Added more space above text for toolbar buttons. Part of 46423. r=hangas
git-svn-id: svn://10.0.0.236/trunk@76078 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:08:38 +00:00
wtc%netscape.com
56520691f3 Use real sockets in the poll desc array as opposed to NULL. Some
platforms seem to have problem polling on an array of -1's.


git-svn-id: svn://10.0.0.236/trunk@76077 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 03:00:45 +00:00
mccabe%netscape.com
9f72f530f8 Back in backed-out fix.
git-svn-id: svn://10.0.0.236/trunk@76076 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 02:58:30 +00:00
jtaylor%netscape.com
97722abc48 Fixes bug #41571. r=mstoltz.
git-svn-id: svn://10.0.0.236/trunk@76075 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 02:46:47 +00:00
saari%netscape.com
d94289754b Fix for leaks. Bug 48126 r=dbaron, hyatt
git-svn-id: svn://10.0.0.236/trunk@76074 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 02:11:53 +00:00
nelsonb%netscape.com
adc94749ec Change mp_add and mp_sub to not allocate a temporary variable unless it's
really necessary.


git-svn-id: svn://10.0.0.236/trunk@76073 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:58:20 +00:00
anthonyd%netscape.com
76985c2924 fix for bug# 48472 (dogfood bug)
r: mjudge
a: beppe


git-svn-id: svn://10.0.0.236/trunk@76072 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:36:28 +00:00
despotdaemon%netscape.com
92120402dc Pseudo-automatic update of changes made by rcassin@supernova.org.
git-svn-id: svn://10.0.0.236/trunk@76071 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:35:41 +00:00
wtc%netscape.com
9575d94c34 Updated for 4.1 release.
git-svn-id: svn://10.0.0.236/trunk@76070 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:34:31 +00:00
putterman%netscape.com
c03194eab2 Fix for bugs 46973. Select all now selects all messages in threaded mode. Fix for 20375. Expand/Collapse All in threaded mode.
r=alecf.


git-svn-id: svn://10.0.0.236/trunk@76069 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:14:59 +00:00
wtc%netscape.com
b716fed993 Moved prgcleak.c from mozilla/nsprpub/pr/src/md/mac/prgcleak.c.
git-svn-id: svn://10.0.0.236/trunk@76066 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 01:02:37 +00:00
wtc%netscape.com
6efa917951 Bugzilla bug #30746: backed out the PR_SetConcurrency(2) workaround
because it introduced other problems.


git-svn-id: svn://10.0.0.236/trunk@76065 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:57:50 +00:00
scc%mozilla.org
2d8a21877e Bug #47244. patch from sean@beatnik.com; thanks sean! r=scc, a=waterson
git-svn-id: svn://10.0.0.236/trunk@76064 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:55:59 +00:00
warren%netscape.com
03c2e00d03 Fixed bustage for chrome:: rule
git-svn-id: svn://10.0.0.236/trunk@76063 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:47:03 +00:00
scc%mozilla.org
12978905ce bug #48464. explicitly picking my own or the auto-generated function, in particular |operator=|. r={vidur, waterson}, a=vidur
git-svn-id: svn://10.0.0.236/trunk@76062 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:42:41 +00:00
pinkerton%netscape.com
84a5d0af08 another great patch from dean, with a honker of a comment explaining what is going on from me. we need to check more than one level down to see if we should move the selected item back to |mTimerMenu| when the selection timer fires. fixes bug 29400. yay!!!! r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@76061 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:37:59 +00:00
kestes%staff.mail.com
8a0029f728 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76060 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:35:25 +00:00
law%netscape.com
c4e4c6b6af Bug 17524; add 'Bookmark this Link' context menu choice; r=slamm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76059 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:31:52 +00:00
jelwell%netscape.com
12242a3aae Fixing bugscape bug 830, Address Book was calling CallSaveListeners before the abURI was created. r=alecf
git-svn-id: svn://10.0.0.236/trunk@76058 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:29:14 +00:00
kestes%staff.mail.com
030babe66c *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76057 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:27:27 +00:00
despotdaemon%netscape.com
25de771aa3 Pseudo-automatic update of changes made by shannond@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@76056 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:26:50 +00:00
leaf%mozilla.org
0c9f2d461f Automated update
git-svn-id: svn://10.0.0.236/trunk@76055 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:15:09 +00:00
warren%netscape.com
cce592f105 Getting gc leak-detector to work on linux. Non-nspr changes. code=beard,wade r=warren
git-svn-id: svn://10.0.0.236/trunk@76054 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:13:39 +00:00
alecf%netscape.com
a420cb67b7 fix for 44714 - remove ignore/watch thread (easy fix, no review)
git-svn-id: svn://10.0.0.236/trunk@76053 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:10:18 +00:00
hyatt%netscape.com
f43472dc93 Fix for 47081. r=ben
git-svn-id: svn://10.0.0.236/trunk@76052 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:05:49 +00:00
cmanske%netscape.com
63f196955b Attempt to fix plain text messenger composer bug 48474, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76051 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:02:43 +00:00
despotdaemon%netscape.com
1b54a8b219 Pseudo-automatic update of changes made by tao@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@76050 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:55:08 +00:00
warren%netscape.com
f55b1908f9 Preparing for jar packaging. Added warning.
git-svn-id: svn://10.0.0.236/trunk@76049 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:52:29 +00:00
sgehani%netscape.com
003ac640b8 For Unix, create component.reg in cwd, not the specified program dir.
[nsbeta3+ b=47721; r=dveditz]


git-svn-id: svn://10.0.0.236/trunk@76048 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:50:32 +00:00
despotdaemon%netscape.com
81705af534 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@76047 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:46:46 +00:00
despotdaemon%netscape.com
bb29fcebb0 Pseudo-automatic update of changes made by jelwell@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@76046 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:41:53 +00:00
mccabe%netscape.com
19434bb257 Backout until I can figure out why mac doesn't like strlen here, even though it seems OK elsewhere.
git-svn-id: svn://10.0.0.236/trunk@76045 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:32:03 +00:00
mcafee%netscape.com
ba775a0587 Splitting cookies/images pref pane into two separate panes (40888). r=ben
git-svn-id: svn://10.0.0.236/trunk@76044 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:27:21 +00:00
warren%netscape.com
6940a6f6a6 Fixed formatting of output so that things line up again.
git-svn-id: svn://10.0.0.236/trunk@76043 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:20:07 +00:00
pchen%netscape.com
ee724d936a bug 42854, r = ben, checking patch from gemal@gemal.dk to change download progress dialog to not have OK button
git-svn-id: svn://10.0.0.236/trunk@76042 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:13:33 +00:00
alecf%netscape.com
d3002525ff fix for #35803 - call the onload handler so that the page is re-initialized too
r=putterman


git-svn-id: svn://10.0.0.236/trunk@76038 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:09:26 +00:00
mcafee%netscape.com
921f818977 Removing wallet from makefiles, fixes solaris bustage. r=Daa
git-svn-id: svn://10.0.0.236/trunk@76037 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:04:33 +00:00
attinasi%netscape.com
e7b5464ded Text with 'whitespace:nowrap' no longer uses special Win32-only text measurement code becasue it didn't work. b=42832 r=waterson
git-svn-id: svn://10.0.0.236/trunk@76036 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:03:11 +00:00
mccabe%netscape.com
e147d2735e Fix to 46566.
Always copy the current line string out of the token buffer when generating an error report, rather than just passing the token buffer itself.  The token buffer wasn't necessarily a well-terminated string, so displaying the contents of the string in the error report produced unexpected results.

The unicode string in the error report is owned by a JSString; this string is rooted for the (stack-based) lifetime of the error report.

Fix courtesy jband.

r=mccabe
a=beard


git-svn-id: svn://10.0.0.236/trunk@76035 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 23:02:39 +00:00
mccabe%netscape.com
fa87396bba Fix to 34425 -
Always create an error report, even when there is no current stack frame and it might be empty.  This fixes an API regression; we used to allow JS_ReportError to be called from the API when no JavaScript was running.

r=rogerl
a=beard


git-svn-id: svn://10.0.0.236/trunk@76034 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:57:40 +00:00
mscott%netscape.com
500fe3c2d7 Bug #44161, 44160 --> get the correct prompt object for the current window instead
of using the one attached to the hidden window. We used to get it from the compose
docshell but when you send the message, that window is actually gone. We should
parent the alerts off of an underlying mail window...
r=ducarroz


git-svn-id: svn://10.0.0.236/trunk@76033 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:56:29 +00:00
mccabe%netscape.com
2d6aa46deb Fix to 47409 -
Don't use timezone comment in javascript Date object toString string if it looks like it might not be ASCII.

a,r=beard


git-svn-id: svn://10.0.0.236/trunk@76032 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:54:45 +00:00
mscott%netscape.com
01970ef5f8 Bug #44161 --> remove reference to m_docshell which we don't need now.
r=ducarroz


git-svn-id: svn://10.0.0.236/trunk@76031 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:54:37 +00:00
ruslan%netscape.com
fc6cf6f5c0 Fix 46496, r/a=gagan
git-svn-id: svn://10.0.0.236/trunk@76030 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:38:56 +00:00
ducarroz%netscape.com
d26c7cb6c3 Fix for bug 27170. Remove option UUencode for attachment. R=mscott
git-svn-id: svn://10.0.0.236/trunk@76029 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:29:44 +00:00
ducarroz%netscape.com
f0b066fa51 Fix for bug 47361. Don't access direclty the buffer of a nsAutoCString, it might not be in sync with the content of the string itself. R=bienvenu,mscott
git-svn-id: svn://10.0.0.236/trunk@76028 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:27:09 +00:00
gagan%netscape.com
793935f471 Fix for bugscape 1800. Offline mode would have sit in recursion. This was already fixed for the M17 branch just doing the same for the tip.
git-svn-id: svn://10.0.0.236/trunk@76027 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:11:13 +00:00
despotdaemon%netscape.com
b48c7f59b4 Pseudo-automatic update of changes made by kestes@staff.mail.com.
git-svn-id: svn://10.0.0.236/trunk@76026 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:10:34 +00:00
heikki%netscape.com
dd53ea068d Trivial, bug 41772, we were not setting the return value in all cases for HandleEventInternal. r=jst.
git-svn-id: svn://10.0.0.236/trunk@76025 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:07:33 +00:00
alecf%netscape.com
d733d093e5 fix for #43484 - sort the account manager and folder pane according to spec
r=putterman


git-svn-id: svn://10.0.0.236/trunk@76024 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 22:02:52 +00:00
despotdaemon%netscape.com
7d3efcc20e Pseudo-automatic update of changes made by mitesh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@76022 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 21:52:39 +00:00
nelsonb%netscape.com
d6d04f83c1 Replace s_mp_ispow2d with faster version. Change s_mp_mul_d to detect
multiplication by 0, 1, and powers of 2, and handle them without actual
multiplication.


git-svn-id: svn://10.0.0.236/trunk@76020 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 21:43:16 +00:00
edburns%acm.org
1f01dae006 a=edburns
r=ashuk
bug=47357
M classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
M src_moz/CBrowserContainer.cpp
M src_moz/NativeEventThread.cpp
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

tar -cvf 47357.2.tar classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java src_moz/CBrowserContainer.cpp src_moz/NativeEventThread.cpp src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

cvs diff -u classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java src_moz/CBrowserContainer.cpp src_moz/NativeEventThread.cpp src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change modifes what one has to do on the native side to add a
listener.

 * How to create a new listener type on the native side: <P>

 * 1. add an entry in the gSupportedListenerInterfaces array defined in
 * ns_util.cpp <P>

 * 2. add a corresponding entry in the LISTENER_CLASSES enum in
 * ns_util.h <P>

 * 3. add a jstring to the string constant list in
 * CBrowserContainer.cpp, below.

 * 4. Initialize this jstring constant in CBrowserContainer.cpp
 * initStringConstants() <P>

 * 5. add an entry to the switch statement in NativeEventThread.cpp
 * native{add,remove}Listener <P>

You have to clobber_all in webclient after this change.


git-svn-id: svn://10.0.0.236/trunk@76019 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 21:38:52 +00:00
wtc%netscape.com
3064c5d83d Added comments to explain the format of the PR_VERSION string.
Set version number to 4.1 Beta.


git-svn-id: svn://10.0.0.236/trunk@76018 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 21:19:17 +00:00
sgehani%netscape.com
f3dce67713 Make license box non-editable.
[nsbeta3+ bugscape b=1939; r=syd]


git-svn-id: svn://10.0.0.236/trunk@76017 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:19:20 +00:00
heikki%netscape.com
5ff983885a Fixed bug 41772, if XLink target was XML file it never opened it in new window. r=jst.
git-svn-id: svn://10.0.0.236/trunk@76016 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:18:49 +00:00
mkaply%us.ibm.com
7a9808d5bf Accidentally checked in branch file on trunk
git-svn-id: svn://10.0.0.236/trunk@76015 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:18:25 +00:00
rayw%netscape.com
b02b43d396 Changed case of nsIFactory.idl methods to start with lower case to be like other
interfaces.  Since the C++ generated code upper-cases the method names, this
affects no C++ code, but only a few javascript methods.

Bug 46771.

r=waterson.

I am in today and tomorrow.


git-svn-id: svn://10.0.0.236/trunk@76014 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:12:08 +00:00
dbaron%fas.harvard.edu
5c4eea6dd3 Fix huge leak warren introduced last night. Changing the hash keys to have owning pointers caused circular ownership. r=waterson b=48373 (nsbeta3+)
git-svn-id: svn://10.0.0.236/trunk@76013 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:08:30 +00:00
ducarroz%netscape.com
65d7e22843 Fix for bug 43441 & bug 32598. Fix various problems with message compose prefs panel. R=varada
git-svn-id: svn://10.0.0.236/trunk@76012 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:03:54 +00:00
mkaply%us.ibm.com
0388cc5888 Initial branch Bidi checkin
git-svn-id: svn://10.0.0.236/trunk@76011 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:01:52 +00:00
ducarroz%netscape.com
89d7e91181 Fix for bug 32598. Re-arrange the frame to be sure it fit (UI change approuved by jglick). R=varada
git-svn-id: svn://10.0.0.236/trunk@76010 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 19:56:56 +00:00
jgaunt%netscape.com
d0c9dbc365 a=blizzard@redhat.com r=jgaunt@netscape.com
fixing hp bustage


git-svn-id: svn://10.0.0.236/trunk@76009 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 19:55:25 +00:00
sgehani%netscape.com
9f8f3d16fc Merge M17 branch fix for nsbeta2+ bugscape bug 1895: get rid of error 340 in
Mac installer during XPCOM autoreg by delaying so fragment registry has time
to update newly extracted shlbs.

[branch fix r=dveditz; a=pdt]


git-svn-id: svn://10.0.0.236/trunk@76005 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 19:05:19 +00:00
despotdaemon%netscape.com
8f76cd0e1a Pseudo-automatic update of changes made by briane@qnx.com.
git-svn-id: svn://10.0.0.236/trunk@76002 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 18:35:41 +00:00
despotdaemon%netscape.com
50be60b3f8 Pseudo-automatic update of changes made by dinglis@qnx.com.
git-svn-id: svn://10.0.0.236/trunk@75997 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 13:51:35 +00:00
mcafee%netscape.com
a8f84a1b6f More double-space lossage, whitespace change only.
git-svn-id: svn://10.0.0.236/trunk@75996 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 08:16:40 +00:00
valeski%netscape.com
6bc3545fcb fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@75995 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:59:50 +00:00
cmanske%netscape.com
78c3f83d86 Simplified background image UI in Colors and Background dialog, b=47693, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75994 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:31:52 +00:00
warren%netscape.com
b86de5d4dc Fixed nsStringKey -> nsCStringKey problem
git-svn-id: svn://10.0.0.236/trunk@75993 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:28:01 +00:00
mcafee%netscape.com
6a25660d7f Ignore gnerated files.
git-svn-id: svn://10.0.0.236/trunk@75992 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:25:12 +00:00
mcafee%netscape.com
80bdc83a00 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@75991 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:24:02 +00:00
warren%netscape.com
2950542cad Fixed nsStringKey problems due to hashtable changes.
git-svn-id: svn://10.0.0.236/trunk@75990 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:10:42 +00:00
cmanske%netscape.com
189a5f3e9f Fixed layout in Colors and Background dialog, b=47693, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75989 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:08:07 +00:00
mcafee%netscape.com
73706e3a54 Backing out reorder, to match valeski's backout
git-svn-id: svn://10.0.0.236/trunk@75988 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:07:13 +00:00
valeski%netscape.com
903a9804f4 backing out
git-svn-id: svn://10.0.0.236/trunk@75987 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:06:21 +00:00
warren%netscape.com
ee959ee62f Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@75986 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:05:13 +00:00
valeski%netscape.com
057df7f19b re-ordering so clobber builds are ok
git-svn-id: svn://10.0.0.236/trunk@75985 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:01:40 +00:00
alecf%netscape.com
57ac3904d4 fix for #39016 r=mscott
make more strings localization friendly, and use formatStringFromName where appropriate


git-svn-id: svn://10.0.0.236/trunk@75984 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:00:16 +00:00
cmanske%netscape.com
86437dac18 Fixed tooltip in Colors and Background dialog, b=47693, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75983 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:54:03 +00:00
valeski%netscape.com
e270f6cf85 backing out
git-svn-id: svn://10.0.0.236/trunk@75982 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:51:30 +00:00
valeski%netscape.com
3ae56dd890 backing out
git-svn-id: svn://10.0.0.236/trunk@75981 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:46:00 +00:00
cmanske%netscape.com
f46c8c5393 Tweaked Insert Table dialog, b=47688, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75980 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:44:59 +00:00
mcafee%netscape.com
df6a56ce21 Moving embedding directory to follow xpfe, dependency on xpfelocation_s.a was introduced by embedding tonight. Component ? or better solution? Fixes linux bustage. a=syd
git-svn-id: svn://10.0.0.236/trunk@75979 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:43:05 +00:00
scc%mozilla.org
e98f6c2c7c fixes needed to get multi-fragment strings working; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75978 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:36:54 +00:00
warren%netscape.com
fac6eb1451 Fixed nscom.h -> nsCom.h
git-svn-id: svn://10.0.0.236/trunk@75977 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:35:34 +00:00
morse%netscape.com
0b19dc7209 fix bug 48241, crash when visiting url
git-svn-id: svn://10.0.0.236/trunk@75976 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:34:24 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
conrad%ingress.com
0a2d2db689 Fixed double line feed problem.
git-svn-id: svn://10.0.0.236/trunk@75974 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:06:02 +00:00
valeski%netscape.com
be3eff76db fixing windows hatred of goto inits
git-svn-id: svn://10.0.0.236/trunk@75973 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 05:23:05 +00:00
mcafee%netscape.com
14d36bbdb1 Fixing unix bustage.
git-svn-id: svn://10.0.0.236/trunk@75972 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 05:14:54 +00:00
mcafee%netscape.com
93d264db2f Adding nsDirectoryServiceDefs.h, fixing whitespace problems. This would have become linux bustage later.
git-svn-id: svn://10.0.0.236/trunk@75971 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:53:37 +00:00
conrad%ingress.com
39dbfd4b1a Changed strings to use macros
Fixed FindWinFolder which was not doing anything.


git-svn-id: svn://10.0.0.236/trunk@75970 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:39:30 +00:00
conrad%ingress.com
ffac91d169 Added nsDirectoryServiceDefs.h
git-svn-id: svn://10.0.0.236/trunk@75969 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:37:43 +00:00
conrad%ingress.com
3c685a3da5 Added the building of appfilelocationprovider lib.
r=sfraser


git-svn-id: svn://10.0.0.236/trunk@75968 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:36:59 +00:00
mcafee%netscape.com
d33428150e Reverting conrads change, accidentally double-spaced entire file.
git-svn-id: svn://10.0.0.236/trunk@75967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:29:05 +00:00
conrad%ingress.com
8792af6e42 Export of nsDirectoryServiceDefs.h
r=valeski


git-svn-id: svn://10.0.0.236/trunk@75966 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:12:16 +00:00
conrad%ingress.com
4cbe746cf8 Export of defs header file.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@75965 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:11:15 +00:00
conrad%ingress.com
4f099f2db5 Added appfilelocprovider lib, shell32 lib
r=valeski


git-svn-id: svn://10.0.0.236/trunk@75964 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:10:24 +00:00
conrad%ingress.com
1ebc1b19fb First checkin.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@75963 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:03:52 +00:00
conrad%ingress.com
10b518db79 First checkin.
git-svn-id: svn://10.0.0.236/trunk@75962 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 04:02:25 +00:00
mscott%netscape.com
007f8e73f7 Backing out mstoltz's earlier checkin to bring mailnews back to life.
a=mcafee


git-svn-id: svn://10.0.0.236/trunk@75961 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:57:43 +00:00
valeski%netscape.com
764b5a125b fixing windows linkage problems
git-svn-id: svn://10.0.0.236/trunk@75960 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:50:12 +00:00
cmanske%netscape.com
f3cfdd30aa Big UI fix checkin continued - same bugs as last checkin. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75959 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:43:09 +00:00
conrad%ingress.com
ed5327cc88 Changed params to NS_InitEmbedding.
git-svn-id: svn://10.0.0.236/trunk@75958 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:43:06 +00:00
mkaply%us.ibm.com
a9a603ea20 r=waterson, a=waterson
OS/2 and AIX tinderbox break - shouldn't NS_IF_ADDREF a member in a const function


git-svn-id: svn://10.0.0.236/trunk@75957 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:39:05 +00:00
valeski%netscape.com
62a9983d74 fixing build bustage on linux
git-svn-id: svn://10.0.0.236/trunk@75956 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:37:36 +00:00
valeski%netscape.com
b6e04fc6fa fixing bustage
git-svn-id: svn://10.0.0.236/trunk@75955 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:29:50 +00:00
valeski%netscape.com
7e2825ed28 checking in for conrad to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@75954 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:27:21 +00:00
valeski%netscape.com
3738c48369 temp fix for build problem
git-svn-id: svn://10.0.0.236/trunk@75953 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:15:57 +00:00
brendan%mozilla.org
36587fa68b Fix cut-and-paste bugs in JavaMember_finalize (48304, r=pschwartau).
git-svn-id: svn://10.0.0.236/trunk@75952 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:09:41 +00:00
conrad%ingress.com
0ae5e8b681 Added implementation of nsIDirectoryServiceProvider.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75951 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:08:39 +00:00
conrad%ingress.com
dd41a9d6cc 1. Uses appfilelocationprovider. Can pass one in or pass nsnull and default is made.
2. Removed version of NS_InitEmbedding which took char* path.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@75950 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:07:25 +00:00
wtc%netscape.com
a08d1fb996 Bugzilla bug #34920: fixed a bug in PR_EmulateAcceptRead that depended
on the implementation of an enum.


git-svn-id: svn://10.0.0.236/trunk@75949 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:40:12 +00:00
rhp%netscape.com
186f953f67 Fix for Japanese text being corrupted in Forward Inline - Bug #: 48118 - r: mscott
git-svn-id: svn://10.0.0.236/trunk@75948 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:28:26 +00:00
dmose%mozilla.org
d2fb313f29 Changed nsLDAPConnection to execute the nsILDAPMessageListener callbacks directly rather than through an nsISupports proxy, meaning that the default is for them to execute on the nsLDAPConnection thread. Callers can still create a proxy manually and pass it in, if desired. Changed the datasource and channel objects to run correctly on the nsLDAPConnection thread, in the hopes that this would help avoid UI stalls. On Linux, at least, this didn't make any perceptible improvement, but it still is probably a good thing, and may help once more event system loving gets checked in. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75947 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:13:21 +00:00
cmanske%netscape.com
838e3690e4 Changed images for editmode toolbar, part of bug 47515. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75945 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:11:00 +00:00
cmanske%netscape.com
4483c01929 Big UI fix! bugs=47898, 26843, 26871, 37152, 38944, 41545, 42246, 42343, 43089, 45463, 45904, 46001, 47644, 47314, 47510, 47515, 47622, 47650, 47653, 47699, 47700, 46179, 47696, 47693. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75944 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:10:17 +00:00
mscott%netscape.com
9008e92d31 Bug #46086 --> can't read forwarded messages in 4.x because we are setting
a bogus content type on the news article (when it's forwarded as an attachment)
Bug #48135 --> fix forwarding of news messages bustage. Clear the channel listener
and re-generate it every time we load a url.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@75943 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 02:09:33 +00:00
mscott%netscape.com
1deb252a2f Bug #48078, 48081 --> bring up save to disk dialog right away from the helper app dialog instead of
waiting till the download is finished.
properly implement Cancel so we stop the download and clean up the temp file.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75942 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:49:06 +00:00
edburns%acm.org
1cf629674f First checkin of Webclient/IE
git-svn-id: svn://10.0.0.236/trunk@75941 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:33:35 +00:00
edburns%acm.org
3395507383 Make it so the jni headers are built in src_share.
git-svn-id: svn://10.0.0.236/trunk@75940 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:08:14 +00:00
syd%netscape.com
4b2f05254e partial fix for 1611. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@75939 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:04:50 +00:00
despotdaemon%netscape.com
59c052f2cd Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@75938 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:03:05 +00:00
edburns%acm.org
287ea4cd13 Make it so the jni headers are built in src_share.
git-svn-id: svn://10.0.0.236/trunk@75937 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:02:57 +00:00
anthonyd%netscape.com
902ff13a56 bug fix for 47399
dropping a drag session onto the originating selection
should do nothing.
r: mjudge, jfrancis


git-svn-id: svn://10.0.0.236/trunk@75936 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:01:18 +00:00
dr%netscape.com
2c783e6d18 one-line fix for 46658, r=ben
git-svn-id: svn://10.0.0.236/trunk@75935 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 00:52:02 +00:00
scc%mozilla.org
a8fa84f5e5 not part of the build; further work on multi-fragment strings. They are now limping along and can actually be used. They pass all tests not related to |Substring| and |nsPromiseConcatenation|.
git-svn-id: svn://10.0.0.236/trunk@75934 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 00:45:33 +00:00
mscott%netscape.com
3472eb5a1a fix mac breakage...can't use NS_LITERAL_STRING on a const char * on the mac
git-svn-id: svn://10.0.0.236/trunk@75933 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 00:42:19 +00:00
wtc%netscape.com
549a789d96 Bugzilla bug #39942: additional tweaks related to the thread-private
error string buffer.
Modified files: prerror.c, prcthr.c, pruthr.c


git-svn-id: svn://10.0.0.236/trunk@75932 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 00:34:11 +00:00
mccabe%netscape.com
a14775fa94 Cast some parameters to PRUnichar * from jschar * to make the Mac happy.
git-svn-id: svn://10.0.0.236/trunk@75931 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:42:24 +00:00
nbhatla%netscape.com
d751a557bc #46519 -> Mac Classic Skin Polish. Finally added Mac-like tab widgets by modifying XBL and CSS. Also added new IE 5 icons for imported bookmarks, as well as fixing splitter grippy icon state changes. r=andreww
git-svn-id: svn://10.0.0.236/trunk@75930 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:42:18 +00:00
nbhatla%netscape.com
a169511bd5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@75929 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:30:14 +00:00
dr%netscape.com
c7cdd4e462 fix for windows horkage, shouldn't be in there anyway
git-svn-id: svn://10.0.0.236/trunk@75928 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:27:54 +00:00
nbhatla%netscape.com
524cc014d1 #46518 -> Mac Classic Skin Polish. #46178 -> search editor now has arrow buttons. r=andreww
git-svn-id: svn://10.0.0.236/trunk@75927 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:18:30 +00:00
nbhatla%netscape.com
df953c747d #46519 -> Mac Classic Skin Fixes. Pulls out in-line style from XUL for #47680. r=andreww
git-svn-id: svn://10.0.0.236/trunk@75926 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 23:14:02 +00:00
mccabe%netscape.com
6bc1090e99 Fix to 24688. Post a message to the JavaScript console whenever a call is made through XPConnect to a JS Component or other JS object that results in an exception.
Also eliminate xpcJSErrorReport and merge some functionality from it into nsScriptError.

r=jband,a=beard


git-svn-id: svn://10.0.0.236/trunk@75925 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:48:52 +00:00
varada%netscape.com
362f545a76 fix for bug#31549;showing prettyname with identity in msgcompose;r=ducaroz
git-svn-id: svn://10.0.0.236/trunk@75924 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:48:29 +00:00
saari%netscape.com
51e147ef41 Removing nsToolboxFrame.cpp, nsToolbarFrame.cpp, and nsToolBarDragListener.cpp from layout.mcp to keep in sync with dr's changes.
git-svn-id: svn://10.0.0.236/trunk@75923 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:47:32 +00:00
nelsonb%netscape.com
9eeb24807a Eliminate one more warning. Add missing f suffix to float constant.
git-svn-id: svn://10.0.0.236/trunk@75922 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:45:51 +00:00
mjudge%netscape.com
dac8dfc28f use "=" not "==" my bad
git-svn-id: svn://10.0.0.236/trunk@75921 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:43:39 +00:00
radha%netscape.com
c78435dbe9 Fix for bug # 47856. Patch from disttsc@bart.nl r=myself
git-svn-id: svn://10.0.0.236/trunk@75920 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:43:36 +00:00
varada%netscape.com
d498216323 fix for bug#31549;show server pretty name along with identity in mail compose window;r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@75919 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:40:28 +00:00
dr%netscape.com
eec71e3b36 fix for 42635 and related cleanup, r=ben,hyatt
git-svn-id: svn://10.0.0.236/trunk@75918 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:38:46 +00:00
mjudge%netscape.com
533f7943c6 43533 table cell selection color fix. check for table cells/table being added to range and toggle flag to allow cells to draw correctly
git-svn-id: svn://10.0.0.236/trunk@75917 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:34:17 +00:00
mscott%netscape.com
f6f4368368 Bug #44163 --> FEAlert and FEAlertFromServer need a message window and with that message window
we should get the correct nsIPrompt object instead of using the one tied to the hidden window.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@75916 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:33:14 +00:00
mjudge%netscape.com
e5571b2bdf 29570 37393 42794 mac os fix for selecting out of frame bounds.
git-svn-id: svn://10.0.0.236/trunk@75915 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:33:03 +00:00
mscott%netscape.com
5139d46ef4 Bug #44163 --> FEAlert and FEAlertFromServer need a message window
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@75914 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:32:45 +00:00
harishd%netscape.com
c75a8a89fb 36944 - USe NS_VMREFRESH_NO_SYNC to refresh
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75913 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:30:36 +00:00
harishd%netscape.com
12ebb61ff1 42429 - Pass whitespace, inside table, to the sink.
44178 - Enabled SERVER tag
43005 - Made HR a block element per spec.
43499 - Made XML document with .txt extension to be rendered as plain text
45437 - Enabled META charset notification in strict DTD.

r=pollmann


git-svn-id: svn://10.0.0.236/trunk@75912 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:28:41 +00:00
pinkerton%netscape.com
f14fd156e7 Rewrote drag scrolling to not use timers and thus avoid all problems about not being able to unregister the timer. Fixes bug 43428.
git-svn-id: svn://10.0.0.236/trunk@75911 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 22:08:49 +00:00
wtc%netscape.com
8b81966e6d Bugzilla bug #48245: removed the -mno-486 compiler flag.
Modified files: FreeBSD2.mk, Linux.mk
This bug was reported by Steven T. Hatton <hattons@bellatlantic.net>.


git-svn-id: svn://10.0.0.236/trunk@75910 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:53:45 +00:00
edburns%acm.org
60bfaf0127 bug=48227
author=edburns
a=edburns
r=ashuk

Files in this fix:

M classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
M classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
A classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
M src_moz/NativeEventThread.cpp
M src_moz/motif/NativeLoaderStub.cpp

Added class WCEventListenerWrapper:

 * This class allows the custom app to have one instance that implements
 * multiple Webclient event listener types. <P>

 * This is simply a "struct" type class that encapsulates a listener
 * instance with its class name.  This is necessary because the class
 * name is lost when we deal with the listener as a
 * WebclientEventListener, and not a WebclientEventListener subclass. <P>

 * @see org.mozilla.webclient.wrapper_native.NativeEventThread#addListener

Made it so when a java listener is added,

 * We create a WCEventListenerWrapper containing the user passed
 * DocumentLoadListener, and the string obtained from
 * DocumentLoadListener.class.getName();

We then call nativeEventThread.addListener:

 * Takes the abstract WebclientEventListener instance and adds it to a
 * Vector of listeners to be added.  This vector is scanned each time
 * around the event loop in run(). <P>

 * The vector is a vector of WCEventListenerWrapper instances.  In run()
 * these are unpacked and sent to nativeAddListener like this:
 * nativeAddListener(nativeWebShell,tempListener.listener,
 * tempListener.listenerClassName); <P>


git-svn-id: svn://10.0.0.236/trunk@75909 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:47:39 +00:00
rogerl%netscape.com
ccc73deb34 r,a=brendan@mozilla.org. Adding missing ECMA3 compliance toLocaleXXX
functions to built-in Array, Date and Object object prototypes.


git-svn-id: svn://10.0.0.236/trunk@75908 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:46:03 +00:00
larryh%netscape.com
96a76ac15a remove priotest. The test is not valid
git-svn-id: svn://10.0.0.236/trunk@75907 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:42:35 +00:00
dougt%netscape.com
c169f23f6c modified buffer while commiting.
fixing bustage.


git-svn-id: svn://10.0.0.236/trunk@75906 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:15:09 +00:00
dougt%netscape.com
8b2bb50369 Name Changes from GetPrompt to GetPrompter (47889)
git-svn-id: svn://10.0.0.236/trunk@75905 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:13:54 +00:00
dougt%netscape.com
33a8ac965d Renaming GetPrompt() to GetPrompter in nsIDOMWindow. This avoids a namespace
r=vidur@netscape.com (47889)


git-svn-id: svn://10.0.0.236/trunk@75904 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:12:21 +00:00
nelsonb%netscape.com
e66e41e5b2 - Change mp_mul to minimize number of outer loops when multipliers are
of unequal length.
- Fix s_mp_fixup_reciprocal to not truncate the result.
- Use new macros in mpi-priv.h


git-svn-id: svn://10.0.0.236/trunk@75903 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:55:39 +00:00
nelsonb%netscape.com
8f5ab67fa5 Use new MP_HOWMANY macro instead of equivalent code.
git-svn-id: svn://10.0.0.236/trunk@75902 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:53:25 +00:00
dave%intrec.com
b38449a603 Re-fixing bug 46897. Thanks to JRobertson@medevolve.com for catching the
omission in the original patch.


git-svn-id: svn://10.0.0.236/trunk@75901 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:49:11 +00:00
nelsonb%netscape.com
7bfe64da6e Comment out call to unimplemented function, so this will compile.
git-svn-id: svn://10.0.0.236/trunk@75900 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:46:59 +00:00
dp%netscape.com
4905d9910d Perl script to analyze xpcom log output and print results in html
git-svn-id: svn://10.0.0.236/trunk@75899 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:45:24 +00:00
nelsonb%netscape.com
0daabe0bf1 Some unix platform kshells don't understand export VAR=value
So instead use                                VAR=value; export VAR


git-svn-id: svn://10.0.0.236/trunk@75898 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:44:05 +00:00
nelsonb%netscape.com
4b6092a8d7 Add new macros: MP_MIN, MP_MAX, MP_HOWMANY, MP_ROUNDUP.
git-svn-id: svn://10.0.0.236/trunk@75897 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:42:18 +00:00
nboyd%atg.com
1972514928 fix 47859
git-svn-id: svn://10.0.0.236/trunk@75896 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:23:50 +00:00
nboyd%atg.com
4d2963d28d Fix 47859
git-svn-id: svn://10.0.0.236/trunk@75895 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:22:37 +00:00
jtaylor%netscape.com
0351443d26 Fixes bugs 43427 and 46359. Provides clear button and error checking in JS
Console. r=ben. mccabe.


git-svn-id: svn://10.0.0.236/trunk@75894 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:18:38 +00:00
jtaylor%netscape.com
fc30ccdbe5 Add label for clear button re: bug# 43427. r=ben. mccabe
git-svn-id: svn://10.0.0.236/trunk@75893 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:16:50 +00:00
pavlov%netscape.com
bd5b488ba4 avoid calling XSetFont on every draw_text (hopefully) by using the GC cache correctly when drawing text and not calling gdk_draw_text directly. working on linux performance bug 26502. r=imot
git-svn-id: svn://10.0.0.236/trunk@75892 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:15:08 +00:00
despotdaemon%netscape.com
38cf207b54 Pseudo-automatic update of changes made by jgmyers@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75891 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:12:10 +00:00
mstoltz%netscape.com
e686efdeca Fixed 37702 and 47670. r=vidur
git-svn-id: svn://10.0.0.236/trunk@75890 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 20:08:54 +00:00
waterson%netscape.com
b03ddd8490 Bug 47927. Check in the wrong fix to get the tree open. a=granrose.
git-svn-id: svn://10.0.0.236/trunk@75887 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 19:30:14 +00:00
harishd%netscape.com
c3b1fbec56 I didn't cause the leak. Putting my changes back.
a=granrose


git-svn-id: svn://10.0.0.236/trunk@75886 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 17:49:18 +00:00
javi%netscape.com
7a1afca5e4 Don't call the callback function if one is not stored.
git-svn-id: svn://10.0.0.236/trunk@75885 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 17:17:42 +00:00
harishd%netscape.com
1f24ef20e9 Backing out my changes to see if the leak goes away
a=granrose


git-svn-id: svn://10.0.0.236/trunk@75884 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 16:42:20 +00:00
dcone%netscape.com
6d4959771e Taking out the change from yesterday that enables the PatBlt for tiling. Found problems so
I am pulling that change for now.


git-svn-id: svn://10.0.0.236/trunk@75883 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 14:07:55 +00:00
dbaron%fas.harvard.edu
3b9c9e465a Fix leak on hovering over a scrollbar and re-fix similar leak for text inputs (bug 42895) by adding a "general" method for unrooting anonymous content created through nsIAnonymousContentCreator, plus a hack to deal with the scrollbars on the root element. Some of the other SetDocumentForAnonymousContent methods *may* need to be implemented. Chris Waterson helped significantly with this patch. r=waterson,hyatt b=45676 (nsbeta3+)
git-svn-id: svn://10.0.0.236/trunk@75882 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 12:51:05 +00:00
mozilla.BenB%bucksch.org
67fdd48504 47851: Remove unused pref. r=putterman, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75881 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 09:45:52 +00:00
scc%mozilla.org
cdb44d875e better comments re: the formal specification of |SetCapacity|; jag's |ToInteger| patch as per bug #46898; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75880 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:23 +00:00
scc%mozilla.org
cec3e96639 fixed |nsCharSinkTraits<T>::write| as per bug #46462; r=beard, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75879 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:12 +00:00
scc%mozilla.org
98e7fedae2 fixed |BeginWriting| and |EndWriting| to no longer take an offset, fallout from the new multi-fragment string implementation; fixed a bug in |operator-=| exposed by the change to |EndWriting|; fixed |nsWritingIterator<CharT>::write| as per bug #46462; fixed comments galore, significantly better specifying |SetLength| and |SetCapacity|; since |SetCapacity| is just a hint, give it a default implementation rather than making it pure virtual; fixed a couple of the |do_...| routines to unify the code path minimizing overides; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75878 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:08 +00:00
scc%mozilla.org
14a9f6633b fixed |BeginReading| and |EndReading| to no longer take an offset, fallout from the new multi-fragment string implementation; fixed a bug in |operator-=| exposed by the change to |EndReading|; fixed the |CharAt| family of routines accordingly; fixed comments galore; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75877 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:00 +00:00
pinkerton%netscape.com
47269ea7b1 Remove Start/StopTracking methods.
git-svn-id: svn://10.0.0.236/trunk@75876 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:45:12 +00:00
pinkerton%netscape.com
162bb1938a Stop using dragtracker (bug 43428)
git-svn-id: svn://10.0.0.236/trunk@75875 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:43:12 +00:00
pinkerton%netscape.com
505eabb83b Simplification of drag scrolling in trees. Don't try to use view manager to capture the mouse, just not worth it. Make drag area w/in the tree's view. (bug 43428).
git-svn-id: svn://10.0.0.236/trunk@75874 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:42:46 +00:00
pinkerton%netscape.com
a21d2ed2b2 Stop using dragTracker (bug 43428)
git-svn-id: svn://10.0.0.236/trunk@75873 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:41:31 +00:00
pinkerton%netscape.com
c77e714dae stop using dragTracker (bug 43428).
git-svn-id: svn://10.0.0.236/trunk@75872 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:40:54 +00:00
mozilla.BenB%bucksch.org
e2e6ed4a85 36480:
- Don't check for <div> around a sig
- Allow class to be quoted or be one of several
No bug:
- Don't output <div> for plaintext sigs (because 4.x' editor has a bug with <div>s inside <blockquote type=cite>s)
r=ducarroz
a=waterson


git-svn-id: svn://10.0.0.236/trunk@75871 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 07:27:14 +00:00
brendan%mozilla.org
e830c43305 Whitespace panty raid.
git-svn-id: svn://10.0.0.236/trunk@75870 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 06:20:13 +00:00
ben%netscape.com
9ebf63f099 fix for nsbeta3+ bug 41139, can select multiple radio buttons in a group by using the keyboard.
git-svn-id: svn://10.0.0.236/trunk@75869 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:47:46 +00:00
jst%netscape.com
6ffb8c8cef Turning on new DOM Level 2 behavior by default. (bug 48161). a=nisheeth@netscape.com, r=pollmann@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75868 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:31:28 +00:00
pavlov%netscape.com
7f37448436 additional removal of static nsCOMPtrs for bug 43580 r=scc
git-svn-id: svn://10.0.0.236/trunk@75867 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:28:45 +00:00
ben%netscape.com
5ecb03def2 fix for nsbeta3+ bug 41901, link image dragged from one window to another loads the image instead of the linked page.
also tidied up the html string returned in this case so that when dropped into composer, an image enclosed in a link
to the linked page is inserted.


git-svn-id: svn://10.0.0.236/trunk@75866 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:26:44 +00:00
pavlov%netscape.com
b0f48e963e avoid pulling the event out of the queue and putting it right back when typing.. working on linux performance bug 26502 r=beard
git-svn-id: svn://10.0.0.236/trunk@75865 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:16:17 +00:00
putterman%netscape.com
802a5474d2 Fix for 46208. Get rid of '?" before Reply To Sender in thread pane context menu.
patch by gemal@gemal.dk r=scottip.


git-svn-id: svn://10.0.0.236/trunk@75864 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:13:32 +00:00
ben%netscape.com
de5e53e215 nsbeta3+ 46284, crash after trying to install package via software installation pref panel. remove button (was there
for debugging purposes only)


git-svn-id: svn://10.0.0.236/trunk@75863 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:11:29 +00:00
ben%netscape.com
655d38db87 fix for nsbeta3+ bug 40877, 'secs' not localised in navigator.js
git-svn-id: svn://10.0.0.236/trunk@75862 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:10:01 +00:00
ben%netscape.com
c503c5ef62 fix for nsbeta3+ bug 40877, 'secs' is not localised in navigator.js
git-svn-id: svn://10.0.0.236/trunk@75861 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:09:45 +00:00
dmose%mozilla.org
2d5bf4dd91 adding .cvsignore files to stop cvs whining in non-OBJDIR builds. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75860 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 04:44:01 +00:00
dmose%mozilla.org
f97b0d8e85 A number of lines were not properly bracketed by DEBUG conditionals, causing non-DEBUG builds to fail. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75859 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 04:43:33 +00:00
brendan%mozilla.org
5c6a970327 Clear JS watchpoints on the window object before loading a new document (38959, r=mstoltz).
git-svn-id: svn://10.0.0.236/trunk@75858 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 03:30:46 +00:00
morse%netscape.com
e5f3e8b0a8 bug 48076, remove commonDialogs from wallet module, r=dougt
git-svn-id: svn://10.0.0.236/trunk@75857 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 03:27:32 +00:00
saari%netscape.com
ce8255995f hack part deux for testing for leak increase
git-svn-id: svn://10.0.0.236/trunk@75856 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:59:44 +00:00
blizzard%redhat.com
1e041a9cfc add some extra test cases for the embedding widget
git-svn-id: svn://10.0.0.236/trunk@75855 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:52:09 +00:00
scc%mozilla.org
2afa96eead not part of the build; further work on multi-fragment strings. Moved the bulk of the template implementation to the header file. This file needs to continue to exist for when I finally un-templatize the interfaces
git-svn-id: svn://10.0.0.236/trunk@75854 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:48:27 +00:00
scc%mozilla.org
fe25ceec15 not part of the build; further work on multi-fragment strings
git-svn-id: svn://10.0.0.236/trunk@75853 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:47:33 +00:00
blizzard%redhat.com
018c0630c5 warning fixes in gtkmozembed.h. fix for bug #46279. reparent the mozilla window to an offscreen window when unrealizing since you might get re-realized later. r=pavlov, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75852 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:46:53 +00:00
brendan%mozilla.org
28cf8d024c Add TraceMallocLogTimestamp window method, for bloat storyboarding (#ifdef NS_TRACE_MALLOC, not part of build).
git-svn-id: svn://10.0.0.236/trunk@75851 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:43:09 +00:00
brendan%mozilla.org
3dfa5856af Add captioned timestamp events, for JS storyboarding (not part of build).
git-svn-id: svn://10.0.0.236/trunk@75850 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:41:58 +00:00
cmanske%netscape.com
dbfeb1cd72 Checking in for rcassin@supernova.org. Composer pref fixes, bug 47703, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@75849 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:33:29 +00:00
mscott%netscape.com
ced2ee490a Bug #1642 --> don't run JS urls with the default browser (effects shrimp only)
r=prass


git-svn-id: svn://10.0.0.236/trunk@75848 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:30:58 +00:00
ben%netscape.com
94be5f8b8d adding reorder styles for nsbeta3+ bug 46516 to modern and mac classic skin
git-svn-id: svn://10.0.0.236/trunk@75847 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:26:45 +00:00
saari%netscape.com
585834ef4b temp hack to test theory for sudden increase in leaks
git-svn-id: svn://10.0.0.236/trunk@75846 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:25:51 +00:00
nbhatla%netscape.com
053f5cf498 #46519 -> Mac Classic Skin Fixes. This checkin specifically fixes the pref-languages panel, so that the reorder arrow buttons now appear properly on all platforms.
git-svn-id: svn://10.0.0.236/trunk@75845 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:25:43 +00:00
ftang%netscape.com
16e9ce78b8 fix 45347. swap the order for author and content-type to make the content-type
appear first in the meta tag since we need to know the encoding before hitting
non ASCII value in the author name. r=cmanske


git-svn-id: svn://10.0.0.236/trunk@75844 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:25:25 +00:00
cmanske%netscape.com
105a987da1 Checking in for rcassin@supernova.org. Composer pref string fixes, bug 47703, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@75843 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:22:57 +00:00
ftang%netscape.com
12d44d4f28 fix 45347. do case insenstive comparesion for html attribute value
r=cmanske


git-svn-id: svn://10.0.0.236/trunk@75842 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:22:56 +00:00
bienvenu%netscape.com
ca155eaae5 fix freeing of uninitialized memory, prob result of trying to fix memory leaks, r=mscott
git-svn-id: svn://10.0.0.236/trunk@75840 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 01:32:20 +00:00
alecf%netscape.com
31646b2676 oops, forgot this file with a checkin earlier today
git-svn-id: svn://10.0.0.236/trunk@75839 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 01:17:19 +00:00
sfraser%netscape.com
607439019b More bustage fixing with style struct return types.
git-svn-id: svn://10.0.0.236/trunk@75838 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 00:52:02 +00:00
alecf%netscape.com
faebf440ab fix mac bustage by using AssignWithConversion
git-svn-id: svn://10.0.0.236/trunk@75837 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 00:38:01 +00:00
sfraser%netscape.com
572368546b Fix Windows compiler suckage. Fixes bustage.
git-svn-id: svn://10.0.0.236/trunk@75836 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 00:27:38 +00:00
tao%netscape.com
99e0bfce16 Lacalizable accesskey fix. (check in for Andrea; r=tao,a=brendan.)
git-svn-id: svn://10.0.0.236/trunk@75835 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 00:21:11 +00:00
jband%netscape.com
278cbd4584 fix bug 47410. Allow JS components to implement nsISecurityCheckedComponent and have sidebar componnet implement it to allow access from untrusted scripts. a=brendan@mozilla.org a=johng@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75834 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:59:32 +00:00
ericb%neoplanet.com
0fede69e4e removed call to widget->CaptureMouse that was crashing under gtk. r=hyatt a=waterson
git-svn-id: svn://10.0.0.236/trunk@75833 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:49:01 +00:00
sfraser%netscape.com
f7ad53e40d Fix for bug 25161 -- allow editor to handle pages with forms by implementing user-select and user-input for form controls. r=rods, pierre, mjudge.
git-svn-id: svn://10.0.0.236/trunk@75832 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:48:42 +00:00
dmose%mozilla.org
358461d7b4 in DEBUG builds, created a PRLogModuleInfo for LDAP (gLDAPLogModule), and migrated most PR_fprintf(STDERR) bracketed by DEBUG_dmose to PR_LOG. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75831 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:44:48 +00:00
sfraser%netscape.com
7726da891c Fix for bug 25161 -- allow editor to handle pages with forms by implementing user-select and user-input for form controls. r=rods, pierre, mjudge.
git-svn-id: svn://10.0.0.236/trunk@75830 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:38:00 +00:00
sfraser%netscape.com
d2a1daeb55 Fix for 25161 -- allow editor to handle pages with form elements. Avoid infinite loop in editor, and add some CSS for form elements in editor. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@75829 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:37:51 +00:00
alecf%netscape.com
e385002b0a big-ass leak fix - stop leaking mail datasources by clearing ourselves out when the last
RDF observer goes away, and re-initializing if new RDF observers arrive on the scene.
r=putterman
fixes #45176, among other leaks


git-svn-id: svn://10.0.0.236/trunk@75828 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:32:55 +00:00
sgehani%netscape.com
ed5414a7fa Make Linux installer work on non-Redhat distributions.
[nsbeta2+ b=47921; r=sgehani; checking in for pavlov]


git-svn-id: svn://10.0.0.236/trunk@75826 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:29:36 +00:00
ben%netscape.com
f5c2d84cf4 forgot to check this in last night...
git-svn-id: svn://10.0.0.236/trunk@75825 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:15:52 +00:00
javi%netscape.com
02d4a55d6d Implement the poll loop on UNIX for the PKCS7 Decoder when finishing up
just in case PSM is a little slow to shove data back at us.


git-svn-id: svn://10.0.0.236/trunk@75824 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:08:53 +00:00
dr%netscape.com
a45cd5e7f6 fix for cache miss loading chrome://navigator/skin/navigator.css, r=ben
git-svn-id: svn://10.0.0.236/trunk@75823 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:07:15 +00:00
nelsonb%netscape.com
475a5fabb5 Emulate an SSL3 client more closely after a server negotiates down to 3.0.
git-svn-id: svn://10.0.0.236/trunk@75822 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:54:02 +00:00
mcafee%netscape.com
4a0b58833b Saving space with thin separator (40888)
git-svn-id: svn://10.0.0.236/trunk@75821 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:45:53 +00:00
cata%netscape.com
9c0beebb05 Fix for bug #28104. r=nhotta, a=ftang.
git-svn-id: svn://10.0.0.236/trunk@75820 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:45:36 +00:00
dr%netscape.com
f7ecc9f460 fix for 38787, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75819 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:42:42 +00:00
mcafee%netscape.com
0a72359f4a Changing font resolution to say screen resolution. r=slamm, akkana
git-svn-id: svn://10.0.0.236/trunk@75818 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:37:54 +00:00
mcafee%netscape.com
b03f8e7b1b Removing whats related description to save room (40888). r=slamm
git-svn-id: svn://10.0.0.236/trunk@75817 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:28:27 +00:00
putterman%netscape.com
1765cbe61f Fix for 37583. Remove View|Sort|Ascending and Descending menu items. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75816 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:28:26 +00:00
larryh%netscape.com
67b0d58523 BugZilla: 25982. MacOS retruns 1
git-svn-id: svn://10.0.0.236/trunk@75815 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:26:42 +00:00
putterman%netscape.com
d5ab05db91 Fix for 37932. r=ducarroz. remove Forward Quoted from preferences.
git-svn-id: svn://10.0.0.236/trunk@75814 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:19:37 +00:00
ruslan%netscape.com
013a4c9859 Checking in the patch for 45337 by jgmeyers, r=ruslan,a=gagan
git-svn-id: svn://10.0.0.236/trunk@75813 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:16:05 +00:00
ducarroz%netscape.com
a96555222f Better fix for Mac Commercial bustage of yesterday. Add xpcompat.h to the manifest file. R=sfraser
git-svn-id: svn://10.0.0.236/trunk@75812 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:15:08 +00:00
alecf%netscape.com
822600462e part of fix for 39016 - add direct access to the string bundle for the mail string bundle stuff
r=mscott


git-svn-id: svn://10.0.0.236/trunk@75811 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:11:40 +00:00
alecf%netscape.com
57f820fbe3 part of fix for #34996 - unify location of username amongst the protocols
git-svn-id: svn://10.0.0.236/trunk@75810 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 22:06:59 +00:00
mcafee%netscape.com
10cf044ae8 Smart browsing pane should be titled as such, not whats related. r=slamm
git-svn-id: svn://10.0.0.236/trunk@75809 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:46:18 +00:00
valeski%netscape.com
0d1eca8726 38260. removing shadowed rv declaration, and xpfe #include dependency
git-svn-id: svn://10.0.0.236/trunk@75808 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:43:47 +00:00
wtc%netscape.com
16e6b94514 Removed obsolete test event.c.
Modified files: Makefile, Makefile.in
Removed file: event.c


git-svn-id: svn://10.0.0.236/trunk@75807 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:35:14 +00:00
wtc%netscape.com
729303241a Make main() return int explicitly.
git-svn-id: svn://10.0.0.236/trunk@75806 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:33:51 +00:00
saari%netscape.com
e1a79e8500 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner


git-svn-id: svn://10.0.0.236/trunk@75805 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:31:05 +00:00
mcafee%netscape.com
20eb835969 Fixing slashes, not part of build.
git-svn-id: svn://10.0.0.236/trunk@75804 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:27:33 +00:00
saari%netscape.com
847a699deb Beginnings of massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner


git-svn-id: svn://10.0.0.236/trunk@75803 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:19:03 +00:00
saari%netscape.com
d3919b1d3e Beginnings of massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner

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


git-svn-id: svn://10.0.0.236/trunk@75802 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:17:28 +00:00
pavlov%netscape.com
38958ad8dc removing a dump() that shows a bogus error
git-svn-id: svn://10.0.0.236/trunk@75801 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:14:18 +00:00
ddrinan%netscape.com
4fd52d34f8 Disable to TLS because some servers do not implement version rollback correctly
git-svn-id: svn://10.0.0.236/trunk@75800 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:10:20 +00:00
mkaply%us.ibm.com
cc1c8681d5 #47881
r=valeski, a=brendan
OS/2 tinderbox break - we need to link mozdbm


git-svn-id: svn://10.0.0.236/trunk@75799 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:05:59 +00:00
bratell%lysator.liu.se
7d881419fb Bug 35802 leaking strings. r=mscott@netscape.com a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@75798 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:02:56 +00:00
nhotta%netscape.com
e604e31a9f Change to call OS API with null argument for default locale, bug 39677, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@75797 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:44:12 +00:00
harishd%netscape.com
8d377df7b3 45975 - Make sure that the head context gets closed before opening up the body.
44285 - Propagate the block message to the parser correctly.
45555 - Pass the node that contains the skipped content to the sink.
46392 - Error message got lost
43481 - P cannot contain P per spec.
44759 - Handling multiple BODYs correctly.
45228, 44758 - Translate entities in TEXTAREA and TITLE before handing the string to the sink

r=pollmann


git-svn-id: svn://10.0.0.236/trunk@75796 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:38:14 +00:00
heikki%netscape.com
6eacdb81c7 Bug 38647 Link clicks on nsImageFrame do not check if legal to load URI. Happened with server side image map. r=mstolz
git-svn-id: svn://10.0.0.236/trunk@75795 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:35:12 +00:00
heikki%netscape.com
319d5d1819 Bug 29473 ondblclick event not being fired.
git-svn-id: svn://10.0.0.236/trunk@75794 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:32:09 +00:00
mcgreer%netscape.com
0f4cf042cb zero the correct amount of input bytes
git-svn-id: svn://10.0.0.236/trunk@75793 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:30:56 +00:00
rogerl%netscape.com
99bdc98433 r=brendan, bug# 34276. Fix for correctly including winsock2.h.
git-svn-id: svn://10.0.0.236/trunk@75792 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:28:49 +00:00
rogerl%netscape.com
eae4a7d9a8 (update to fix for bug #31255). Previous patch was insufficient in that it
didn't handle the case when the tokenstream is not tokenizing newlines.


git-svn-id: svn://10.0.0.236/trunk@75791 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 20:24:56 +00:00
alecf%netscape.com
475d19dc4a fix for prefs bustage
git-svn-id: svn://10.0.0.236/trunk@75790 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 19:50:00 +00:00
sdv%sparc.spb.su
bb0e90b109 fix for bug=47878
NamedNodeMapImpl class should not extend NodeImpl
according to the w3c spec.


git-svn-id: svn://10.0.0.236/trunk@75789 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 16:43:52 +00:00
rods%netscape.com
a7b92c54bc during reflow it makes sure the maxelementsize width is set to the smaller of
min size or the current size.
(see also fix nsGfxTextControlFrame.cpp)
b=40596 r=evaughan


git-svn-id: svn://10.0.0.236/trunk@75788 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:30:08 +00:00
rods%netscape.com
b5b27bd2c4 minor fix for max-element-size. The minsize needs to be calc and cached during the regular reflow
there is too much state to be remember to calc the min size for when ever it is asked for it.
(see also fix nsBoxFramae.cpp)
b=40596 r=evaughan


git-svn-id: svn://10.0.0.236/trunk@75787 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:27:36 +00:00
dcone%netscape.com
e217756243 Check to see if the view had been reparented.. b=44718 a=mcclusk
git-svn-id: svn://10.0.0.236/trunk@75786 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:11:09 +00:00
dcone%netscape.com
a1db32435f Fixes slow scrolling, using patblt on windows NT. bug = 43943. A=mcclusk
git-svn-id: svn://10.0.0.236/trunk@75785 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:07:38 +00:00
valeski%netscape.com
c9ba2e1650 formatting change to wml output
git-svn-id: svn://10.0.0.236/trunk@75784 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 07:38:43 +00:00
ben%netscape.com
d40bead5ce update jar packager file for previous checkin
git-svn-id: svn://10.0.0.236/trunk@75783 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 07:30:03 +00:00
valeski%netscape.com
3fdb365a62 adding WML output for WAP browsers
git-svn-id: svn://10.0.0.236/trunk@75782 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:59:15 +00:00
ben%netscape.com
4be87e92f4 fix for mac bustage. oops
git-svn-id: svn://10.0.0.236/trunk@75781 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:53:21 +00:00
bryner%uiuc.edu
b7be6128e5 Removing .cvsignore files so CVS will realize that this directory is
empty.  Not part of build.


git-svn-id: svn://10.0.0.236/trunk@75780 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:47:17 +00:00
tor%cs.brown.edu
2fd32ef91d Bug 40942 and 47816 - fix off-by-one error in DrawComposited
sanity check.  r=bryner


git-svn-id: svn://10.0.0.236/trunk@75779 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:42:26 +00:00
alecf%netscape.com
167b2f0335 final part of fix for 46712 - flush the string bundle cache when the locale changes
r=hyatt


git-svn-id: svn://10.0.0.236/trunk@75778 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:24:56 +00:00
ben%netscape.com
ac38520166 fix for 47441 & incremental fix for 46613, correct windows classic skin use of system colours in scrollbar thumb.
git-svn-id: svn://10.0.0.236/trunk@75777 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:15:35 +00:00
ben%netscape.com
6bbe804f01 nsbeta3+ bug 45085, move search results 'default.htm' file into locale.
git-svn-id: svn://10.0.0.236/trunk@75776 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 06:07:25 +00:00
nelsonb%netscape.com
1df049f648 Fix crash caused by zeroing a larger buffer than the caller passed in.
git-svn-id: svn://10.0.0.236/trunk@75775 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:56:56 +00:00
nelsonb%netscape.com
330c8b4550 Fix crash caused by uninitialized variable.
git-svn-id: svn://10.0.0.236/trunk@75774 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:56:10 +00:00
rjc%netscape.com
c5085415b2 Remove Mac debugging info. r=me
git-svn-id: svn://10.0.0.236/trunk@75773 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:55:22 +00:00
rjc%netscape.com
66d46a347d Sorting fixes for bug # 26131. r=me, nhotta, putterman
git-svn-id: svn://10.0.0.236/trunk@75772 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:50:10 +00:00
ben%netscape.com
7c008af23b fix for nsbeta3+ bug 44229, can't drag urls out of history window
git-svn-id: svn://10.0.0.236/trunk@75771 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:46:32 +00:00
waterson%netscape.com
59f3ba59da Add regression test for 44709.
git-svn-id: svn://10.0.0.236/trunk@75770 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:03:36 +00:00
waterson%netscape.com
8ba85111c7 Use nsVoidArray instead of nsISupportsArray to hold kids. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75769 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 05:02:07 +00:00
waterson%netscape.com
27f49e988e Bugs 46616, 46964. Clean up RebuildContainer(): factor into two methods to share code better. Maintain a queue of ungenerated elements to scan for generated children. Add tons of comments so I don't have to figure this all out again when I look at it next. r=rjc
git-svn-id: svn://10.0.0.236/trunk@75768 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:57:55 +00:00
ducarroz%netscape.com
a5d4c810f5 Fix for bug 36480. Add function to switch the signature. R=putterman
git-svn-id: svn://10.0.0.236/trunk@75767 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:46:55 +00:00
putterman%netscape.com
7b226eb3c0 Fix for 45059. r=mscott. Character encoding menus didn't work in the standalone message window.
git-svn-id: svn://10.0.0.236/trunk@75766 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:46:42 +00:00
av%netscape.com
bf617efae9 Fixing #8740, r=serge
git-svn-id: svn://10.0.0.236/trunk@75765 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:45:03 +00:00
ducarroz%netscape.com
a9581e6d1b Fix for bug 36480. Add function to switch the signature. R=putterman
git-svn-id: svn://10.0.0.236/trunk@75764 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:45:02 +00:00
alecf%netscape.com
239a015260 fix for #40329 contributed by jrgm@netscape.com, r=ben
git-svn-id: svn://10.0.0.236/trunk@75763 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:43:35 +00:00
waterson%netscape.com
45d653b43a fucking mac
git-svn-id: svn://10.0.0.236/trunk@75762 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:23:43 +00:00
ben%netscape.com
1243b96d21 fix for nsbeta3+ 45687, problems with helper apps pref panel
git-svn-id: svn://10.0.0.236/trunk@75761 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:18:23 +00:00
mscott%netscape.com
930fa589d1 Bug #46881 --> set the charset correctly for mutlipart/alternative
r=rhp


git-svn-id: svn://10.0.0.236/trunk@75760 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:09:26 +00:00
ducarroz%netscape.com
3e01b25fda Part of fix for bug 36480. I check in this fix for jfrancis. The function EndOfDocument which wasn't used yet was setting the selection on the wrong node. R=ducarroz
git-svn-id: svn://10.0.0.236/trunk@75759 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:05:26 +00:00
tor%cs.brown.edu
fe0d1665bd Landing libmng 0.9.2+. a=waterson
git-svn-id: svn://10.0.0.236/trunk@75758 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 03:58:05 +00:00
blizzard%redhat.com
2f3f044306 fix the following bugs: #39560, #47141, #46928, #47949. use nsIPipe for the stream impl, seperate XPCOM startup, add a resize callback so content with a width and height are sized correctly, fix problems with gtkmozembed widgets on gtk notebook widgets. also, add some new signals for progress loading and net changes. r=dougt, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75757 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 03:58:03 +00:00
dmose%mozilla.org
b29cf24bab added ldap_abandon()-like functionality to the XPCOM wrapper, and changed the nsLDAPChannel code to implement request cancellation (eg pressing the stop button in the browser) using said functionality. a=r=(not built).
git-svn-id: svn://10.0.0.236/trunk@75755 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 03:23:05 +00:00
nelsonb%netscape.com
a1e1fc974c - Change mpi private function s_mp_mul_d_add_offset into a macro.
- Declare and implement new function s_mp_mul_add, which is a candidate
  for replacement with assembler code.
- Convert mp_mul, mp_sqr, etc. to use s_mp_mul_add.
- New implementation of mp_invmod for odd moduli. Algorithm from paper
  "Fast Modular Reciprocals" by Richard Schroeppel (a.k.a. Captain Nemo).
- New function s_mp_invmod_32b in mpi.c, computes inverse mod 2**32, also
  from same paper. Used in mp_invmod and mp_exptmod.


git-svn-id: svn://10.0.0.236/trunk@75754 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 03:20:35 +00:00
dmose%mozilla.org
b56488f5ec use lexical closure of JS functions to bind data to a function for use as a callback. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75753 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 02:56:44 +00:00
mscott%netscape.com
73b3390d9c Fix a small memory leak.
git-svn-id: svn://10.0.0.236/trunk@75752 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 02:27:52 +00:00
mscott%netscape.com
61a473e3e2 Bug #43389, 41125 --> header conversion should honor default and over ride charset
information.
r=nhotta


git-svn-id: svn://10.0.0.236/trunk@75751 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 02:27:38 +00:00
bryner%uiuc.edu
6a05d7274d Patch from Jan Varga <varga@utcru.sk> for filepicker localizability fixes,
improved keyboard navigation, and misc. cleanups.  bug
45561.  r=me,pavlov.  a=waterson.


git-svn-id: svn://10.0.0.236/trunk@75750 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 01:55:59 +00:00
sgehani%netscape.com
64b797c3d9 Ensure linux installer doesn't core dump for "long" install destination paths
when a default location is specified in the config.ini.

[nsbeta3+ b=46458; r=dveditz]


git-svn-id: svn://10.0.0.236/trunk@75749 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 01:29:04 +00:00
javi%netscape.com
14fc817b69 A fix for Windows where the client stops trying to read decrypted data back from the client before it's ready.
git-svn-id: svn://10.0.0.236/trunk@75748 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 01:26:44 +00:00
rhp%netscape.com
96c4541085 Fix for vCard having an inactive Add button - Bug #: 47537 - r: putterman
git-svn-id: svn://10.0.0.236/trunk@75746 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:52:52 +00:00
pierre%netscape.com
7393600e1b 47138: Some invalid units are not resulting in dropped declarations.
15174: counter() and counters() should not be recognized by CSS parser.


git-svn-id: svn://10.0.0.236/trunk@75744 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:34:42 +00:00
mscott%netscape.com
65cba63f62 Remove some debugging code from the rdf file
git-svn-id: svn://10.0.0.236/trunk@75743 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:34:06 +00:00
waterson%netscape.com
1cc3c3da2d Bug 46053. Add [begin|end]UpdateBatch() to nsIRDFObserver; case-normalize the resot of the nsIRDFObserver methods; update implemetors, users. r=bienvenu,rjc,dmose,slamm
git-svn-id: svn://10.0.0.236/trunk@75742 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:22:36 +00:00
mscott%netscape.com
6dacfce7ce Bug #47853, 47901, 47835, 47324, 47811 --> back out caching of smtp capabilities...this breaks the smtp protocol
which requires an EHLO or HELO to always be issued. Fix case for HELO response.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@75741 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:22:34 +00:00
valeski%netscape.com
9d6dbf3718 47881, r=dougt. removing extraneous static link of dbm lib, and fixing the file cache so it does the static link
git-svn-id: svn://10.0.0.236/trunk@75740 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:20:23 +00:00
valeski%netscape.com
0745e1f74e 47881, r=dougt. removing extraneous static link of dbm lib
git-svn-id: svn://10.0.0.236/trunk@75739 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:19:37 +00:00
scc%mozilla.org
f09ffefddb not part of the build; initial work on multi-fragment strings
git-svn-id: svn://10.0.0.236/trunk@75738 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:14:35 +00:00
scc%mozilla.org
ac6dc5a34a not part of the build yet; initial work on multi-fragment strings
git-svn-id: svn://10.0.0.236/trunk@75737 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:14:14 +00:00
mscott%netscape.com
3aeaebe2d7 Bug #39910 --> make the context menu come up for both right and left mouse clicks for email addresses.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75736 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 23:59:25 +00:00
tor%cs.brown.edu
b90ca90f50 Bustage fix - add xpcompat.h to the export list.
git-svn-id: svn://10.0.0.236/trunk@75735 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 23:10:48 +00:00
tara%tequilarista.org
26fe07c589 Fixing bug #46897
git-svn-id: svn://10.0.0.236/trunk@75734 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 22:59:55 +00:00
syd%netscape.com
9c8d08cbc0 Undid the rdf changes for 43091 at request of brendan, now doing evil 0666
default permissions. r=dougt


git-svn-id: svn://10.0.0.236/trunk@75733 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 22:59:40 +00:00
pchen%netscape.com
37f100b8ac Checkin for pnunn on Mac, remove dllcompat.cpp from projects
git-svn-id: svn://10.0.0.236/trunk@75732 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 22:59:02 +00:00
pnunn%netscape.com
0c5568e325 bug#41040: cruft removal.
git-svn-id: svn://10.0.0.236/trunk@75731 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 22:16:30 +00:00
av%netscape.com
cb9f96e62b Fixing 39534, patch by sean, r=av
git-svn-id: svn://10.0.0.236/trunk@75730 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 22:10:07 +00:00
av%netscape.com
08395413fb Fixing 47360, patch by sean@beatnik.com, r=av
git-svn-id: svn://10.0.0.236/trunk@75729 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:51:19 +00:00
mkaply%us.ibm.com
c043fe161a #47874
r=mkaply, a=brendan
Remove unused widget files


git-svn-id: svn://10.0.0.236/trunk@75728 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:40:45 +00:00
cmanske%netscape.com
2b7ffc8718 Added selectedIndex property to tree interface. Needed by spell checking in editor, b=47696, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75727 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:20:40 +00:00
anthonyd%netscape.com
81c7739c51 checkins for Hurricane
translation of all C++ functions to JS which included SaveDocument
which eventually will allow for the completeion of autosave
r: brade, anthonyd
a: waterson, cmanske


git-svn-id: svn://10.0.0.236/trunk@75726 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:12:18 +00:00
mkaply%us.ibm.com
0c3b99a0c1 #47874
r=mkaply, a=brendan
remove obsolete nsTooltip* files


git-svn-id: svn://10.0.0.236/trunk@75725 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:56:20 +00:00
despotdaemon%netscape.com
bc9e09caa3 Pseudo-automatic update of changes made by naving@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75724 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:55:58 +00:00
dougt%netscape.com
5a21fded10 Adding GetPrompt() method to nsIDOMWindow.
r=vidur@netscape.com (47889)


git-svn-id: svn://10.0.0.236/trunk@75723 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:55:36 +00:00
mkaply%us.ibm.com
8fd0a462bd #47874
r=mkaply, a=brendan
nsFontServices is not used


git-svn-id: svn://10.0.0.236/trunk@75722 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:53:28 +00:00
mkaply%us.ibm.com
16d960dca7 #47874
r=mkaply, a=brendan
Bring nsToolkit up to par with the Windows code


git-svn-id: svn://10.0.0.236/trunk@75721 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:51:47 +00:00
dougt%netscape.com
fd79d626f7 adding pref for image cache size. (47656)
r=valeski@netscape.com


git-svn-id: svn://10.0.0.236/trunk@75720 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:51:30 +00:00
dougt%netscape.com
07084b32e8 1. remove extra monitors (47825)
2.  add method to determine if manager has been shutdown  (44680)
3.  Add nsCOMPtr to avoid leak  (44680, 43244)

r=valeski@netscape.com


git-svn-id: svn://10.0.0.236/trunk@75719 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:50:25 +00:00
mkaply%us.ibm.com
31b9f51c41 #47874
r=mkaply, a=brendan
Bring nsLookAndFeel up to par with the Windows code


git-svn-id: svn://10.0.0.236/trunk@75718 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:48:09 +00:00
mkaply%us.ibm.com
b6742b6ecd #47874
r=mkaply, a=brendan
Bring nsSound up to par with the Windows code


git-svn-id: svn://10.0.0.236/trunk@75717 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 20:47:05 +00:00
leaf%mozilla.org
f6fb873856 Automated update
git-svn-id: svn://10.0.0.236/trunk@75716 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 19:00:10 +00:00
cyeh%bluemartini.com
e040a221dd fix for bug 42089: change wording of link from "create new bug" to
"report new bug". r=timeless@bemail.org, cyeh@bluemartini.com,
patch submitted by zach@zachlipton.com


git-svn-id: svn://10.0.0.236/trunk@75715 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 17:53:36 +00:00
pp%ludusdesign.com
5a2631a375 Adding the original contributor of this code to the Contributors list
of these files, to his request. No actual code change, only comments,
so no review.


git-svn-id: svn://10.0.0.236/trunk@75714 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 17:48:22 +00:00
despotdaemon%netscape.com
ed9fa2baed Pseudo-automatic update of changes made by dr@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75711 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 16:36:12 +00:00
rhp%netscape.com
cbb3b11044 Fix for printing window being on the screen - r: putterman
git-svn-id: svn://10.0.0.236/trunk@75710 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 14:07:40 +00:00
ben%netscape.com
18f9dc978d fixing broken field on nsIBrowserBoxObject. This was preventing some code migration to
js that was needed for navigator, as nsIBrowserInstance is somewhat flaky. r=hyatt


git-svn-id: svn://10.0.0.236/trunk@75709 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 07:55:40 +00:00
hyatt%netscape.com
e9440df88a Fix for 47635. r=ben
git-svn-id: svn://10.0.0.236/trunk@75708 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 07:55:10 +00:00
nisheeth%netscape.com
c325ebf214 r=jst. Fix for nsbeta2+ bug 18321. The back button was not getting enabled when the user clicked on a javascript url that caused a new page load in another frame. The problem was that the location object was setting the load type to "normal" for loads caused by calls to location.replace() and to "normalReplace" for loads caused by setting location.href. The correct behavior is to do the opposite.
git-svn-id: svn://10.0.0.236/trunk@75707 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 07:35:25 +00:00
bryner%uiuc.edu
6e636070d2 Removing more obsolete libpref stuff. Not part of build. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75706 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 07:31:48 +00:00
mozilla.BenB%bucksch.org
7bc0a1ecda 45565: Add pref "general.useragent.override" to customize UA-string. r=valeski, a=brendan
git-svn-id: svn://10.0.0.236/trunk@75705 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 07:17:30 +00:00
ben%netscape.com
7739ab8bd6 remove redundant wallet skin files and directory, nsbeta3+ 47217
git-svn-id: svn://10.0.0.236/trunk@75704 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:42:21 +00:00
alecf%netscape.com
9ed6b623c9 remove old file from the build
git-svn-id: svn://10.0.0.236/trunk@75703 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:37:17 +00:00
alecf%netscape.com
3e2a1c7845 remove sidebar-messenger.xul from the build (NOT PART OF BUILD)
git-svn-id: svn://10.0.0.236/trunk@75702 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:34:33 +00:00
ben%netscape.com
01f8b0c562 fix for nsbeta3+ bug 39948, Start Mozilla is disabled after creating a profile
git-svn-id: svn://10.0.0.236/trunk@75701 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:29:08 +00:00
bratell%lysator.liu.se
0f61387703 Fix for bug 46306, html-to-plaintext replies have > on blank lines. The fix was to strip ending new lines in the citer. r=akkana, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@75700 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:05:27 +00:00
morse%netscape.com
7b12917a8b bug 47461, cookie expiration date is wrong on mac, r=valeski
git-svn-id: svn://10.0.0.236/trunk@75699 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 05:27:19 +00:00
dbaron%fas.harvard.edu
a0c7410ceb Fix potential leak. r=attinasi a=waterson
git-svn-id: svn://10.0.0.236/trunk@75698 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 03:06:22 +00:00
dbaron%fas.harvard.edu
74cf8b8464 Make nsDocument unroot script objects in the prolog and epilog correctly. Fix nsDocument::RemoveChild so it doesn't crash when removing the root element. Prevent nsDocument::ChildAt from incorrectly returning null when root is removed. Clean up nsDocument::RemoveChild and nsDocument::ReplaceChild a bit, including adding some notifications for prolog/epilog content. Make nsDocument::ReplaceChild return the correct thing (the old child, not the new one). r=vidur b=17390 (nsbeta3+), 46212
git-svn-id: svn://10.0.0.236/trunk@75697 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 03:03:55 +00:00
danm%netscape.com
dff51f2e92 addref return ptr in GetContentDocShell -- the real reason for bug 47491
git-svn-id: svn://10.0.0.236/trunk@75696 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 02:58:10 +00:00
dbaron%fas.harvard.edu
24d6381ac5 Remove element names from the list that no longer use nsIAnonymousContentCreator. r=hyatt a=waterson
Don't choke on notifications for children of document that aren't the root element.  r=vidur  b=17390 (nsbeta3+)


git-svn-id: svn://10.0.0.236/trunk@75695 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 02:51:35 +00:00
danm%netscape.com
70633a371d reverting the part of rev 1.198 that causes a 100% reproducible, impossible to miss crash every time a browser window is closed, and seems to do nothing else. bug 47491
git-svn-id: svn://10.0.0.236/trunk@75693 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 22:08:56 +00:00
bienvenu%netscape.com
e5c9f59867 fix stop of msg move/copy r=mscott 28129
git-svn-id: svn://10.0.0.236/trunk@75692 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 20:15:32 +00:00
tor%cs.brown.edu
b889085a75 Bug 47679 - clipping rewrite for nsImageGTK::DrawComposited.
r=blizzard, a=waterson


git-svn-id: svn://10.0.0.236/trunk@75691 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:36:46 +00:00
dbaron%fas.harvard.edu
f5c556e039 Correct the combobox GetFrameForPoint by checking for visibility and foreground layer in all cases. b=36676 r=rods a=waterson
git-svn-id: svn://10.0.0.236/trunk@75690 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:24:48 +00:00
dougt%netscape.com
ee1a9e1e43 DEBUGGING information for bug 46737.
git-svn-id: svn://10.0.0.236/trunk@75689 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:21:09 +00:00
dbaron%fas.harvard.edu
6921566580 Fix an inconsequential typo (MOZ_DECL_CTOR_COUNTER does nothing, now). r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@75688 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:19:01 +00:00
dougt%netscape.com
469dc01bf8 This was checked into the branch, but not trunk:
Here are the checkin notes (revision 1.22.2.2)

r=jar.  Checkin on behalf of dougt.  Fix for nsbeta2+ bug 47010.
The lock icon was not displaying on some https sites.  With these
changes, it does.


git-svn-id: svn://10.0.0.236/trunk@75687 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:15:46 +00:00
dbaron%fas.harvard.edu
efae1fc625 Fix potential leak. r=pnunn a=waterson
git-svn-id: svn://10.0.0.236/trunk@75686 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:07:06 +00:00
dbaron%fas.harvard.edu
84a7454104 Fix nsBoxLayout leaks. r=hyatt a=waterson b=43450
git-svn-id: svn://10.0.0.236/trunk@75685 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 19:05:50 +00:00
dbaron%fas.harvard.edu
991f6bf201 Remove some old stuff left from nsIAnonymousContentCreator before these were converted to XBL. r=hyatt a=waterson
git-svn-id: svn://10.0.0.236/trunk@75684 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 18:49:29 +00:00
dbaron%fas.harvard.edu
f154a601c1 Fixing bustage. Stupid error...
git-svn-id: svn://10.0.0.236/trunk@75683 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 17:17:22 +00:00
dbaron%fas.harvard.edu
1d16bbcdf5 Fix crash on shutdown (or patch things up so they don't crash) by releasing memory pressure observers closer to the beginning of XPCOM shutdown. b=47791 r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75682 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 16:23:04 +00:00
bienvenu%netscape.com
9d1f6bf945 remove unneeded select before append to imap folders r=mscott 46501
git-svn-id: svn://10.0.0.236/trunk@75681 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 14:50:06 +00:00
bienvenu%netscape.com
cca296ae96 more work on drag drop move/copy handling 47195 r=mscott
git-svn-id: svn://10.0.0.236/trunk@75680 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 14:40:21 +00:00
hyatt%netscape.com
1c7e7c8d2c Adding XBL demos. Doesn't affect build.
git-svn-id: svn://10.0.0.236/trunk@75679 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 11:12:44 +00:00
hyatt%netscape.com
c3caf9df23 Adding XBL demos. Doesn't affect build.
git-svn-id: svn://10.0.0.236/trunk@75678 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 08:48:49 +00:00
hyatt%netscape.com
ddf548f5fc Adding XBL demos. Doesn't affect build.
git-svn-id: svn://10.0.0.236/trunk@75677 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 08:14:19 +00:00
hyatt%netscape.com
2a4082ff73 Fixes to make menus work right with XBL.
git-svn-id: svn://10.0.0.236/trunk@75676 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 08:11:05 +00:00
ben%netscape.com
e64d1e18ca polish (just tweaked the spacing between elements)
git-svn-id: svn://10.0.0.236/trunk@75675 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 08:05:07 +00:00
ben%netscape.com
7911a911d1 update jar packager file...
git-svn-id: svn://10.0.0.236/trunk@75674 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 07:20:39 +00:00
ben%netscape.com
6fadf10da0 remove redundant files
git-svn-id: svn://10.0.0.236/trunk@75673 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 07:20:16 +00:00
ben%netscape.com
662ed06402 clean up signon viewer dialog code for polish, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75672 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 07:18:10 +00:00
ben%netscape.com
0bbd25d5bd simplify Cookie Viewer code for polish, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75671 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 07:04:11 +00:00
dave%intrec.com
e1cf1a1b66 Fix for bug 47561. Thanks to tengel@fluid.com (Troy Engel) for catching
this one.


git-svn-id: svn://10.0.0.236/trunk@75670 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 05:42:30 +00:00
hyatt%netscape.com
87f101ee64 more of 42320. r=danm
git-svn-id: svn://10.0.0.236/trunk@75669 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 05:39:36 +00:00
pavlov%netscape.com
c2d33fbb7e removing (broken) x11-shm code. I have not found this code to provide any speedup, and since it is broken, I am removing
it.  bug 32736 r=bryner


git-svn-id: svn://10.0.0.236/trunk@75668 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 05:18:01 +00:00
pavlov%netscape.com
778d5576e8 removing (broken) x11-shm code. I have not found this code to provide any speedup, and since it is broken, I am removing it. bug 32736 r=bryner
git-svn-id: svn://10.0.0.236/trunk@75667 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 05:17:31 +00:00
hyatt%netscape.com
115936b807 Fix build bustage that's coming.
git-svn-id: svn://10.0.0.236/trunk@75666 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 05:03:36 +00:00
hyatt%netscape.com
c7410097cd Fix for 42320. r=danm
git-svn-id: svn://10.0.0.236/trunk@75665 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 04:57:55 +00:00
hyatt%netscape.com
b28cfa714e Plug leak in cache for XBL docs.
git-svn-id: svn://10.0.0.236/trunk@75664 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 04:57:24 +00:00
bryner%uiuc.edu
ac1aca0f6d Fixing bug 42294 - make mousewheel font size change always affect the
document (not the chrome).  r=saari.


git-svn-id: svn://10.0.0.236/trunk@75663 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 04:15:02 +00:00
bryner%uiuc.edu
79844edf19 Ben forgot to update the unix makefile when he checked in for bug
46613.  This fixes the symptom of mozilla not starting up after switching
to the classic skin.  r=bruce.


git-svn-id: svn://10.0.0.236/trunk@75662 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 03:43:04 +00:00
hyatt%netscape.com
0b28e4ad6d Fix for XBL portion of 46129
git-svn-id: svn://10.0.0.236/trunk@75661 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 22:33:29 +00:00
ftang%netscape.com
e3ffc046ba improve cjk detector by reduce the threshold and do no consider Big5 in the
statistic model .


git-svn-id: svn://10.0.0.236/trunk@75660 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 20:57:02 +00:00
hyatt%netscape.com
efb91e3b36 Put scrollbars back in tex tareas.
git-svn-id: svn://10.0.0.236/trunk@75659 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 20:48:22 +00:00
morse%netscape.com
affecfbf91 bug 47532, incorrect display in signon viewer, r=pnunn
git-svn-id: svn://10.0.0.236/trunk@75658 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 19:32:53 +00:00
svn%xmlterm.org
56d719d6d1 --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
Added jar.mn (for future use)


git-svn-id: svn://10.0.0.236/trunk@75657 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 17:23:59 +00:00
svn%xmlterm.org
bb76a78ba1 --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
Fixed "bug" in XMLTermCommands.js that was causing duplicate instances of XMLTerm shells.


git-svn-id: svn://10.0.0.236/trunk@75656 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 17:22:00 +00:00
svn%xmlterm.org
f8d58bd7ec --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
Re-structured chrome directories.


git-svn-id: svn://10.0.0.236/trunk@75655 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 17:19:44 +00:00
bienvenu%netscape.com
22af04e6c2 add ability to create storage for folders on demand, e.g., templates and drafts, r=mscott 45146
git-svn-id: svn://10.0.0.236/trunk@75654 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 14:42:16 +00:00
bienvenu%netscape.com
9ba3058d49 add ability to create storage for folders on demand, e.g., templates and drafts, r=mscott 45146
git-svn-id: svn://10.0.0.236/trunk@75653 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 14:28:47 +00:00
dmose%mozilla.org
c38e672a63 one item completed; several important items moved up to the top of the list. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75652 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:46:57 +00:00
dmose%mozilla.org
f50bc0021f replace a few regular libc includes and function calls with their NSPR equivalents. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75651 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:45:11 +00:00
dmose%mozilla.org
d497056eea add a comment; a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75650 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:43:51 +00:00
dmose%mozilla.org
5976794f0d get rid of unused static sNullTimeval. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75649 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:42:45 +00:00
scc%mozilla.org
ec704488bd also including "nsAWritableString.h" to satisfy speedracer
git-svn-id: svn://10.0.0.236/trunk@75648 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:32:18 +00:00
scc%mozilla.org
79d27e1b9f adding new files to the build to provide |ToNewCString|, |ToNewUnicode|, and |IsASCII| that work on |nsAReadable[C]String|s, as per Vidur's needs in converting the DOM.
git-svn-id: svn://10.0.0.236/trunk@75647 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:26:01 +00:00
scc%mozilla.org
fc3595e83f need |NS_COM| in the declarations too
git-svn-id: svn://10.0.0.236/trunk@75646 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 08:20:50 +00:00
scc%mozilla.org
8044c9fc61 adding new files to the build to provide |ToNewCString|, |ToNewUnicode|, and |IsASCII| that work on |nsAReadable[C]String|s, as per Vidur's needs in converting the DOM.
git-svn-id: svn://10.0.0.236/trunk@75645 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 07:50:28 +00:00
scc%mozilla.org
efe34a743d make sure the new functions are exported; still not in the build
git-svn-id: svn://10.0.0.236/trunk@75644 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 07:44:08 +00:00
pierre%netscape.com
892645b8c6 attempt to fix the SunOS build
git-svn-id: svn://10.0.0.236/trunk@75643 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 06:39:42 +00:00
dprice%netscape.com
9e1b32e935 make-jars.pl now properly cleans up any extra files and folders that it creates
git-svn-id: svn://10.0.0.236/trunk@75642 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 06:08:02 +00:00
pierre%netscape.com
db5d911ba9 42864 ('user-select:none' should make children non-selectable)
git-svn-id: svn://10.0.0.236/trunk@75641 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:41:33 +00:00
pierre%netscape.com
ccd95c3556 45754 ('hidden' borders should be treated as 'none')
git-svn-id: svn://10.0.0.236/trunk@75640 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:40:57 +00:00
pierre%netscape.com
01e1854745 40325 (subtracting dev2app in some cases)
git-svn-id: svn://10.0.0.236/trunk@75639 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:40:22 +00:00
pierre%netscape.com
6e8b05fbf3 9816 (Outlines should be disabled completely for FCS)
46562 ('display: run-in' disables whole declaration block)
45804 (In quirks mode, 0 in 'border' should set the width, not the color)
46547 (Background image not centered correctly)
Thanks to emk <VYV03354@nifty.ne.jp>


git-svn-id: svn://10.0.0.236/trunk@75638 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:40:03 +00:00
pierre%netscape.com
1dc88b3a49 46599 (nsCSSLoader should check for local file before passing FORCE_RELOAD)
git-svn-id: svn://10.0.0.236/trunk@75637 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:39:43 +00:00
pierre%netscape.com
43328ae9b9 6782 (UI for alternate and user stylesheets)
Thanks to Tim Hill <tim@prismelite.com>


git-svn-id: svn://10.0.0.236/trunk@75636 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:39:20 +00:00
pierre%netscape.com
47661c52c3 43420 (textarea inherits align="center" from parent td)
git-svn-id: svn://10.0.0.236/trunk@75635 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:37:57 +00:00
scc%mozilla.org
d1f2f5f430 added comments and made some changes suggested by reviewers; still not in the build
git-svn-id: svn://10.0.0.236/trunk@75634 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:25:49 +00:00
nelsonb%netscape.com
3b6ca9fa3d Platform independent performance enhancements to functions that multiply,
square, subtract, right shift, compare, mul_d_add_offset.  This lib's
Modular Exponentiation performance now compares favorably with most (not
all) other open source bignum libs on IRIX/R5000.  No assembler code is
presently being used.  Comparison on other platforms will now commence.


git-svn-id: svn://10.0.0.236/trunk@75633 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 03:37:46 +00:00
scc%mozilla.org
2bca44595d everything's in and working correctly (as far as my tests show), still not in the build, but that's what I'm about to change with my next set of checkins
git-svn-id: svn://10.0.0.236/trunk@75632 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 03:32:36 +00:00
anthonyd%netscape.com
949da90c17 moving editor prefs to editor directory
see bug# 36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75631 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:30:20 +00:00
anthonyd%netscape.com
493cb696b1 moving editor prefs to editor directory
see bug #36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75630 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:29:21 +00:00
anthonyd%netscape.com
fab5f0e8c6 moving editor prefs to editor directory
see bug # 36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75629 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:28:33 +00:00
anthonyd%netscape.com
60a8fb57b9 moving editor prefs into editor directory
see bug # 36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75628 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:24:55 +00:00
anthonyd%netscape.com
5328408867 updating jar packaging file thingy
moving editor prefs into editor directory
see bug# 36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75627 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:23:00 +00:00
anthonyd%netscape.com
e2defa80a4 moving editor prefs to editor directory
see bug# 36911
r: ben


git-svn-id: svn://10.0.0.236/trunk@75626 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:21:59 +00:00
scc%mozilla.org
ac22cf0d43 still not part of the build; I think everything's there, though. Some further testing and I'll add it to the build
git-svn-id: svn://10.0.0.236/trunk@75625 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 02:13:59 +00:00
morse%netscape.com
574ca98f39 bug 45219, submitted by Robert O'Callahan, r=morse
git-svn-id: svn://10.0.0.236/trunk@75624 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 01:57:43 +00:00
scc%mozilla.org
b4f3e207de still not part of the build; more work adding the new functions. More to come
git-svn-id: svn://10.0.0.236/trunk@75623 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 01:15:45 +00:00
despotdaemon%netscape.com
f37ae32bf4 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@75622 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 01:04:16 +00:00
syd%netscape.com
36c6905dbc Add a couple of prlog messages. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@75621 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 00:59:08 +00:00
syd%netscape.com
de7f716024 Add some prlog support for debugging image usage, r=pavlov. Debug only.
git-svn-id: svn://10.0.0.236/trunk@75620 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 00:58:24 +00:00
scc%mozilla.org
6666966a06 These files are not yet part of the build; making global versions of |IsASCII|, |ToNewCString|, and |ToNewUnicode| that apply to readables, since we don't want them as member functions (where they were in |ns[C]String|). Vidur needs these to convert DOM interfaces over to readables.
git-svn-id: svn://10.0.0.236/trunk@75619 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 00:51:37 +00:00
cata%netscape.com
99abc99837 Fix for bug #37543, a=ftang, r=nhotta.
git-svn-id: svn://10.0.0.236/trunk@75618 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 00:07:03 +00:00
pierre%netscape.com
078c67b29e Bug 38445: Complete support of CSS2/3 cursors on Mac
git-svn-id: svn://10.0.0.236/trunk@75617 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 23:40:10 +00:00
pnunn%netscape.com
89ea537905 bug#474711: don't mess with channel load attributes. pnunn.
git-svn-id: svn://10.0.0.236/trunk@75616 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 23:37:41 +00:00
cata%netscape.com
c5c4b10703 Fix for bug #28983. a=ftang, r=nhotta.
git-svn-id: svn://10.0.0.236/trunk@75615 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 23:30:36 +00:00
dave%intrec.com
3e95147460 Removing a couple lines from the patch for bug 31336 that got left in by
accident.


git-svn-id: svn://10.0.0.236/trunk@75614 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 23:16:01 +00:00
despotdaemon%netscape.com
1f446ac625 Pseudo-automatic update of changes made by dr@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75613 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 23:02:41 +00:00
bienvenu%netscape.com
dfbe05c370 fix cntrl drag drop r=putterman 47195
git-svn-id: svn://10.0.0.236/trunk@75612 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:53:53 +00:00
ducarroz%netscape.com
bb7e1f917d Fix for bug 46040. We need to dismiss the popup menu when the user press the tab key. R=mscott
Aso, I have incorporated a patch submitted by Matthew Cline (bug 42582)


git-svn-id: svn://10.0.0.236/trunk@75611 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:40:52 +00:00
ducarroz%netscape.com
dbe6386040 Fix for bug 47224. Remove QUote button and menu item. R=mscott
git-svn-id: svn://10.0.0.236/trunk@75610 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:24:50 +00:00
syd%netscape.com
00879e6faa Set sane permissions on files. Let umask protect the user. r=rjc,dougt
Partial fix for 43091.


git-svn-id: svn://10.0.0.236/trunk@75609 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:13:59 +00:00
syd%netscape.com
d0df16da36 Set sane directory permissions on creation. Partial fix for 43091. r=dougt
git-svn-id: svn://10.0.0.236/trunk@75608 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:13:10 +00:00
edburns%acm.org
0b79e56e49 a=edburns
author=Oleg Khokhlov
r=edburns
bug=47026


git-svn-id: svn://10.0.0.236/trunk@75607 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:46:10 +00:00
shanjian%netscape.com
309c493895 #14022 IME98 Reconversion does not work in HTML Editor
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp

New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
  nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
  nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
  nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
  nsIDOMCompositionListener.h
widget:
  nsGUIEvent.h nsWindow.h nsWindow.cpp


git-svn-id: svn://10.0.0.236/trunk@75606 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:43:29 +00:00
ducarroz%netscape.com
4274b76e4b Fix for bug 47250. As we cannot have more than one keyset per window, we need to define key outside the keyset tag in the overlay. That let other window that includes the overlay defines their own keyset and eventually includes some of the keys defined in the overlay. R=cmanske
git-svn-id: svn://10.0.0.236/trunk@75605 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:37:00 +00:00
ducarroz%netscape.com
505db84772 Fix for bug 47250. As we cannot have more than one keyset per window, we need to define key outside the keyset tag in the overlay. That let other window that includes the overlay defines their own keyset and eventually includes some of the keys defined in the overlay. R=cmanske
git-svn-id: svn://10.0.0.236/trunk@75604 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:35:32 +00:00
nbhatla%netscape.com
33f2a3f0a0 #46519 -> Mac Classic Skin Polish. Adds a new class, "plain-extended", so that Mac Classic can have square buttons with the proper rollover behavior built in.
git-svn-id: svn://10.0.0.236/trunk@75603 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:23:33 +00:00
rogerl%netscape.com
675a4909ec Added 'static' to global object routines.
git-svn-id: svn://10.0.0.236/trunk@75601 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:54:24 +00:00
brade%netscape.com
6ab4e4c364 fix src/dest d&d (do move if in same doc unless modifier key is pressed); bug #45607; r=kin
git-svn-id: svn://10.0.0.236/trunk@75600 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:51:33 +00:00
brade%netscape.com
62a1a50415 remove extra '"' character discovered in UI review
git-svn-id: svn://10.0.0.236/trunk@75599 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:47:40 +00:00
attinasi%netscape.com
ad73ad64b4 Part of fix to allow background on BODY element to be inherited. b=47127 r=pierre
git-svn-id: svn://10.0.0.236/trunk@75598 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:44:08 +00:00
blizzard%redhat.com
18e020c6e2 fix for bug #26509. in nsIWidget::Show() try to grab if the last grab attempt wasn't successful since in unix the window has to be visible to complete a grab. context menus shouldn't travel to seperate desktops now. r=pavlov, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75597 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:42:11 +00:00
akkana%netscape.com
015402bf44 Comment out annoying debugging statements. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75596 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:39:53 +00:00
rogerl%netscape.com
3e8715b85d Oops. Left icode output on by default, now off.
git-svn-id: svn://10.0.0.236/trunk@75595 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:37:42 +00:00
rogerl%netscape.com
609feb88b0 Prototype munging for built-in global properties, implemented Function
object & Boolean object.


git-svn-id: svn://10.0.0.236/trunk@75594 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:28:35 +00:00
dprice%netscape.com
5c6168c2e7 adding recursive delete function
git-svn-id: svn://10.0.0.236/trunk@75593 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:25:42 +00:00
nelsonb%netscape.com
95e246df1c Minor performance tweaks.
git-svn-id: svn://10.0.0.236/trunk@75592 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 19:58:20 +00:00
nelsonb%netscape.com
a09176abf2 Add new signed mp_word type, mp_sword. Used to get arithmetic right
shifts when doing subtraction.


git-svn-id: svn://10.0.0.236/trunk@75591 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 19:57:24 +00:00
varada%netscape.com
28c3bd6e13 fix for bug#47328 - not able to launch customized netscape;caused by all-ns.js using properties files for the values- changed ib.cpp and script.ib to reflect that
git-svn-id: svn://10.0.0.236/trunk@75590 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 18:09:21 +00:00
dimator%netscape.com
24dec09e8d Fix for 25984. Adding sort direction indicators to thread pane column headers. r=putterman
git-svn-id: svn://10.0.0.236/trunk@75589 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 17:37:29 +00:00
danm%netscape.com
6255a55a42 use explicit on-screen widget placement constraints when restoring window positions from persistent storage. bug 31516 r=saari@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75588 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 14:52:44 +00:00
danm%netscape.com
051accf240 (empty) implementations of new nsIWidget method ConstrainPosition. bug 31516 r=saari@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75587 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 14:49:36 +00:00
danm%netscape.com
2c3b51f21e implement new method ConstrainPosition. bug 31516 r=saari@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75586 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 14:48:33 +00:00
danm%netscape.com
e806f00627 new method ConstrainPosition provides implementation-dependent on-screen check for top-level windows. bug 31516 r=saari@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75585 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 14:47:46 +00:00
dcone%netscape.com
786e362567 took ViewManager.cpp out of build. b=42845 r=kmcclusk.
git-svn-id: svn://10.0.0.236/trunk@75584 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 13:55:36 +00:00
rods%netscape.com
be2c89358c removed content-box from radio and checkboxes and set their sizes appropriately
set the background-color for the select arrow button "buttonface" partial fix to Bug 43371
b=32102 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75583 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 13:01:15 +00:00
rods%netscape.com
e8c4114f94 Setting up some special NavQuirks rules for input type=text
part of the checkin for 44656 making the NavQuirks font moz-fixed
b=25580 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75582 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 12:49:16 +00:00
brade%netscape.com
5070ddccdf fix menu and tooltip strings per UI meeting and verah (bug #47509)
git-svn-id: svn://10.0.0.236/trunk@75581 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:50:41 +00:00
brade%netscape.com
43668f9f3b remove font dropdown list from toolbar per Composer UI review (bug #47506)
git-svn-id: svn://10.0.0.236/trunk@75580 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:50:05 +00:00
brade%netscape.com
bc66503877 add meta="false"
git-svn-id: svn://10.0.0.236/trunk@75579 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:30:33 +00:00
brade%netscape.com
dab607b76d remove reference to View | Paragraph Marks since the Composer team has decided not to support/fix it for 6.0 (bug #47525); per Composer UI review team
git-svn-id: svn://10.0.0.236/trunk@75578 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:27:44 +00:00
brade%netscape.com
80e74d5cad add keybinding for fixed width font, add shift="false" to increase/decrease indent, new string for Insert | HTML..., remove Insert | Break and Insert | Break below Images (#47523), move Revert to after SaveAsCharset (#47211), remove Edit | HTML Source (#47523), remove View | Paragrah Marks, new string/accesskey added for Insert | HTML..., remove separator, Break and BreakBelowImages from Insert menu (#47523), comment out Format | Background Color since it will be moving soon, renumber Format menu, move Align after decrease indent (all per UI review)
git-svn-id: svn://10.0.0.236/trunk@75577 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:25:07 +00:00
brade%netscape.com
fff9c46875 fix menu and tooltip strings per UI meeting and verah (bug #47509); add shortcut keybinding for fixed width font
git-svn-id: svn://10.0.0.236/trunk@75576 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:25:00 +00:00
brade%netscape.com
4bb371ccf8 remove unnecessary include of nsContextMenu.js (bug #43239) and remove viewParagraphMarks menu item per UI review meeting (bug #47525)
git-svn-id: svn://10.0.0.236/trunk@75575 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:12:28 +00:00
brade%netscape.com
c640ba1cdd removed unnecessary references to nsContextMenu.js (bug #43239)
git-svn-id: svn://10.0.0.236/trunk@75574 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 10:10:47 +00:00
hyatt%netscape.com
b364cb52f1 Working on 42320.
git-svn-id: svn://10.0.0.236/trunk@75573 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 08:45:29 +00:00
cls%seawood.org
2d670205ca Dump bloat & leak stats if NS_BUILD_REFCNT_LOGGING is set. Needed for bloat stats of optimized builds.
git-svn-id: svn://10.0.0.236/trunk@75572 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 06:59:18 +00:00
jst%netscape.com
4407fd3225 Checking in for Vidur (merging from SeaMonkey_M17_BRANCH). Fixing nsbeta2+ bug 9392, removing code that was hiding the correct native code for document.plugins. r=jst@netscape.com, a=nisheeth@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75571 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 06:55:53 +00:00
pavlov%netscape.com
3f19f00c3d removing an ifdef DEBUG_pavlov printoutlotsofstuff line
git-svn-id: svn://10.0.0.236/trunk@75569 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 06:02:42 +00:00
risto%netscape.com
60b136be9a Just added a newline for test purposes
git-svn-id: svn://10.0.0.236/trunk@75568 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 04:49:05 +00:00
endico%mozilla.org
7d5671b96f deleted a blank line just to test whether cvs and bonsai are working
git-svn-id: svn://10.0.0.236/trunk@75567 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 04:13:39 +00:00
dmose%mozilla.org
beef116e47 All currently known ChoadWarrior warnings in the LDAP code have been fixed. Another item removed from the TODO list. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75566 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:57:58 +00:00
dmose%mozilla.org
6cb3b03749 Removed trailing semicolons after NS_DECL stuff to keep ChoadWarrior from whining. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75565 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:55:12 +00:00
pollmann%netscape.com
88223f90eb Bug 3326: ISINDEX frame; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75563 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:45:50 +00:00
alecf%netscape.com
63118d9d2f fix for #46712 and #46491
r=warren
- remove chrome dependancy from string bundles, finally (yay)
- flush the string bundle cache according to the memory pressure observer
- expose flushing in the nsIStringBundle API so that chrome can flush it


git-svn-id: svn://10.0.0.236/trunk@75562 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:43:10 +00:00
rhp%netscape.com
a198ebbdca Fix for old code shadowing variables - Bug #: 64922 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@75561 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:41:08 +00:00
rhp%netscape.com
6d33d62c09 Fixes for progress in absync - Bug #: 1787 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@75560 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:40:51 +00:00
pollmann%netscape.com
3e47a7f9ad Bug 40533: browser crashes when submit nothing with event on file upload; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75559 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:39:33 +00:00
nbhatla%netscape.com
b6f7c7de1a Bug #46519 -> Mac Classic Skin Polish fixes. Removed parallel line images from toolbars, etc., I had added yesterday.
git-svn-id: svn://10.0.0.236/trunk@75558 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:36:37 +00:00
pollmann%netscape.com
7db58c7c36 Bug 42662: Values of disabled form elements should not be submitted; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75557 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:32:02 +00:00
bryner%uiuc.edu
2b0d3efc1d Fixing 42056 - get rid of nonfunctional history list in linux
filepicker.  r=pavlov.


git-svn-id: svn://10.0.0.236/trunk@75556 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:31:49 +00:00
slamm%netscape.com
f2da23cf45 Take 'Mail Folders' or 'Addressbooks' title out of a splitter. It is not needed and messes up the pointer (turns into an arrow for dragging). Allow add a high flex number to the tree. This fixes the persistence for the sidebar height. Bug 26259. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75555 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:29:25 +00:00
slamm%netscape.com
f453ae5f12 Mini-hack for splitter/grippy behavior on sidebarheader. The grippy code must look for a 'splitter' tag because the 'sidebarheader' does not work even though it is derived from a splitter. bug 26259. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75554 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:29:20 +00:00
slamm%netscape.com
edb98d1f1a Images for 'My Sidebar' title grippy. Bug 26259 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75553 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:29:17 +00:00
slamm%netscape.com
c9b08426a2 New styles for 'My Sidebar' title grippy. Bug 26259 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75552 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:28:22 +00:00
slamm%netscape.com
e131978b75 Add grippy to sidebarheader. bug 26259. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75551 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:25:43 +00:00
slamm%netscape.com
e3773008d1 Add horizontal grippy images. bug 26259. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75550 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:25:35 +00:00
hyatt%netscape.com
b61e7de349 Fix for 17470.
git-svn-id: svn://10.0.0.236/trunk@75549 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:21:23 +00:00
mcafee%netscape.com
963bb55a42 Removing dead pref-imageblocking.{xul,dtd} (40888). r=slamm, morse.
git-svn-id: svn://10.0.0.236/trunk@75548 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:20:01 +00:00
morse%netscape.com
1063d13178 bug 44514, speed up loading of wallet tables, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@75547 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:19:32 +00:00
pollmann%netscape.com
591cd3bd14 Bug 42616: form actions with anchor specified (#) do not work; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75546 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:03:58 +00:00
shanjian%netscape.com
3a788283fa #14588 Ctrl+right arrow skips over nbsp (nbsp should be word break)
r = ftang a=ftang
changes made in word break and word jump.


git-svn-id: svn://10.0.0.236/trunk@75545 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:03:08 +00:00
BlakeR1234%aol.com
f442cb2995 Remove hover effects for HTML buttons (38427). r=me (simple commenting change), a=ekrock.
git-svn-id: svn://10.0.0.236/trunk@75544 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:58:06 +00:00
sgehani%netscape.com
95c966af04 Fix indexing during IDI generation. [nsbeta3+ bugscape b=1740; r=dbragg]
git-svn-id: svn://10.0.0.236/trunk@75543 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:49:30 +00:00
dmose%mozilla.org
5bd2a72847 added one item, dropped one item, completed one item. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75542 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:48:08 +00:00
pinkerton%netscape.com
c951c080a5 Damn, forgot to check this in too
git-svn-id: svn://10.0.0.236/trunk@75541 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:48:07 +00:00
dmose%mozilla.org
910a966147 get rid of C-style casts. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75540 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:47:11 +00:00
dmose%mozilla.org
054fa6446d add XXX cleanup reminder comment. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75539 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:46:42 +00:00
dmose%mozilla.org
2766e71f0f remove NS_ERROR_LDAP_SUCCESS, as non-NS_OK success codes are considered bad form, and this one wasn't even used yet. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75538 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:45:43 +00:00
dmose%mozilla.org
985a0b5df5 add XXX comment to remind about future cleanup. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@75537 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:43:43 +00:00
hyatt%netscape.com
7517933b86 Fix for 42451.
git-svn-id: svn://10.0.0.236/trunk@75536 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:42:36 +00:00
ashuk%eng.sun.com
a2522e3fb6 Minor change to get Webclient to compile on Solaris
author=ashuk

cvs diff dom_util.h (in directory D:\M16\mozilla\java\webclient\src_moz\)
Index: dom_util.h
===================================================================
RCS file: /cvsroot/mozilla/java/webclient/src_moz/dom_util.h,v
retrieving revision 1.1
diff -r1.1 dom_util.h
28a29
> #include "nsIDOMDocument.h"

*****CVS exited normally with code 1*****


git-svn-id: svn://10.0.0.236/trunk@75535 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:35:14 +00:00
pollmann%netscape.com
f8b1d4c014 Bug 45540: Badly nested form + focus input -> input not a submitter; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75534 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:32:54 +00:00
ducarroz%netscape.com
179ab2ace8 Fix for bug 46678. We need to ignore onInput event right after somebody set the value of the textfield else autocomplete will start. R=radha
git-svn-id: svn://10.0.0.236/trunk@75533 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:31:28 +00:00
anthonyd%netscape.com
d503a47c59 nsPresContext.cpp : added to comment to presContext::GetLookAndFeel to inform others that
that method has been depricated.
nsTextFrame.cpp : changed an assert to a warning, didnt need to be an assert.
r: mjudge@netscape.com


git-svn-id: svn://10.0.0.236/trunk@75532 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:30:47 +00:00
ducarroz%netscape.com
4f634fec92 Fix for bug 47362. Add tooltip on attachment. R=mscott
git-svn-id: svn://10.0.0.236/trunk@75531 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:28:17 +00:00
pollmann%netscape.com
d358511c25 Bug 40383: Treat frameset rows spec 0* as 1* in quirks mode; r=harishd
git-svn-id: svn://10.0.0.236/trunk@75530 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:26:56 +00:00
pinkerton%netscape.com
190e0ada1c oops, forgot to check this in.
git-svn-id: svn://10.0.0.236/trunk@75529 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:25:23 +00:00
pollmann%netscape.com
e5357b4864 Bug 35986: document==NULL for FRAMEs created without SRC; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75528 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:23:48 +00:00
pollmann%netscape.com
ac0908f872 Bug 40394: Strip only one leading LF if there is one; r=harishd
git-svn-id: svn://10.0.0.236/trunk@75527 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:19:43 +00:00
mscott%netscape.com
6346d8dd30 Landing branch fix to the trunk. bug #47248 --> Implement MoveTo for Unix.
git-svn-id: svn://10.0.0.236/trunk@75526 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:17:43 +00:00
pollmann%netscape.com
f0c8471679 Bug 26945: Image input onclick fires but doesn't allow cancel via return false; r=harishd
git-svn-id: svn://10.0.0.236/trunk@75524 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:17:14 +00:00
BlakeR1234%aol.com
f8929164c8 Fix bug 47481, all menus have autoscrollers (caused by ben's classic skin changes last night). simple fix. r=me, a=pink
git-svn-id: svn://10.0.0.236/trunk@75523 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:15:09 +00:00
mscott%netscape.com
4e206cca95 landing branch fix to trunk. Bug #47248 ---> Fix GetParent such that if appendedPath is an empy string we treat it the same as if it were null and create a dummy path.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@75522 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:13:34 +00:00
pollmann%netscape.com
c6beecf00a Bug 34418: image input can't be submitted by space or enter; r=harishd
git-svn-id: svn://10.0.0.236/trunk@75521 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:11:57 +00:00
mcafee%netscape.com
8cd4c5c87d about: page needs to be HTML 4.0 (39231). patch=gemal, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@75520 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:11:21 +00:00
bryner%uiuc.edu
61ba79db7b Fixing bug 47536 - column hiding is broken. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@75519 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:09:57 +00:00
pinkerton%netscape.com
98dee5f779 part of fix for 46001, support |collapsed| attribute in addition to |hidden| to hide mac menus.
git-svn-id: svn://10.0.0.236/trunk@75518 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:09:00 +00:00
blizzard%redhat.com
d64971e8ac fix for bug #42401. only add a queue that is native to the event queue list that is processed by the main UI event loop. this should fix no painting on linux when the imap password dialog comes up. r=danm, bryner, mscott a=vidur
git-svn-id: svn://10.0.0.236/trunk@75517 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:08:29 +00:00
pinkerton%netscape.com
9ba2a8e9f2 patch from dean_tessman@hotmail.com for 32685. Check if item is disabled before allowing key navigation into submenus.
git-svn-id: svn://10.0.0.236/trunk@75516 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:07:49 +00:00
ftang%netscape.com
e72957f677 fix bug 46684 r=nhotta a=ftang convert unicode to file system charset
git-svn-id: svn://10.0.0.236/trunk@75515 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:07:14 +00:00
pinkerton%netscape.com
d8ee1444e0 Actually set the modifier keys before dispatching d&d event into gecko. r=bienvenu, bug#47195
git-svn-id: svn://10.0.0.236/trunk@75514 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:06:10 +00:00
pollmann%netscape.com
7f1111f79f Bug 40412: image inputs should send x and y not .x and .y if no name; r=harishd
git-svn-id: svn://10.0.0.236/trunk@75513 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:05:44 +00:00
blizzard%redhat.com
b432316444 fix makefile to work with objdir r=dougt a=waterson
git-svn-id: svn://10.0.0.236/trunk@75512 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:05:31 +00:00
pinkerton%netscape.com
60666b3047 Fix for 47413, better impl of ResolveShortcut() thanks to sean@beatnik.com a=waterson
git-svn-id: svn://10.0.0.236/trunk@75511 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:05:09 +00:00
hyatt%netscape.com
4d615c76d5 Fix for 46862 and 47346. r=pink
git-svn-id: svn://10.0.0.236/trunk@75510 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:05:07 +00:00
valeski%netscape.com
ffe961ce34 r=dp. removing extraneous junk
git-svn-id: svn://10.0.0.236/trunk@75509 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:04:28 +00:00
valeski%netscape.com
05ef997c3f getting cookie service to startup in conjunction with the http category.
git-svn-id: svn://10.0.0.236/trunk@75508 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:03:34 +00:00
pollmann%netscape.com
6ca99ffa40 7913 Dynamic changing of ROWS and COLS for framesets; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75507 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:02:50 +00:00
hyatt%netscape.com
2b75bd07ae I'm told backing this out resolves smoketest issues, so here it comes. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@75505 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 21:40:39 +00:00
edburns%acm.org
af2702d036 bug=47357
a=edburns
r=ashuk

This change creates a new directory, java/webclient/src_share, that
contains the code that will be used in both src_moz and src_ie, and any
other native browser wrapping implementations.

Here are the steps I followed to implement this change.

1. Create a new directory java/webclient/src_share

2. Move all jni_util*.* files from src_moz into src_share

3. Make it so src_share compiles into a new .lib

   src_share has no netscape dependencies.  Any functionality that
   depended on ns dependencies was kept in src_moz.  In this case, we
   have a function prototype only in src_share, with the implementation
   in src_moz.  We did this for nsHashtable.  The other trick was for
   things in WebShellInitContext that had nothing to do with Netscape.
   This case was accomodated by creating a new struct, ShareInitContext,
   that contains all WebShellInitContext members that have nothing to do
   with Netscape.  Currently this is just jobject propertiesClass.  I
   modified the WebShellInitContext struct to contain a ShareContext
   struct as its last member.  There are two new methods in jni_util.h
   that allow for the initialization and deallocation of the members of
   the ShareContext struct.

4. Make it so src_moz uses the new .lib to provide the jni_util behavior

  a. Create ns_util* files that include ../src_share/jni_util* files
  appropriately.

  The only tricky part was for things in jni_util.h that

Here's the list of files in this change.

cvs -z3 -n update (in directory D:\Projects\mozilla\java\webclient)
cvs server: Updating .
M Makefile.win // added src_share to DIRS
M src_moz/BookmarksImpl.cpp             // include ns_util instead of jni_util
M src_moz/CBrowserContainer.cpp         // include ns_util instead of jni_util
M src_moz/CBrowserContainer.h           // include ns_util instead of jni_util
M src_moz/CurrentPageImpl.cpp           // include ns_util instead of jni_util
M src_moz/HistoryImpl.cpp               // include ns_util instead of jni_util
M src_moz/Makefile.win                  // include ns_util instead of jni_util
M src_moz/NativeEventThread.cpp         // include ns_util instead of jni_util
M src_moz/NavigationImpl.cpp            // include ns_util instead of jni_util
M src_moz/RDFEnumeration.cpp            // include ns_util instead of jni_util
M src_moz/RDFTreeNode.cpp               // include ns_util instead of jni_util
M src_moz/WindowControlImpl.cpp         // include ns_util instead of jni_util
                                        // also use new util_InitShareContext
                                        // function
M src_moz/WrapperFactoryImpl.cpp        // include ns_util instead of jni_util
R src_moz/jni_util.cpp                  // moved to ../src_share
R src_moz/jni_util.h                    // moved to ../src_share
R src_moz/jni_util_export.cpp           // moved to ../src_share
R src_moz/jni_util_export.h             // moved to ../src_share
M src_moz/nsActions.cpp                 // include ns_util instead of jni_util
                                        // also use new
util_DeallocateShareContext
M src_moz/nsActions.h                   // include ns_util instead of jni_util
A src_moz/ns_util.cpp                   // include jni_util.h
A src_moz/ns_util.h                     // include jni_util.h, changes to
                                        // WebshellInitContext struct
A src_moz/ns_util_export.cpp            // provide impls for methods in
                                        // jni_util_export.h

A src_share/Makefile.win
A src_share/bal_util.cpp
A src_share/bal_util.h
A src_share/jni_util.cpp
A src_share/jni_util.h
A src_share/jni_util_export.cpp
A src_share/jni_util_export.h

*****CVS exited normally with code 0*****


git-svn-id: svn://10.0.0.236/trunk@75504 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 21:32:54 +00:00
dprice%netscape.com
7e5be17e07 removes copied files. Doesn't remove created directories yet.
git-svn-id: svn://10.0.0.236/trunk@75503 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 20:58:31 +00:00
ducarroz%netscape.com
673a0e90e3 Fix for bug 47497 (tree blocker). We should not pass rv to the call do_queryInterface in this case because failure here doesn't mean that the whole function failed. R=bienvenu
git-svn-id: svn://10.0.0.236/trunk@75502 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 20:50:00 +00:00
kzhou%netscape.com
e54841f4dc bug #46136. r:valeski, a:leaf. Reset mIP6vChecked as PR_FASLE to prevent browser
from hunging for ftp protocol


git-svn-id: svn://10.0.0.236/trunk@75501 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 20:05:22 +00:00
ducarroz%netscape.com
ce8553e8e4 Fix for tree blocker bug 47391. Do not try to update menu that doesn't exist. R=bienvenu,alecf
git-svn-id: svn://10.0.0.236/trunk@75500 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 19:58:10 +00:00
cotter%netscape.com
e6e1303445 Corrected date at top.
git-svn-id: svn://10.0.0.236/trunk@75499 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 17:24:43 +00:00
cotter%netscape.com
4158b80ece Updated platforms supported (deleted Solaris 2.5.1).
git-svn-id: svn://10.0.0.236/trunk@75498 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 17:23:45 +00:00
blizzard%redhat.com
5144480c38 documentation change only
git-svn-id: svn://10.0.0.236/trunk@75497 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 15:02:42 +00:00
bienvenu%netscape.com
74bcf1aa68 fix 47445 restore default pref for threading by subject without re
git-svn-id: svn://10.0.0.236/trunk@75495 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 14:15:27 +00:00
rods%netscape.com
46e78ab3ba 40000 - right-click events don't go through listboxes (onmoused
44454 - Can't drag-scroll/-select in single-select HTML listbox
42301 - select generates onchange when it shouldn't
33421 - <optgroup> in <select> breaks scrolling drop down lists
14771 - GFX list/combo box doesn't respond to keyboard input
b=40000, 44454, 42301, 33421, 14771 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75494 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 14:13:58 +00:00
rods%netscape.com
b077844144 47302 - moved the RegUnRegAccessKey to the Destroy Method
44788 - Comboboxes do not obey style height
42661 - javascript "selected = true" doesn't inform onChange of
b=47302, 44788, 42661 r=kmclusk


git-svn-id: svn://10.0.0.236/trunk@75493 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 14:13:40 +00:00
roc+%cs.cmu.edu
771c0a8519 Removing TABLE SUMMARY from browser tooltips. Bug #45735. r=ben, a=brendan
git-svn-id: svn://10.0.0.236/trunk@75492 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 13:42:52 +00:00
mkaply%us.ibm.com
8352f40ed0 OS/2 Tinderbox break
Need PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@75491 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 13:26:02 +00:00
locka%iol.ie
f467190080 NOT PART OF BUILD. Completed nsICommandHandler implementation. Added [retval] tag to out param in IDL file to make Javascript invocation easier.
git-svn-id: svn://10.0.0.236/trunk@75490 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 12:44:38 +00:00
ben%netscape.com
252508877d search button should not take focus.
git-svn-id: svn://10.0.0.236/trunk@75489 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 09:59:57 +00:00
ben%netscape.com
f87e7f5128 add license
git-svn-id: svn://10.0.0.236/trunk@75488 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 09:19:44 +00:00
warren%netscape.com
efbf2efe18 Fixed location of manifest.rdf
git-svn-id: svn://10.0.0.236/trunk@75487 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 09:04:05 +00:00
ben%netscape.com
a76a7c7b44 yay me. I suck. making <menubar> use menubarframe like it should instead of boxframe.
git-svn-id: svn://10.0.0.236/trunk@75486 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 09:01:18 +00:00
warren%netscape.com
6776b3e51d Fixed slashes and filenames that were too long for mac.
git-svn-id: svn://10.0.0.236/trunk@75485 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 08:57:40 +00:00
valeski%netscape.com
d79be2eab5 removing crusty include
git-svn-id: svn://10.0.0.236/trunk@75484 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:59:32 +00:00
valeski%netscape.com
ca2a231ff6 removing unneeded import lib/static lib links
git-svn-id: svn://10.0.0.236/trunk@75483 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:56:58 +00:00
dprice%netscape.com
3b6f776e04 adding manifest for modern skin jar
NOT IN THE BUILD


git-svn-id: svn://10.0.0.236/trunk@75482 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:35:28 +00:00
ben%netscape.com
d788e10b1e remove dead files
git-svn-id: svn://10.0.0.236/trunk@75481 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:18:17 +00:00
ben%netscape.com
f6db62710d fix for a bug with XBL binding attached event that was causing the event to be fired repeatedly.
code by hyatt, r=me


git-svn-id: svn://10.0.0.236/trunk@75480 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:17:10 +00:00
ben%netscape.com
9869871538 fix orange
git-svn-id: svn://10.0.0.236/trunk@75479 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:07:28 +00:00
ben%netscape.com
c17bb7417e die crapintosh
git-svn-id: svn://10.0.0.236/trunk@75478 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:06:17 +00:00
valeski%netscape.com
ced7b8dee1 cleanup
git-svn-id: svn://10.0.0.236/trunk@75477 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 07:00:14 +00:00
ben%netscape.com
c8d24f950d forgot this
git-svn-id: svn://10.0.0.236/trunk@75476 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:45:06 +00:00
dprice%netscape.com
5a7557e7bc added manifest.rdf
git-svn-id: svn://10.0.0.236/trunk@75475 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:44:46 +00:00
valeski%netscape.com
82432b560f removed defer logic as cookies are only accessed from the main thread. removed unused functions, converted stripline over to nsString equivelent, changed cookie deletion and list removal mechansim to use already cached indexes so we don't search the list again everytime we want to remove an element. also removed some extraneous statics
git-svn-id: svn://10.0.0.236/trunk@75474 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:40:35 +00:00
ben%netscape.com
7d04b93d30 toolbar landing 44756, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75473 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:36:17 +00:00
ben%netscape.com
0051ef1580 toolbar landing 44756
git-svn-id: svn://10.0.0.236/trunk@75472 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:29:59 +00:00
ben%netscape.com
664eb83eb4 classic skin landing from hell
46613 - polish!


git-svn-id: svn://10.0.0.236/trunk@75471 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:24:33 +00:00
cls%seawood.org
e00c9de47a Oops. Did a lxr search on the wrong thing. Change -DB1M to -DB_ONE_M since WS5.0 appears to not handle the former properly in all cases.
git-svn-id: svn://10.0.0.236/trunk@75470 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:07:33 +00:00
cls%seawood.org
63bdecee46 Removing unused define that appeared to be causing WS5.0 to occassionaly complain about the use of -D without an argument.
git-svn-id: svn://10.0.0.236/trunk@75469 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 05:34:19 +00:00
valeski%netscape.com
7e14301340 removing lock/monitor usage from cookie code. cookies live on the main thread and any cross thread communication is marshalled, thus no need for this stuff. also fixing nsVoidArray leak. also cleaning up extraneous nsString usage. Also adding functional test harness for win32
git-svn-id: svn://10.0.0.236/trunk@75468 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 04:57:23 +00:00
BlakeR1234%aol.com
0387f5b165 Fix bug 41345, implement checkmarks for the current visited page in the Go menu (as IE 5.x and NN 4.x do). r=jag, a=radha
git-svn-id: svn://10.0.0.236/trunk@75467 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 03:42:22 +00:00
kmcclusk%netscape.com
232df3fbb8 Removed references to viewmanager1 in nsViewFactory. Removed ViewManager1 from the build on WIN32, and Linux. b=42845 r=attinasi@netscape.com. tested=win32,linux
git-svn-id: svn://10.0.0.236/trunk@75466 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 03:36:10 +00:00
mkaply%us.ibm.com
08b40967ac r=mkaply, a=brendan
Tinderbox break - Should have been info.fExtensionArray


git-svn-id: svn://10.0.0.236/trunk@75465 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 02:20:17 +00:00
bienvenu%netscape.com
b9afe959ed fix bugs having to do with imap msg copying failing 46876 46914 etc r=mscott
git-svn-id: svn://10.0.0.236/trunk@75464 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 01:25:12 +00:00
bienvenu%netscape.com
948bf4aaf6 fix 28117 copying online to offline loses read state of msg r=mscott
git-svn-id: svn://10.0.0.236/trunk@75463 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 01:22:45 +00:00
pinkerton%netscape.com
87a6f925d2 Most of fix for 37412. Expand d&d so that when we're asking for a url and
don't have one, we check if a file is being dropped. If so, either give
the file:// url or read in the InternetShortcut.


git-svn-id: svn://10.0.0.236/trunk@75462 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:47:36 +00:00
nbhatla%netscape.com
28d4751238 Bug #46518 -> Mac Classic Skin Polish. #45112 -> Mail Arrow Icon. #45685 -> mail threaded icon. #45755 -> Radio buttons don't bounce in prefs on windows now. #46178 -> Nudge Button Icons. #46192 ->Prefs Panel title has proper background now. #17926 -> Using px instead of pt for fonts on Mac classic now. #47290 -> Removed border from content in navigator.css and added it to splitters. (for all checkins in past 20 min) r=andrew
git-svn-id: svn://10.0.0.236/trunk@75461 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:46:17 +00:00
pinkerton%netscape.com
82156229ea part of fix for 37412, make content area accept text/x-moz-url flavor.
git-svn-id: svn://10.0.0.236/trunk@75460 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:46:05 +00:00
pinkerton%netscape.com
56fa3c56a7 Fix for 40890, pin mouse to center of translucent drag to avoid large gaps between the mouse cursor and the item being dragged. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75459 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:43:28 +00:00
nbhatla%netscape.com
31a3863127 Bug #46519 -> Mac Classic Skin Polish. Fixes Messenger Icons.
git-svn-id: svn://10.0.0.236/trunk@75458 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:40:20 +00:00
nbhatla%netscape.com
7695cc70c3 Bug #46519 -> Mac Classic Skin Polish. Fixes Messenger Icons
git-svn-id: svn://10.0.0.236/trunk@75457 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:39:28 +00:00
nbhatla%netscape.com
9a5aa02bd4 Bug #46519 ->Mac Classic Skin Polish. Fixes Messenger Icons.
git-svn-id: svn://10.0.0.236/trunk@75456 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:38:28 +00:00
nbhatla%netscape.com
90de762c34 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@75455 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:36:12 +00:00
nbhatla%netscape.com
b040ebf047 Bug #46519: Mac Classic Skin Fixes. This fixes spacing issues in certain pref panels, by moving out style settings in the XUL. Bug #46178: Adds nudge button icons
git-svn-id: svn://10.0.0.236/trunk@75454 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:34:53 +00:00
nbhatla%netscape.com
f1dd086215 Bug #46519: Mac Classic Skin Polish. Fixes color picker widget in viewing messages pref panel.
git-svn-id: svn://10.0.0.236/trunk@75453 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:32:53 +00:00
mcafee%netscape.com
078a50ae4e Removing pref-diskspace.xul from mailnews prefs, this UI has moved over to account setup arena. r=alecf
git-svn-id: svn://10.0.0.236/trunk@75452 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:31:57 +00:00
mscott%netscape.com
35903c5428 Bug #47240 --> landing branch change to the tip. helper app dialog has no text on the mac
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75451 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:30:39 +00:00
mscott%netscape.com
a19c629a9b Bug #47240 --> landing branch change to the tip. helper app dialog has no text on the mac
git-svn-id: svn://10.0.0.236/trunk@75450 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:29:35 +00:00
mscott%netscape.com
a9110f7072 Bug #47248 --> various problems with save as dialog from helper app. unload handler was calling cancel and we
weren't setting the action to saveToDisk in the right case

Landing branch changes to the tip.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75449 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:27:17 +00:00
mscott%netscape.com
1a89e07ec3 Bug #1549 --> netcenter account merges with existing account Landing branch changes to the tip.
r=bhuvan


git-svn-id: svn://10.0.0.236/trunk@75448 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:26:09 +00:00
bryner%uiuc.edu
7c6dba14fb removed files: mozilla/layout/xul/base/src/nsTreeOuterFrame.cpp, mozilla/layout/xul/base/src/nsTreeFrame.cpp, mozilla/layout/xul/base/src/nsTreeRowGroupFrame.cpp, mozilla/layout/xul/base/src/nsTreeCellFrame.cpp, mozilla/layout/xul/base/src/nsTreeRowFrame.cpp
git-svn-id: svn://10.0.0.236/trunk@75447 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:23:55 +00:00
bryner%uiuc.edu
b298446991 Refixing bug 23140 to not cause a menu slowdown, and fixing bug 46615 -
removal of old tree widget.  r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@75446 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:22:36 +00:00
jj%netscape.com
81eb1f5b80 modify xptlink.pl to work on mac (granrose). r=jj.
git-svn-id: svn://10.0.0.236/trunk@75444 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:07:00 +00:00
despotdaemon%netscape.com
a28173503a Pseudo-automatic update of changes made by kandrot@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75443 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:39:36 +00:00
av%netscape.com
289e4953d8 Fixing Unix redness
git-svn-id: svn://10.0.0.236/trunk@75442 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:36:30 +00:00
attinasi%netscape.com
28857f7ccf New weekly data: not part of build
git-svn-id: svn://10.0.0.236/trunk@75441 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:28:11 +00:00
waldemar%netscape.com
3227d375c5 Made link order consistent
git-svn-id: svn://10.0.0.236/trunk@75440 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:09:53 +00:00
waldemar%netscape.com
e2aaf776e5 Fixed Mac errors and warnings
git-svn-id: svn://10.0.0.236/trunk@75439 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:09:29 +00:00
av%netscape.com
4a24980381 Fixing 45895, r=waterson
git-svn-id: svn://10.0.0.236/trunk@75437 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 23:01:35 +00:00
rods%netscape.com
c936b8f011 backing out changes until I get them all in
git-svn-id: svn://10.0.0.236/trunk@75436 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:59:45 +00:00
slamm%netscape.com
fc5c276171 Fix bug 15204/38057 from Eric Pollmann (pollmann@netscape.com). $enc had an single quote in it that was not escaped. Double quotes are escaped so it is safe to use them around the $enc value.
git-svn-id: svn://10.0.0.236/trunk@75434 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:54:03 +00:00
rods%netscape.com
a7f8784c75 if the size attr is ever evaled less than 1 then it is set to 1
b=46224, r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75433 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:47:55 +00:00
rods%netscape.com
0598d4e64a 47302 - moved the RegUnRegAccessKey to the Destroy Method
44788 - Comboboxes do not obey style height
42661 - javascript "selected = true" doesn't inform onChange of
b=47302, 44788, 42661 r=kmclusk


git-svn-id: svn://10.0.0.236/trunk@75432 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:24:14 +00:00
rods%netscape.com
256f1f523e The frames need to be appended and the default method just asserts
b=41528 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75431 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:16:12 +00:00
rods%netscape.com
389ee6e6a0 moved the RegUnRegAccessKey to the Destroy method
b=47302 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75430 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:12:11 +00:00
jj%netscape.com
5052d3645f changed output location for xpt_link target
git-svn-id: svn://10.0.0.236/trunk@75429 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:12:10 +00:00
jj%netscape.com
7224e7b919 added xpt_link tool to the Mac build (if build{xptlink}=1)
git-svn-id: svn://10.0.0.236/trunk@75428 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:10:54 +00:00
nhotta%netscape.com
9792e2e21e Changed GetCharacterSet to return a default if no folder charset is stored, bug 46542, r=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@75427 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:07:47 +00:00
rods%netscape.com
e0ca215d75 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@75426 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:07:46 +00:00
mjudge%netscape.com
dc427b4cd0 15665 beta3+ Javascript selecting a link when dragging.
git-svn-id: svn://10.0.0.236/trunk@75425 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:07:00 +00:00
rods%netscape.com
32f5520a8a The script notification happens before the radiobox gets a chance to change its value
so they must return the opposite value for themselves. They don't want to actually set their
values because the script could cancel. So the idea here is to let them know before the script
call that they should return their "future" value (the opposite of their current value)
b=42972 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75424 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:06:37 +00:00
rods%netscape.com
5e504902cc The script notification happens before the radiobox gets a chance to change its value
so they must return the opposite value for themselves. They don't want to actually set their
values because the script could cancel. So the idea here is to let them know before the script
call that they should return their "future" value (the opposite of their current value)

plus I made a minor change that allows the radio button to use the PaintBackground code to draw the "dot"
but it creates a tmp color struct so the color is correct.
b=42972,37517 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75423 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:06:33 +00:00
nhotta%netscape.com
56bf215fe0 Put a special case before alert the user for charset conversion failure, bug 42871, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@75422 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:03:26 +00:00
nhotta%netscape.com
9073a301c2 A change for phone/fax field. Write out attribute and value separatly since value needs charset conversion but not for attribute, bug 38901, r=rhp.
git-svn-id: svn://10.0.0.236/trunk@75421 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:00:04 +00:00
cata%netscape.com
8378cc2420 Fix for bug #28112 cache not persistent in charset menu, r=nhotta, a=ftang.
git-svn-id: svn://10.0.0.236/trunk@75420 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:54:18 +00:00
rods%netscape.com
908046df7e Since the way (and when) options were added then number of options is now different
so it must check against zero instead of 1
b=44266,r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75419 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:53:23 +00:00
dimator%netscape.com
ed7cd7c8bc Bug 34434. Updating secure mail and secure news icons. r=putterman
git-svn-id: svn://10.0.0.236/trunk@75418 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:52:37 +00:00
radha%netscape.com
9af9521afb fixes related to bug # 18321. Checking in branch fixes to the trunk. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@75417 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:49:26 +00:00
radha%netscape.com
dad1629804 Hook up JS history.go() to session History bug # 18321. r=nisheeth. Checking in branch
fix to the tip


git-svn-id: svn://10.0.0.236/trunk@75416 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:48:32 +00:00
varada%netscape.com
85d692989f including the CD autorun screen defaults in default config
git-svn-id: svn://10.0.0.236/trunk@75415 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:44:30 +00:00
despotdaemon%netscape.com
422e4c1a18 Pseudo-automatic update of changes made by jtaylor@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75414 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:35:51 +00:00
av%netscape.com
9ef05d47be Fixing 46573, r=serge
git-svn-id: svn://10.0.0.236/trunk@75413 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:35:45 +00:00
despotdaemon%netscape.com
bb99fd6686 Pseudo-automatic update of changes made by kzhou@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75412 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:26:16 +00:00
varada%netscape.com
b8328c39bd changing the location of navigator.dtd to reflect seamonkey AGAIN!
git-svn-id: svn://10.0.0.236/trunk@75411 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 21:11:20 +00:00
nelsonb%netscape.com
9a6d9ffb91 mpl_rsh now calls s_mp_div_2d instead of duplicating its logic.
mpl_lsh now calls s_mp_mul_2d instead of duplicating its logic.


git-svn-id: svn://10.0.0.236/trunk@75410 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 20:52:17 +00:00
nelsonb%netscape.com
20d8b5f447 - Implement s_mp_mul_2d, which complements s_mp_div_2d.
- Rewrite and speed up mp_sqr, most-frequently used in mp_exptmod().
- Speed up mp_sqrt by starting with a much better initial estimate.


git-svn-id: svn://10.0.0.236/trunk@75409 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 20:50:57 +00:00
nelsonb%netscape.com
81b0bae291 Accept input args in hex, not decimal. Line up output into columns.
git-svn-id: svn://10.0.0.236/trunk@75408 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 20:48:28 +00:00
nelsonb%netscape.com
9ba046bc86 Declare s_mp_mul_2d(), which is complementary to s_mp_div_2d().
git-svn-id: svn://10.0.0.236/trunk@75407 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 20:47:05 +00:00
relyea%netscape.com
0aa540096d Put modutil back into the daily builds
git-svn-id: svn://10.0.0.236/trunk@75405 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 18:42:32 +00:00
relyea%netscape.com
78434b3810 Remove old communicator stuff from libjar so modutil will build now.
git-svn-id: svn://10.0.0.236/trunk@75404 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 18:41:31 +00:00
ashuk%eng.sun.com
1d9d83e75f bug 44774, 44775
author=ashuk
r=ovk@sparc.spb.su

Minor fix for failed QA Test. Patch supplied by
Oleg.

_Ashu


git-svn-id: svn://10.0.0.236/trunk@75403 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 17:02:43 +00:00
cotter%netscape.com
4a086be75e Added latest PSM license.
git-svn-id: svn://10.0.0.236/trunk@75401 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 16:46:16 +00:00
locka%iol.ie
1abaef8da3 NOT PART OF BUILD.
New nsICommandHandler interface and C++ implementation for embedders who want their XUL to be able to call their webbrowser container with the minimum of effort.


git-svn-id: svn://10.0.0.236/trunk@75400 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 11:14:57 +00:00
rjc%netscape.com
e0e70af049 Specify query encoding string for this search engine. r=me a=johng
git-svn-id: svn://10.0.0.236/trunk@75399 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 10:47:52 +00:00
rjc%netscape.com
8a45085d44 Various small fixes for nsbeta3+ bug # 41357: enable column resigning for various trees. r=me
git-svn-id: svn://10.0.0.236/trunk@75398 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 10:31:37 +00:00
dprice%netscape.com
8e91eb2031 Adding chrome manifests for classic skin NOT IN THE BUILD
git-svn-id: svn://10.0.0.236/trunk@75397 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 10:11:17 +00:00
cls%seawood.org
2be0180151 Oops alecf missed one.
git-svn-id: svn://10.0.0.236/trunk@75396 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 09:05:12 +00:00
alecf%netscape.com
454a05dd45 fix some stupid typos (implementation was good, typing it failed :)) from yesterdays checkin
git-svn-id: svn://10.0.0.236/trunk@75394 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 07:59:17 +00:00
warren%netscape.com
5941ddaa3e Getting jar files in shape. Mostly works on unix, status bar missing (not in build yet).
git-svn-id: svn://10.0.0.236/trunk@75393 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 06:48:45 +00:00
alecf%netscape.com
a60bf10a77 fix AIX bustage with explicit casting
git-svn-id: svn://10.0.0.236/trunk@75392 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 06:02:35 +00:00
rjc%netscape.com
4500c1468d Putting fix for nsbeta2+ bug # 47126 into tip: fix simple mode searching. r=ben
git-svn-id: svn://10.0.0.236/trunk@75391 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 05:30:08 +00:00
ftang%netscape.com
a3f9b052aa fix 45430. patch proposed by beard@netscape.com r=ftang a=ftang
fix memory leak


git-svn-id: svn://10.0.0.236/trunk@75390 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 05:08:15 +00:00
waterson%netscape.com
53249a5944 Bug 46013, redux. Was leaking RDFContentSinkImpl::NameSpaceEntry objects all over the floor. Thanks to dbaron and beard for wiping my chin. r=beard.
git-svn-id: svn://10.0.0.236/trunk@75389 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 04:35:52 +00:00
ftang%netscape.com
1180663f95 fix 44551. Turn nb and nn to true from false so they will be
shown on the language ui.
r=momoi a=ftang


git-svn-id: svn://10.0.0.236/trunk@75388 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 04:22:41 +00:00
ftang%netscape.com
6e349ea58f fix bug 44551 Correct the spelling for Norwegian Bokmal
thanks for huftis@bigfoot.com (Karl Ove Hufthammer)
r=ftang@netscape.com a=ftang


git-svn-id: svn://10.0.0.236/trunk@75387 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 04:21:15 +00:00
jband%netscape.com
bcd6f01203 interim fix for bug 25180. Build double wrappers around JS components used by JS code. Includes secured scheme for getting at underlying JSObject for those who really need to do this. a=warren r=rginda
git-svn-id: svn://10.0.0.236/trunk@75385 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 03:57:59 +00:00
beard%netscape.com
fe85e51ec1 fixing warnings, removing need for JStrings to be copied for mClass
git-svn-id: svn://10.0.0.236/trunk@75384 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 03:53:04 +00:00
cls%seawood.org
574470d12b Fix --enable-logrefcnt so that it will actually force refcnt logging on or off per http://lxr.mozilla.org/seamonkey/source/xpcom/doc/MemoryTools.html.
git-svn-id: svn://10.0.0.236/trunk@75383 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 03:17:49 +00:00
cls%seawood.org
fb441abad1 On second thought, nevermind
git-svn-id: svn://10.0.0.236/trunk@75381 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 02:44:56 +00:00
cls%seawood.org
a53e5b86ae Add checks for FORCE_BUILD_REFCNT_LOGGING & NO_BUILD_REFCNT_LOGGING per http://lxr.mozilla.org/seamonkey/source/xpcom/doc/MemoryTools.html .
git-svn-id: svn://10.0.0.236/trunk@75380 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 02:42:54 +00:00
mjudge%netscape.com
80c961899e *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@75379 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 02:39:10 +00:00
valeski%netscape.com
49f0e8fbd7 47235. r=mstoltz. mlk fix.
git-svn-id: svn://10.0.0.236/trunk@75378 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 02:05:42 +00:00
cmanske%netscape.com
2023ba127b Fixed crashing bug 42195: Added method to nsIFrameSelection so frame can get limiting content node for parent node searches in text edit fields. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@75377 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 01:47:55 +00:00
nelsonb%netscape.com
d6a3fe495b Reduced the number of temporary variables allocated and freed during a
modular exponentiation by over 99%.  Modified mp_mul and mp_sqr to only
allocate temporary variables when absolutely needed.  Changed mp_copy
and mp_init_copy to allocate space according to the amount allocated
in the source, reducing the need to grow the variable later.


git-svn-id: svn://10.0.0.236/trunk@75376 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 01:03:14 +00:00
nelsonb%netscape.com
aa56939a15 Investigating allocation of temporary variables.
git-svn-id: svn://10.0.0.236/trunk@75375 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 01:01:01 +00:00
danm%netscape.com
bf7551e324 adding missing initialization of nsBrowserInstance object. bug 46979
git-svn-id: svn://10.0.0.236/trunk@75374 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:55:49 +00:00
bryner%uiuc.edu
086257b870 Removing the makefile for the directory I just removed. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75373 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:47:35 +00:00
bryner%uiuc.edu
5192d123ff Removing unused directory/files. No effect on build. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75372 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:46:14 +00:00
larryh%netscape.com
deebc2d183 BugZilla: 4090. cross platform breakage
git-svn-id: svn://10.0.0.236/trunk@75371 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:45:18 +00:00
dimator%netscape.com
d05b59fdd4 Removing no longer used files. r=putterman
git-svn-id: svn://10.0.0.236/trunk@75370 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:40:18 +00:00
pnunn%netscape.com
b54309d74e bug#46360: fixing leak of nsWeakReference. Thanks, Patrick. pnunn.
git-svn-id: svn://10.0.0.236/trunk@75369 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:34:30 +00:00
sfraser%netscape.com
1f4e9d74e3 Fix bug 34741 -- command-drag should not activate windows. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@75368 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:30:41 +00:00
hyatt%netscape.com
b93a1b200d Fix for column resizing. 41357.
git-svn-id: svn://10.0.0.236/trunk@75367 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:27:51 +00:00
hyatt%netscape.com
37448b6cd5 Fix for 41357.
git-svn-id: svn://10.0.0.236/trunk@75366 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:27:07 +00:00
hyatt%netscape.com
4c482a8039 Column resizing. 41357
git-svn-id: svn://10.0.0.236/trunk@75365 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:26:43 +00:00
hyatt%netscape.com
1f4e716975 Column resizing. 41357.
git-svn-id: svn://10.0.0.236/trunk@75364 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:26:25 +00:00
ddrinan%netscape.com
8fe71d79fb Initialize pointer!
git-svn-id: svn://10.0.0.236/trunk@75363 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:20:24 +00:00
valeski%netscape.com
fd89dc645d mlk fix. r=tao
git-svn-id: svn://10.0.0.236/trunk@75362 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:09:22 +00:00
larryh%netscape.com
283dbf916a BugZilla: 25982. remove comment witin a comment
git-svn-id: svn://10.0.0.236/trunk@75361 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 00:09:07 +00:00
ducarroz%netscape.com
abbb64f9b6 Fix for bug 38682. Add command updater to enable the spelling button and menu item when the cursor is in the message body. R=mscott.
git-svn-id: svn://10.0.0.236/trunk@75360 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:58:49 +00:00
valeski%netscape.com
6cb5a64229 removing extraneous variable
git-svn-id: svn://10.0.0.236/trunk@75359 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:57:36 +00:00
valeski%netscape.com
f5ea1d5037 removing extraneous string/memory usage
git-svn-id: svn://10.0.0.236/trunk@75358 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:44:38 +00:00
larryh%netscape.com
d25c24214f change default hostname to mcom.com
git-svn-id: svn://10.0.0.236/trunk@75355 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:31:48 +00:00
valeski%netscape.com
d605064355 44848. r=gagan. fixing leaked strings
git-svn-id: svn://10.0.0.236/trunk@75354 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:27:29 +00:00
dimator%netscape.com
da7b076b73 Fix for 43236. Removing "Double-clicking a message always opens a new window..." item from the pref dialog. r=putterman
git-svn-id: svn://10.0.0.236/trunk@75353 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:25:59 +00:00
valeski%netscape.com
aceba3cb14 removing extraneous static var and #includes
git-svn-id: svn://10.0.0.236/trunk@75352 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:23:44 +00:00
mcafee%netscape.com
cd0a9ee2e5 Avoid double slash problem when ObjDir is ''.
git-svn-id: svn://10.0.0.236/trunk@75350 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 23:17:59 +00:00
valeski%netscape.com
a3f4aa3885 raw pointer mlk fix. r=dougt
git-svn-id: svn://10.0.0.236/trunk@75349 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:57:58 +00:00
bryner%uiuc.edu
70c39b979b Removing .cvsignore files so this directory will go away. Not part
of build.  r=smfr.


git-svn-id: svn://10.0.0.236/trunk@75348 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:53:20 +00:00
pete%alphanumerica.com
7bf37c93a1 added two member functions to the File object prototype
r=dougt,brendan a=dougt
not part of the build.

--pete


git-svn-id: svn://10.0.0.236/trunk@75347 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:50:16 +00:00
varada%netscape.com
0e025587c6 disallow copy or move messages to Unsent Messages folder;bug #40695; r=scottip
git-svn-id: svn://10.0.0.236/trunk@75345 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:42:47 +00:00
mcafee%netscape.com
59648a42a7 BranchTag was being ignored, moving the logic to BuildIt() function.
git-svn-id: svn://10.0.0.236/trunk@75344 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:40:53 +00:00
alecf%netscape.com
562414f7a2 fix for 44633, 44634, and more threadpane performance work - use NS_LITERAL_STRING
where appropriate, avoid excess conversion of integer resources, etc.
r=putterman,mscott


git-svn-id: svn://10.0.0.236/trunk@75342 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:38:52 +00:00
bryner%uiuc.edu
3fdc637ee3 Removing unused files. Not part of the build. r=cls.
git-svn-id: svn://10.0.0.236/trunk@75341 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:35:28 +00:00
bryner%uiuc.edu
75bf2b3286 Fix for 46545 - command+click in trees on Mac. r=brade.
git-svn-id: svn://10.0.0.236/trunk@75339 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:30:10 +00:00
mscott%netscape.com
b06d36e874 Bug #1549, 1726 --> be sure to clear the prefs for the bogus identity we create during migration. This was causing
problems on the commercial build. (Landing from beta2 branch to tip)
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75338 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:29:15 +00:00
warren%netscape.com
6f9124b236 Breaking out platform specific jar stuff.
git-svn-id: svn://10.0.0.236/trunk@75337 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:22:41 +00:00
saari%netscape.com
0203addff1 fix for nsbeta3+ 37301, dynamically created menus crash on MacOS. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@75336 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:11:11 +00:00
larryh%netscape.com
8bed19c0f4 BugZilla: 25983. comment cleanup
git-svn-id: svn://10.0.0.236/trunk@75335 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:08:35 +00:00
slamm%netscape.com
a353c7af55 Remove bookmarks folder from toolbar. Bug 39332. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@75333 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:04:55 +00:00
neeti%netscape.com
b3ac151801 fix for bug 30852 - Image cache not refreshed on reload,
fix for bug 40449 - Cache does not store latest value of pages, r/a=gagan


git-svn-id: svn://10.0.0.236/trunk@75332 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 22:03:47 +00:00
heikki%netscape.com
f9ab048302 Bug 41599 browser crashes when executing function with certain name such as Click(). Fixed by stopping recursion. r=saari.
git-svn-id: svn://10.0.0.236/trunk@75331 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 21:40:38 +00:00
hyatt%netscape.com
5258badd5d Fix for 46849. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@75330 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 21:39:28 +00:00
danm%netscape.com
a561ef00c3 Deathgrip the output stream during WriteSegments to prevent bug 46267. This is a temporary patch to stop a common startup crash, until the real underlying cause is found. r=ruslan
git-svn-id: svn://10.0.0.236/trunk@75328 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 21:33:36 +00:00
varada%netscape.com
a7c6f067ba polish for mailwindow;bugs #41866,45195,45201,45203,45204;r=scottip
git-svn-id: svn://10.0.0.236/trunk@75327 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 21:24:29 +00:00
robinf%netscape.com
52bb6e29f8 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@75326 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 21:14:47 +00:00
dave%intrec.com
21cc5761af Undoing missing QA bug introduced with earlier patch (see bug 30826 for
details)


git-svn-id: svn://10.0.0.236/trunk@75325 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 19:52:06 +00:00
robinf%netscape.com
bd485d87d1 fixing bug 45752
git-svn-id: svn://10.0.0.236/trunk@75323 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 19:27:09 +00:00
brade%netscape.com
a92780d770 changes submitted by Dan Haddix (dan6992@hotmail.com); bug #37788
git-svn-id: svn://10.0.0.236/trunk@75321 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 14:31:26 +00:00
brade%netscape.com
197df3eb6d change submitted by Dan Haddix (dan6992@hotmail.com); bug #37788
git-svn-id: svn://10.0.0.236/trunk@75320 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 14:29:35 +00:00
brade%netscape.com
adf04edef9 Send Page (contributed by rcassin@supernova.org); bug #44802
git-svn-id: svn://10.0.0.236/trunk@75319 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 14:17:48 +00:00
brade%netscape.com
9f2c8a22ab initialize menuhandle to null; r=sfraser; bug #45245
git-svn-id: svn://10.0.0.236/trunk@75318 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 09:06:25 +00:00
rjc%netscape.com
0f38fc34ce Fix bug # 46710: can only start a drag on <treeitem> nodes. r=me
git-svn-id: svn://10.0.0.236/trunk@75317 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 08:24:07 +00:00
bryner%uiuc.edu
6f9d6935c1 Removing unused, old, obsolete files. Should not affect anything in the
build.  r=cls.


git-svn-id: svn://10.0.0.236/trunk@75315 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 07:50:09 +00:00
bryner%uiuc.edu
6a98845d2e Oops- forgot to remove this makefile when I removed the obsolete files in
modules/libpref/l10n.  Does not affect build.


git-svn-id: svn://10.0.0.236/trunk@75314 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 06:51:54 +00:00
cls%seawood.org
52bb0a339f For reasons not yet known, my build & the linux/arm tinderbox needed to include <stdlib.h> to get atoi().
git-svn-id: svn://10.0.0.236/trunk@75311 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 06:09:14 +00:00
cls%seawood.org
08521de430 Snarf'd gtk's NS_GetCurrentThread() implementation.
git-svn-id: svn://10.0.0.236/trunk@75310 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 06:02:28 +00:00
cls%seawood.org
a02313b652 BeOS doesn't need mcom_db.h either
git-svn-id: svn://10.0.0.236/trunk@75309 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 06:01:24 +00:00
danm%netscape.com
d2cd2b7da7 reverting to 1.65 -- though a slightly different version. i thought i was seeing a crash from that version, but now i think not. so, like before, bug 46556 r=saari. (also on M17 branch, rev 1.64.14.3)
git-svn-id: svn://10.0.0.236/trunk@75308 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 04:45:58 +00:00
danm%netscape.com
db4ea3d12c reverting last change, which causes new crashes
git-svn-id: svn://10.0.0.236/trunk@75306 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 03:00:35 +00:00
mscott%netscape.com
635a8128c2 Bug #1635 --> if we are downloading the entire message, set total download size based on the RFC822.SIZE response.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@75304 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 02:56:26 +00:00
dougt%netscape.com
c2a66acc1b Make setting the env MBs not bytes. r=valeski@netscape.com
DEBUGGIN code


git-svn-id: svn://10.0.0.236/trunk@75303 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 02:51:22 +00:00
mscott%netscape.com
bbd34bcf56 Bug #1539 --> if the identity already has an smtp server associated with it, don't create another one.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@75302 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 02:48:12 +00:00
rjc%netscape.com
cc337f55c5 Specify query encoding string for this search engine. r=me a=johng
git-svn-id: svn://10.0.0.236/trunk@75301 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 02:47:17 +00:00
despotdaemon%netscape.com
70ca7352c2 Pseudo-automatic update of changes made by quy@igelaus.com.au.
git-svn-id: svn://10.0.0.236/trunk@75300 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:54:12 +00:00
dougt%netscape.com
ce55e593ed Fix to allow MOZ_MEM_LIMIT be the upper limit in memory allocation.
Debugging code.  pavlov reviewed.


git-svn-id: svn://10.0.0.236/trunk@75297 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:46:52 +00:00
nelsonb%netscape.com
e3d813843b Declare mp_int function arguments "const" as appropriate.
git-svn-id: svn://10.0.0.236/trunk@75296 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:38:30 +00:00
dougt%netscape.com
ad72d6a7d0 Minor changes. Using service manager returned from NS_InitXPCOM.
git-svn-id: svn://10.0.0.236/trunk@75295 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:37:44 +00:00
dougt%netscape.com
b62c0ba2a1 Ton of changes. Basically using nsIWebBrowserChrome now.
valeski@netscape.com
47003


git-svn-id: svn://10.0.0.236/trunk@75294 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:37:07 +00:00
endico%mozilla.org
f4ff6546d0 Generate brief logs for beos builds. Fix for bug 37218. Patch contributed by Justin Morey <justin@68k.org>
git-svn-id: svn://10.0.0.236/trunk@75293 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:36:35 +00:00
nelsonb%netscape.com
09f7df0c44 Change default value for MP_ARGCHK to depend on whether or not DEBUG is
defined.  Raise the default "precision" to reduce reallocations.


git-svn-id: svn://10.0.0.236/trunk@75292 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:36:30 +00:00
danm%netscape.com
26f87c8d88 release the keyboard navigator in the destructor. seems to fix a secondary, rarer crash in bug 46556. also in M17 branch (rev 1.64.14.1). r=saari
git-svn-id: svn://10.0.0.236/trunk@75291 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:26:06 +00:00
rhp%netscape.com
a48966bc20 Fix for extra table in quoted output - Bug #: 46975 - r: rhp - mozilla contribution
git-svn-id: svn://10.0.0.236/trunk@75290 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:25:59 +00:00
rhp%netscape.com
7800b6a386 Fix for possible duplicate entry issues on sync failure - Bug # 1407 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@75289 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:25:40 +00:00
danm%netscape.com
52efcf92c2 Glossing over the real problem (a leaking content area docshell), in the sure hope that nsBrowserInstance is going away soon, this embarrassing hack stops crash bug 46556. Same change is on M17, rev 1.139.2.4. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@75288 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:16:40 +00:00
pinkerton%netscape.com
95ad431597 Fix for 39078, tooltips not disappearing on mouse clicks in button. when we get a mousedown, close the tooltip and cancel the timer. r=saari.
git-svn-id: svn://10.0.0.236/trunk@75286 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:05:58 +00:00
harishd%netscape.com
54856496e7 Migrating
-------------
46269 [nsbeta2+] - Fixed a crash, in CStartToken::IsEmpty(), caused by a wrong casting.
r=hiekki.


git-svn-id: svn://10.0.0.236/trunk@75284 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 01:02:09 +00:00
bryner%uiuc.edu
fcdb5021b6 Fix for bug 42052 (auto->none for max-width of menuitems in
menulists).  r=ben.


git-svn-id: svn://10.0.0.236/trunk@75283 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 00:59:37 +00:00
tao%netscape.com
167b9652ed 1683: Missing Buddy list from sidebar on new install.r=sgehani,a=pdt.
git-svn-id: svn://10.0.0.236/trunk@75282 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 00:57:33 +00:00
tao%netscape.com
c0c2db4c65 1683: BuddyList missing from sidebar on new install.r=sgehani,a=pdt.
git-svn-id: svn://10.0.0.236/trunk@75278 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 00:53:48 +00:00
pinkerton%netscape.com
70845ccdeb fix for 38359, link drags not firing if mouse was close to an edge. we need to fake out the ESM by setting |mCurrentTarget| to where the mouse went down so event.target is correct in JS. r=saari.
git-svn-id: svn://10.0.0.236/trunk@75276 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 00:35:23 +00:00
pinkerton%netscape.com
385e7049b5 Fix for 38359, reset cursor to arrow before invoking d&d.
git-svn-id: svn://10.0.0.236/trunk@75275 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-01 00:32:17 +00:00
dimator%netscape.com
70e672b557 Bug 23760. Updating threaded/unthreaded column icons. r=putterman
git-svn-id: svn://10.0.0.236/trunk@75274 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 23:38:21 +00:00
BlakeR1234%aol.com
3b81294931 Fix bug 47020, add menu checkmarks. r=jag a=putterman
git-svn-id: svn://10.0.0.236/trunk@75273 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 23:25:41 +00:00
vidur%netscape.com
a381dc926f Adding xmlextras to the default build target so that it can be included in the nightlies as per leaf. a=leaf, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@75272 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 23:14:24 +00:00
bryner%uiuc.edu
d7af85ee20 Patch from blizzard to fix 45808 (unable to get focus in file input
textfield on Linux).  r=me.


git-svn-id: svn://10.0.0.236/trunk@75271 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 23:00:28 +00:00
pinkerton%netscape.com
486c5bf240 for bug 39326, don't send the drop event to gecko if the canDrop is false on the drag session.
git-svn-id: svn://10.0.0.236/trunk@75270 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:54:03 +00:00
pinkerton%netscape.com
9fd9b17356 for bug 39326, add a drag over handler to reject drags from the same content area. better than the way i did it before.
git-svn-id: svn://10.0.0.236/trunk@75269 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:53:26 +00:00
mcafee%netscape.com
110cd31496 Saving horizontal space in diskspace pref pane (40888). r=matt
git-svn-id: svn://10.0.0.236/trunk@75268 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:47:26 +00:00
wtc%netscape.com
3e5e5fc62e Bugzilla bug #17223: fixed an error found when I compiled on Mac.
git-svn-id: svn://10.0.0.236/trunk@75267 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:40:12 +00:00
ben%netscape.com
1d954ee091 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support. 46613 - Make unix build the windows classic skin for now. Also a good test
for system colour support.


git-svn-id: svn://10.0.0.236/trunk@75266 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:29:30 +00:00
ducarroz%netscape.com
73c8ac5a65 Cleanup message compose menus. That fix bugs 23458, 33076, 33500, 39791, 39843, 39852, 40210, 40302, 40313, 40315, 40323, 40328, 40339, 45932.
R=mscott


git-svn-id: svn://10.0.0.236/trunk@75265 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:09:48 +00:00
BlakeR1234%aol.com
a0f91732e3 Fix bug 47036, remove ellipses from Edit | Preferences to conform to UI guidelines. r=jag, a=brade
git-svn-id: svn://10.0.0.236/trunk@75264 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 22:03:04 +00:00
sfraser%netscape.com
b3e4027389 Fix for bug 47084 - assertion because GetElementById was sometimes called with an empty string. r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@75263 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:47:44 +00:00
ducarroz%netscape.com
2e93b95d49 Fix for bug 35746. Replace prefilled recipients (reply-to, bcc) when switching identity. R=mscott
git-svn-id: svn://10.0.0.236/trunk@75262 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:46:33 +00:00
pinkerton%netscape.com
75160f506a for bug 39326, don't load urls dragged from the same content area.
git-svn-id: svn://10.0.0.236/trunk@75261 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:35:01 +00:00
ben%netscape.com
b6f87a4424 one of these days I won't suck. Not any day soon though, I'd wager.
git-svn-id: svn://10.0.0.236/trunk@75260 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:29:59 +00:00
alecf%netscape.com
d76f600e57 fix for #38834 r=ben (last week sometime)
make wizard page X of Y localizable


git-svn-id: svn://10.0.0.236/trunk@75259 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:26:29 +00:00
BlakeR1234%aol.com
fa4f81157e Fix for bug 47037, remove unnecessary ellipses from some Composer menu items. r=jag, a=brade
git-svn-id: svn://10.0.0.236/trunk@75258 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:25:31 +00:00
gagan%netscape.com
f67c707f01 Fix for bug 20145. Proxy Auto Config is now in. For more information check http://www.mozilla.org/docs/netlib/pac.html r=bryner,rjc.
git-svn-id: svn://10.0.0.236/trunk@75257 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:24:55 +00:00
mcafee%netscape.com
666c90e0b5 Cleaning up cache pref panel (40888). r=matt
git-svn-id: svn://10.0.0.236/trunk@75256 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:22:53 +00:00
nboyd%atg.com
82561ae36e Fix javadoc.
git-svn-id: svn://10.0.0.236/trunk@75255 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:19:05 +00:00
ben%netscape.com
f3a97337d1 forgot to check this file in with previous checkin for pink...
git-svn-id: svn://10.0.0.236/trunk@75254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:10:56 +00:00
bryner%uiuc.edu
f1aaaa287d Removing obsolete files. Not part of the build. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75253 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:08:23 +00:00
alecf%netscape.com
98d754b06b oops, back out this printf, didn't mean for it to go in
git-svn-id: svn://10.0.0.236/trunk@75251 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:58:08 +00:00
alecf%netscape.com
a98365dfed fix for #46379 by dougt@netscape.com, r=alecf
fix some leaked interface pointers in nsPref


git-svn-id: svn://10.0.0.236/trunk@75250 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:56:54 +00:00
pinkerton%netscape.com
c1421e9b63 Make the document where the drag originated available from the drag session. bug 39326
git-svn-id: svn://10.0.0.236/trunk@75249 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:51:42 +00:00
alecf%netscape.com
70c4ff39d8 fixes for #45079, #45695, #45809, #45722, #46374, #46393, and probably lots of other bugs related to cleaning up the account manager UI.
Stay tuned for more.. same bat time, same bat channel.
r=ben@netscape.com


git-svn-id: svn://10.0.0.236/trunk@75247 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:42:48 +00:00
nelsonb%netscape.com
02e48f1881 Fix initalizers in logtab.h to be "float" values, not "double" values.
git-svn-id: svn://10.0.0.236/trunk@75245 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:36:41 +00:00
mkaply%us.ibm.com
4b97bec576 45872
r=mkaply, a=brendan
Fixes for tiling of bitmaps - make them faster and fix 256 color


git-svn-id: svn://10.0.0.236/trunk@75244 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:36:14 +00:00
colin%theblakes.com
567fb479a9 Prevent very long commands from getting generated. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@75243 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:36:05 +00:00
alecf%netscape.com
8934b0b4a8 #36965: make prefs use nsIFile - first part is to add APIs that will eventually replace GetFilePref
r=conrad@ingress.com


git-svn-id: svn://10.0.0.236/trunk@75242 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:27:22 +00:00
ben%netscape.com
97da702180 some required groundwork for pink for his nsbeta3+ bug 39326
git-svn-id: svn://10.0.0.236/trunk@75241 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:26:08 +00:00
mcafee%netscape.com
3af671024c Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@75240 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:24:43 +00:00
nelsonb%netscape.com
d256d4063c Fix build problem caused by the fact that including stdlib.h implicitly
includes stdio.h on some platforms, but not on others.


git-svn-id: svn://10.0.0.236/trunk@75239 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:08:46 +00:00
larryh%netscape.com
7dac99e45a BugZilla: 46630. Log buffer size
git-svn-id: svn://10.0.0.236/trunk@75238 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 18:58:55 +00:00
wtc%netscape.com
3bc8962650 Bugzilla bug #46417: allow stdin, stdout, and stderr to be redirected
to the same osfd (e.g., a socket is bidirectional and hence we can
redirect both stdin and stdout to the same socket).  Thanks to
Rob McCool <robm@robm.com> for the bug report and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@75237 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 18:53:20 +00:00
wtc%netscape.com
46ffb41619 Bugzilla bug #46525: checked in a fix to silence a Purify UMR warning.
Thanks to Daniel Bratell <bratell@lysator.liu.se> for the bug report
and the fix.


git-svn-id: svn://10.0.0.236/trunk@75236 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 18:15:38 +00:00
vidur%netscape.com
25ce7279d8 Fixed leak of weak reference (thanks beard@netscape.com). Fixed makefiles to avoid overwriting xpt files. This is not part of the regular build
git-svn-id: svn://10.0.0.236/trunk@75235 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 16:48:54 +00:00
brade%netscape.com
be286422e9 add comment and modifier="false" to some keybindings
git-svn-id: svn://10.0.0.236/trunk@75234 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 13:24:09 +00:00
brade%netscape.com
308345d274 unix keybindings for ctrl-shift home/end (bug #43122)
git-svn-id: svn://10.0.0.236/trunk@75233 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 13:20:57 +00:00
brade%netscape.com
0c4a96d4cd change conflicting ids (#43122)
git-svn-id: svn://10.0.0.236/trunk@75232 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 13:17:40 +00:00
brade%netscape.com
a3c64268eb remove title string (bug #45088); r=bking@xmlw.ie
git-svn-id: svn://10.0.0.236/trunk@75231 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 13:03:45 +00:00
brade%netscape.com
79786792da tooltips (bug #9767)
git-svn-id: svn://10.0.0.236/trunk@75230 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 12:49:38 +00:00
cls%seawood.org
590cd3db6c Explicitly copy ua.css so that mathml doesn't modify it in the source tree.
git-svn-id: svn://10.0.0.236/trunk@75229 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 06:37:52 +00:00
BlakeR1234%aol.com
5ef5627a77 Oops; fix capitalization error in my last checkin.
git-svn-id: svn://10.0.0.236/trunk@75228 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 05:51:29 +00:00
BlakeR1234%aol.com
c8451d24ff Fix bug 37940, implement IE-style Text Size menu. Thanks to jag for the help. r=jag
git-svn-id: svn://10.0.0.236/trunk@75227 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 05:01:03 +00:00
BlakeR1234%aol.com
ac8d315c84 Fix bug 37940, implement IE-style Text Size menu. Thanks to jag for the help. r=jag
git-svn-id: svn://10.0.0.236/trunk@75226 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 04:54:02 +00:00
pavlov%netscape.com
54a4364827 fixing other people's build bustage bug 43826 r=bryner
git-svn-id: svn://10.0.0.236/trunk@75225 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 04:40:06 +00:00
cls%seawood.org
5762ef1fd6 Some of our tinderbox machines are slow (understatement) so make the timeouts for bloat tests & dom conversions configurable, otherwise we'll never see green.
git-svn-id: svn://10.0.0.236/trunk@75224 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 04:03:03 +00:00
dougt%netscape.com
ab256053d1 r,a=brendan@mozilla.org 24052
git-svn-id: svn://10.0.0.236/trunk@75223 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 03:46:22 +00:00
bryner%uiuc.edu
add96b82b8 Bug 41409 - make unix filepicker start out in home directory instead of root directory. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@75222 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 03:41:18 +00:00
cls%seawood.org
65d809d86e Link in util lib when perf-metrics are enabled.
git-svn-id: svn://10.0.0.236/trunk@75221 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 02:19:57 +00:00
BlakeR1234%aol.com
445d95e98f Fix bug 37982 and bug 9997
git-svn-id: svn://10.0.0.236/trunk@75220 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 00:57:01 +00:00
ftang%netscape.com
620180504e fix bug 46272 r=mjudge/brade use CopyUnicharPref instead of CopyCharPref
for non ASCII data- Author. a=ftang


git-svn-id: svn://10.0.0.236/trunk@75219 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 00:43:25 +00:00
ftang%netscape.com
a8d2d03cf7 fix for bug 26938. r=tao a=ftang. fix \u encoding conversion so \n \r \t\ will be
convert to \n \r \t


git-svn-id: svn://10.0.0.236/trunk@75218 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 00:40:20 +00:00
ftang%netscape.com
b84273a322 fix 5313. r-hnotta a=ftang listen to the ACCEPT-CHARSET attribute
before listen to the docuement charset to decide which charset
for form submition


git-svn-id: svn://10.0.0.236/trunk@75217 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 00:37:06 +00:00
ftang%netscape.com
f38e7dc2dd fix bug 5313. Change "acceptcharset" to "accept-charset" according to
HTML 4.0 section 17.13.4 r=nhotta a=ftang


git-svn-id: svn://10.0.0.236/trunk@75216 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 00:35:20 +00:00
putterman%netscape.com
14515507a0 Fix for 46390. Crash on exit when using mailnews. Putting on tip, already checked into branch. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75215 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 22:03:18 +00:00
BlakeR1234%aol.com
2d48c6bdd2 Bug 44474, improve html checkbox/radio button appearance, and bug 38427
git-svn-id: svn://10.0.0.236/trunk@75214 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 21:39:07 +00:00
BlakeR1234%aol.com
dd974603d4 More work for bug 44474.
git-svn-id: svn://10.0.0.236/trunk@75213 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 21:29:35 +00:00
morse%netscape.com
397833561e fix bug 46947, localization of strings in wallet interview form, r=dp
git-svn-id: svn://10.0.0.236/trunk@75212 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 20:07:43 +00:00
cls%seawood.org
9eb2322a70 Change requires to 5.003. Fixed scoping problems with 5.003. Fixed ambigious name use under 5.003. Set LIBPATH so AIX builds can run tests. Allow --depend/--clobber options to properly override tinder-config.pl settings. Add os_ver to default build name. Set BuildName & friends after args have been completely parsed.
git-svn-id: svn://10.0.0.236/trunk@75211 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 19:59:28 +00:00
cls%seawood.org
008b385261 Only set CVSROOT using netscape.com address if CVSROOT is not already set. Change requires to 5.003
git-svn-id: svn://10.0.0.236/trunk@75210 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 19:54:16 +00:00
morse%netscape.com
5781121d8c fix bug 46699, crash on many sites, r=jar, a=jar
git-svn-id: svn://10.0.0.236/trunk@75209 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 19:50:47 +00:00
BlakeR1234%aol.com
c418b7516e Classic skin work (46613)
git-svn-id: svn://10.0.0.236/trunk@75208 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 19:28:18 +00:00
BlakeR1234%aol.com
7c41e37a91 Fix bug 41809
git-svn-id: svn://10.0.0.236/trunk@75207 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 19:16:29 +00:00
BlakeR1234%aol.com
3530f57cf6 Minor wording change (44473)
git-svn-id: svn://10.0.0.236/trunk@75206 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 18:46:24 +00:00
BlakeR1234%aol.com
49f4db362f Fix bug 43257
git-svn-id: svn://10.0.0.236/trunk@75205 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 18:26:27 +00:00
BlakeR1234%aol.com
8087d57440 Fix bug 43257
git-svn-id: svn://10.0.0.236/trunk@75204 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 18:21:06 +00:00
morse%netscape.com
ae40919f80 minor wording change
git-svn-id: svn://10.0.0.236/trunk@75203 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 17:16:42 +00:00
hyatt%netscape.com
a6d254fa73 Oops. really fix 30644. r=ben
git-svn-id: svn://10.0.0.236/trunk@75202 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 07:35:21 +00:00
hyatt%netscape.com
f24222db0c Fix for 30644. r=ben
git-svn-id: svn://10.0.0.236/trunk@75201 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 07:19:58 +00:00
hyatt%netscape.com
7b5c94fdfd Fix tree painting bug. r=ben
git-svn-id: svn://10.0.0.236/trunk@75200 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 07:05:04 +00:00
BlakeR1234%aol.com
b93eb7a136 Bug 44733
git-svn-id: svn://10.0.0.236/trunk@75199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:57:38 +00:00
ben%netscape.com
ae43a6d29a some code tidy up for prefs after my previous checkin -
1) remove mousewheel pref panels from Mac build (there is no mousewheel support on mac, they're not needed)
2) remove js that did platform checking for winhooks and mousewheel from the prefwindow. This is unneeded now
that the panels are overlayed by the build system. no runtime checking is needed.


git-svn-id: svn://10.0.0.236/trunk@75198 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:40:30 +00:00
ben%netscape.com
f0444108cf update build lists for my previous checkin...
git-svn-id: svn://10.0.0.236/trunk@75197 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:38:22 +00:00
nelsonb%netscape.com
e41658ac33 Use Windowed computation of exponent in mp_exptmod().
git-svn-id: svn://10.0.0.236/trunk@75196 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:37:14 +00:00
nelsonb%netscape.com
ca5318ba6e Add function mpl_get_bits(). Returns value of contiguous subset of bits
of bignum.  Useful for windowed modular exponentiation.


git-svn-id: svn://10.0.0.236/trunk@75195 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:35:38 +00:00
ben%netscape.com
d76813a0c7 fixes for 13977 - make sure that 'Use Windows colors' shows up only on Windows, rather than on all platforms.
While we're at it, make the integration of winhooks and mousewheel a little cleaner.


git-svn-id: svn://10.0.0.236/trunk@75194 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:35:33 +00:00
BlakeR1234%aol.com
cdd091d1b8 Bug 44694
git-svn-id: svn://10.0.0.236/trunk@75193 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:14:55 +00:00
BlakeR1234%aol.com
7c3df7d271 Clean up history window...
git-svn-id: svn://10.0.0.236/trunk@75192 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:09:06 +00:00
BlakeR1234%aol.com
fdf7b5ce90 Clean up history window. Also fixes bug 44732.
git-svn-id: svn://10.0.0.236/trunk@75191 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 06:04:58 +00:00
BlakeR1234%aol.com
8203ea88eb Clean up work, also fixes bug 44689.
git-svn-id: svn://10.0.0.236/trunk@75190 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 05:45:27 +00:00
BlakeR1234%aol.com
6e15ece5d5 Clean up Bookmarks/History search window. also fixes bugs 44695, 44697, 44690.
git-svn-id: svn://10.0.0.236/trunk@75189 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 05:40:58 +00:00
ben%netscape.com
ff91eb02e8 fix for 42869, making the profile manager a bit more localisable + allowing vendor customisation.
git-svn-id: svn://10.0.0.236/trunk@75188 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 05:29:59 +00:00
morse%netscape.com
ec645543a3 fix bug 43227, hide quickfill menu item on all platforms, r=ben
git-svn-id: svn://10.0.0.236/trunk@75187 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 04:44:18 +00:00
BlakeR1234%aol.com
974eeafb56 Classic skin work (46613). Decrease the min-width of buttons to better replicate win32 buttons. r=ben
git-svn-id: svn://10.0.0.236/trunk@75186 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 04:32:58 +00:00
morse%netscape.com
f7b4b88523 fix bug 46464, split signon viewer into two separate viewers, r=ben
git-svn-id: svn://10.0.0.236/trunk@75185 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 04:25:54 +00:00
pavlov%netscape.com
d2b4681dcf fix for creating too many nsToolkit objects on unix bug 16328 r=cls
git-svn-id: svn://10.0.0.236/trunk@75184 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 03:39:42 +00:00
ben%netscape.com
233eb23916 Correct platform keyboard accelerator support for navigation. Should work this time. b46803
git-svn-id: svn://10.0.0.236/trunk@75183 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 03:36:52 +00:00
BlakeR1234%aol.com
9f4c5558d5 Fix disabled style rules for HTML checkboxes and radio buttons (44474). a=ekrock
git-svn-id: svn://10.0.0.236/trunk@75182 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 03:09:37 +00:00
BlakeR1234%aol.com
0b95d0a63e Rest of the fix for bug 44474. Improves the appearance of HTML radio buttons. a=ekrock
git-svn-id: svn://10.0.0.236/trunk@75181 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 03:03:31 +00:00
nelsonb%netscape.com
de8926dab3 MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>


git-svn-id: svn://10.0.0.236/trunk@75180 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 02:05:19 +00:00
BlakeR1234%aol.com
a5bf340b0c Fix for bug 41402, very minor. r=me
git-svn-id: svn://10.0.0.236/trunk@75179 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 02:02:53 +00:00
nelsonb%netscape.com
ce10ed0ff4 MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>


git-svn-id: svn://10.0.0.236/trunk@75178 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:56:35 +00:00
BlakeR1234%aol.com
0791ddd9ce Fix for bug 35770. Patch by jrgm@netscape.com, r=me
git-svn-id: svn://10.0.0.236/trunk@75177 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:44:55 +00:00
BlakeR1234%aol.com
f8584ed533 Bug 45707
git-svn-id: svn://10.0.0.236/trunk@75176 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:33:50 +00:00
BlakeR1234%aol.com
add0c9cdb8 Part of bug 45707. a=johng, german
git-svn-id: svn://10.0.0.236/trunk@75175 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:29:01 +00:00
BlakeR1234%aol.com
8a01712169 Fix 17608 a=vera
git-svn-id: svn://10.0.0.236/trunk@75174 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:22:12 +00:00
BlakeR1234%aol.com
a31a1fc9c6 Fix bug 43893.
git-svn-id: svn://10.0.0.236/trunk@75173 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 01:06:56 +00:00
BlakeR1234%aol.com
8e9e03a8d5 Classic skin work (bug 46613) a=johng
git-svn-id: svn://10.0.0.236/trunk@75172 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-30 00:38:27 +00:00
BlakeR1234%aol.com
9ed3184949 Remove redundant <html> tags (part of bug 42202) r=me, simple fix
git-svn-id: svn://10.0.0.236/trunk@75171 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 22:49:45 +00:00
BlakeR1234%aol.com
8ce9ec7b53 Fix for bug 43617, small regression patch.
git-svn-id: svn://10.0.0.236/trunk@75170 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 22:34:47 +00:00
BlakeR1234%aol.com
3f5ec18e56 Part of fix for bug 44474, to improve upon the appearance of HTML checkboxes. a=ekrock
git-svn-id: svn://10.0.0.236/trunk@75169 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 22:11:44 +00:00
morse%netscape.com
74736c0a31 bug 46883, move wallet interview form from server to client, r=pnunn
git-svn-id: svn://10.0.0.236/trunk@75168 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 20:50:30 +00:00
morse%netscape.com
589de4e8ac this is not part of build yet
git-svn-id: svn://10.0.0.236/trunk@75167 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 20:46:24 +00:00
morse%netscape.com
28b2fb591d this is not part of build yet
git-svn-id: svn://10.0.0.236/trunk@75166 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 20:45:44 +00:00
nelsonb%netscape.com
f8274b2cfc Build mpi library files in freebl.
git-svn-id: svn://10.0.0.236/trunk@75164 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 19:07:22 +00:00
nelsonb%netscape.com
8f09fd4435 Separate DH implementation for use with BSAFE and mpi-based implementation
into two files.


git-svn-id: svn://10.0.0.236/trunk@75163 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 19:06:54 +00:00
morse%netscape.com
f78674f4d2 interview form for wallet, not part of build yet
git-svn-id: svn://10.0.0.236/trunk@75162 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 18:51:30 +00:00
rjc%netscape.com
dc56a78072 Small sorting fix. (Can't find bug #) r=me
git-svn-id: svn://10.0.0.236/trunk@75161 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 16:15:48 +00:00
hyatt%netscape.com
2475c1f8ed Patch to avoid observing the document so early. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@75160 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 09:52:06 +00:00
hyatt%netscape.com
52fb92c9d0 More of teh same.
git-svn-id: svn://10.0.0.236/trunk@75159 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:38:03 +00:00
hyatt%netscape.com
47086a9c88 More of the same.
git-svn-id: svn://10.0.0.236/trunk@75158 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:37:49 +00:00
ben%netscape.com
0436cd4e6b fixing build bustage by removing include of overlay. too tired to figure out
why this is happening, will attempt to hook this up again tomorrow.


git-svn-id: svn://10.0.0.236/trunk@75157 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:32:43 +00:00
hyatt%netscape.com
f3042b3427 Halving the number of frames used for tree cells. r=ben
git-svn-id: svn://10.0.0.236/trunk@75156 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:22:51 +00:00
ben%netscape.com
f550faa147 forgot to add makefiles earlier...
git-svn-id: svn://10.0.0.236/trunk@75155 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:21:09 +00:00
dougt%netscape.com
438b051bb2 46044 fixes ABR. submitted by jband@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75154 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:13:39 +00:00
dougt%netscape.com
be9a6b605e slashes wrong way.
Not part of build.


git-svn-id: svn://10.0.0.236/trunk@75153 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 08:09:21 +00:00
ben%netscape.com
596e21c82a fix makefiles
git-svn-id: svn://10.0.0.236/trunk@75152 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 06:51:43 +00:00
ben%netscape.com
cdb8546ba8 46803, XP keyboard accelerators for navigation.
git-svn-id: svn://10.0.0.236/trunk@75151 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 06:48:57 +00:00
rhp%netscape.com
56bedac9da Fix for duplicating ABSync entries on sync operations - Bug #: 1680 - r: mozilla@bucksch.org
git-svn-id: svn://10.0.0.236/trunk@75150 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 05:04:43 +00:00
waterson%netscape.com
5731633fc2 Fix off-by-one error that jband found.
git-svn-id: svn://10.0.0.236/trunk@75148 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:34:55 +00:00
morse%netscape.com
de9aaf790a fix bug 46906, minor typo in dialog, submitted by wallet.properties
git-svn-id: svn://10.0.0.236/trunk@75147 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:28:31 +00:00
ben%netscape.com
8de618903a fixing busted tab widgets. accidentally checked in the wrong version of this file last night. This was causing various parts of the app to not appear (bookmark properties dialog, bottom half of themes pref panel, new card dialog in address book, etc)
git-svn-id: svn://10.0.0.236/trunk@75146 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:26:49 +00:00
waterson%netscape.com
4f776f02d4 Fix Win32 build bustage.
git-svn-id: svn://10.0.0.236/trunk@75145 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:13:41 +00:00
scc%mozilla.org
6ef6f1fd36 fixes for bugs #46898 and #46899: bad behavior in |nsCString::ToInteger| and a feature request for |ns[C]String::SetCapacity(0)| respectively. r={harishd, waterson}, a=waterson
git-svn-id: svn://10.0.0.236/trunk@75144 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:11:59 +00:00
waterson%netscape.com
c222336587 Bug 46702. Move nsFixedSizeAllocator to xpcom/ds so it can be used outside of RDF.
git-svn-id: svn://10.0.0.236/trunk@75143 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 03:01:46 +00:00
waterson%netscape.com
2888132355 Bug 46702. Move nsFixedSizeAllocator.[h|cpp] to xpcom/ds so that we can use it outside of RDF.
git-svn-id: svn://10.0.0.236/trunk@75142 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:58:43 +00:00
waterson%netscape.com
7d3c7affc8 Bug 46702. Move nsFixedSizeAllocator.[h|cpp] to xpcom/ds so that it can be used outside of RDF.
git-svn-id: svn://10.0.0.236/trunk@75141 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:58:10 +00:00
mkaply%us.ibm.com
691e351a8a OS/2 Tinderbox breakage
Use PR_TRUE not true


git-svn-id: svn://10.0.0.236/trunk@75140 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:36:54 +00:00
neeti%netscape.com
f375211dd9 fix for bug 40084, [CRASH] Crash in disk cache code, backed out changes made on 7/27, put new fix
fix for bug 46014, No keywords loaded on bugzilla pages, r/a=gagan


git-svn-id: svn://10.0.0.236/trunk@75139 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:32:14 +00:00
neeti%netscape.com
ec6f6a23f7 fix for bug 40084, [CRASH] Crash in disk cache code, backed out changes made on 7/27, put new fix
git-svn-id: svn://10.0.0.236/trunk@75138 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:30:30 +00:00
141 changed files with 652 additions and 56052 deletions

View File

@@ -1,44 +0,0 @@
STLPORT = /usr/local/include/stlport
CC = gcc
CFLAGS = -g -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith \
-Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes \
-Wno-non-virtual-dtor -I$(STLPORT)
objs = hash.o \
icodegenerator.o \
interpreter.o \
js2.o \
jsmath.o \
jstypes.o \
numerics.o \
parser.o \
utilities.o \
world.o \
vmtypes.o \
debugger.o
gc_path = ../../gc/boehm/
libs = gc.a -lstdc++ -lm
%.o : %.cpp
$(CC) -c $(CFLAGS) $< -o $@
js2: $(objs) gc.a
$(CC) -o $@ -ggdb $(objs) $(libs)
gc.a:
(cd $(gc_path) ; ln -f -s Makefile.unix Makefile ; make gc.a)
ln -f -s $(gc_path)gc.a ./gc.a
gctest: gc_allocator.o
$(CC) -o $@ -ggdb $^ $(libs)
clean:
rm -f $(objs)
depend:
gcc -MM *.cpp > dependencies
include dependencies

View File

@@ -1,111 +0,0 @@
# Microsoft Developer Studio Project File - Name="CPlusPlusTests" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=CPlusPlusTests - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "CPlusPlusTests.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "CPlusPlusTests.mak" CFG="CPlusPlusTests - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "CPlusPlusTests - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "CPlusPlusTests - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "CPlusPlusTests - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "CPlusPlusTests - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "CPlusPlusTests - Win32 Release"
# Name "CPlusPlusTests - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\cplusplustests.cpp
!IF "$(CFG)" == "CPlusPlusTests - Win32 Release"
!ELSEIF "$(CFG)" == "CPlusPlusTests - Win32 Debug"
# ADD CPP /Ob1 /FR
# SUBTRACT CPP /O<none> /YX
!ENDIF
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project

View File

@@ -1,29 +0,0 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "CPlusPlusTests"=.\CPlusPlusTests.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

View File

@@ -1,129 +0,0 @@
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <new>
using namespace std;
struct Arena {
const char *name;
Arena(const char *name): name(name) {}
};
void *operator new(size_t size, Arena &arena);
void operator delete(void *p);
void *operator new(size_t size, Arena &arena)
{
void *p = malloc(size);
printf("Allocating %d bytes at %p using arena \"%s\"\n", size, p, arena.name);
return p;
}
#ifndef __MWERKS__
void operator delete(void *p, Arena &arena)
{
printf("Deleting object at %p using arena \"%s\"\n", p, arena.name);
}
#endif
void operator delete(void *p)
{
printf("Deleting object at %p\n", p);
}
struct C {
int n;
C(int n, bool bad = false);
~C();
};
struct Exception {
int num;
explicit Exception(int n): num(n) {}
};
C::C(int n, bool bad): n(n)
{
printf("Constructing C #%d at %p\n", n, this);
if (bad) {
printf("Throwing %d; constructor aborted\n", n);
throw Exception(n);
}
}
C::~C()
{
printf("Destroying C #%d at %p\n", n, this);
}
static void constructorTest1(int n, bool bad)
{
try {
printf("Calling C(%d,%d)\n", n, (int)bad);
{
C c(n, bad);
printf("We have C #%d\n", c.n);
}
printf("C is out of scope\n");
} catch (Exception &e) {
printf("Caught exception %d\n", e.num);
}
printf("\n");
}
static void constructorTest2(int n, bool bad)
{
try {
printf("Calling new C(%d,%d)\n", n, (int)bad);
{
C *c = new C(n, bad);
printf("We have C #%d\n", c->n);
delete c;
}
printf("C is out of scope\n");
} catch (Exception &e) {
printf("Caught exception %d\n", e.num);
}
printf("\n");
}
static void constructorTest3(int n, bool bad)
{
try {
printf("Calling new(arena) C(%d,%d)\n", n, (int)bad);
{
Arena arena("My arena");
C *c = new(arena) C(n, bad);
printf("We have C #%d\n", c->n);
}
printf("C is out of scope\n");
} catch (Exception &e) {
printf("Caught exception %d\n", e.num);
}
printf("\n");
}
int main()
{
printf("Beginning constructor tests\n\n");
constructorTest1(1, false);
constructorTest1(2, true);
constructorTest2(3, false);
constructorTest2(4, true);
constructorTest3(5, false);
constructorTest3(6, true);
printf("Ending constructor tests\n");
return 0;
}

View File

@@ -1,191 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef cpucfg_h
#define cpucfg_h
#define JS_HAVE_LONG_LONG
#ifdef XP_MAC
#undef IS_LITTLE_ENDIAN
#define IS_BIG_ENDIAN 1
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 4L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 32L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 5L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 4L
#define JS_ALIGN_OF_LONG 4L
#define JS_ALIGN_OF_INT64 2L
#define JS_ALIGN_OF_FLOAT 4L
#define JS_ALIGN_OF_DOUBLE 4L
#define JS_ALIGN_OF_POINTER 4L
#define JS_ALIGN_OF_WORD 4L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#elif defined(XP_PC)
#ifdef _WIN32
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 4L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 32L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 5L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 4L
#define JS_ALIGN_OF_LONG 4L
#define JS_ALIGN_OF_INT64 8L
#define JS_ALIGN_OF_FLOAT 4L
#define JS_ALIGN_OF_DOUBLE 4L
#define JS_ALIGN_OF_POINTER 4L
#define JS_ALIGN_OF_WORD 4L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#endif /* _WIN32 */
#if defined(_WINDOWS) && !defined(_WIN32) /* WIN16 */
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 2L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 16L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 4L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 2L
#define JS_ALIGN_OF_LONG 2L
#define JS_ALIGN_OF_INT64 2L
#define JS_ALIGN_OF_FLOAT 2L
#define JS_ALIGN_OF_DOUBLE 2L
#define JS_ALIGN_OF_POINTER 2L
#define JS_ALIGN_OF_WORD 2L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#endif /* defined(_WINDOWS) && !defined(_WIN32) */
#elif defined(XP_UNIX) || defined(XP_BEOS)
#error "This file is supposed to be auto-generated on UNIX platforms, but the"
#error "static version for Mac and Windows platforms is being used."
#error "Something's probably wrong with paths/headers/dependencies/Makefiles."
#else
#error "Must define one of XP_MAC, XP_PC, or XP_UNIX"
#endif
#endif

View File

@@ -1,466 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#include "world.h"
#include "debugger.h"
#include <string>
#include <ctype.h>
#include <assert.h>
namespace JavaScript {
namespace Debugger {
using namespace Interpreter;
/* keep in sync with list in debugger.h */
static const char *shell_cmds[][3] = {
{"assemble", "", 0},
{"ambiguous", "", "Test command for ambiguous command detection"},
{"ambiguous2", "", "Test command for ambiguous command detection"},
{"continue", "", "Continue execution until complete."},
{"dissassemble", "[start_pc] [end_pc]", "Dissassemble entire module, or subset of module."},
{"exit", "", 0},
{"help", "", "Display this message."},
{"istep", "", "Execute the current opcode and stop."},
{"let", "", "Set a debugger environment variable."},
{"print", "", 0},
{"register", "", "(nyi) Show the value of a single register or all registers, or set the value of a single register."},
{"step", "", "Execute the current JS statement and stop."},
{0, 0} /* sentry */
};
enum ShellVariable {
TRACE_SOURCE,
TRACE_ICODE,
VARIABLE_COUNT
};
static const char *shell_vars[][3] = {
{"tracesource", "", "(bool) Show JS source while executing."},
{"traceicode", " ", "(bool) Show opcodes while executing."},
{0, 0} /* sentry */
};
/* return true if str2 starts with/is str1
* XXX ignore case */
static bool
startsWith (const String &str1, const String &str2)
{
uint n;
size_t m = str1.size();
if (m > str2.size())
return false;
for (n = 0; n < m; ++n)
if (str1[n] != str2[n])
return false;
return true;
}
/**
* locate the best match for |partial| in the command list |list|.
* if no matches are found, return |length|, if multiple matches are found,
* return |length| plus the number of ambiguous matches
*/
static uint32
matchElement (const String &partial, const char *list[][3], size_t length)
{
uint32 ambig_matches = 0;
uint32 match = length;
for (uint32 i = 0; i < length ; ++i)
{
String possibleMatch (widenCString(list[i][0]));
if (startsWith(partial, possibleMatch))
{
if (partial.size() == possibleMatch.size())
{
/* exact match */
ambig_matches = 0;
return i;
}
else if (match == COMMAND_COUNT) /* no match yet */
match = i;
else
++ambig_matches; /* something already matched,
* ambiguous command */
}
}
if (ambig_matches == 0)
return match;
else
return length + ambig_matches;
}
static void
showHelp(Formatter &out)
{
int i;
out << "JavaScript 2.0 Debugger Help...\n\n";
for (i = 0; shell_cmds[i][0] != 0; i++)
{
out << "Command : " << shell_cmds[i][0] << " " <<
shell_cmds[i][1] << "\n";
if (shell_cmds[i][2])
out << "Help : " << shell_cmds[i][2] << "\n";
else
out << "Help : (probably) Not Implemented.\n";
}
}
static uint32
getClosestSourcePosForPC (Context *cx, InstructionIterator pc)
{
ICodeModule *iCode = cx->getICode();
if (iCode->mInstructionMap->begin() == iCode->mInstructionMap->end())
return NotABanana;
/*NOT_REACHED ("Instruction map is empty, waah.");*/
InstructionMap::iterator pos_iter =
iCode->mInstructionMap->upper_bound (pc - iCode->its_iCode->begin());
if (pos_iter != iCode->mInstructionMap->begin())
--pos_iter;
return pos_iter->second;
}
void
Shell::showSourceAtPC (Context *cx, InstructionIterator pc)
{
if (!mResolveFileCallback)
{
mErr << "Source not available (Debugger was improperly initialized.)\n";
return;
}
ICodeModule *iCode = cx->getICode();
String fn = iCode->getFileName();
const Reader *reader = mResolveFileCallback(fn);
if (!reader)
{
mErr << "Source not available.\n";
return;
}
uint32 pos = getClosestSourcePosForPC(cx, pc);
if (pos == NotABanana)
{
mErr << "Map is empty, cannot display source.\n";
return;
}
uint32 lineNum = reader->posToLineNum (pos);
const char16 *lineBegin, *lineEnd;
uint32 lineStartPos = reader->getLine (lineNum, lineBegin, lineEnd);
String sourceLine (lineBegin, lineEnd);
mOut << fn << ":" << lineNum << " " << sourceLine << "\n";
uint padding = fn.length() + (uint32)(lineNum / 10) + 3;
uint i;
for (i = 0; i < padding; i++)
mOut << " ";
padding = (pos - lineStartPos);
for (i = 0; i < padding; i++)
mOut << ".";
mOut << "^\n";
}
void
Shell::showOpAtPC(Context* cx, InstructionIterator pc)
{
ICodeModule *iCode = cx->getICode();
if ((pc < iCode->its_iCode->begin()) ||
(pc >= iCode->its_iCode->end()))
{
mErr << "PC Out Of Range.";
return;
}
JSValues &registers = cx->getRegisters();
printFormat(mOut, "trace [%02u:%04u]: ",
iCode->mID, (pc - iCode->its_iCode->begin()));
Instruction* i = *pc;
stdOut << *i;
if (i->op() != BRANCH && i->count() > 0) {
mOut << " [";
i->printOperands(stdOut, registers);
mOut << "]\n";
} else {
mOut << '\n';
}
}
void
Shell::listen(Context* cx, Context::Event event)
{
InstructionIterator pc = cx->getPC();
if (mTraceSource)
showSourceAtPC (cx, pc);
if (mTraceICode)
showOpAtPC (cx, pc);
if (!(mStopMask & event))
return;
if ((mLastCommand == STEP) && (mLastICodeID == cx->getICode()->mID) &&
(mLastSourcePos == getClosestSourcePosForPC (cx, cx->getPC())))
/* we're in source-step mode, and the source position hasn't
* changed yet */
return;
if (!mTraceSource && !mTraceICode)
showSourceAtPC (cx, pc);
static String lastLine(widenCString("help\n"));
String line;
LineReader reader(mIn);
do {
stdOut << "jsd";
if (mLastCommand != COMMAND_COUNT)
stdOut << " (" << shell_cmds[mLastCommand][0] << ") ";
stdOut << "> ";
reader.readLine(line);
if (line[0] == uni::lf)
line = lastLine;
else
lastLine = line;
} while (doCommand(cx, line));
}
/**
* lex and execute the debugger command in |source|, return true if the
* command does not require the script being debugged to continue (eg, ask
* for more debugger input.)
*/
bool
Shell::doCommand (Interpreter::Context *cx, const String &source)
{
Lexer lex (mWorld, source, widenCString("debugger console"), 0);
const String *cmd;
uint32 match;
bool rv = true;
const Token &t = lex.get(true);
if (t.hasKind(Token::identifier))
cmd = &(t.getIdentifier());
else
{
mErr << "you idiot.\n";
return true;
}
match = matchElement (*cmd, shell_cmds, (size_t)COMMAND_COUNT);
if (match <= (uint32)COMMAND_COUNT)
{
switch ((ShellCommand)match)
{
case COMMAND_COUNT:
mErr << "Unknown command '" << *cmd << "'.\n";
break;
case AMBIGUOUS:
case AMBIGUOUS2:
mErr << "I pity the foogoo.\n";
break;
case CONTINUE:
mStopMask &= (Context::EV_ALL ^ Context::EV_STEP);
rv = false;
break;
case DISSASSEMBLE:
mOut << *cx->getICode();
break;
case HELP:
showHelp (mOut);
break;
case PRINT:
doPrint (cx, lex);
break;
case STEP:
mStopMask |= Context::EV_STEP;
rv = false;
break;
case LET:
doSetVariable (lex);
break;
default:
mErr << "Input '" << *cmd << "' matched unimplemented " <<
"command '" << shell_cmds[match][0] << "'.\n";
break;
}
mLastSourcePos = getClosestSourcePosForPC (cx, cx->getPC());
mLastICodeID = cx->getICode()->mID;
mLastCommand = (ShellCommand)match;
} else
mErr << "Ambiguous command '" << *cmd << "', " <<
(match - (uint32)COMMAND_COUNT + 1) << " similar commands.\n";
return rv;
}
void
Shell::doSetVariable (Lexer &lex)
{
uint32 match;
const String *varname;
const Token *t = &(lex.get(true));
if (t->hasKind(Token::identifier))
varname = &(t->getIdentifier());
else
{
mErr << "invalid variable name.\n";
return;
}
match = matchElement (*varname, shell_vars, (size_t)VARIABLE_COUNT);
if (match <= (uint32)VARIABLE_COUNT)
switch ((ShellVariable)match)
{
case VARIABLE_COUNT:
mErr << "Unknown variable '" << *varname << "'.\n";
break;
case TRACE_SOURCE:
t = &(lex.get(true));
if (t->hasKind(Token::assignment))
t = &(lex.get(true)); /* optional = */
if (t->hasKind(Token::True))
mTraceSource = true;
else if (t->hasKind(Token::False))
mTraceSource = false;
else
goto badval;
break;
case TRACE_ICODE:
t = &(lex.get(true));
if (t->hasKind(Token::assignment))
t = &(lex.get(true)); /* optional = */
if (t->hasKind(Token::True))
mTraceICode = true;
else if (t->hasKind(Token::False))
mTraceICode = false;
else
goto badval;
break;
default:
mErr << "Variable '" << *varname <<
"' matched unimplemented variable '" <<
shell_vars[match][0] << "'.\n";
}
else
mErr << "Ambiguous variable '" << *varname << "', " <<
(match - (uint32)COMMAND_COUNT + 1) << " similar variables.\n";
return;
badval:
mErr << "Invalid value for variable '" <<
shell_vars[(ShellVariable)match][0] << "'\n";
}
void
Shell::doPrint (Context *, Lexer &lex)
{
const Token *t = &(lex.get(true));
if (!(t->hasKind(Token::identifier)))
{
mErr << "Invalid register name.\n";
return;
}
/*
const StringAtom *name = &(t->getIdentifier());
VariableMap::iterator i = ((cx->getICode())->itsVariables)->find(*name);
// if (i)
mOut << (*i).first << " = " << (*i).second << "\n";
// else
// mOut << "No " << *name << " defined.\n";
*/
}
} /* namespace Debugger */
} /* namespace JavaScript */

View File

@@ -1,163 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/* this is all vapor, don't take it to serious yet */
#ifndef debugger_h
#define debugger_h
#include "utilities.h"
#include "interpreter.h"
#include <stdio.h>
namespace JavaScript {
namespace Debugger {
using namespace Interpreter;
class Shell;
typedef const Reader *ResolveFileCallback (const String &fileName);
typedef bool DebuggerCommandCallback (Shell &debugger, const Lexer &lex);
class Breakpoint {
public:
/* representation of a breakpoint */
void set();
void clear();
bool getState();
InstructionIterator getPC();
};
struct DebuggerCommand
{
DebuggerCommand(String aName, String aParamDesc, String aShortHelp,
String aLongHelp = widenCString("No more help available."),
DebuggerCommandCallback *aCommandFunction = 0)
: mName(aName), mParamDesc(aParamDesc), mShortHelp(aShortHelp),
mLongHelp(aLongHelp), mCommandFunction(aCommandFunction) {}
String mName;
String mParamDesc;
String mShortHelp;
String mLongHelp;
DebuggerCommandCallback *mCommandFunction;
};
/* keep in sync with list in debugger.cpp */
enum ShellCommand {
ASSEMBLE,
AMBIGUOUS,
AMBIGUOUS2,
CONTINUE,
DISSASSEMBLE,
EXIT,
HELP,
ISTEP,
LET,
PRINT,
REGISTER,
STEP,
COMMAND_COUNT
};
class Shell : public Context::Listener {
public:
Shell (World &aWorld, FILE *aIn, Formatter &aOut, Formatter &aErr,
ResolveFileCallback *aCallback = 0) :
mWorld(aWorld), mIn(aIn), mOut(aOut), mErr(aErr),
mResolveFileCallback(aCallback), mStopMask(Context::EV_DEBUG),
mTraceSource(false), mTraceICode(false), mLastSourcePos(0),
mLastICodeID(NotABanana), mLastCommand(COMMAND_COUNT)
{
}
~Shell ()
{
}
ResolveFileCallback
*setResolveFileCallback (ResolveFileCallback *aCallback)
{
ResolveFileCallback *rv = mResolveFileCallback;
mResolveFileCallback = aCallback;
return rv;
}
void listen(Context *context, Context::Event event);
/**
* install on a context
*/
bool attachToContext (Context *aContext)
{
aContext->addListener (this);
return true;
}
/**
* detach an icdebugger from a context
*/
bool detachFromContext (Context *aContext)
{
aContext->removeListener (this);
return true;
}
FILE *getIStream() { return mIn; }
Formatter &getOStream() { return mOut; }
Formatter &getEStream() { return mErr; }
private:
bool doCommand (Context *cx, const String &aSource);
void doSetVariable (Lexer &lex);
void doPrint (Context *cx, Lexer &lex);
void showOpAtPC(Context* cx, InstructionIterator pc);
void showSourceAtPC(Context* cx, InstructionIterator pc);
World &mWorld;
FILE *mIn;
Formatter &mOut, &mErr;
ResolveFileCallback *mResolveFileCallback;
uint32 mStopMask;
bool mTraceSource, mTraceICode;
uint32 mLastSourcePos, mLastICodeID;
ShellCommand mLastCommand;
};
} /* namespace Debugger */
} /* namespace JavaScript */
#endif /* debugger_h */

View File

@@ -1,26 +0,0 @@
debugger.o: debugger.cpp world.h utilities.h systemtypes.h hash.h \
parser.h debugger.h interpreter.h jstypes.h gc_allocator.h vmtypes.h \
numerics.h jsclasses.h icode.h icodegenerator.h
gc_allocator.o: gc_allocator.cpp gc_allocator.h gc_container.h
hash.o: hash.cpp hash.h utilities.h systemtypes.h
icodegenerator.o: icodegenerator.cpp numerics.h utilities.h \
systemtypes.h world.h hash.h parser.h vmtypes.h jstypes.h \
gc_allocator.h jsclasses.h icode.h icodegenerator.h interpreter.h
interpreter.o: interpreter.cpp interpreter.h utilities.h systemtypes.h \
jstypes.h gc_allocator.h vmtypes.h numerics.h jsclasses.h world.h \
hash.h parser.h icode.h icodegenerator.h jsmath.h
js2.o: js2.cpp world.h utilities.h systemtypes.h hash.h parser.h \
interpreter.h jstypes.h gc_allocator.h vmtypes.h numerics.h \
jsclasses.h icode.h icodegenerator.h debugger.h
jsmath.o: jsmath.cpp jsmath.h jstypes.h utilities.h systemtypes.h \
gc_allocator.h
jstypes.o: jstypes.cpp jstypes.h utilities.h systemtypes.h \
gc_allocator.h jsclasses.h numerics.h icodegenerator.h parser.h \
vmtypes.h world.h hash.h icode.h
numerics.o: numerics.cpp numerics.h utilities.h systemtypes.h
parser.o: parser.cpp numerics.h utilities.h systemtypes.h parser.h \
world.h hash.h
utilities.o: utilities.cpp utilities.h systemtypes.h
vmtypes.o: vmtypes.cpp utilities.h systemtypes.h vmtypes.h numerics.h \
jstypes.h gc_allocator.h jsclasses.h world.h hash.h parser.h icode.h
world.o: world.cpp world.h utilities.h systemtypes.h hash.h parser.h

View File

@@ -1,150 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include "gc_allocator.h"
#include "gc_container.h"
/*
namespace JavaScript {
template <class T>
typename gc_allocator<T>::pointer
gc_allocator<T>::allocate(gc_allocator<T>::size_type n, const void*)
{
return static_cast<pointer>(GC_malloc(n*sizeof(T)));
}
template <class T>
void gc_allocator<T>::deallocate(gc_allocator<T>::pointer ptr, gc_allocator<T>::size_type)
{
// this can really be a NO-OP with the GC.
// ::GC_free(static_cast<void*>(ptr));
}
}
*/
// test driver for standalone GC development.
namespace JS = JavaScript;
template <class T>
void* operator new(std::size_t, const JS::gc_allocator<T>& alloc)
{
return alloc.allocate(1);
}
/**
* Define a C++ class that is garbage collectable, and wants to have its destructor
* called when it is finalized.
*/
class A {
public:
typedef JS::gc_traits_finalizable<A> traits;
typedef JS::gc_allocator<A, traits> allocator;
friend struct traits;
static int instances;
void* operator new(std::size_t)
{
return allocator::allocate(1);
}
A()
{
++instances;
std::cout << "A::A() here." << std::endl;
}
protected:
~A()
{
--instances;
std::cout << "A::~A() here." << std::endl;
}
private:
// void operator delete(void*) {}
};
int A::instances = 0;
int main(int /* argc */, char* /* argv[] */)
{
using namespace std;
using namespace JS;
cout << "testing the GC allocator." << endl;
#ifdef XP_MAC
// allocate a string, using the GC, and owned by an auto_ptr, that knows how to correctly destroy the string.
typedef gc_container<char>::string char_string;
typedef gc_allocator<char_string> char_string_alloc;
auto_ptr<char_string, char_string_alloc> ptr(new(char_string_alloc()) char_string("This is a garbage collectable string."));
const char_string& str = *ptr;
cout << str << endl;
#endif
// question, how can we partially evaluate a template?
// can we say, typedef template <class T> vector<typename T>.
// typedef vector<int, gc_allocator<int> > int_vector;
typedef gc_container<int>::vector int_vector;
// generate 1000 random values.
int_vector values;
for (int i = 0; i < 1000; ++i) {
int value = rand() % 32767;
values.push_back(value);
// allocate a random amount of garbage.
if (!GC_malloc(static_cast<size_t>(value)))
cerr << "GC_malloc failed." << endl;
// allocate an object that has a finalizer to call its destructor.
A* a = new A();
}
// run a collection.
// gc_allocator<void>::collect();
GC_gcollect();
// print out instance count.
cout << "A::instances = " << A::instances << endl;
// sort the values.
sort(values.begin(), values.end());
// print the values.
int_vector::iterator iter = values.begin(), last = values.end();
cout << *iter++;
while (iter < last)
cout << ' ' << *iter++;
cout << endl;
#ifdef XP_MAC
// finally, print the string again.
cout << str << endl;
#endif
return 0;
}

View File

@@ -1,178 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef gc_allocator_h
#define gc_allocator_h
#include <memory>
#ifndef _WIN32 // Microsoft VC6 bug: standard identifiers should be in std namespace
using std::size_t;
using std::ptrdiff_t;
#endif
namespace JavaScript {
extern "C" {
void* GC_malloc(size_t bytes);
void* GC_malloc_atomic(size_t bytes);
void GC_free(void* ptr);
void GC_gcollect(void);
typedef void (*GC_finalization_proc) (void* obj, void* client_data);
void GC_register_finalizer(void* obj, GC_finalization_proc proc, void* client_data,
GC_finalization_proc *old_proc, void* *old_client_data);
}
#if 0 && !defined(XP_MAC)
// for platforms where GC doesn't exist yet.
inline void* GC_malloc(size_t bytes) { return ::operator new(bytes); }
inline void* GC_malloc_atomic(size_t bytes) { return ::operator new(bytes); }
inline void GC_free(void* ptr) { operator delete(ptr); }
inline void GC_gcollect() {}
inline void GC_register_finalizer(void* obj, GC_finalization_proc proc, void* client_data,
GC_finalization_proc *old_proc, void* *old_client_data) {}
#endif
/**
* General case: memory for type must be allocated as a conservatively
* scanned block of memory.
*/
template <class T> struct gc_traits {
static T* allocate(size_t n) { return static_cast<T*>(GC_malloc(n * sizeof(T))); }
};
/**
* Specializations for blocks of atomic types: the macro define_atomic_type(_type)
* specializes gc_traits<T> for types that need not be scanned by the
* GC. Implementors are free to define other types as atomic, if they are
* guaranteed not to contain pointers.
*/
#define define_atomic_type(_type) \
template <> struct gc_traits<_type> { \
static _type* allocate(size_t n) \
{ \
return static_cast<_type*>(GC_malloc_atomic(n * sizeof(_type))); \
} \
};
define_atomic_type(char)
define_atomic_type(unsigned char)
define_atomic_type(short)
define_atomic_type(unsigned short)
define_atomic_type(int)
define_atomic_type(unsigned int)
define_atomic_type(long)
define_atomic_type(unsigned long)
define_atomic_type(float)
define_atomic_type(double)
#undef define_atomic_type
/**
* Traits for classes that need to have their destructor called
* when reclaimed by the garbage collector.
*/
template <class T> struct gc_traits_finalizable {
static void finalizer(void* obj, void* client_data)
{
T* t = static_cast<T*>(obj);
size_t n = reinterpret_cast<size_t>(client_data);
for (size_t i = 0; i < n; ++i)
t[i].~T();
}
static T* allocate(size_t n)
{
T* t = gc_traits<T>::allocate(n);
GC_finalization_proc old_proc; void* old_client_data;
GC_register_finalizer(t, &finalizer, reinterpret_cast<void*>(n), &old_proc, &old_client_data);
return t;
}
};
/**
* An allocator that can be used to allocate objects in the garbage collected heap.
*/
template <class T, class traits = gc_traits<T> > class gc_allocator {
public:
typedef T value_type;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
typedef T *pointer;
typedef const T *const_pointer;
typedef T &reference;
typedef const T &const_reference;
gc_allocator() {}
template<typename U, typename UTraits> gc_allocator(const gc_allocator<U, UTraits>&) {}
// ~gc_allocator() {}
static pointer address(reference r) { return &r; }
static const_pointer address(const_reference r) { return &r; }
static pointer allocate(size_type n, const void* /* hint */ = 0) { return traits::allocate(n); }
static void deallocate(pointer, size_type) {}
static void construct(pointer p, const T &val) { new(p) T(val);}
static void destroy(pointer p) { p->~T(); }
#if defined(__GNUC__) || defined(_WIN32)
static size_type max_size() { return size_type(-1) / sizeof(T); }
#else
static size_type max_size() { return std::numeric_limits<size_type>::max() / sizeof(T); }
#endif
template<class U> struct rebind { typedef gc_allocator<U> other; };
#ifdef _WIN32
// raw byte allocator used on some platforms (grrr).
typedef char _Char[1];
static char* _Charalloc(size_type n) { return (char*) rebind<_Char>::other::allocate(n); }
// funky operator required for calling basic_string<T> constructor (grrr).
template<typename U, typename UTraits> int operator==(const gc_allocator<U, UTraits>&) { return 0; }
#endif
// void* deallocate used on some platforms (grrr).
static void deallocate(void*, size_type) {}
static void collect() { GC_gcollect(); }
};
/**
* Generic base class for objects allocated using a gc_allocator. How they are allocated
* can be controlled by specializing gc_traits for the specific class.
*/
template <typename T> class gc_object {
public:
void* operator new(size_t) { return gc_allocator<T>::allocate(1, 0); }
void operator delete(void* /* ptr */) {}
};
/**
* Simpler base class for classes that have no need to specialize allocation behavior.
*/
class gc_base {
public:
void* operator new(size_t n) { return GC_malloc(n); }
void operator delete(void*) {}
};
}
#endif /* gc_allocator_h */

View File

@@ -1,71 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef gc_container_h
#define gc_container_h
#include "gc_allocator.h"
#include <list>
#include <vector>
#include <string>
#define LIST std::list
#define VECTOR std::vector
#if defined(__GNUC__)
// grr, what kind of standard is this?
#define STRING basic_string
#define CHAR_TRAITS string_char_traits
#else
#define STRING std::basic_string
#define CHAR_TRAITS std::char_traits
#endif
namespace JavaScript {
/**
* Rebind some of the basic container types to use a GC_allocator.
* What I really want is something more general, something like:
* template <typename Container, typename T> class gc_rebind {
* typedef typename Container<T, gc_allocator<T> > other;
* };
* But I can't figure out how to do that with C++ templates.
*/
template <class T> struct gc_container {
typedef typename LIST<T, gc_allocator<T> > list;
typedef typename VECTOR<T, gc_allocator<T> > vector;
typedef typename STRING<T, CHAR_TRAITS<T>, gc_allocator<T> > string;
};
/**
* But, it's pretty easy to do with macros:
*/
#define GC_CONTAINER(container, type) container<T, gc_allocator<T> >
/*
// this gives an "unimplemented C++ feature" error using CWPro5.
// maybe someday.
template <template<class, class> typename Container, typename T>
struct gc_rebind {
typedef typename Container<T, gc_allocator<T> > container;
};
*/
}
#endif /* gc_container_h */

View File

@@ -1,173 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#include "hash.h"
#include <new>
namespace JS = JavaScript;
//
// Hash Codes
//
// General-purpose null-terminated C string hash function
JS::HashNumber JS::hashString(const char *s)
{
HashNumber h = 0;
uchar ch;
while ((ch = (uchar)*s++) != 0)
h = (h >> 28) ^ (h << 4) ^ ch;
return h;
}
// General-purpose String hash function
JS::HashNumber JS::hashString(const String &s)
{
HashNumber h = 0;
String::const_iterator p = s.begin();
String::size_type n = s.size();
if (n < 16)
// Hash every character in a short string.
while (n--)
h = (h >> 28) ^ (h << 4) ^ *p++;
else
// Sample a la java.lang.String.hash().
for (String::size_type m = n / 8; n >= m; p += m, n -= m)
h = (h >> 28) ^ (h << 4) ^ *p;
return h;
}
//
// Hash Tables
//
const uint minLgNBuckets = 4;
JS::GenericHashTableIterator::GenericHashTableIterator(GenericHashTable &ht):
ht(ht), entry(0), nextBucket(ht.buckets)
{
DEBUG_ONLY(++ht.nReferences);
operator++();
}
JS::GenericHashTableIterator &
JS::GenericHashTableIterator::operator++()
{
GenericHashEntry *e = entry;
if (e) {
backpointer = &e->next;
e = e->next;
}
if (!e) {
GenericHashEntry **const bucketsEnd = ht.bucketsEnd;
GenericHashEntry **bucket = nextBucket;
while (bucket != bucketsEnd) {
e = *bucket++;
if (e) {
backpointer = bucket-1;
break;
}
}
nextBucket = bucket;
}
entry = e;
return *this;
}
JS::GenericHashTable::GenericHashTable(uint32 nEntriesDefault):
nEntries(0)
{
DEBUG_ONLY(nReferences = 0);
uint lgNBuckets = ceilingLog2(nEntriesDefault);
if (lgNBuckets < minLgNBuckets)
lgNBuckets = minLgNBuckets;
defaultLgNBuckets = lgNBuckets;
recomputeMinMaxNEntries(lgNBuckets);
uint32 nBuckets = JS_BIT(lgNBuckets);
buckets = new GenericHashEntry*[nBuckets];
// No exceptions after this point unless buckets is deleted.
bucketsEnd = buckets + nBuckets;
zero(buckets, bucketsEnd);
}
// Initialize shift, minNEntries, and maxNEntries based on the lg2 of the
// number of buckets.
void JS::GenericHashTable::recomputeMinMaxNEntries(uint lgNBuckets)
{
uint32 nBuckets = JS_BIT(lgNBuckets);
shift = 32 - lgNBuckets;
maxNEntries = nBuckets; // Maximum ratio is 100%
minNEntries = lgNBuckets <= defaultLgNBuckets ? 0 : 3*(nBuckets>>3); // Minimum ratio is 37.5%
}
// Rehash the table. This method cannot throw out-of-memory exceptions, so it is
// safe to call from a destructor.
void JS::GenericHashTable::rehash()
{
uint32 newLgNBuckets = ceilingLog2(nEntries);
if (newLgNBuckets < defaultLgNBuckets)
newLgNBuckets = defaultLgNBuckets;
uint32 newNBuckets = JS_BIT(newLgNBuckets);
try {
GenericHashEntry **newBuckets = new GenericHashEntry*[newNBuckets];
// No exceptions after this point.
GenericHashEntry **newBucketsEnd = newBuckets + newNBuckets;
zero(newBuckets, newBucketsEnd);
recomputeMinMaxNEntries(newLgNBuckets);
GenericHashEntry **be = bucketsEnd;
for (GenericHashEntry **b = buckets; b != be; b++) {
GenericHashEntry *e = *b;
while (e) {
GenericHashEntry *next = e->next;
// Place e in the new set of buckets.
GenericHashEntry **nb = newBuckets + (e->keyHash*goldenRatio >> shift);
e->next = *nb;
*nb = e;
e = next;
}
}
delete[] buckets;
buckets = newBuckets;
bucketsEnd = newBucketsEnd;
} catch (std::bad_alloc) {
// Out of memory. Ignore the error and just relax the resizing boundaries.
if (buckets + JS_BIT(newLgNBuckets) > bucketsEnd)
maxNEntries >>= 1;
else
minNEntries <<= 1;
}
}

View File

@@ -1,373 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef hash_h
#define hash_h
#include "utilities.h"
namespace JavaScript {
//
// Hash Codes
//
typedef uint32 HashNumber;
HashNumber hashString(const char *s);
HashNumber hashString(const String &s);
template<class Key>
struct Hash {
HashNumber operator()(Key key) const;
};
template<class Key>
inline HashNumber Hash<Key>::operator()(Key key) const
{
return hashString(key);
}
const HashNumber goldenRatio = 0x9E3779B9U;
//
// Private
//
// Base class for user-defined hash entries.
// private
class GenericHashEntry {
public:
GenericHashEntry *next; // Link to next entry in the same bucket
const HashNumber keyHash; // This entry's hash value
protected:
explicit GenericHashEntry(HashNumber keyHash): next(0), keyHash(keyHash) {}
friend class GenericHashTable;
};
// private
class GenericHashTableIterator;
class GenericHashTable {
protected:
GenericHashEntry **buckets; // Vector of hash buckets
GenericHashEntry **bucketsEnd; // Pointer past end of vector of hash buckets
uint defaultLgNBuckets; // lg2 of minimum number of buckets for which to size the table
uint32 nEntries; // Number of entries in table
uint32 minNEntries; // Minimum number of entries without rehashing
uint32 maxNEntries; // Maximum number of entries without rehashing
uint32 shift; // 32 - lg2(number of buckets)
#ifdef DEBUG
public:
uint32 nReferences; // Number of iterators and references currently pointing to this hash table
#endif
public:
explicit GenericHashTable(uint32 nEntriesDefault);
~GenericHashTable() {
#ifndef _WIN32
ASSERT(nReferences == 0);
#endif
delete[] buckets;
}
void recomputeMinMaxNEntries(uint lgNBuckets);
void rehash();
void maybeGrow() {if (nEntries > maxNEntries) rehash();}
void maybeShrink() {if (nEntries < minNEntries) rehash();}
friend class GenericHashTableIterator;
typedef GenericHashTableIterator Iterator;
};
// This ought to be GenericHashTable::Iterator, but this doesn't work due to a
// Microsoft VC6 bug.
class GenericHashTableIterator {
protected:
GenericHashTable &ht; // Hash table being iterated
GenericHashEntry *entry; // Current entry; nil if done
GenericHashEntry **backpointer; // Pointer to pointer to current entry
GenericHashEntry **nextBucket; // Next bucket; pointer past end of vector of hash buckets if done
public:
explicit GenericHashTableIterator(GenericHashTable &ht);
~GenericHashTableIterator() {ht.maybeShrink(); DEBUG_ONLY(--ht.nReferences);}
operator bool() const {return entry != 0;} // Return true if there are entries left.
GenericHashTableIterator &operator++();
};
//
// Hash Tables
//
template<class Data, class Key, class H = Hash<Key> >
class HashTable: private GenericHashTable {
H hasher; // Hash function
struct Entry: public GenericHashEntry {
Data data;
Entry(HashNumber keyHash, Key key): GenericHashEntry(keyHash), data(key) {}
template<class Value>
Entry(HashNumber keyHash, Key key, Value value): GenericHashEntry(keyHash), data(key, value) {}
};
public:
class Reference {
#ifdef _WIN32 // Microsoft VC6 bug: friend declarations to inner classes don't work
public:
#endif
Entry *entry; // Current entry; nil if done
GenericHashEntry **backpointer; // Pointer to pointer to current entry
const HashNumber keyHash; // This entry's key's hash value
#ifdef DEBUG
GenericHashTable *ht; // Hash table to which this Reference points
#endif
public:
#ifndef _WIN32
Reference(HashTable &ht, Key key); // Search for an entry with the given key.
#else // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
Reference(HashTable &ht, Key key): keyHash(ht.hasher(key)) {
#ifdef DEBUG
Reference::ht = &ht;
++ht.nReferences;
#endif
HashNumber kh = keyHash;
HashNumber h = kh*goldenRatio >> ht.shift;
GenericHashEntry **bp = ht.buckets + h;
Entry *e;
while ((e = static_cast<Entry *>(*bp)) != 0 && !(e->keyHash == kh && e->data == key))
bp = &e->next;
entry = e;
backpointer = bp;
}
#endif
private:
Reference(const Reference&); // No copy constructor
void operator=(const Reference&); // No assignment operator
public:
#if defined(DEBUG) && !defined(_WIN32)
~Reference() {if (ht) --ht->nReferences;}
#endif
operator bool() const {return entry != 0;} // Return true if an entry was found.
Data &operator*() const {ASSERT(entry); return entry->data;} // Return the data of the entry that was found.
friend class HashTable;
};
class Iterator: public GenericHashTableIterator {
public:
explicit Iterator(HashTable &ht): GenericHashTableIterator(ht) {}
private:
Iterator(const Iterator&); // No copy constructor
void operator=(const Iterator&); // No assignment operator
public:
// Go to next entry.
Iterator &operator++() {return *static_cast<Iterator*>(&GenericHashTableIterator::operator++());}
Data &operator*() const {ASSERT(entry); return static_cast<Entry *>(entry)->data;} // Return current entry's data.
void erase();
};
HashTable(uint32 nEntriesDefault = 0, const H &hasher = H()): GenericHashTable(nEntriesDefault), hasher(hasher) {}
~HashTable();
template<class Value> Data &insert(Reference &r, Key key, Value value);
Data &insert(Reference &r, Key key);
Data &insert(Key key);
void erase(Reference &r);
void erase(Key key);
Data *operator[](Key key);
friend class Reference;
friend class Iterator;
#ifndef _WIN32
template<class Value> Data &insert(Key key, Value value);
#else // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
template<class Value> Data &insert(Key key, Value value) {
Reference r(*this, key);
if (r)
return *r = value;
else
return insert(r, key, value);
}
#endif
};
//
// Implementation
//
template<class Data, class Key, class H>
HashTable<Data, Key, H>::~HashTable()
{
GenericHashEntry **be = bucketsEnd;
for (GenericHashEntry **b = buckets; b != be; b++) {
Entry *e = static_cast<Entry *>(*b);
while (e) {
Entry *next = static_cast<Entry *>(e->next);
delete e;
e = next;
}
}
}
#ifndef _WIN32
template<class Data, class Key, class H>
HashTable<Data, Key, H>::Reference::Reference(HashTable &ht, Key key):
keyHash(ht.hasher(key))
{
#ifdef DEBUG
Reference::ht = &ht;
++ht.nReferences;
#endif
HashNumber kh = keyHash;
HashNumber h = kh*goldenRatio >> ht.shift;
GenericHashEntry **bp = ht.buckets + h;
Entry *e;
while ((e = static_cast<Entry *>(*bp)) != 0 && !(e->keyHash == kh && e->data == key))
bp = &e->next;
entry = e;
backpointer = bp;
}
// Insert the given key/value pair into the hash table. Reference must
// be the result of an unsuccessful search for that key in the table.
// The reference is not valid after this method is called.
// Return a reference to the new entry's value.
template<class Data, class Key, class H> template<class Value>
inline Data &HashTable<Data, Key, H>::insert(Reference &r, Key key, Value value)
{
ASSERT(r.ht == this && !r.entry);
Entry *e = new Entry(r.keyHash, key, value);
*r.backpointer = e;
++nEntries;
maybeGrow();
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
return e->data;
}
#endif
// Same as above but without a Value argument.
template<class Data, class Key, class H>
inline Data &HashTable<Data, Key, H>::insert(Reference &r, Key key)
{
ASSERT(r.ht == this && !r.entry);
Entry *e = new Entry(r.keyHash, key);
*r.backpointer = e;
++nEntries;
maybeGrow();
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
return e->data;
}
// Insert the given key/value pair into the hash table. If an entry with a
// matching key already exists, replace that entry's value.
// Return a reference to the new entry's value.
#ifndef _WIN32 // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
template<class Data, class Key, class H> template<class Value>
Data &HashTable<Data, Key, H>::insert(Key key, Value value)
{
Reference r(*this, key);
if (r)
return *r = value;
else
return insert(r, key, value);
}
#endif
// Same as above but without a Value argument.
template<class Data, class Key, class H>
Data &HashTable<Data, Key, H>::insert(Key key)
{
Reference r(*this, key);
if (r)
return *r;
else
return insert(r, key);
}
// Reference r must point to an existing entry. Delete that entry.
// The reference is not valid after this method is called.
template<class Data, class Key, class H>
inline void HashTable<Data, Key, H>::erase(Reference &r)
{
Entry *e = r.entry;
ASSERT(r.ht == this && e);
*r.backpointer = e->next;
--nEntries;
delete e;
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
maybeShrink();
}
// Remove the hash table entry, if any, matching the given key.
template<class Data, class Key, class H>
void HashTable<Data, Key, H>::erase(Key key)
{
Reference r(*this, key);
if (r)
erase(r);
}
// Return a pointer to the value of the hash table entry matching the given key.
// Return nil if no entry matches.
template<class Data, class Key, class H>
Data *HashTable<Data, Key, H>::operator[](Key key)
{
Reference r(*this, key);
if (r)
return &*r;
else
return 0;
}
}
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,306 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef icodegenerator_h
#define icodegenerator_h
#include <vector>
#include <stack>
#include "utilities.h"
#include "parser.h"
#include "vmtypes.h"
#include "jsclasses.h"
namespace JavaScript {
namespace ICG {
using namespace VM;
using namespace JSTypes;
using namespace JSClasses;
typedef std::map<String, TypedRegister, std::less<String> > VariableList;
typedef std::map<uint32, uint32, std::less<uint32> > InstructionMap;
class ICodeModule {
public:
ICodeModule(InstructionStream *iCode, VariableList *variables,
uint32 maxRegister, uint32 maxParameter,
InstructionMap *instructionMap) :
its_iCode(iCode), itsVariables(variables),
itsParameterCount(maxParameter), itsMaxRegister(maxRegister),
mID(++sMaxID), mInstructionMap(instructionMap) { }
~ICodeModule()
{
delete its_iCode;
delete itsVariables;
delete mInstructionMap;
}
Formatter& print(Formatter& f);
void setFileName (String aFileName) { mFileName = aFileName; }
String getFileName () { return mFileName; }
InstructionStream *its_iCode;
VariableList *itsVariables;
uint32 itsParameterCount;
uint32 itsMaxRegister;
uint32 mID;
InstructionMap *mInstructionMap;
String mFileName;
static uint32 sMaxID;
};
typedef std::vector<const StringAtom *> LabelSet;
class LabelEntry {
public:
LabelEntry(LabelSet *labelSet, Label *breakLabel)
: labelSet(labelSet), breakLabel(breakLabel), continueLabel(NULL) { }
LabelEntry(LabelSet *labelSet, Label *breakLabel, Label *continueLabel)
: labelSet(labelSet), breakLabel(breakLabel), continueLabel(continueLabel) { }
bool containsLabel(const StringAtom *label);
LabelSet *labelSet;
Label *breakLabel;
Label *continueLabel;
};
typedef std::vector<LabelEntry *> LabelStack;
Formatter& operator<<(Formatter &f, ICodeModule &i);
/****************************************************************/
// An ICodeGenerator provides the interface between the parser and the
// interpreter. The parser constructs one of these for each
// function/script, adds statements and expressions to it and then
// converts it into an ICodeModule, ready for execution.
class ICodeGenerator {
public:
typedef enum { kNoFlags = 0, kIsTopLevel = 0x01, kIsStaticMethod = 0x02, kIsWithinWith = 0x04 } ICodeGeneratorFlags;
private:
InstructionStream *iCode;
bool iCodeOwner;
LabelList labels;
Register mTopRegister; // highest (currently) alloacated register
uint32 mParameterCount; // number of parameters declared for the function
// these must come before any variables declared.
TypedRegister mExceptionRegister; // reserved to carry the exception object.
VariableList *variableList; // name|register pair for each variable
World *mWorld; // used to register strings
JSScope *mGlobal; // the scope for compiling within
LabelStack mLabelStack; // stack of LabelEntry objects, one per nested looping construct
// maps source position to instruction index
InstructionMap *mInstructionMap;
JSClass *mClass; // enclosing class when generating code for methods
ICodeGeneratorFlags mFlags; // assorted flags
std::vector<bool> mPermanentRegister;
Register getTempRegister()
{
while (mTopRegister < mPermanentRegister.size())
if (!mPermanentRegister[mTopRegister])
return mTopRegister++;
else
++mTopRegister;
mPermanentRegister.resize(mTopRegister + 1);
mPermanentRegister[mTopRegister] = false;
return mTopRegister++;
}
void resetTopRegister() { mTopRegister = mParameterCount; }
void resetStatement() { resetTopRegister(); }
TypedRegister allocateRegister(const StringAtom& name, JSType *type);
void setRegisterForVariable(const StringAtom& name, TypedRegister r) { (*variableList)[name] = r; }
JSType *findType(const StringAtom& typeName);
void setLabel(Label *label);
void jsr(Label *label) { iCode->push_back(new Jsr(label)); }
void rts() { iCode->push_back(new Rts()); }
void branch(Label *label);
GenericBranch *branchTrue(Label *label, TypedRegister condition);
GenericBranch *branchFalse(Label *label, TypedRegister condition);
void beginTry(Label *catchLabel, Label *finallyLabel)
{ iCode->push_back(new Tryin(catchLabel, finallyLabel)); }
void endTry() { iCode->push_back(new Tryout()); }
void beginWith(TypedRegister obj) { iCode->push_back(new Within(obj)); }
void endWith() { iCode->push_back(new Without()); }
void startStatement(uint32 pos) { (*mInstructionMap)[iCode->size()] = pos; }
ICodeOp mapExprNodeToICodeOp(ExprNode::Kind kind);
bool isTopLevel() { return (mFlags & kIsTopLevel) != 0; }
bool isWithinWith() { return (mFlags & kIsWithinWith) != 0; }
bool isStaticMethod() { return (mFlags & kIsStaticMethod) != 0; }
void setFlag(uint32 flag, bool v) { mFlags = (ICodeGeneratorFlags)((v) ? mFlags | flag : mFlags & ~flag); }
typedef enum {Var, Property, Slot, Static, Constructor, Name, Method} LValueKind;
LValueKind resolveIdentifier(const StringAtom &name, TypedRegister &v, uint32 &slotIndex);
TypedRegister handleIdentifier(IdentifierExprNode *p, ExprNode::Kind use, ICodeOp xcrementOp, TypedRegister ret, RegisterList *args);
TypedRegister handleDot(BinaryExprNode *b, ExprNode::Kind use, ICodeOp xcrementOp, TypedRegister ret, RegisterList *args);
ICodeModule *genFunction(FunctionStmtNode *f, bool isConstructor, JSClass *superClass);
public:
ICodeGenerator(World *world, JSScope *global, JSClass *aClass = NULL, ICodeGeneratorFlags flags = kIsTopLevel);
~ICodeGenerator()
{
if (iCodeOwner) {
delete iCode;
delete mInstructionMap;
}
}
ICodeModule *complete();
TypedRegister genExpr(ExprNode *p,
bool needBoolValueInBranch = false,
Label *trueBranch = NULL,
Label *falseBranch = NULL);
TypedRegister genStmt(StmtNode *p, LabelSet *currentLabelSet = NULL);
void returnStmt(TypedRegister r);
void returnStmt();
void throwStmt(TypedRegister r) { iCode->push_back(new Throw(r)); }
void debuggerStmt() { iCode->push_back(new Debugger()); }
TypedRegister allocateVariable(const StringAtom& name);
TypedRegister allocateVariable(const StringAtom& name, const StringAtom& typeName);
TypedRegister findVariable(const StringAtom& name)
{
VariableList::iterator i = variableList->find(name);
return (i == variableList->end()) ? TypedRegister(NotARegister, &None_Type) : (*i).second;
}
TypedRegister allocateParameter(const StringAtom& name) { mParameterCount++; return allocateRegister(name, &Any_Type); }
TypedRegister allocateParameter(const StringAtom& name, const StringAtom& typeName)
{ mParameterCount++; return allocateRegister(name, findType(typeName)); }
TypedRegister allocateParameter(const StringAtom& name, JSType *type)
{ mParameterCount++; return allocateRegister(name, type); }
Formatter& print(Formatter& f);
TypedRegister op(ICodeOp op, TypedRegister source);
TypedRegister op(ICodeOp op, TypedRegister source1, TypedRegister source2);
TypedRegister binaryOp(ICodeOp op, TypedRegister source1, TypedRegister source2);
TypedRegister call(TypedRegister base, TypedRegister target, RegisterList *args);
TypedRegister getMethod(TypedRegister thisArg, uint32 slotIndex);
void move(TypedRegister destination, TypedRegister source);
TypedRegister logicalNot(TypedRegister source);
TypedRegister test(TypedRegister source);
TypedRegister loadBoolean(bool value);
TypedRegister loadImmediate(double value);
TypedRegister loadString(const String &value);
TypedRegister loadString(const StringAtom &name);
TypedRegister newObject(TypedRegister constructor);
TypedRegister newArray();
TypedRegister newFunction(ICodeModule *icm);
TypedRegister newClass(JSClass *clazz);
TypedRegister cast(TypedRegister arg, JSType *toType);
TypedRegister super();
TypedRegister loadName(const StringAtom &name, JSType *t = &Any_Type);
void saveName(const StringAtom &name, TypedRegister value);
TypedRegister nameXcr(const StringAtom &name, ICodeOp op);
TypedRegister deleteProperty(TypedRegister base, const StringAtom &name);
TypedRegister getProperty(TypedRegister base, const StringAtom &name);
void setProperty(TypedRegister base, const StringAtom &name, TypedRegister value);
TypedRegister propertyXcr(TypedRegister base, const StringAtom &name, ICodeOp op);
TypedRegister getStatic(JSClass *base, const String &name);
void setStatic(JSClass *base, const StringAtom &name, TypedRegister value);
TypedRegister staticXcr(JSClass *base, const StringAtom &name, ICodeOp op);
TypedRegister getElement(TypedRegister base, TypedRegister index);
void setElement(TypedRegister base, TypedRegister index, TypedRegister value);
TypedRegister elementXcr(TypedRegister base, TypedRegister index, ICodeOp op);
TypedRegister getSlot(TypedRegister base, uint32 slot);
void setSlot(TypedRegister base, uint32 slot, TypedRegister value);
TypedRegister slotXcr(TypedRegister base, uint32 slot, ICodeOp op);
TypedRegister varXcr(TypedRegister var, ICodeOp op);
InstructionStream *getICode() { return iCode; }
Label *getLabel();
};
Formatter& operator<<(Formatter &f, ICodeGenerator &i);
Formatter& operator<<(Formatter &f, ICodeModule &i);
/*
std::ostream &operator<<(std::ostream &s, ICodeGenerator &i);
std::ostream &operator<<(std::ostream &s, StringAtom &str);
*/
} /* namespace IGC */
} /* namespace JavaScript */
#endif /* icodegenerator_h */

File diff suppressed because it is too large Load Diff

View File

@@ -1,113 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef interpreter_h
#define interpreter_h
#include "utilities.h"
#include "jstypes.h"
#include "vmtypes.h"
#include "icodegenerator.h"
#include "gc_allocator.h"
namespace JavaScript {
namespace Interpreter {
using namespace ICG;
using namespace JSTypes;
struct Activation;
struct Linkage;
class Context : public gc_base {
void initContext();
public:
explicit Context(World& world, JSScope* aGlobal)
: mWorld(world), mGlobal(aGlobal), mLinkage(0), mActivation(0), mHasOperatorsPackageLoaded(false) { initContext(); }
World& getWorld() { return mWorld; }
JSScope* getGlobalObject() { return mGlobal; }
InstructionIterator getPC() { return mPC; }
JSValues& getRegisters();
ICodeModule* getICode();
enum Event {
EV_NONE = 0x0000,
EV_STEP = 0x0001,
EV_THROW = 0x0002,
EV_DEBUG = 0x0004,
EV_ALL = 0xffff
};
class Listener {
public:
virtual void listen(Context *context, Event event) = 0;
};
void addListener(Listener* listener);
void removeListener(Listener* listener);
class Frame {
public:
virtual Frame* getNext() = 0;
virtual void getState(InstructionIterator& pc, JSValues*& registers,
ICodeModule*& iCode) = 0;
};
Frame* getFrames();
JSValue interpret(ICodeModule* iCode, const JSValues& args);
void doCall(JSFunction *target, Instruction *pc);
ICodeModule* compile(const String &source);
ICodeModule* genCode(StmtNode *p, const String &fileName);
JSValue readEvalFile(FILE* in, const String& fileName);
void addBinaryOperator(BinaryOperator::BinaryOp op, BinaryOperator *fn) { mBinaryOperators[op].push_back(fn); }
const JSValue findBinaryOverride(JSValue &operand1, JSValue &operand2, BinaryOperator::BinaryOp op);
bool hasOperatorsPackageLoaded() { return mHasOperatorsPackageLoaded; }
private:
void broadcast(Event event);
void initOperatorsPackage();
private:
World& mWorld;
JSScope* mGlobal;
Linkage* mLinkage;
typedef std::vector<Listener*, gc_allocator<Listener*> > ListenerList;
typedef ListenerList::iterator ListenerIterator;
ListenerList mListeners;
Activation* mActivation;
bool mHasOperatorsPackageLoaded;
InstructionIterator mPC;
BinaryOperatorList mBinaryOperators[BinaryOperator::BinaryOperatorCount];
}; /* class Context */
} /* namespace Interpreter */
} /* namespace JavaScript */
#endif /* interpreter_h */

View File

@@ -1,33 +0,0 @@
class ArithmeticNode extends BinaryNode {
ArithmeticNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
JSValue eval(Environment theEnv)
{
JSValue lV = left.eval(theEnv);
JSValue rV = right.eval(theEnv);
if (op == "+")
return lV.add(theEnv, rV);
else
if (op == "-")
return lV.subtract(theEnv, rV);
else
if (op == "*")
return lV.multiply(theEnv, rV);
else
if (op == "/")
return lV.divide(theEnv, rV);
else
if (op == "%")
return lV.remainder(theEnv, rV);
else {
System.out.println("missing arithmetic op " + op);
return null;
}
}
}

View File

@@ -1,16 +0,0 @@
class AssignmentNode extends BinaryNode {
AssignmentNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
JSValue eval(Environment theEnv)
{
JSReference lV = left.evalLHS(theEnv);
JSValue rV = right.eval(theEnv);
return lV.base.putProp(theEnv, lV.id, rV);
}
}

View File

@@ -1,72 +0,0 @@
class BinaryNode extends ExpressionNode {
BinaryNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
left = aLeft;
right = aRight;
op = aOp;
}
JSReference evalLHS(Environment theEnv)
{
if (op == ".") {
JSValue lV = left.eval(theEnv);
JSString id;
if (right instanceof JSIdentifier)
id = (JSString)right;
else
id = right.eval(theEnv).toJSString(theEnv);
return new JSReference(lV, id);
}
else
throw new RuntimeException("bad lValue operator " + op);
}
JSValue eval(Environment theEnv)
{
JSValue lV = left.eval(theEnv);
JSValue rV = right.eval(theEnv);
if (op == ".")
return lV.getProp(theEnv, rV.toJSString(theEnv));
else
if (op == "()")
return lV.call(theEnv, rV);
else
if (op == ",")
return JSValueList.buildList(lV, rV);
else {
System.out.println("missing binary op " + op);
return null;
}
}
String print(String indent)
{
StringBuffer result = new StringBuffer(indent);
result.append(getClass().toString());
result.append(" ");
result.append(op);
result.append("\n");
indent += " ";
if (left == null) {
result.append(indent);
result.append("null\n");
}
else
result.append(left.print(indent));
if (right == null) {
result.append(indent);
result.append("null\n");
}
else
result.append(right.print(indent));
return result.toString();
}
protected ExpressionNode left;
protected ExpressionNode right;
protected String op;
}

View File

@@ -1,36 +0,0 @@
class BitwiseNode extends BinaryNode {
BitwiseNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
JSValue eval(Environment theEnv)
{
JSInteger lV = left.eval(theEnv).toJSInteger(theEnv);
JSValue rV = right.eval(theEnv);
if (op == "&")
return lV.and(theEnv, rV);
else
if (op == "|")
return lV.or(theEnv, rV);
else
if (op == "^")
return lV.xor(theEnv, rV);
else
if (op == "<<")
return lV.shr(theEnv, rV);
else
if (op == ">>")
return lV.shl(theEnv, rV);
else
if (op == ">>>")
return lV.ushl(theEnv, rV);
else {
System.out.println("missing bitwise op " + op);
return null;
}
}
}

View File

@@ -1,24 +0,0 @@
import java.io.*;
class Brenda {
public static void main(String[] args) {
try {
JSLexer lexer = new JSLexer((args != null) ? new DataInputStream(new FileInputStream(args[0])) : new DataInputStream(System.in));
JSParser parser = new JSParser(lexer);
ControlNodeGroup tree = new ControlNodeGroup();
parser.statements(0, tree);
System.out.println(ControlNode.printAll());
Environment theEnv = new Environment();
ControlNode c = tree.getHead();
while (c != null) c = c.eval(theEnv);
System.out.println("After eval :\n" + theEnv.print());
} catch(Exception e) {
System.err.println("exception: "+e);
}
}
}

View File

@@ -1,59 +0,0 @@
class ConditionalNode extends ControlNode {
ConditionalNode(ExpressionNode aCondition)
{
super(aCondition);
}
ConditionalNode(ExpressionNode aCondition, ControlNode aTrueCode)
{
super(aCondition);
trueCode = aTrueCode;
}
ConditionalNode(ExpressionNode aCondition, ControlNode aTrueCode, ControlNode aFalseCode)
{
super(aCondition);
trueCode = aTrueCode;
setNext(aFalseCode);
}
void moveNextToTrue()
{
trueCode = next;
setNext(null);
}
ControlNode eval(Environment theEnv)
{
JSBoolean b = expr.eval(theEnv).toJSBoolean(theEnv);
if (b.isTrue())
return trueCode;
else
return next;
}
String print()
{
StringBuffer result = new StringBuffer("ConditionalNode ");
result.append(index);
result.append("\nexpr:\n");
if (expr == null)
result.append("expr = null\n");
else
result.append(expr.print(""));
result.append("true branch:\n");
if (trueCode == null)
result.append("true branch = null\n");
else
result.append("true branch->" + trueCode.index + "\n");
result.append("false branch:\n");
if (next == null)
result.append("false branch = null\n");
else
result.append("false branch->" + next.index + "\n");
return result.toString();
}
protected ControlNode trueCode;
}

View File

@@ -1,67 +0,0 @@
import java.util.Vector;
class ControlNode {
private static Vector gList = new Vector();
static String printAll()
{
StringBuffer result = new StringBuffer();
for (int i = 0; i < gList.size(); i++) {
result.append(((ControlNode)(gList.elementAt(i))).print());
}
return result.toString();
}
ControlNode(ExpressionNode anExpr)
{
expr = anExpr;
index = gList.size();
gList.addElement(this);
}
ExpressionNode getExpression()
{
return expr;
}
void setNext(ControlNode aNext)
{
next = aNext;
}
ControlNode eval(Environment theEnv)
{
if (expr != null) theEnv.resultValue = expr.eval(theEnv);
return next;
}
String print()
{
StringBuffer result = new StringBuffer(getClass().toString().substring(6));
result.append(" #");
result.append(index);
result.append("\nexpr: \n");
if (expr == null)
result.append("expr = null\n");
else
result.append(expr.print(""));
result.append("next: ");
if (next == null)
result.append("next = null\n");
else
result.append("next->" + next.index + "\n");
return result.toString();
}
protected ExpressionNode expr;
protected ControlNode next;
protected int index;
}

View File

@@ -1,153 +0,0 @@
import java.util.Vector;
class ControlNodeGroup {
ControlNodeGroup()
{
}
ControlNodeGroup(ControlNode aHead)
{
head = aHead;
}
void add(ControlNodeGroup aGroup)
{
if (head == null) {
head = aGroup.head;
}
else {
fixTails(aGroup.getHead());
}
addTails(aGroup);
}
void add(ControlNode aNode)
{
fixTails(aNode);
addTail(aNode);
if (head == null) head = aNode;
}
void addBreak(ControlNode aNode)
{
fixTails(aNode);
addBreakTail(aNode);
if (head == null) head = aNode;
}
void addContinue(ControlNode aNode)
{
fixTails(aNode);
addContinueTail(aNode);
if (head == null) head = aNode;
}
void fixTails(ControlNode butt)
{
int count = tails.size();
for (int i = 0; i < count; i++)
{
ControlNode aNode = (ControlNode)(tails.elementAt(i));
aNode.setNext(butt);
}
tails.removeAllElements();
}
void fixContinues(ControlNode butt, String label)
{
int count = continueTails.size();
int i = 0;
while (i < count) {
ControlNode c = (ControlNode)(continueTails.elementAt(i));
ExpressionNode e = c.getExpression();
String tgt = (e == null) ? null : ((JSIdentifier)e).s;
if ((tgt == null) || tgt.equals(label)) {
c.setNext(butt);
continueTails.removeElementAt(i);
count--;
}
else
i++;
}
}
void setHead(ControlNode aHead)
{
head = aHead;
}
ControlNode getHead()
{
return head;
}
void addTail(ControlNode aTail)
{
tails.addElement(aTail);
}
void addBreakTail(ControlNode aTail)
{
breakTails.addElement(aTail);
}
void addContinueTail(ControlNode aTail)
{
continueTails.addElement(aTail);
}
void removeTail(ControlNode aTail)
{
tails.removeElement(aTail);
}
void addTails(ControlNodeGroup aGroup)
{
int count = aGroup.tails.size();
for (int i = 0; i < count; i++)
{
tails.addElement(aGroup.tails.elementAt(i));
}
aGroup.tails.removeAllElements();
count = aGroup.breakTails.size();
for (int i = 0; i < count; i++)
{
breakTails.addElement(aGroup.breakTails.elementAt(i));
}
aGroup.breakTails.removeAllElements();
count = aGroup.continueTails.size();
for (int i = 0; i < count; i++)
{
continueTails.addElement(aGroup.continueTails.elementAt(i));
}
aGroup.continueTails.removeAllElements();
}
void shiftBreakTails(String label)
{
int count = breakTails.size();
int i = 0;
while (i < count) {
ControlNode c = (ControlNode)(breakTails.elementAt(i));
ExpressionNode e = c.getExpression();
String tgt = (e == null) ? null : ((JSIdentifier)e).s;
if ((tgt == null) || tgt.equals(label)) {
tails.addElement(c);
breakTails.removeElementAt(i);
count--;
}
else
i++;
}
}
ControlNode head;
Vector tails = new Vector();
Vector breakTails = new Vector();
Vector continueTails = new Vector();
}

View File

@@ -1,30 +0,0 @@
import java.util.Hashtable;
class Environment {
JSScope scope = new JSScope("globals");
JSScope globalScope = scope;
void enterNewScope(JSScope newScope)
{
newScope.parent = scope;
scope = newScope;
}
void leaveScope()
{
scope = scope.parent;
}
String print()
{
StringBuffer result = new StringBuffer("Globals contents :\n");
result.append(scope.toString());
return result.toString();
}
JSValue resultValue;
}

View File

@@ -1,24 +0,0 @@
class ExpressionNode {
ExpressionNode()
{
}
String print(String indent)
{
return indent + "ExpressionNode(" + getClass().toString() + ")\n";
}
JSReference evalLHS(Environment theEnv)
{
System.out.println("Unimplemented evalLHS for " + print(""));
return null;
}
JSValue eval(Environment theEnv)
{
System.out.println("Unimplemented eval for " + print(""));
return null;
}
}

View File

@@ -1,36 +0,0 @@
class FunctionNode extends ExpressionNode {
FunctionNode(JSIdentifier aName, ControlNodeGroup aBody, ExpressionNode parameterList)
{
fn = new NativeFunction(aBody.getHead());
name = aName;
if (parameterList != null) {
if (parameterList instanceof BinaryNode)
buildParameterVector((BinaryNode)parameterList);
else
fn.parameters.addElement(parameterList);
}
}
void buildParameterVector(BinaryNode x)
{
if (x.left instanceof BinaryNode) {
buildParameterVector((BinaryNode)(x.left));
fn.parameters.addElement(x.right);
}
else {
fn.parameters.addElement(x.left);
fn.parameters.addElement(x.right);
}
}
JSValue eval(Environment theEnv)
{
theEnv.scope.putProp(theEnv, name, fn);
return fn;
}
JSString name;
NativeFunction fn;
}

View File

@@ -1,52 +0,0 @@
class JSBoolean extends JSValue {
static JSBoolean JSTrue = new JSBoolean(true);
static JSBoolean JSFalse = new JSBoolean(false);
private JSBoolean(boolean p)
{
b = p;
}
JSValue eval(Environment theEnv)
{
return this;
}
boolean isTrue()
{
return b;
}
boolean isFalse()
{
return !b;
}
JSValue bang(Environment theEnv) {
return (b) ? JSFalse : JSTrue;
}
JSValue typeof(Environment theEnv) {
return new JSString("boolean");
}
JSBoolean toJSBoolean(Environment theEnv) {
return this;
}
JSValue toPrimitive(Environment theEnv, String hint) {
return this;
}
JSString toJSString(Environment theEnv) {
return (b) ? new JSString("true") : new JSString("false");
}
JSDouble toJSDouble(Environment theEnv) {
return (b) ? new JSDouble(1) : new JSDouble(0);
}
boolean b;
}

View File

@@ -1,111 +0,0 @@
class JSDouble extends JSNumber {
JSDouble(double p)
{
d = p;
}
JSDouble(String s)
{
d = new Double(s).doubleValue();
}
String print(String indent)
{
return indent + "JSDouble " + d + "\n";
}
public String toString()
{
return Double.toString(d);
}
JSValue eval(Environment theEnv)
{
return this;
}
JSValue plus(Environment theEnv) {
return this;
}
JSValue minus(Environment theEnv) {
return new JSDouble(-d);
}
JSValue add(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return toJSString(theEnv).add(theEnv, rV);
else
return new JSDouble(d + rV.toJSDouble(theEnv).d);
}
JSValue subtract(Environment theEnv, JSValue rV) {
return new JSDouble(d - rV.toJSDouble(theEnv).d);
}
JSValue multiply(Environment theEnv, JSValue rV) {
return new JSDouble(d * rV.toJSDouble(theEnv).d);
}
JSValue divide(Environment theEnv, JSValue rV) {
return new JSDouble(d / rV.toJSDouble(theEnv).d);
}
JSValue remainder(Environment theEnv, JSValue rV) {
return new JSDouble(d % rV.toJSDouble(theEnv).d);
}
JSValue gt(Environment theEnv, JSValue rV) {
return (d > rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSValue ge(Environment theEnv, JSValue rV) {
return (d >= rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSValue lt(Environment theEnv, JSValue rV) {
return (d < rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSValue le(Environment theEnv, JSValue rV) {
return (d <= rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSValue eq(Environment theEnv, JSValue rV) {
return (d == rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSValue ne(Environment theEnv, JSValue rV) {
return (d != rV.toJSDouble(theEnv).d) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSDouble toJSDouble(Environment theEnv) {
return this;
}
JSValue toPrimitive(Environment theEnv, String hint) {
return this;
}
JSInteger toJSInteger(Environment theEnv) {
return new JSInteger((int)d);
}
JSBoolean toJSBoolean(Environment theEnv) {
return ((d == d) && (d != 0.0)) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSString toJSString(Environment theEnv) {
return new JSString(Double.toString(d));
}
JSObject toJSObject(Environment theEnv) {
return new NativeNumber(d);
}
double d;
}

View File

@@ -1,22 +0,0 @@
class JSException extends RuntimeException {
JSException(JSValue x)
{
value = x;
}
JSValue getValue()
{
return value;
}
public String toString()
{
return value.toJSString(null).s;
}
JSValue value;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,23 +0,0 @@
class JSIdentifier extends JSString {
JSIdentifier(String s)
{
super(s);
}
String print(String indent)
{
return indent + "JSIdentifier : " + s + "\n";
}
JSValue eval(Environment theEnv)
{
return theEnv.scope.getProp(theEnv, this);
}
JSReference evalLHS(Environment theEnv)
{
return new JSReference(theEnv.scope, this);
}
}

View File

@@ -1,68 +0,0 @@
class JSInteger extends JSNumber {
JSInteger(String s)
{
i = new Integer(s).intValue();
}
JSInteger(int p)
{
i = p;
}
JSValue eval(Environment theEnv)
{
return this;
}
JSBoolean toJSBoolean(Environment theEnv) {
return (i != 0) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
}
JSDouble toJSDouble(Environment theEnv) {
return new JSDouble(i);
}
JSInteger toJSInteger(Environment theEnv) {
return this;
}
JSValue toPrimitive(Environment theEnv, String hint) {
return this;
}
JSString toJSString(Environment theEnv) {
return new JSString(Integer.toString(i));
}
JSValue twiddle(Environment theEnv) {
return new JSInteger(~i);
}
JSValue and(Environment theEnv, JSValue rV) {
return new JSInteger(i & rV.toJSInteger(theEnv).i);
}
JSValue or(Environment theEnv, JSValue rV) {
return new JSInteger(i | rV.toJSInteger(theEnv).i);
}
JSValue xor(Environment theEnv, JSValue rV) {
return new JSInteger(i ^ rV.toJSInteger(theEnv).i);
}
JSValue shl(Environment theEnv, JSValue rV) {
return new JSInteger(i >> rV.toJSInteger(theEnv).i);
}
JSValue shr(Environment theEnv, JSValue rV) {
return new JSInteger(i << rV.toJSInteger(theEnv).i);
}
JSValue ushl(Environment theEnv, JSValue rV) {
return new JSInteger(i >>> rV.toJSInteger(theEnv).i);
}
int i;
}

View File

@@ -1,41 +0,0 @@
class JSName extends ExpressionNode {
JSName(JSIdentifier anID, int aScope)
{
id = anID;
scope = aScope; // this is the scope that the name was used in
}
String print(String indent)
{
return indent + "JSName : " + id.s + ", scope : " + scope + "\n";
}
JSReference evalLHS(Environment theEnv)
{
JSScope scope = theEnv.scope;
while (scope != null) {
if (scope.hasProp(theEnv, id))
return new JSReference(scope, id);
else
scope = scope.parent;
}
return new JSReference(theEnv.globalScope, id);
}
JSValue eval(Environment theEnv)
{
JSScope scope = theEnv.scope;
while (scope != null) {
if (scope.hasProp(theEnv, id))
return scope.getProp(theEnv, id);
else
scope = scope.parent;
}
throw new JSException(new JSString(id.s + " undefined"));
}
JSIdentifier id;
int scope;
}

View File

@@ -1,8 +0,0 @@
abstract class JSNumber extends JSValue {
JSValue typeof(Environment theEnv) {
return new JSString("number");
}
}

View File

@@ -1,84 +0,0 @@
import java.util.Hashtable;
class JSObject extends JSValue {
static JSObject objectPrototype = new JSObject("Object");
static JSObject JSUndefined = new JSObject("undefined");
JSObject(String aClass)
{
oClass = aClass;
prototype = objectPrototype;
}
void setPrototype(JSObject aPrototype)
{
prototype = aPrototype;
}
String print(String indent)
{
return indent + "JSObject : " + oClass + "\n";
}
public String toString() {
return oClass + contents.toString();
}
JSValue eval(Environment theEnv)
{
return this;
}
JSValue typeof(Environment theEnv) {
if (this == JSUndefined)
return new JSString("undefined");
else
return new JSString("object");
}
JSBoolean toJSBoolean(Environment theEnv) {
return JSBoolean.JSTrue;
}
JSDouble toJSDouble(Environment theEnv) {
return toPrimitive(theEnv, "Number").toJSDouble(theEnv);
}
JSValue getProp(Environment theEnv, JSString id)
{
Object v = contents.get(id.s);
if (v == null)
if (prototype == null)
return JSUndefined;
else
return prototype.getProp(theEnv, id);
else
return (JSValue)v;
}
boolean hasProp(Environment theEnv, JSString id)
{
Object v = contents.get(id.s);
if (v == null)
if (prototype == null)
return false;
else
return prototype.hasProp(theEnv, id);
else
return true;
}
JSValue putProp(Environment theEnv, JSString id, JSValue rV) {
contents.put(id.s, rV);
return rV;
}
Hashtable contents = new Hashtable();
String oClass;
JSObject prototype;
}

View File

@@ -1,12 +0,0 @@
class JSReference {
JSReference(JSValue aBase, JSString aID)
{
base = aBase;
id = aID;
}
JSValue base;
JSString id;
}

View File

@@ -1,10 +0,0 @@
class JSScope extends JSObject {
JSScope(String s)
{
super(s);
}
JSScope parent;
}

View File

@@ -1,83 +0,0 @@
class JSString extends JSValue {
JSString(String p)
{
s = p;
}
JSValue eval(Environment theEnv)
{
return this;
}
JSValue typeof(Environment theEnv) {
return new JSString("string");
}
JSValue add(Environment theEnv, JSValue rV)
{
return new JSString(s + rV.toJSString(theEnv).s);
}
JSValue gt(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) == 1) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).gt(theEnv, rV);
}
JSValue ge(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) != -1) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).ge(theEnv, rV);
}
JSValue lt(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) == -1) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).lt(theEnv, rV);
}
JSValue le(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) != 1) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).le(theEnv, rV);
}
JSValue eq(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) == 0) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).eq(theEnv, rV);
}
JSValue ne(Environment theEnv, JSValue rV) {
if (rV instanceof JSString)
return (s.compareTo(rV.toJSString(theEnv).s) != 0) ? JSBoolean.JSTrue : JSBoolean.JSFalse;
else
return toJSDouble(theEnv).ne(theEnv, rV);
}
JSDouble toJSDouble(Environment theEnv) {
return new JSDouble(s); // XXX Way More To Do, see Rhino ScriptRuntime.java
}
JSString toJSString(Environment theEnv) {
return this;
}
JSValue toPrimitive(Environment theEnv, String hint) {
return this;
}
String print(String indent)
{
return indent + "JSString : " + s + "\n";
}
protected String s;
}

View File

@@ -1,222 +0,0 @@
class JSValue extends ExpressionNode {
String print(String indent)
{
return indent + "JSValue\n";
}
JSReference evalLHS(Environment theEnv)
{
throw new RuntimeException("EvalLHS on non-lvalue");
}
JSValue eval(Environment theEnv)
{
throw new RuntimeException("Eval on JSValue");
}
JSValue unimplemented(String op)
{
throw new RuntimeException("unimplemented " + op + " called");
}
JSValue gt(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.gt(theEnv, rV);
else
return lV.toJSDouble(theEnv).gt(theEnv, rV.toJSDouble(theEnv));
}
JSValue ge(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.ge(theEnv, rV);
else
return lV.toJSDouble(theEnv).ge(theEnv, rV.toJSDouble(theEnv));
}
JSValue lt(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.lt(theEnv, rV);
else
return lV.toJSDouble(theEnv).lt(theEnv, rV.toJSDouble(theEnv));
}
JSValue le(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.le(theEnv, rV);
else
return lV.toJSDouble(theEnv).le(theEnv, rV.toJSDouble(theEnv));
}
JSValue eq(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.eq(theEnv, rV);
else
return lV.toJSDouble(theEnv).eq(theEnv, rV.toJSDouble(theEnv));
}
JSValue ne(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "Number");
rV = rV.toPrimitive(theEnv, "Number");
if ((lV instanceof JSString) && (rV instanceof JSString))
return lV.ne(theEnv, rV);
else
return lV.toJSDouble(theEnv).ne(theEnv, rV.toJSDouble(theEnv));
}
JSValue plus(Environment theEnv) {
return toJSDouble(theEnv).plus(theEnv);
}
JSValue minus(Environment theEnv) {
return toJSDouble(theEnv).minus(theEnv);
}
JSValue twiddle(Environment theEnv) {
return toJSInteger(theEnv).twiddle(theEnv);
}
JSValue bang(Environment theEnv) {
return toJSBoolean(theEnv).bang(theEnv);
}
JSValue typeof(Environment theEnv) {
return unimplemented("typeof");
}
JSValue add(Environment theEnv, JSValue rV) {
JSValue lV = toPrimitive(theEnv, "");
rV = rV.toPrimitive(theEnv, "");
if ((lV instanceof JSString) || (rV instanceof JSString))
return lV.add(theEnv, rV);
else
return lV.toJSDouble(theEnv).add(theEnv, rV);
}
JSValue subtract(Environment theEnv, JSValue rV) {
return toJSDouble(theEnv).subtract(theEnv, rV.toJSDouble(theEnv));
}
JSValue multiply(Environment theEnv, JSValue rV) {
return toJSDouble(theEnv).multiply(theEnv, rV.toJSDouble(theEnv));
}
JSValue divide(Environment theEnv, JSValue rV) {
return toJSDouble(theEnv).divide(theEnv, rV.toJSDouble(theEnv));
}
JSValue remainder(Environment theEnv, JSValue rV) {
return toJSDouble(theEnv).remainder(theEnv, rV.toJSDouble(theEnv));
}
JSValue and(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).and(theEnv, rV.toJSInteger(theEnv));
}
JSValue or(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).or(theEnv, rV.toJSInteger(theEnv));
}
JSValue xor(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).xor(theEnv, rV.toJSInteger(theEnv));
}
JSValue shl(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).shl(theEnv, rV.toJSInteger(theEnv));
}
JSValue shr(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).shr(theEnv, rV.toJSInteger(theEnv));
}
JSValue ushl(Environment theEnv, JSValue rV) {
return toJSInteger(theEnv).ushl(theEnv, rV.toJSInteger(theEnv));
}
JSValue getProp(Environment theEnv, JSString id) {
return toJSObject(theEnv).getProp(theEnv, id);
}
boolean hasProp(Environment theEnv, JSString id) {
return toJSObject(theEnv).hasProp(theEnv, id);
}
JSValue putProp(Environment theEnv, JSString id, JSValue rV) {
return toJSObject(theEnv).putProp(theEnv, id, rV);
}
JSValue call(Environment theEnv, JSValue rV) {
throw new JSException(new JSString("[[call]] not implemented"));
}
JSValue defaultValue(Environment theEnv, String hint) {
/*
When the [[DefaultValue]] method of O is called with hint String, the following steps are taken:
1. Call the [[Get]] method of object O with argument "toString".
2. If Result(1) is not an object, go to step 5.
3. Call the [[Call]] method of Result(1), with O as the this value and an empty argument list.
4. If Result(3) is a primitive value, return Result(3).
5. Call the [[Get]] method of object O with argument "valueOf".
6. If Result(5) is not an object, go to step 9.
7. Call the [[Call]] method of Result(5), with O as the this value and an empty argument list.
8. If Result(7) is a primitive value, return Result(7).
9. Generate a runtime error.
*/
JSValue v = null;
if (hint.equals("String")) {
v = getProp(theEnv, new JSString("toString"));
if (v instanceof JSObject) {
// invoke 'v.Call' with 'this' as the JS this
}
else {
v = getProp(theEnv, new JSString("valueOf"));
if (v instanceof JSObject) {
}
else
throw new JSException(new JSString("No default value"));
}
}
else { // hint.equals("Number")
/*
When the [[DefaultValue]] method of O is called with hint Number, the following steps are taken:
1. Call the [[Get]] method of object O with argument "valueOf".
2. If Result(1) is not an object, go to step 5.
3. Call the [[Call]] method of Result(1), with O as the this value and an empty argument list.
4. If Result(3) is a primitive value, return Result(3).
5. Call the [[Get]] method of object O with argument "toString".
6. If Result(5) is not an object, go to step 9.
7. Call the [[Call]] method of Result(5), with O as the this value and an empty argument list.
8. If Result(7) is a primitive value, return Result(7).
9. Generate a runtime error.
*/
}
return null;
}
JSValue toPrimitive(Environment theEnv, String hint) {
JSValue result = defaultValue(theEnv, hint);
if (result instanceof JSObject)
throw new JSException(new JSString("default value returned object"));
else
return result;
}
JSObject toJSObject(Environment theEnv) { unimplemented("toJSObjet"); return null; }
JSDouble toJSDouble(Environment theEnv) { unimplemented("toJSDouble"); return null; }
JSInteger toJSInteger(Environment theEnv) { unimplemented("toJSInteger"); return null; }
JSString toJSString(Environment theEnv) { unimplemented("toJSString"); return null; }
JSBoolean toJSBoolean(Environment theEnv) { unimplemented("toJSBoolean"); return null; }
}

View File

@@ -1,40 +0,0 @@
import java.util.Vector;
class JSValueList extends JSValue {
static JSValueList buildList(JSValue left, JSValue right)
{
JSValueList theList;
if (left instanceof JSValueList) {
theList = (JSValueList)left;
theList.add(right);
}
else
if (right instanceof JSValueList) {
theList = (JSValueList)right;
theList.add(left);
}
else {
theList = new JSValueList();
theList.add(left);
theList.add(right);
}
return theList;
}
void add(JSValue v)
{
if (v instanceof JSValueList) {
JSValueList vl = (JSValueList)v;
for (int i = 0; i < vl.contents.size(); i++)
contents.addElement((JSValue)(vl.contents.elementAt(i)));
}
else
contents.addElement(v);
}
Vector contents = new Vector();
}

View File

@@ -1,39 +0,0 @@
class LogicalNode extends BinaryNode {
LogicalNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
JSValue eval(Environment theEnv)
{
JSBoolean b = left.eval(theEnv).toJSBoolean(theEnv);
if (op == "&&") {
if (b.isFalse())
return b;
else {
b = right.eval(theEnv).toJSBoolean(theEnv);
if (b.isFalse())
return b;
else
return JSBoolean.JSTrue;
}
}
if (op == "||") {
if (b.isTrue())
return b;
else {
b = right.eval(theEnv).toJSBoolean(theEnv);
if (b.isTrue())
return b;
else
return JSBoolean.JSFalse;
}
}
else {
System.out.println("missing logical op " + op);
return null;
}
}
}

View File

@@ -1,35 +0,0 @@
import java.util.Vector;
class NativeFunction extends JSObject {
NativeFunction(ControlNode aBody)
{
super("Function");
body = aBody;
}
JSValue call(Environment theEnv, JSValue rV)
{
JSScope args = new JSScope("Arguments");
theEnv.enterNewScope(args);
for (int i = 0; i < parameters.size(); i++) {
if (rV instanceof JSValueList)
args.putProp(theEnv, (JSString)(parameters.elementAt(i)), (JSValue) ( ((JSValueList)rV).contents.elementAt(i)) );
else
args.putProp(theEnv, (JSString)(parameters.elementAt(i)), rV );
}
ControlNode c = body;
while (c != null) c = c.eval(theEnv);
theEnv.leaveScope();
return theEnv.resultValue;
}
ControlNode body;
Vector parameters = new Vector();
}

View File

@@ -1,18 +0,0 @@
class NativeNumber extends JSObject {
NativeNumber(double p) {
super("Number");
d = p;
}
JSValue defaultValue(Environment theEnv, String hint) {
if (hint.equals("String"))
return new JSString(Double.toString(d));
else
return new JSDouble(d);
}
double d;
}

View File

@@ -1,35 +0,0 @@
class RelationalNode extends BinaryNode {
RelationalNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
JSValue eval(Environment theEnv)
{
JSValue lV = left.eval(theEnv);
JSValue rV = right.eval(theEnv);
if (op == ">")
return lV.gt(theEnv, rV);
else
if (op == ">=")
return lV.ge(theEnv, rV);
else
if (op == "<")
return lV.lt(theEnv, rV);
else
if (op == "<=")
return lV.le(theEnv, rV);
else
if (op == "==")
return lV.eq(theEnv, rV);
else
if (op == "!=")
return lV.ne(theEnv, rV);
else {
System.out.println("missing relational op");
return null;
}
}
}

View File

@@ -1,43 +0,0 @@
import java.util.Vector;
class SwitchNode extends ControlNode {
SwitchNode(ExpressionNode e)
{
super(e);
}
void addCase(ExpressionNode e, ControlNode c)
{
if (e == null)
defaultCode = c;
else {
caseExpr.addElement(e);
caseCode.addElement(c);
}
}
ControlNode eval(Environment theEnv)
{
JSValue v = expr.eval(theEnv);
int count = caseExpr.size();
for (int i = 0; i < count; i++) {
ExpressionNode e = (ExpressionNode)(caseExpr.elementAt(i));
JSBoolean b = v.eq(theEnv, e.eval(theEnv)).toJSBoolean(theEnv);
if (b.isTrue())
return (ControlNode)(caseCode.elementAt(i));
}
if (defaultCode != null)
return defaultCode;
else
return next;
}
Vector caseExpr = new Vector();
Vector caseCode = new Vector();
ControlNode defaultCode;
}

View File

@@ -1,13 +0,0 @@
class ThrowNode extends ControlNode {
ThrowNode(ExpressionNode e)
{
super(e);
}
ControlNode eval(Environment theEnv)
{
throw new JSException(expr.eval(theEnv));
}
}

View File

@@ -1,47 +0,0 @@
import java.util.Vector;
class TryNode extends ControlNode {
TryNode(ControlNode tryCode)
{
super(null);
tryBody = tryCode;
}
void addFinally(ControlNode finallyCode)
{
finallyBody = finallyCode;
}
void addCatchClause(ExpressionNode e, ControlNode c)
{
catchExpr.addElement(e);
catchCode.addElement(c);
}
ControlNode eval(Environment theEnv)
{
try {
ControlNode c = tryBody;
while (c != null) c = c.eval(theEnv);
}
catch (JSException x) {
int count = catchExpr.size();
for (int i = 0; i < count; i++) {
ExpressionNode e = (ExpressionNode)(catchExpr.elementAt(i));
String id = ((JSObject)e).oClass;
theEnv.scope.contents.put(id, x.getValue()); // XXX YAARGH !!!
return (ControlNode)(catchCode.elementAt(i));
}
}
return next;
}
Vector catchExpr = new Vector();
Vector catchCode = new Vector();
ControlNode tryBody;
ControlNode finallyBody;
}

View File

@@ -1,62 +0,0 @@
class UnaryNode extends ExpressionNode {
UnaryNode(String aOp, ExpressionNode aChild)
{
child = aChild;
op = aOp;
}
String print(String indent)
{
StringBuffer result = new StringBuffer(indent);
result.append("UnaryNode ");
result.append(op);
result.append("\n");
indent += " ";
if (child == null) {
result.append(indent);
result.append("null\n");
}
else
result.append(child.print(indent));
return result.toString();
}
JSValue eval(Environment theEnv)
{
JSValue cV = child.eval(theEnv);
if (op == "+")
return cV.plus(theEnv);
else
if (op == "-")
return cV.minus(theEnv);
else
if (op == "~")
return cV.twiddle(theEnv);
else
if (op == "!")
return cV.bang(theEnv);
else
if (op == "typeof")
return cV.typeof(theEnv);
else {
System.out.println("missing unary op " + op);
return null;
}
}
String getOperator()
{
return op;
}
ExpressionNode getChild()
{
return child;
}
protected ExpressionNode child;
protected String op;
}

View File

@@ -1,343 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
//
// JS2 shell.
//
#if 1
#define DEBUGGER_FOO
#define INTERPRET_INPUT
#else
#undef DEBUGGER_FOO
#undef INTERPRET_INPUT
#endif
#include <assert.h>
#include "world.h"
#include "interpreter.h"
#include "icodegenerator.h"
#ifdef DEBUGGER_FOO
#include "debugger.h"
#endif
#if defined(XP_MAC) && !defined(XP_MAC_MPW)
#include <SIOUX.h>
#include <MacTypes.h>
static char *mac_argv[] = {"js2", 0};
static void initConsole(StringPtr consoleName,
const char* startupMessage,
int &argc, char **&argv)
{
SIOUXSettings.autocloseonquit = false;
SIOUXSettings.asktosaveonclose = false;
SIOUXSetTitle(consoleName);
// Set up a buffer for stderr (otherwise it's a pig).
static char buffer[BUFSIZ];
setvbuf(stderr, buffer, _IOLBF, BUFSIZ);
JavaScript::stdOut << startupMessage;
argc = 1;
argv = mac_argv;
}
#endif
namespace JavaScript {
namespace Shell {
using namespace ICG;
using namespace JSTypes;
using namespace Interpreter;
// Interactively read a line from the input stream in and put it into
// s. Return false if reached the end of input before reading anything.
static bool promptLine(LineReader &inReader, string &s, const char *prompt)
{
if (prompt) {
stdOut << prompt;
#ifdef XP_MAC_MPW
// Print a CR after the prompt because MPW grabs the entire
// line when entering an interactive command.
stdOut << '\n';
#endif
}
return inReader.readLine(s) != 0;
}
World world;
/* "filename" of the console */
const String ConsoleName = widenCString("<console>");
const bool showTokens = false;
#ifdef DEBUGGER_FOO
Reader *sourceReader; /* Reader for console file */
static
const Reader *ResolveFile (const String& fileName)
{
if (fileName == ConsoleName)
return sourceReader;
else
{
stdErr << "Could not locate source for file '" << fileName << "'\n";
return 0;
}
}
JavaScript::Debugger::Shell jsd(world, stdin, JavaScript::stdOut,
JavaScript::stdOut, &ResolveFile);
#endif
static JSValue print(Context *cx, const JSValues &argv)
{
size_t n = argv.size();
if (n > 1) { // the 'this' parameter is un-interesting
stdOut << argv[1];
for (size_t i = 2; i < n; ++i)
stdOut << ' ' << argv[i];
}
stdOut << "\n";
return kUndefinedValue;
}
static JSValue dump(Context *cx, const JSValues &argv)
{
size_t n = argv.size();
if (n > 1) { // the 'this' parameter is un-interesting
if (argv[1].isFunction()) {
JSFunction *f = static_cast<JSFunction *>(argv[1].function);
if (f->isNative())
stdOut << "Native function";
else
stdOut << *f->getICode();
}
else
stdOut << "Not a function";
}
stdOut << "\n";
return kUndefinedValue;
}
inline char narrow(char16 ch) { return char(ch); }
static JSValue load(Context *cx, const JSValues &argv)
{
JSValue result;
size_t n = argv.size();
if (n > 1) {
for (size_t i = 1; i < n; ++i) {
JSValue val = argv[i].toString();
if (val.isString()) {
String fileName(*val.string);
std::string str(fileName.length(), char());
std::transform(fileName.begin(), fileName.end(), str.begin(), narrow);
FILE* f = fopen(str.c_str(), "r");
if (f) {
result = cx->readEvalFile(f, fileName);
fclose(f);
}
}
}
}
return result;
}
#if 0 // need a XP version of this, rip off from Monkey?
#include <sys/timeb.h>
static JSValue time(Context *cx, const JSValues &argv)
{
struct _timeb timebuffer;
_ftime(&timebuffer);
return JSValue((double)timebuffer.time * 1000 + timebuffer.millitm);
}
#endif
static void readEvalPrint(FILE *in, World &world)
{
JSScope global;
Context cx(world, &global);
#ifdef DEBUGGER_FOO
jsd.attachToContext (&cx);
#endif
global.defineNativeFunction(world.identifiers["print"], print);
global.defineNativeFunction(world.identifiers["dump"], dump);
global.defineNativeFunction(world.identifiers["load"], load);
// global.defineNativeFunction(world.identifiers["time"], time);
String buffer;
string line;
LineReader inReader(in);
while (promptLine(inReader, line, buffer.empty() ? "js> " : "> ")) {
appendChars(buffer, line.data(), line.size());
try {
Arena a;
Parser p(world, a, buffer, ConsoleName);
if (showTokens) {
Lexer &l = p.lexer;
while (true) {
const Token &t = l.get(true);
if (t.hasKind(Token::end))
break;
stdOut << ' ';
t.print(stdOut, true);
}
stdOut << '\n';
} else {
StmtNode *parsedStatements = p.parseProgram();
ASSERT(p.lexer.peek(true).hasKind(Token::end));
{
PrettyPrinter f(stdOut, 30);
{
PrettyPrinter::Block b(f, 2);
f << "Program =";
f.linearBreak(1);
StmtNode::printStatements(f, parsedStatements);
}
f.end();
}
stdOut << '\n';
#ifdef INTERPRET_INPUT
#ifdef DEBUGGER_FOO
sourceReader = &(p.lexer.reader);
#endif
// Generate code for parsedStatements, which is a linked
// list of zero or more statements
ICodeModule* icm = cx.genCode(parsedStatements, ConsoleName);
if (icm) {
stdOut << *icm;
JSValue result = cx.interpret(icm, JSValues());
stdOut << "result = " << result << "\n";
delete icm;
}
#endif
}
clear(buffer);
} catch (Exception &e) {
/* If we got a syntax error on the end of input,
* then wait for a continuation
* of input rather than printing the error message. */
if (!(e.hasKind(Exception::syntaxError) &&
e.lineNum && e.pos == buffer.size() &&
e.sourceFile == ConsoleName)) {
stdOut << '\n' << e.fullMessage();
clear(buffer);
}
}
}
stdOut << '\n';
}
/**
* Poor man's instruction tracing facility.
*/
class Tracer : public Context::Listener {
typedef InstructionStream::difference_type InstructionOffset;
void listen(Context* context, Context::Event event)
{
if (event & Context::EV_STEP) {
ICodeModule *iCode = context->getICode();
JSValues &registers = context->getRegisters();
InstructionIterator pc = context->getPC();
InstructionOffset offset = (pc - iCode->its_iCode->begin());
printFormat(stdOut, "trace [%02u:%04u]: ",
iCode->mID, offset);
Instruction* i = *pc;
stdOut << *i;
if (i->op() != BRANCH && i->count() > 0) {
stdOut << " [";
i->printOperands(stdOut, registers);
stdOut << "]\n";
} else {
stdOut << '\n';
}
}
}
};
char * tests[] = {
"function fact(n) { if (n > 1) return n * fact(n-1); else return 1; } print(fact(6), \" should be 720\"); return;" ,
"a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" ,
"class A { static var b = 3; static function s() { return b++; }function x() { return \"Ax\"; } function y() { return \"Ay\"; } } var a:A = new A; print(a.s(), \" should be 3\"); print(A.b, \" should be 4\"); return;",
"class B extends A { function x() { return \"Bx\"; } } var b:B = new B; print(b.x(), \" should be Bx\"); print(b.y(), \" should be Ay\"); return;"
};
static void testCompile()
{
JSScope glob;
Context cx(world, &glob);
glob.defineNativeFunction(world.identifiers["print"], print);
for (uint i = 0; i < sizeof(tests) / sizeof(char *); i++) {
String testScript = widenCString(tests[i]);
Arena a;
Parser p(world, a, testScript, widenCString("testCompile"));
StmtNode *parsedStatements = p.parseProgram();
ICodeGenerator icg(&world, &glob);
StmtNode *s = parsedStatements;
while (s) {
icg.genStmt(s);
s = s->next;
}
cx.interpret(icg.complete(), JSValues());
}
}
} /* namespace Shell */
} /* namespace JavaScript */
#if defined(XP_MAC) && !defined(XP_MAC_MPW)
int main(int argc, char **argv)
{
initConsole("\pJavaScript Shell", "Welcome to the js2 shell.\n", argc, argv);
#else
int main(int , char **)
{
#endif
using namespace JavaScript;
using namespace Shell;
#if 1
testCompile();
#endif
readEvalPrint(stdin, world);
return 0;
// return ProcessArgs(argv + 1, argc - 1);
}

View File

@@ -1,316 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef jsclasses_h
#define jsclasses_h
#include "jstypes.h"
namespace JavaScript {
namespace JSClasses {
using JSTypes::JSValue;
using JSTypes::JSObject;
using JSTypes::JSType;
using JSTypes::JSScope;
using JSTypes::JSFunction;
using ICG::ICodeModule;
struct JSSlot {
typedef enum { kNoFlag = 0, kIsConstructor = 0x01 } SlotFlags; // <-- readonly, enumerable etc
JSType* mType;
uint32 mIndex;
SlotFlags mFlags;
JSSlot() : mType(0), mFlags(kNoFlag)
{
}
bool isConstructor() const { return (mFlags & kIsConstructor) != 0; }
};
#if defined(XP_MAC)
// copied from default template parameters in map.
typedef gc_allocator<std::pair<const String, JSSlot> > gc_slot_allocator;
#elif defined(XP_UNIX)
typedef JSTypes::gc_map_allocator gc_slot_allocator;
#elif defined(_WIN32)
typedef gc_allocator<JSSlot> gc_slot_allocator;
#endif
typedef std::map<String, JSSlot, std::less<const String>, gc_slot_allocator> JSSlots;
typedef std::pair<String, JSFunction*> MethodEntry;
typedef std::vector<MethodEntry> JSMethods;
/**
* Represents a class in the JavaScript 2 (ECMA 4) language.
* Since a class defines a scope, and is defined in a scope,
* a new scope is created whose parent scope is the scope of
* class definition.
*/
class JSClass : public JSType {
protected:
JSScope* mScope;
uint32 mSlotCount;
JSSlots mSlots;
uint32 mStaticCount;
JSSlots mStaticSlots;
JSValue* mStaticData;
JSMethods mMethods;
public:
JSClass(JSScope* scope, const String& name, JSClass* superClass = 0)
: JSType(name, superClass),
mScope(new JSScope(scope)),
mSlotCount(superClass ? superClass->mSlotCount : 0),
mStaticCount(0),
mStaticData(0)
{
if (superClass) {
// inherit superclass methods
JSMethods::iterator end = superClass->mMethods.end();
for (JSMethods::iterator i = superClass->mMethods.begin(); i != end; i++)
mMethods.push_back(*i);
}
}
JSClass* getSuperClass()
{
return static_cast<JSClass*>(mBaseType);
}
JSScope* getScope()
{
return mScope;
}
const JSSlot& defineSlot(const String& name, JSType* type)
{
JSSlot& slot = mSlots[name];
ASSERT(slot.mType == 0);
slot.mType = type;
slot.mIndex = mSlotCount++; // starts at 0.
return slot;
}
const JSSlot& getSlot(const String& name)
{
return mSlots[name];
}
bool hasSlot(const String& name)
{
return (mSlots.find(name) != mSlots.end());
}
JSSlots& getSlots()
{
return mSlots;
}
uint32 getSlotCount()
{
return mSlotCount;
}
/**
* Define a static/class variable.
*/
const JSSlot& defineStatic(const String& name, JSType* type)
{
JSSlot& slot = mStaticSlots[name];
ASSERT(slot.mType == 0);
slot.mType = type;
slot.mIndex = mStaticCount++;
return slot;
}
const JSSlot& defineConstructor(const String& name)
{
JSSlot& slot = mStaticSlots[name];
ASSERT(slot.mType == 0);
slot.mType = &JSTypes::Function_Type;
slot.mIndex = mStaticCount++;
slot.mFlags = JSSlot::kIsConstructor;
return slot;
}
const JSSlot& getStatic(const String& name)
{
return mStaticSlots[name];
}
bool hasStatic(const String& name, JSType*& type, bool &isConstructor)
{
JSSlots::const_iterator i = mStaticSlots.find(name);
if (i != mStaticSlots.end()) {
type = i->second.mType;
isConstructor = i->second.isConstructor();
return true;
}
return false;
}
bool hasStatic(const String& name)
{
return (mStaticSlots.find(name) != mStaticSlots.end());
}
bool complete()
{
mStaticData = new JSValue[mStaticCount];
return (mStaticData != 0);
}
JSValue& operator[] (uint32 index)
{
return mStaticData[index];
}
virtual void printProperties(Formatter& f)
{
f << "Properties:\n";
JSObject::printProperties(f);
f << "Statics:\n";
printStatics(f);
}
void printStatics(Formatter& f)
{
JSClass* superClass = getSuperClass();
if (superClass) superClass->printStatics(f);
for (JSSlots::iterator i = mStaticSlots.begin(), end = mStaticSlots.end(); i != end; ++i) {
f << i->first << " : " << mStaticData[i->second.mIndex] << "\n";
}
}
void defineMethod(const String& name, JSFunction *f)
{
uint32 slot;
if (hasMethod(name, slot))
mMethods[slot] = MethodEntry(name, f);
else
mMethods.push_back(MethodEntry(name, f));
}
bool hasMethod(const String& name, uint32& index)
{
JSMethods::iterator end = mMethods.end();
for (JSMethods::iterator i = mMethods.begin(); i != end; i++) {
if (i->first == name) {
index = i - mMethods.begin();
return true;
}
}
return false;
}
JSFunction* getMethod(uint32 index)
{
return mMethods[index].second;
}
};
/**
* Represents an instance of a JSClass.
*/
class JSInstance : public JSObject {
protected:
JSValue mSlots[1];
public:
void* operator new(size_t n, JSClass* thisClass)
{
uint32 slotCount = thisClass->getSlotCount();
if (slotCount > 0) n += sizeof(JSValue) * (slotCount - 1);
return gc_base::operator new(n);
}
#if !defined(XP_MAC)
void operator delete(void* /*ptr*/, JSClass* /*thisClass*/) {}
#endif
JSInstance(JSClass* thisClass)
{
mType = thisClass;
// initialize extra slots with undefined.
uint32 slotCount = thisClass->getSlotCount();
if (slotCount > 0) {
std::uninitialized_fill(&mSlots[1], &mSlots[1] + (slotCount - 1),
JSTypes::kUndefinedValue);
}
// for grins, use the prototype link to access methods.
setPrototype(thisClass->getScope());
}
JSFunction* getMethod(uint32 index)
{
return getClass()->getMethod(index);
}
JSClass* getClass()
{
return static_cast<JSClass*>(mType);
}
JSValue& operator[] (uint32 index)
{
return mSlots[index];
}
virtual void printProperties(Formatter& f)
{
f << "Properties:\n";
JSObject::printProperties(f);
f << "Slots:\n";
printSlots(f, getClass());
}
private:
void printSlots(Formatter& f, JSClass* thisClass)
{
JSClass* superClass = thisClass->getSuperClass();
if (superClass) printSlots(f, superClass);
JSSlots& slots = thisClass->getSlots();
for (JSSlots::iterator i = slots.begin(), end = slots.end(); i != end; ++i) {
f << i->first << " : " << mSlots[i->second.mIndex] << "\n";
}
}
};
} /* namespace JSClasses */
} /* namespace JavaScript */
#endif /* jsclasses_h */

View File

@@ -1,208 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#include <math.h>
#include "jsmath.h"
namespace JavaScript {
namespace JSMathClass {
using namespace JSTypes;
#ifndef M_E
#define M_E 2.7182818284590452354
#endif
#ifndef M_LOG2E
#define M_LOG2E 1.4426950408889634074
#endif
#ifndef M_LOG10E
#define M_LOG10E 0.43429448190325182765
#endif
#ifndef M_LN2
#define M_LN2 0.69314718055994530942
#endif
#ifndef M_LN10
#define M_LN10 2.30258509299404568402
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef M_SQRT2
#define M_SQRT2 1.41421356237309504880
#endif
#ifndef M_SQRT1_2
#define M_SQRT1_2 0.70710678118654752440
#endif
/*
Concept copied from SpiderMonkey -
fd_XXX needs to be defined either as a call to the fdlibm routine
or the native C library routine depending on the platform
*/
#define JS_USE_FDLIBM_MATH 0
#if !JS_USE_FDLIBM_MATH
/*
* Use system provided math routines.
*/
#define fd_acos acos
#define fd_asin asin
#define fd_atan atan
#define fd_atan2 atan2
#define fd_ceil ceil
#define fd_copysign copysign
#define fd_cos cos
#define fd_exp exp
#define fd_fabs fabs
#define fd_floor floor
#define fd_fmod fmod
#define fd_log log
#define fd_pow pow
#define fd_sin sin
#define fd_sqrt sqrt
#define fd_tan tan
#endif
JSValue math_abs(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSValue num = argv[1].toNumber();
if (num.isNaN()) return num;
if (num.isNegativeZero()) return kPositiveZero;
if (num.isNegativeInfinity()) return kPositiveInfinity;
if (num.f64 < 0) return JSValue(-num.f64);
return num;
}
return kUndefinedValue;
}
JSValue math_acos(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSValue num = argv[1].toNumber();
return JSValue(fd_acos(num.f64));
}
return kUndefinedValue;
}
JSValue math_asin(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSValue num = argv[1].toNumber();
return JSValue(fd_asin(num.f64));
}
return kUndefinedValue;
}
JSValue math_atan(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSValue num = argv[1].toNumber();
return JSValue(fd_atan(num.f64));
}
return kUndefinedValue;
}
JSValue math_atan2(Context *cx, const JSValues& argv)
{
if (argv.size() > 1) {
JSValue num1 = argv[1].toNumber();
JSValue num2 = argv[1].toNumber();
return JSValue(fd_atan2(num1.f64, num2.f64));
}
return kUndefinedValue;
}
JSValue math_ceil(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSValue num = argv[1].toNumber();
return JSValue(fd_ceil(num.f64));
}
return kUndefinedValue;
}
struct MathFunctionEntry {
char *name;
JSNativeFunction::JSCode fn;
} MathFunctions[] = {
{ "abs", math_abs },
{ "acos", math_acos },
{ "asin", math_asin },
{ "atan", math_atan },
{ "atan2", math_atan2 },
{ "ceil", math_acos },
{ "acos", math_acos },
{ "acos", math_acos }
};
struct MathConstantEntry {
char *name;
double value;
} MathConstants[] = {
{ "E", M_E },
{ "LOG2E", M_LOG2E },
{ "LOG10E", M_LOG10E },
{ "LN2", M_LN2 },
{ "LN10", M_LN10 },
{ "PI", M_PI },
{ "SQRT2", M_SQRT2 },
{ "SQRT1_2", M_SQRT1_2 }
};
// There is no constructor for Math, we simply initialize
// the properties of the Math object
void JSMath::initMathObject(JSScope *g)
{
int i;
JSMath *m = new JSMath();
m->setClass(new JSString("Math"));
for (i = 0; i < sizeof(MathFunctions) / sizeof(MathFunctionEntry); i++)
m->setProperty(widenCString(MathFunctions[i].name), JSValue(new JSNativeFunction(MathFunctions[i].fn) ) );
for (i = 0; i < sizeof(MathConstants) / sizeof(MathConstantEntry); i++)
m->setProperty(widenCString(MathConstants[i].name), JSValue(MathConstants[i].value) );
g->setProperty(widenCString("Math"), JSValue(m));
}
} /* JSMathClass */
} /* JavaScript */

View File

@@ -1,58 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef jsmath_h
#define jsmath_h
#include "jstypes.h"
namespace JavaScript {
namespace JSMathClass {
using JSTypes::JSObject;
using JSTypes::JSString;
using JSTypes::JSScope;
class JSMath : public JSObject {
private:
JSMath() { }
public:
static void initMathObject(JSScope *g);
};
} /* JSMathClass */
} /* JavaScript */
#endif jsmath_h

View File

@@ -1,775 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#include "jstypes.h"
#include "jsclasses.h"
#include "numerics.h"
#include "icodegenerator.h"
#include "interpreter.h"
namespace JavaScript {
namespace JSTypes {
using namespace JSClasses;
using namespace Interpreter;
/********** Object Object Stuff **************************/
JSValue object_toString(Context *cx, const JSValues& argv)
{
if (argv.size() > 0) {
JSString *s = new JSString("[object ");
JSValue theThis = argv[0];
ASSERT(theThis.isObject());
s->append(theThis.object->getClass());
s->append("]");
return JSValue(s);
}
return kUndefinedValue;
}
JSValue objectConstructor(Context *cx, const JSValues& argv)
{
ASSERT(argv.size() > 0);
JSValue theThis = argv[0];
// the prototype and class have been established already
return theThis;
}
struct ObjectFunctionEntry {
char *name;
JSNativeFunction::JSCode fn;
} ObjectFunctions[] = {
{ "toString", object_toString },
};
JSObject *JSObject::objectPrototypeObject = JSObject::initJSObject();
String JSObject::ObjectString = widenCString("Object");
// This establishes the ur-prototype, there's a timing issue
// here - the JSObject static initializers have to run before
// any other JSObject objects are constructed.
JSObject *JSObject::initJSObject()
{
JSObject *result = new JSObject();
for (int i = 0; i < sizeof(ObjectFunctions) / sizeof(ObjectFunctionEntry); i++)
result->setProperty(widenCString(ObjectFunctions[i].name), JSValue(new JSNativeFunction(ObjectFunctions[i].fn) ) );
return result;
}
// Install the 'Object' constructor into the scope, mostly irrelevant since making
// a new JSObject does all the work of setting the prototype and [[class]] values.
void JSObject::initObjectObject(JSScope *g)
{
JSNativeFunction *objCon = new JSNativeFunction(objectConstructor);
objCon->setProperty(widenCString("prototype"), JSValue(objectPrototypeObject));
g->setProperty(ObjectString, JSValue(objCon));
}
/********** Function Object Stuff **************************/
// An empty function that returns undefined
JSValue functionPrototypeFunction(Context *cx, const JSValues& argv)
{
return kUndefinedValue;
}
JSValue function_constructor(Context *cx, const JSValues& argv)
{
// build a function from the arguments into the this.
ASSERT(argv.size() > 0);
JSValue theThis = argv[0];
ASSERT(theThis.isObject());
if (argv.size() == 2) {
JSValue s = JSValue::valueToString(argv[1]);
theThis = new JSFunction(cx->compile((String)(*s.string)));
}
return theThis;
}
JSValue function_toString(Context *cx, const JSValues& argv)
{
return JSValue(new JSString("function XXX() { }" ));
}
JSValue function_apply(Context *cx, const JSValues& argv)
{
// XXX
return kUndefinedValue;
}
JSValue function_call(Context *cx, const JSValues& argv)
{
// XXX
return kUndefinedValue;
}
String JSFunction::FunctionString = widenCString("Function");
JSObject *JSFunction::functionPrototypeObject = NULL; // the 'original Function prototype object'
struct FunctionFunctionEntry {
char *name;
JSNativeFunction::JSCode fn;
} FunctionFunctions[] = {
{ "constructor", function_constructor },
{ "toString", function_toString },
{ "apply", function_apply },
{ "call", function_call },
};
void JSFunction::initFunctionObject(JSScope *g)
{
// first build the Function Prototype Object
functionPrototypeObject = new JSNativeFunction(functionPrototypeFunction);
for (int i = 0; i < sizeof(FunctionFunctions) / sizeof(FunctionFunctionEntry); i++)
functionPrototypeObject->setProperty(widenCString(FunctionFunctions[i].name), JSValue(new JSNativeFunction(FunctionFunctions[i].fn) ) );
// now the Function Constructor Object
JSNativeFunction *functionConstructorObject = new JSNativeFunction(function_constructor);
functionConstructorObject->setPrototype(functionPrototypeObject);
functionConstructorObject->setProperty(widenCString("length"), JSValue((int32)1));
functionConstructorObject->setProperty(widenCString("prototype"), JSValue(functionPrototypeObject));
// This is interesting - had to use defineVariable here to specify a type because
// when left as Any_Type (via setProperty), the Function predefined type interacted
// badly with this value. (I think setProperty perhaps should have reset the entry
// in mTypes) (?)
g->defineVariable(FunctionString, &Function_Type, JSValue(functionConstructorObject));
}
/**************************************************************************************/
JSType Any_Type = JSType(widenCString("any"), NULL);
JSType Integer_Type = JSType(widenCString("Integer"), &Any_Type);
JSType Number_Type = JSType(widenCString("Number"), &Integer_Type);
JSType Character_Type = JSType(widenCString("Character"), &Any_Type);
JSType String_Type = JSType(widenCString("String"), &Character_Type);
JSType Function_Type = JSType(widenCString("Function"), &Any_Type);
JSType Array_Type = JSType(widenCString("Array"), &Any_Type);
JSType Type_Type = JSType(widenCString("Type"), &Any_Type);
JSType Boolean_Type = JSType(widenCString("Boolean"), &Any_Type);
JSType Null_Type = JSType(widenCString("Null"), &Any_Type);
JSType Void_Type = JSType(widenCString("void"), &Any_Type);
JSType None_Type = JSType(widenCString("none"), &Any_Type);
#ifdef IS_LITTLE_ENDIAN
#define JSDOUBLE_HI32(x) (((uint32 *)&(x))[1])
#define JSDOUBLE_LO32(x) (((uint32 *)&(x))[0])
#else
#define JSDOUBLE_HI32(x) (((uint32 *)&(x))[0])
#define JSDOUBLE_LO32(x) (((uint32 *)&(x))[1])
#endif
#define JSDOUBLE_HI32_SIGNBIT 0x80000000
#define JSDOUBLE_HI32_EXPMASK 0x7ff00000
#define JSDOUBLE_HI32_MANTMASK 0x000fffff
#define JSDOUBLE_IS_NaN(x) \
((JSDOUBLE_HI32(x) & JSDOUBLE_HI32_EXPMASK) == JSDOUBLE_HI32_EXPMASK && \
(JSDOUBLE_LO32(x) || (JSDOUBLE_HI32(x) & JSDOUBLE_HI32_MANTMASK)))
#define JSDOUBLE_IS_INFINITE(x) \
((JSDOUBLE_HI32(x) & ~JSDOUBLE_HI32_SIGNBIT) == JSDOUBLE_HI32_EXPMASK && \
!JSDOUBLE_LO32(x))
#define JSDOUBLE_IS_FINITE(x) \
((JSDOUBLE_HI32(x) & JSDOUBLE_HI32_EXPMASK) != JSDOUBLE_HI32_EXPMASK)
#define JSDOUBLE_IS_NEGZERO(d) (JSDOUBLE_HI32(d) == JSDOUBLE_HI32_SIGNBIT && \
JSDOUBLE_LO32(d) == 0)
// the canonical undefined value, etc.
const JSValue kUndefinedValue;
const JSValue kNaNValue = JSValue(nan);
const JSValue kTrueValue = JSValue(true);
const JSValue kFalseValue = JSValue(false);
const JSValue kNullValue = JSValue((JSObject*)NULL);
const JSValue kNegativeZero = JSValue(-0.0);
const JSValue kPositiveZero = JSValue(0.0);
const JSValue kNegativeInfinity = JSValue(negativeInfinity);
const JSValue kPositiveInfinity = JSValue(positiveInfinity);
const JSType *JSValue::getType() const
{
switch (tag) {
case JSValue::i32_tag:
return &Integer_Type;
case JSValue::u32_tag:
return &Integer_Type;
case JSValue::integer_tag:
return &Integer_Type;
case JSValue::f64_tag:
return &Number_Type;
case JSValue::object_tag:
{
//
// XXX why isn't there a class for Object? XXX
//
JSClass *clazz = dynamic_cast<JSClass *>(object->getType());
if (clazz)
return clazz;
else
return &Any_Type;
}
case JSValue::array_tag:
return &Array_Type;
case JSValue::function_tag:
return &Function_Type;
case JSValue::string_tag:
return &String_Type;
case JSValue::boolean_tag:
return &Boolean_Type;
case JSValue::undefined_tag:
return &Void_Type;
case JSValue::type_tag:
return &Type_Type;
default:
NOT_REACHED("Bad tag");
return &None_Type;
}
}
bool JSValue::isNaN() const
{
ASSERT(isNumber());
switch (tag) {
case i32_tag:
case u32_tag:
return false;
case integer_tag:
case f64_tag:
return JSDOUBLE_IS_NaN(f64);
default:
NOT_REACHED("Broken compiler?");
return true;
}
}
bool JSValue::isNegativeInfinity() const
{
ASSERT(isNumber());
switch (tag) {
case i32_tag:
case u32_tag:
return false;
case integer_tag:
case f64_tag:
return (f64 < 0) && JSDOUBLE_IS_INFINITE(f64);
default:
NOT_REACHED("Broken compiler?");
return true;
}
}
bool JSValue::isPositiveInfinity() const
{
ASSERT(isNumber());
switch (tag) {
case i32_tag:
case u32_tag:
return false;
case integer_tag:
case f64_tag:
return (f64 > 0) && JSDOUBLE_IS_INFINITE(f64);
default:
NOT_REACHED("Broken compiler?");
return true;
}
}
bool JSValue::isNegativeZero() const
{
ASSERT(isNumber());
switch (tag) {
case i32_tag:
case u32_tag:
return false;
case integer_tag:
case f64_tag:
return JSDOUBLE_IS_NEGZERO(f64);
default:
NOT_REACHED("Broken compiler?");
return true;
}
}
bool JSValue::isPositiveZero() const
{
ASSERT(isNumber());
switch (tag) {
case i32_tag:
return (i32 == 0);
case u32_tag:
return (u32 == 0);
case integer_tag:
case f64_tag:
return (f64 == 0.0) && !JSDOUBLE_IS_NEGZERO(f64);
default:
NOT_REACHED("Broken compiler?");
return true;
}
}
int JSValue::operator==(const JSValue& value) const
{
if (this->tag == value.tag) {
#define CASE(T) case T##_tag: return (this->T == value.T)
switch (tag) {
CASE(i8); CASE(u8);
CASE(i16); CASE(u16);
CASE(i32); CASE(u32); CASE(f32);
CASE(i64); CASE(u64); CASE(f64);
CASE(object); CASE(array); CASE(function); CASE(string);
CASE(type); CASE(boolean);
#undef CASE
case integer_tag : return (this->f64 == value.f64);
// question: are all undefined values equal to one another?
case undefined_tag: return 1;
}
}
return 0;
}
Formatter& operator<<(Formatter& f, JSObject& obj)
{
obj.printProperties(f);
return f;
}
void JSObject::printProperties(Formatter& f)
{
for (JSProperties::const_iterator i = mProperties.begin(); i != mProperties.end(); i++) {
f << (*i).first << " : " << (*i).second;
f << "\n";
}
}
Formatter& operator<<(Formatter& f, const JSValue& value)
{
switch (value.tag) {
case JSValue::i32_tag:
f << float64(value.i32);
break;
case JSValue::u32_tag:
f << float64(value.u32);
break;
case JSValue::integer_tag:
case JSValue::f64_tag:
f << value.f64;
break;
case JSValue::object_tag:
printFormat(f, "Object @ 0x%08X\n", value.object);
f << *value.object;
break;
case JSValue::array_tag:
printFormat(f, "Array @ 0x%08X", value.object);
break;
case JSValue::function_tag:
printFormat(f, "Function @ 0x%08X", value.object);
break;
case JSValue::string_tag:
f << *value.string;
break;
case JSValue::boolean_tag:
f << ((value.boolean) ? "true" : "false");
break;
case JSValue::undefined_tag:
f << "undefined";
break;
case JSValue::type_tag:
printFormat(f, "Type @ 0x%08X\n", value.type);
f << *value.type;
break;
default:
NOT_REACHED("Bad tag");
}
return f;
}
JSValue JSValue::toPrimitive(ECMA_type /*hint*/) const
{
JSObject *obj;
switch (tag) {
case i32_tag:
case u32_tag:
case integer_tag:
case f64_tag:
case string_tag:
case boolean_tag:
case undefined_tag:
return *this;
case object_tag:
obj = object;
break;
case array_tag:
obj = array;
break;
case function_tag:
obj = function;
break;
default:
NOT_REACHED("Bad tag");
return kUndefinedValue;
}
const JSValue &toString = obj->getProperty(widenCString("toString"));
if (toString.isObject()) {
if (toString.isFunction()) {
}
else // right? The spec doesn't say
throw new JSException("Runtime error from toPrimitive"); // XXX
}
const JSValue &valueOf = obj->getProperty(widenCString("valueOf"));
if (!valueOf.isObject())
throw new JSException("Runtime error from toPrimitive"); // XXX
return kUndefinedValue;
}
JSValue JSValue::valueToString(const JSValue& value) // can assume value is not a string
{
const char* chrp;
char buf[dtosStandardBufferSize];
switch (value.tag) {
case i32_tag:
chrp = doubleToStr(buf, dtosStandardBufferSize, value.i32, dtosStandard, 0);
break;
case u32_tag:
chrp = doubleToStr(buf, dtosStandardBufferSize, value.u32, dtosStandard, 0);
break;
case integer_tag:
case f64_tag:
chrp = doubleToStr(buf, dtosStandardBufferSize, value.f64, dtosStandard, 0);
break;
case object_tag:
chrp = "object";
break;
case array_tag:
chrp = "array";
break;
case function_tag:
chrp = "function";
break;
case string_tag:
return value;
case boolean_tag:
chrp = (value.boolean) ? "true" : "false";
break;
case undefined_tag:
chrp = "undefined";
break;
default:
NOT_REACHED("Bad tag");
}
return JSValue(new JSString(chrp));
}
JSValue JSValue::valueToNumber(const JSValue& value) // can assume value is not a number
{
switch (value.tag) {
case i32_tag:
return JSValue((float64)value.i32);
case u32_tag:
return JSValue((float64)value.u32);
case integer_tag:
case f64_tag:
return value;
case string_tag:
{
JSString* str = value.string;
const char16 *numEnd;
double d = stringToDouble(str->begin(), str->end(), numEnd);
return JSValue(d);
}
case object_tag:
case array_tag:
case function_tag:
// XXX more needed :
// toNumber(toPrimitive(hint Number))
return kUndefinedValue;
case boolean_tag:
return JSValue((value.boolean) ? 1.0 : 0.0);
case undefined_tag:
return kNaNValue;
default:
NOT_REACHED("Bad tag");
return kUndefinedValue;
}
}
JSValue JSValue::valueToInteger(const JSValue& value)
{
JSValue result = valueToNumber(value);
ASSERT(result.tag == f64_tag);
result.tag = i64_tag;
bool neg = (result.f64 < 0);
result.f64 = floor((neg) ? -result.f64 : result.f64);
result.f64 = (neg) ? -result.f64 : result.f64;
return result;
}
JSValue JSValue::valueToBoolean(const JSValue& value)
{
switch (value.tag) {
case i32_tag:
return JSValue(value.i32 != 0);
case u32_tag:
return JSValue(value.u32 != 0);
case integer_tag:
case f64_tag:
return JSValue(!(value.f64 == 0.0) || JSDOUBLE_IS_NaN(value.f64));
case string_tag:
return JSValue(value.string->length() != 0);
case boolean_tag:
return value;
case object_tag:
case array_tag:
case function_tag:
return kTrueValue;
case undefined_tag:
return kFalseValue;
default:
NOT_REACHED("Bad tag");
return kUndefinedValue;
}
}
static const double two32 = 4294967296.0;
static const double two31 = 2147483648.0;
JSValue JSValue::valueToInt32(const JSValue& value)
{
double d;
switch (value.tag) {
case i32_tag:
return value;
case u32_tag:
d = value.u32;
break;
case integer_tag:
case f64_tag:
d = value.f64;
break;
case string_tag:
{
JSString* str = value.string;
const char16 *numEnd;
d = stringToDouble(str->begin(), str->end(), numEnd);
}
break;
case boolean_tag:
return JSValue((int32)((value.boolean) ? 1 : 0));
case object_tag:
case array_tag:
case undefined_tag:
// toNumber(toPrimitive(hint Number))
return kUndefinedValue;
default:
NOT_REACHED("Bad tag");
return kUndefinedValue;
}
if ((d == 0.0) || !JSDOUBLE_IS_FINITE(d) )
return JSValue((int32)0);
d = fmod(d, two32);
d = (d >= 0) ? d : d + two32;
if (d >= two31)
return JSValue((int32)(d - two32));
else
return JSValue((int32)d);
}
JSValue JSValue::valueToUInt32(const JSValue& value)
{
double d;
switch (value.tag) {
case i32_tag:
return JSValue((uint32)value.i32);
case u32_tag:
return value;
case f64_tag:
d = value.f64;
break;
case string_tag:
{
JSString* str = value.string;
const char16 *numEnd;
d = stringToDouble(str->begin(), str->end(), numEnd);
}
break;
case boolean_tag:
return JSValue((uint32)((value.boolean) ? 1 : 0));
case object_tag:
case array_tag:
case undefined_tag:
// toNumber(toPrimitive(hint Number))
return kUndefinedValue;
default:
NOT_REACHED("Bad tag");
return kUndefinedValue;
}
if ((d == 0.0) || !JSDOUBLE_IS_FINITE(d))
return JSValue((uint32)0);
bool neg = (d < 0);
d = floor(neg ? -d : d);
d = neg ? -d : d;
d = fmod(d, two32);
d = (d >= 0) ? d : d + two32;
return JSValue((uint32)d);
}
JSValue JSValue::convert(JSType *toType)
{
if (toType == &Any_Type) // yuck, something wrong with this
// maybe the base types should be
// a family of classes, not just instances
// of JSType ???
return *this;
else if (toType == &Integer_Type)
return valueToInteger(*this);
else {
JSClass *toClass = dynamic_cast<JSClass *>(toType);
if (toClass) {
if (tag == object_tag) {
JSClass *fromClass = dynamic_cast<JSClass *>(object->getType());
if (fromClass) {
while (fromClass != toClass) {
fromClass = fromClass->getSuperClass();
if (fromClass == NULL)
throw new JSException("Can't cast to unrelated class");
}
return *this;
}
else
throw new JSException("Can't cast a generic object to a class");
}
else
throw new JSException("Can't cast a non-object to a class");
}
}
return kUndefinedValue;
}
JSFunction::~JSFunction()
{
delete mICode;
}
JSString::JSString(const String& str)
{
size_t n = str.size();
resize(n);
traits_type::copy(begin(), str.begin(), n);
}
JSString::JSString(const String* str)
{
size_t n = str->size();
resize(n);
traits_type::copy(begin(), str->begin(), n);
}
JSString::JSString(const char* str)
{
size_t n = ::strlen(str);
resize(n);
std::transform(str, str + n, begin(), JavaScript::widen);
}
void JSString::append(const char* str)
{
size_t n = ::strlen(str);
size_t oldSize = size();
resize(oldSize + n);
std::transform(str, str + n, begin() + oldSize, JavaScript::widen);
}
void JSString::append(const JSStringBase* str)
{
size_t n = str->size();
size_t oldSize = size();
resize(oldSize + n);
traits_type::copy(begin() + oldSize, str->begin(), n);
}
JSString::operator String()
{
return String(begin(), size());
}
// # of sub-type relationship between this type and the other type
// (== MAX_INT if other is not a base type)
int32 JSType::distance(const JSType *other) const
{
if (other == this)
return 0;
if (mBaseType == NULL)
return NoRelation;
int32 baseDistance = mBaseType->distance(other);
if (baseDistance != NoRelation)
++baseDistance;
return baseDistance;
}
} /* namespace JSTypes */
} /* namespace JavaScript */

View File

@@ -1,579 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef jstypes_h
#define jstypes_h
#include "utilities.h"
#include "gc_allocator.h"
#include <vector>
#include <map>
#include <stack>
/* forward declare classes from JavaScript::ICG */
namespace JavaScript {
namespace ICG {
class ICodeModule;
} /* namespace ICG */
namespace Interpreter {
class Context;
} /* namespace Interpreter */
} /* namespace JavaScript */
namespace JavaScript {
namespace JSTypes {
using ICG::ICodeModule;
using Interpreter::Context;
class JSObject;
class JSArray;
class JSFunction;
class JSScope;
class JSString;
class JSType;
class Context;
/**
* All JavaScript data types.
*/
struct JSValue {
union {
int8 i8;
uint8 u8;
int16 i16;
uint16 u16;
int32 i32;
uint32 u32;
int64 i64;
uint64 u64;
float32 f32;
float64 f64;
JSObject* object;
JSArray* array;
JSFunction *function;
JSString *string;
JSType *type;
bool boolean;
};
/* These are the ECMA types, for use in 'toPrimitive' calls */
enum ECMA_type {
Undefined, Null, Boolean, Number, Object, String,
NoHint
};
enum {
i8_tag, u8_tag,
i16_tag, u16_tag,
i32_tag, u32_tag,
i64_tag, u64_tag,
f32_tag, f64_tag,
integer_tag,
object_tag, array_tag, function_tag, string_tag, boolean_tag, type_tag,
undefined_tag
} tag;
JSValue() : f64(0.0), tag(undefined_tag) {}
explicit JSValue(int32 i32) : i32(i32), tag(i32_tag) {}
explicit JSValue(uint32 u32) : u32(u32), tag(u32_tag) {}
explicit JSValue(float64 f64) : f64(f64), tag(f64_tag) {}
explicit JSValue(JSObject* object) : object(object), tag(object_tag) {}
explicit JSValue(JSArray* array) : array(array), tag(array_tag) {}
explicit JSValue(JSFunction* function) : function(function), tag(function_tag) {}
explicit JSValue(JSString* string) : string(string), tag(string_tag) {}
explicit JSValue(bool boolean) : boolean(boolean), tag(boolean_tag) {}
explicit JSValue(JSType* type) : type(type), tag(type_tag) {}
int32& operator=(int32 i32) { return (tag = i32_tag, this->i32 = i32); }
uint32& operator=(uint32 u32) { return (tag = u32_tag, this->u32 = u32); }
float64& operator=(float64 f64) { return (tag = f64_tag, this->f64 = f64); }
JSObject*& operator=(JSObject* object) { return (tag = object_tag, this->object = object); }
JSArray*& operator=(JSArray* array) { return (tag = array_tag, this->array = array); }
JSFunction*& operator=(JSFunction* function) { return (tag = function_tag, this->function = function); }
JSString*& operator=(JSString* string) { return (tag = string_tag, this->string = string); }
bool& operator=(bool boolean) { return (tag = boolean_tag, this->boolean = boolean); }
JSType*& operator=(JSType* type) { return (tag = type_tag, this->type = type); }
bool isFunction() const { return (tag == function_tag); }
bool isObject() const { return ((tag == object_tag) || (tag == function_tag) || (tag == array_tag) || (tag == type_tag)); }
bool isString() const { return (tag == string_tag); }
bool isBoolean() const { return (tag == boolean_tag); }
bool isNumber() const { return (tag == f64_tag) || (tag == integer_tag); }
/* this is correct wrt ECMA, The i32 & u32 kinds
will have to be converted (to doubles?) anyway because
we can't have overflow happening in generic arithmetic */
bool isUndefined() const { return (tag == undefined_tag); }
bool isNull() const { return ((tag == object_tag) && (this->object == NULL)); }
bool isNaN() const;
bool isNegativeInfinity() const;
bool isPositiveInfinity() const;
bool isNegativeZero() const;
bool isPositiveZero() const;
bool isType() const { return (tag == type_tag); }
JSValue toString() const { return (isString() ? *this : valueToString(*this)); }
JSValue toNumber() const { return (isNumber() ? *this : valueToNumber(*this)); }
JSValue toInt32() const { return ((tag == i32_tag) ? *this : valueToInt32(*this)); }
JSValue toUInt32() const { return ((tag == u32_tag) ? *this : valueToUInt32(*this)); }
JSValue toBoolean() const { return ((tag == boolean_tag) ? *this : valueToBoolean(*this)); }
JSValue toPrimitive(ECMA_type hint = NoHint) const;
JSValue convert(JSType *toType);
static JSValue valueToString(const JSValue& value);
static JSValue valueToNumber(const JSValue& value);
static JSValue valueToInteger(const JSValue& value);
static JSValue valueToInt32(const JSValue& value);
static JSValue valueToUInt32(const JSValue& value);
static JSValue valueToBoolean(const JSValue& value);
const JSType *getType() const; // map from tag type to JS2 type
int operator==(const JSValue& value) const;
};
Formatter& operator<<(Formatter& f, const JSValue& value);
#if defined(XP_MAC)
// copied from default template parameters in map.
typedef gc_allocator<std::pair<const String, JSValue> > gc_map_allocator;
#elif defined(XP_UNIX)
// FIXME: in libg++, they assume the map's allocator is a byte allocator,
// which is wrapped in a simple_allocator. this is crap.
typedef char _Char[1];
typedef gc_allocator<_Char> gc_map_allocator;
#elif defined(_WIN32)
// FIXME: MSVC++'s notion. this is why we had to add _Charalloc().
typedef gc_allocator<JSValue> gc_map_allocator;
#endif
/**
* GC-scannable array of values.
*/
typedef std::vector<JSValue, gc_allocator<JSValue> > JSValues;
extern const JSValue kUndefinedValue;
extern const JSValue kNaNValue;
extern const JSValue kTrueValue;
extern const JSValue kFalseValue;
extern const JSValue kNullValue;
extern const JSValue kNegativeZero;
extern const JSValue kPositiveZero;
extern const JSValue kNegativeInfinity;
extern const JSValue kPositiveInfinity;
extern JSType Any_Type;
extern JSType Integer_Type;
extern JSType Number_Type;
extern JSType Character_Type;
extern JSType String_Type;
extern JSType Function_Type;
extern JSType Array_Type;
extern JSType Type_Type;
extern JSType Boolean_Type;
extern JSType Null_Type;
extern JSType Void_Type;
extern JSType None_Type;
typedef std::map<String, JSValue, std::less<String>, gc_map_allocator> JSProperties;
/**
* Basic behavior of all JS objects, mapping a name to a value,
* with prototype-based inheritance.
*/
class JSObject : public gc_base {
protected:
JSProperties mProperties;
JSObject* mPrototype;
JSType* mType;
JSString* mClass; // this is the internal [[Class]] property
static JSObject *initJSObject();
static String ObjectString;
static JSObject *objectPrototypeObject;
void init(JSObject* prototype);
public:
JSObject() { init(objectPrototypeObject); }
JSObject(JSValue &constructor) { init(constructor.object->getProperty(widenCString("prototype")).object); }
JSObject(JSObject *prototype) { init(prototype); }
static void initObjectObject(JSScope *g);
bool hasProperty(const String& name)
{
return (mProperties.count(name) != 0);
}
const JSValue& getProperty(const String& name)
{
JSProperties::const_iterator i = mProperties.find(name);
if (i != mProperties.end())
return i->second;
if (mPrototype)
return mPrototype->getProperty(name);
return kUndefinedValue;
}
// return the property AND the object it's found in
// (would rather return references, but couldn't get that to work)
const JSValue getReference(JSValue &prop, const String& name)
{
JSProperties::const_iterator i = mProperties.find(name);
if (i != mProperties.end()) {
prop = i->second;
return JSValue(this);
}
if (mPrototype)
return mPrototype->getReference(prop, name);
return kUndefinedValue;
}
JSValue& setProperty(const String& name, const JSValue& value)
{
return (mProperties[name] = value);
}
const JSValue& deleteProperty(const String& name)
{
JSProperties::iterator i = mProperties.find(name);
if (i != mProperties.end()) {
mProperties.erase(i);
return kTrueValue;
}
if (mPrototype)
return mPrototype->deleteProperty(name);
return kFalseValue;
}
void setPrototype(JSObject* prototype)
{
mPrototype = prototype;
}
JSObject* getPrototype()
{
return mPrototype;
}
JSType* getType()
{
return mType;
}
JSString* getClass()
{
return mClass;
}
void setClass(JSString* s)
{
mClass = s;
}
virtual void printProperties(Formatter& f);
};
Formatter& operator<<(Formatter& f, JSObject& obj);
/**
* Private representation of a JavaScript array.
*/
class JSArray : public JSObject {
JSValues elements;
public:
JSArray() : elements(1) {}
JSArray(uint32 size) : elements(size) {}
JSArray(const JSValues &v) : elements(v) {}
uint32 length()
{
return elements.size();
}
JSValue& operator[](const JSValue& index)
{
// for now, we can only handle f64 index values.
uint32 n = (uint32)index.f64;
// obviously, a sparse representation might be better.
uint32 size = elements.size();
if (n >= size) expand(n, size);
return elements[n];
}
JSValue& operator[](uint32 n)
{
// obviously, a sparse representation might be better.
uint32 size = elements.size();
if (n >= size) expand(n, size);
return elements[n];
}
void resize(uint32 size)
{
elements.resize(size);
}
private:
void expand(uint32 n, uint32 size)
{
do {
size *= 2;
} while (n >= size);
elements.resize(size);
}
};
/**
* Private representation of a JS function. This simply
* holds a reference to the iCode module that is the
* compiled code of the function.
*/
class JSFunction : public JSObject {
static String FunctionString;
static JSObject *functionPrototypeObject;
ICodeModule* mICode;
protected:
JSFunction() : mICode(0) {}
typedef JavaScript::gc_traits_finalizable<JSFunction> traits;
typedef gc_allocator<JSFunction, traits> allocator;
public:
static void JSFunction::initFunctionObject(JSScope *g);
JSFunction(ICodeModule* iCode);
~JSFunction();
void* operator new(size_t) { return allocator::allocate(1); }
ICodeModule* getICode() { return mICode; }
virtual bool isNative() { return false; }
};
class JSNativeFunction : public JSFunction {
public:
typedef JSValue (*JSCode)(Context *cx, const JSValues& argv);
JSCode mCode;
JSNativeFunction(JSCode code) : mCode(code) {}
virtual bool isNative() { return true; }
};
class JSBinaryOperator : public JSFunction {
public:
typedef JSValue (*JSBinaryCode)(const JSValue& arg1, const JSValue& arg2);
JSBinaryCode mCode;
JSBinaryOperator(JSBinaryCode code) : mCode(code) {}
virtual bool isNative() { return true; }
};
#ifndef STLPORT
# if defined(XP_UNIX)
// bastring.cc defines a funky operator new that assumes a byte-allocator.
typedef string_char_traits<char16> JSCharTraits;
typedef gc_allocator<_Char> JSStringAllocator;
# else
typedef std::char_traits<char16> JSCharTraits;
typedef gc_allocator<char16> JSStringAllocator;
# endif
#else
typedef std::char_traits<char16> JSCharTraits;
typedef gc_allocator<char16> JSStringAllocator;
#endif
typedef std::basic_string<char16, JSCharTraits, JSStringAllocator> JSStringBase;
/**
* Garbage collectable UNICODE string.
*/
class JSString : public JSStringBase, public gc_base {
public:
JSString() {}
explicit JSString(const JSStringBase& str) : JSStringBase(str) {}
explicit JSString(const JSStringBase* str) : JSStringBase(*str) {}
explicit JSString(const String& str);
explicit JSString(const String* str);
explicit JSString(const char* str);
operator String();
void append(const char* str);
void append(const JSStringBase* str);
};
class JSException : public gc_base {
public:
JSException(char *mess) : value(JSValue(new JSString(mess))) { }
JSException(JSValue v) : value(v) { }
JSValue value;
};
inline Formatter& operator<<(Formatter& f, const JSString& str)
{
printString(f, str.begin(), str.end());
return f;
}
/**
* Provides a set of nested scopes.
*/
class JSScope : public JSObject {
protected:
JSScope* mParent;
JSProperties mTypes;
public:
JSScope(JSScope* parent = 0, JSObject* prototype = 0)
: mParent(parent)
{
if (prototype)
setPrototype(prototype);
}
JSScope* getParent()
{
return mParent;
}
bool isDefined(const String& name)
{
if (hasProperty(name))
return true;
if (mParent)
return mParent->isDefined(name);
return false;
}
const JSValue& getVariable(const String& name)
{
const JSValue& ret = getProperty(name);
if (ret.isUndefined() && mParent)
return mParent->getVariable(name);
return ret;
}
JSValue& setVariable(const String& name, const JSValue& value)
{
return (mProperties[name] = value);
}
JSValue& defineVariable(const String& name, JSType* type, const JSValue& value)
{
if (type != &Any_Type)
mTypes[name] = type;
return (mProperties[name] = value);
}
JSValue& defineVariable(const String& name, JSType* type)
{
if (type != &Any_Type)
mTypes[name] = type;
return (mProperties[name] = kUndefinedValue);
}
void setType(const String& name, JSType* type)
{
// only type variables that are defined in this scope.
JSProperties::iterator i = mProperties.find(name);
if (i != mProperties.end())
mTypes[name] = type;
else
if (mParent)
mParent->setType(name, type);
}
JSType* getType(const String& name)
{
JSType* result = &Any_Type;
// only consider types for variables defined in this scope.
JSProperties::const_iterator i = mProperties.find(name);
if (i != mProperties.end()) {
i = mTypes.find(name);
if (i != mTypes.end())
result = i->second.type;
} else {
// see if variable is defined in parent scope.
if (mParent)
result = mParent->getType(name);
}
return result;
}
JSValue& defineFunction(const String& name, ICodeModule* iCode)
{
JSValue value(new JSFunction(iCode));
return defineVariable(name, &Function_Type, value);
}
JSValue& defineNativeFunction(const String& name, JSNativeFunction::JSCode code)
{
JSValue value(new JSNativeFunction(code));
return defineVariable(name, &Function_Type, value);
}
};
class JSType : public JSObject {
protected:
String mName;
JSType *mBaseType;
public:
JSType(const String &name, JSType *baseType) : mName(name), mBaseType(baseType)
{
mType = &Type_Type;
}
enum { NoRelation = 0x7FFFFFFF };
const String& getName() const { return mName; }
int32 distance(const JSType *other) const;
};
inline void JSObject::init(JSObject* prototype) { mPrototype = prototype; mType = &Any_Type; mClass = new JSString(ObjectString); }
inline JSFunction::JSFunction(ICodeModule* iCode) : mICode(iCode), JSObject(functionPrototypeObject) { setClass(new JSString(FunctionString)); }
} /* namespace JSTypes */
} /* namespace JavaScript */
#endif /* jstypes_h */

Binary file not shown.

Binary file not shown.

View File

@@ -1 +0,0 @@
#define XP_MAC 1

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +0,0 @@
#define XP_MAC 1
#define DEBUG 1

View File

@@ -1,2 +0,0 @@
#define XP_MAC 1
#define XP_MAC_MPW 1

View File

@@ -1,3 +0,0 @@
#define XP_MAC 1
#define XP_MAC_MPW 1
#define DEBUG 1

Binary file not shown.

Binary file not shown.

View File

@@ -1,91 +0,0 @@
/*
MacOS_config.h
Configuration flags for Macintosh development systems.
<Revision History>
11/16/95 pcb Updated compilation flags to reflect latest 4.6 Makefile.
by Patrick C. Beard.
*/
/* Boehm, November 17, 1995 12:10 pm PST */
#ifdef __MWERKS__
// for CodeWarrior Pro with Metrowerks Standard Library (MSL).
// #define MSL_USE_PRECOMPILED_HEADERS 0
#include <ansi_prefix.mac.h>
#ifndef __STDC__
#define __STDC__ 0
#endif
#endif /* __MWERKS__ */
// these are defined again in gc_priv.h.
#undef TRUE
#undef FALSE
#define ALL_INTERIOR_POINTERS // follows interior pointers.
#define SILENT // no collection messages.
//#define DONT_ADD_BYTE_AT_END // no padding.
//#define SMALL_CONFIG // whether to use a smaller heap.
#define NO_SIGNALS // signals aren't real on the Macintosh.
#define USE_TEMPORARY_MEMORY // use Macintosh temporary memory.
//#define FIND_LEAK // use as a leak detector.
//#define LARGE_CONFIG // try a big heap, for fun.
// CFLAGS= -O -DNO_SIGNALS -DSILENT -DALL_INTERIOR_POINTERS
//
//LIBGC_CFLAGS= -O -DNO_SIGNALS -DSILENT \
// -DREDIRECT_MALLOC=GC_malloc_uncollectable \
// -DDONT_ADD_BYTE_AT_END -DALL_INTERIOR_POINTERS
// Flags for building libgc.a -- the last two are required.
//
// Setjmp_test may yield overly optimistic results when compiled
// without optimization.
// -DSILENT disables statistics printing, and improves performance.
// -DCHECKSUMS reports on erroneously clear dirty bits, and unexpectedly
// altered stubborn objects, at substantial performance cost.
// Use only for incremental collector debugging.
// -DFIND_LEAK causes the collector to assume that all inaccessible
// objects should have been explicitly deallocated, and reports exceptions.
// Finalization and the test program are not usable in this mode.
// -DSOLARIS_THREADS enables support for Solaris (thr_) threads.
// (Clients should also define SOLARIS_THREADS and then include
// gc.h before performing thr_ or GC_ operations.)
// This is broken on nonSPARC machines.
// -DALL_INTERIOR_POINTERS allows all pointers to the interior
// of objects to be recognized. (See gc_priv.h for consequences.)
// -DSMALL_CONFIG tries to tune the collector for small heap sizes,
// usually causing it to use less space in such situations.
// Incremental collection no longer works in this case.
// -DLARGE_CONFIG tunes the collector for unusually large heaps.
// Necessary for heaps larger than about 500 MB on most machines.
// Recommended for heaps larger than about 64 MB.
// -DDONT_ADD_BYTE_AT_END is meaningful only with
// -DALL_INTERIOR_POINTERS. Normally -DALL_INTERIOR_POINTERS
// causes all objects to be padded so that pointers just past the end of
// an object can be recognized. This can be expensive. (The padding
// is normally more than one byte due to alignment constraints.)
// -DDONT_ADD_BYTE_AT_END disables the padding.
// -DNO_SIGNALS does not disable signals during critical parts of
// the GC process. This is no less correct than many malloc
// implementations, and it sometimes has a significant performance
// impact. However, it is dangerous for many not-quite-ANSI C
// programs that call things like printf in asynchronous signal handlers.
// -DOPERATOR_NEW_ARRAY declares that the C++ compiler supports the
// new syntax "operator new[]" for allocating and deleting arrays.
// See gc_cpp.h for details. No effect on the C part of the collector.
// This is defined implicitly in a few environments.
// -DREDIRECT_MALLOC=X causes malloc, realloc, and free to be defined
// as aliases for X, GC_realloc, and GC_free, respectively.
// Calloc is redefined in terms of the new malloc. X should
// be either GC_malloc or GC_malloc_uncollectable.
// The former is occasionally useful for working around leaks in code
// you don't want to (or can't) look at. It may not work for
// existing code, but it often does. Neither works on all platforms,
// since some ports use malloc or calloc to obtain system memory.
// (Probably works for UNIX, and win32.)
// -DNO_DEBUG removes GC_dump and the debugging routines it calls.
// Reduces code size slightly at the expense of debuggability.

File diff suppressed because it is too large Load Diff

View File

@@ -1,153 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef numerics_h
#define numerics_h
#include "utilities.h"
#include <cmath>
/* Use platform-defined floating-point routines.
* On platforms with faulty floating-point code
* ifdef these out and replace by custom implementations. */
#ifndef STLPORT
# ifndef _WIN32
using std::abs;
using std::floor;
using std::ceil;
using std::fmod;
using std::sqrt;
using std::sin;
using std::cos;
using std::tan;
using std::asin;
using std::acos;
using std::atan;
# endif
#endif
namespace JavaScript {
//
// Double-precision constants
//
extern double positiveInfinity;
extern double negativeInfinity;
extern double nan;
//
// Portable double-precision floating point to string and back conversions
//
double ulp(double x);
int hi0bits(uint32 x);
class BigInt {
enum {maxLgGrossSize = 15}; // Maximum value of lg2(grossSize)
static uint32 *freeLists[maxLgGrossSize+1];
uint lgGrossSize; // lg2(grossSize)
public:
bool negative; // True if negative. Ignored by most BigInt routines!
private:
uint32 grossSize; // Number of words allocated for <words>
uint32 size; // Actual number of words. If the number is nonzero, the most significant word must be nonzero.
// If the number is zero, then size is also 0.
uint32 *words; // <size> words of the number, in little endian order
void allocate(uint lgGrossSize);
void recycle();
void initCopy(const BigInt &b);
void move(BigInt &b);
public:
BigInt(): words(0) {}
explicit BigInt(uint lgGrossSize) {allocate(lgGrossSize);}
BigInt(const BigInt &b) {initCopy(b);}
void operator=(const BigInt &b) {ASSERT(!words); initCopy(b);}
~BigInt() {if (words) recycle();}
void setLgGrossSize(uint lgGrossSize);
void init(uint32 i);
void init(double d, int32 &e, int32 &bits);
void mulAdd(uint m, uint a);
void operator*=(const BigInt &m);
void pow2Mul(int32 k);
void pow5Mul(int32 k);
bool isZero() const {ASSERT(words); return !size;}
int cmp(const BigInt &b) const;
void initDiff(const BigInt &m, const BigInt &n);
uint32 quoRem2(int32 k);
int32 quoRem(const BigInt &S);
uint32 divRem(uint32 divisor);
double b2d(int32 &e) const;
double ratio(const BigInt &denominator) const;
void s2b(const char *s, int32 nd0, int32 nd, uint32 y9);
uint32 nWords() const {return size;}
uint32 word(uint32 i) const {ASSERT(i < size); return words[i];}
};
// Modes for converting floating-point numbers to strings.
//
// Some of the modes can round-trip; this means that if the number is converted to
// a string using one of these mode and then converted back to a number, the result
// will be identical to the original number (except that, due to ECMA, -0 will get converted
// to +0). These round-trip modes return the minimum number of significand digits that
// permit the round trip.
//
// Some of the modes take an integer parameter <precision>.
//
// Keep this in sync with doubleToAsciiModes[].
enum DToStrMode {
dtosStandard, // Either fixed or exponential format; round-trip
dtosStandardExponential, // Always exponential format; round-trip
dtosFixed, // Round to <precision> digits after the decimal point; exponential if number is large
dtosExponential, // Always exponential format; <precision> significant digits
dtosPrecision // Either fixed or exponential format; <precision> significant digits
};
// Maximum number of characters (including trailing null) that a dtosStandard or dtosStandardExponential
// conversion can produce. This maximum is reached for a number like -1.2345678901234567e+123.
const int dtosStandardBufferSize = 25;
// Maximum number of characters (including trailing null) that one of the other conversions
// can produce. This maximum is reached for TO_FIXED, which can generate up to 21 digits before the decimal point.
#define dtosVariableBufferSize(precision) ((precision)+24 > dtosStandardBufferSize ? (precision)+24 : dtosStandardBufferSize)
// "-0.0000...(1073 zeros after decimal point)...0001\0" is the longest string that we could produce,
// which occurs when printing -5e-324 in binary. We could compute a better estimate of the size of
// the output string and malloc fewer bytes depending on d and base, but why bother?
const int dtobasesBufferSize = 1078;
double strToDouble(const char *str, const char *&numEnd);
double stringToDouble(const char16 *str, const char16 *strEnd, const char16 *&numEnd);
double stringToInteger(const char16 *str, const char16 *strEnd, const char16 *&numEnd, uint base);
char *doubleToStr(char *buffer, size_t bufferSize, double value, DToStrMode mode, int precision);
size_t doubleToBaseStr(char *buffer, double value, uint base);
void appendDouble(String &dst, double value, DToStrMode mode = dtosStandard, int precision = 0);
inline String &operator+=(String &s, double value) {appendDouble(s, value); return s;}
void printDouble(Formatter &f, double value, DToStrMode mode = dtosStandard, int precision = 0);
inline Formatter &operator<<(Formatter &f, double value) {printDouble(f, value); return f;}
}
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,93 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef systemtypes_h
#define systemtypes_h
#include <cstddef>
#ifdef _WIN32
// Turn off warnings about identifiers too long in browser information
#pragma warning(disable: 4786)
#endif
// Define int8, int16, int32, int64, uint8, uint16, uint32, uint64, and uint.
typedef unsigned int uint;
typedef unsigned char uchar;
typedef signed char int8;
typedef unsigned char uint8;
typedef short int16;
typedef unsigned short uint16;
#if !defined(XP_MAC) && !defined(_WIN32)
typedef int int32;
typedef unsigned int uint32;
#else
typedef long int32;
typedef unsigned long uint32;
#endif
#ifdef _WIN32
typedef __int64 int64;
typedef unsigned __int64 uint64;
#else
typedef long long int64;
typedef unsigned long long uint64;
#endif
// Define this if the machine natively supports 64-bit integers
#define NATIVE_INT64
// Define float32 and float64.
typedef double float64;
typedef float float32;
// A UTF-16 character
// Use wchar_t on platforms on which wchar_t has 16 bits; otherwise use int16.
// Note that in C++ wchar_t is a distinct type rather than a typedef for some integral type.
// Like char, a char16 can be either signed or unsigned at the implementation's discretion.
#ifdef __GNUC__
// GCC's wchar_t is 32 bits, so we can't use it.
typedef uint16 char16;
typedef uint16 uchar16;
#else
typedef wchar_t char16;
#ifndef _WIN32 // Microsoft VC6 bug: wchar_t should be a built-in type, not a typedef
typedef unsigned wchar_t uchar16;
#else
typedef wchar_t uchar16;
#endif
#endif
#ifdef _WIN32
#define IS_LITTLE_ENDIAN
#endif
#ifdef __i386__
#define IS_LITTLE_ENDIAN
#endif
// basicAlignment is the maximum alignment required by any native type. An object aligned to
// a multiple of basicAlignment can hold any native type. malloc should return a pointer whose
// lgBasicAlignment least significant bits are clear.
// Currently basicAlignment is set to 8 to allow doubles and int64s to have their natural alignment;
// may be customized for individual platforms.
const uint lgBasicAlignment = 3;
const uint basicAlignment = 1u<<lgBasicAlignment;
#endif /* systemtypes_h */

View File

@@ -1,28 +0,0 @@
class A {
static var x = 0;
static function f()
{
return A.x++;
}
}
class Point3D {
var x = 0, y = 0, z = 0;
function set(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
return this;
}
function setX(x) { this.x = x; }
function getX() { return this.x; }
function setY(y) { this.y = y; }
function getY() { return this.y; }
function setZ(z) { this.z = z; }
function getZ() { return this.z; }
}

View File

@@ -1,596 +0,0 @@
#!perl
use strict;
my $tab = " ";
my $init_tab = $tab;
my $enum_decs = "";
my $class_decs = "";
my @name_array;
my $opcode_maxlen = 0;
#
# fields are:
#
# * super: Class to inherit from, if super is Instruction_(1|2|3), the script
# will automatically append the correct template info based on |params|
# * super_has_print: Set to 1 if you want to inherit the print() and print_args()
# methods from the superclass, set to 0 (or just don't set)
# to generate print methods.
# * rem: Remark you want to show up after the enum def, and inside the class.
# * params: The parameter list expected by the constructor, you can specify a
# default value, using the syntax, [ ("Type = default") ].
#
# class names will be generated based on the opcode mnemonic. See the
# subroutine get_classname for the implementation. Basically underscores will
# be removes and the class name will be WordCapped, using the positions where the
# underscores were as word boundries. The only exception occurs when a word is
# two characters, in which case both characters will be capped,
# as in BRANCH_GT -> BranchGT.
#
#
# template definitions for compare, arithmetic, and conditional branch ops
#
my $binary_op =
{
super => "Instruction_3",
super_has_print => 1,
rem => "dest, source1, source2",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister") ]
};
my $math_op =
{
super => "Arithmetic",
super_has_print => 1,
rem => "dest, source1, source2",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister") ]
};
my $cbranch_op =
{
super => "GenericBranch",
super_has_print => 1,
rem => "target label, condition",
params => [ ("Label*", "TypedRegister") ]
};
my $unary_op =
{
super => "Instruction_2",
rem => "dest, source",
params => [ ("TypedRegister", "TypedRegister") ]
};
#
# op defititions
#
my %ops;
$ops{"NOP"} =
{
super => "Instruction",
rem => "do nothing and like it",
};
$ops{"DEBUGGER"} =
{
super => "Instruction",
rem => "drop to the debugger",
};
$ops{"GENERIC_BINARY_OP"} =
{
super => "Instruction_4",
rem => "dest, op, source1, source2",
params => [ ("TypedRegister", "BinaryOperator::BinaryOp", "TypedRegister", "TypedRegister") ]
};
$ops{"MOVE"} =
{
super => "Instruction_2",
rem => "dest, source",
params => [ ("TypedRegister", "TypedRegister") ]
};
$ops{"LOAD_IMMEDIATE"} =
{
super => "Instruction_2",
rem => "dest, immediate value (double)",
params => [ ("TypedRegister", "double" ) ]
};
$ops{"LOAD_BOOLEAN"} =
{
super => "Instruction_2",
rem => "dest, immediate value (boolean)",
params => [ ("TypedRegister", "bool" ) ]
};
$ops{"LOAD_STRING"} =
{
super => "Instruction_2",
rem => "dest, immediate value (string)",
params => [ ("TypedRegister", "JSString*" ) ]
};
$ops{"LOAD_NAME"} =
{
super => "Instruction_2",
rem => "dest, name",
params => [ ("TypedRegister", "const StringAtom*" ) ]
};
$ops{"SUPER"} =
{
super => "Instruction_1",
rem => "dest",
params => [ ("TypedRegister" ) ]
};
$ops{"SAVE_NAME"} =
{
super => "Instruction_2",
rem => "name, source",
params => [ ("const StringAtom*", "TypedRegister") ]
};
$ops{"NEW_OBJECT"} =
{
super => "Instruction_2",
rem => "dest, constructor",
params => [ ("TypedRegister", "TypedRegister") ]
};
$ops{"NEW_CLASS"} =
{
super => "Instruction_2",
rem => "dest, class",
params => [ ("TypedRegister", "JSClass*") ]
};
$ops{"NEW_FUNCTION"} =
{
super => "Instruction_2",
rem => "dest, ICodeModule",
params => [ ("TypedRegister", "ICodeModule*") ]
};
$ops{"NEW_ARRAY"} =
{
super => "Instruction_1",
rem => "dest",
params => [ ("TypedRegister") ]
};
$ops{"DELETE_PROP"} =
{
super => "Instruction_3",
rem => "dest, object, prop name",
params => [ ("TypedRegister", "TypedRegister", "const StringAtom*") ]
};
$ops{"GET_PROP"} =
{
super => "Instruction_3",
rem => "dest, object, prop name",
params => [ ("TypedRegister", "TypedRegister", "const StringAtom*") ]
};
$ops{"SET_PROP"} =
{
super => "Instruction_3",
rem => "object, name, source",
params => [ ("TypedRegister", "const StringAtom*", "TypedRegister") ]
};
$ops{"GET_SLOT"} =
{
super => "Instruction_3",
rem => "dest, object, slot number",
params => [ ("TypedRegister", "TypedRegister", "uint32") ]
};
$ops{"SET_SLOT"} =
{
super => "Instruction_3",
rem => "object, slot number, source",
params => [ ("TypedRegister", "uint32", "TypedRegister") ]
};
$ops{"GET_STATIC"} =
{
super => "Instruction_3",
rem => "dest, class, index",
params => [ ("TypedRegister", "JSClass*", "uint32") ]
};
$ops{"SET_STATIC"} =
{
super => "Instruction_3",
rem => "class, index, source",
params => [ ("JSClass*", "uint32", "TypedRegister") ]
};
$ops{"STATIC_XCR"} =
{
super => "Instruction_4",
rem => "dest, class, index, value",
params => [ ("TypedRegister", "JSClass*", "uint32", "double") ]
};
$ops{"SLOT_XCR"} =
{
super => "Instruction_4",
rem => "dest, source, slot number, value",
params => [ ("TypedRegister", "TypedRegister", "uint32", "double") ]
};
$ops{"PROP_XCR"} =
{
super => "Instruction_4",
rem => "dest, source, name, value",
params => [ ("TypedRegister", "TypedRegister", "const StringAtom*", "double") ]
};
$ops{"ELEM_XCR"} =
{
super => "Instruction_4",
rem => "dest, base, index, value",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister", "double") ]
};
$ops{"NAME_XCR"} =
{
super => "Instruction_3",
rem => "dest, name, value",
params => [ ("TypedRegister", "const StringAtom*", "double") ]
};
$ops{"VAR_XCR"} =
{
super => "Instruction_3",
rem => "dest, source, value",
params => [ ("TypedRegister", "TypedRegister", "double") ]
};
$ops{"GET_ELEMENT"} =
{
super => "Instruction_3",
rem => "dest, base, index",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister") ]
};
$ops{"SET_ELEMENT"} =
{
super => "Instruction_3",
rem => "base, index, value",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister") ]
};
$ops{"ADD"} = $math_op;
$ops{"SUBTRACT"} = $math_op;
$ops{"MULTIPLY"} = $math_op;
$ops{"DIVIDE"} = $math_op;
$ops{"REMAINDER"} = $math_op;
$ops{"SHIFTLEFT"} = $math_op;
$ops{"SHIFTRIGHT"} = $math_op;
$ops{"USHIFTRIGHT"}= $math_op;
$ops{"AND"} = $math_op;
$ops{"OR"} = $math_op;
$ops{"XOR"} = $math_op;
$ops{"COMPARE_LT"} = $binary_op;
$ops{"COMPARE_LE"} = $binary_op;
$ops{"COMPARE_EQ"} = $binary_op;
$ops{"COMPARE_NE"} = $binary_op;
$ops{"COMPARE_GE"} = $binary_op;
$ops{"COMPARE_GT"} = $binary_op;
$ops{"COMPARE_IN"} = $binary_op;
$ops{"STRICT_EQ"} = $binary_op;
$ops{"STRICT_NE"} = $binary_op;
$ops{"INSTANCEOF"} = $binary_op;
$ops{"BITNOT"} = $unary_op;
$ops{"NOT"} = $unary_op;
$ops{"TEST"} = $unary_op;
$ops{"NEGATE"} = $unary_op;
$ops{"POSATE"} = $unary_op;
$ops{"BRANCH"} =
{
super => "GenericBranch",
rem => "target label",
params => [ ("Label*") ]
};
$ops{"BRANCH_TRUE"} = $cbranch_op;
$ops{"BRANCH_FALSE"} = $cbranch_op;
$ops{"RETURN"} =
{
super => "Instruction_1",
rem => "return value",
params => [ ("TypedRegister") ]
};
$ops{"RETURN_VOID"} =
{
super => "Instruction",
rem => "Return without a value"
};
$ops{"CALL"} =
{
super => "Instruction_4",
rem => "result, base, target, args",
params => [ ("TypedRegister", "TypedRegister", "TypedRegister", "RegisterList") ]
};
$ops{"GET_METHOD"} =
{
super => "Instruction_3",
rem => "result, target base, index",
params => [ ("TypedRegister", "TypedRegister", "uint32") ]
};
$ops{"THROW"} =
{
super => "Instruction_1",
rem => "exception value",
params => [ ("TypedRegister") ]
};
$ops{"TRYIN"} =
{
super => "Instruction_2",
rem => "catch target, finally target",
params => [ ("Label*", "Label*") ]
};
$ops{"TRYOUT"} =
{
super => "Instruction",
rem => "mmm, there is no try, only do",
};
$ops{"JSR"} =
{
super => "GenericBranch",
rem => "target",
params => [ ("Label*") ]
};
$ops{"RTS"} =
{
super => "Instruction",
rem => "Return to sender",
};
$ops{"WITHIN"} =
{
super => "Instruction_1",
rem => "within this object",
params => [ ("TypedRegister") ]
};
$ops{"WITHOUT"} =
{
super => "Instruction",
rem => "without this object",
};
$ops{"CAST"} =
{
super => "Instruction_3",
rem => "dest, rvalue, toType",
params => [ ("TypedRegister", "TypedRegister", "JSType*") ]
};
#
# nasty perl code, you probably don't need to muck around below this line
#
my $k;
if (!$ARGV[0]) {
# no args, collect all opcodes
for $k (sort(keys(%ops))) {
&collect($k);
}
} else {
# collect defs for only the opcodes specified on the command line
while ($k = pop(@ARGV)) {
&collect (uc($k));
}
}
&spew;
sub collect {
# grab the info from the $k record in $ops, and append it to
# $enum_decs, @name_array, and $class_decs.
my ($k) = @_;
if (length($k) > $opcode_maxlen) {
$opcode_maxlen = length($k);
}
my $c = $ops{$k};
if (!$c) {
die ("Unknown opcode, $k\n");
}
my $opname = $k;
my $cname = get_classname ($k);
my $super = $c->{"super"};
my $constructor = $super;
my @params;
if ($c->{"params"}) {
@params = @{$c->{"params"}};
} else {
@params = ();
}
my $rem = $c->{"rem"};
my ($dec_list, $call_list, $template_list) =
&get_paramlists(@params);
my @types = split (", ", $template_list);
my $constr_params = $call_list ? $opname . ", " . $call_list : $opname;
if ($super =~ /Instruction_\d/) {
$super .= "<" . $template_list . ">";
}
push (@name_array, $opname);
$enum_decs .= "$init_tab$tab$opname, /* $rem */\n";
if ($super) {
$class_decs .= ($init_tab . "class $cname : public $super {\n" .
$init_tab . "public:\n" .
$init_tab . $tab . "/* $rem */\n" .
$init_tab . $tab . "$cname ($dec_list) :\n" .
$init_tab . $tab . $tab . "$super\n" .
"$init_tab$tab$tab($constr_params) " .
"{};\n");
if (!$c->{"super_has_print"}) {
$class_decs .= ($init_tab . $tab .
"virtual Formatter& print(Formatter& f) {\n" .
$init_tab . $tab . $tab . "f << opcodeNames[$opname]" .
&get_print_body(@types) . ";\n" .
$init_tab . $tab . $tab . "return f;\n" .
$init_tab . $tab . "}\n");
my $printops_body = &get_printops_body(@types);
my $printops_decl = "virtual Formatter& printOperands(Formatter& f, ";
$printops_decl .= ($dec_list =~ /RegisterList/) ?
"const JSValues& registers" :
"const JSValues& /*registers*/";
$printops_decl .= ") {\n";
$class_decs .= ($init_tab . $tab .
$printops_decl .
$printops_body .
$init_tab . $tab . $tab . "return f;\n" .
$init_tab . $tab . "}\n");
} else {
$class_decs .= $init_tab . $tab .
"/* print() and printOperands() inherited from $super */\n";
}
$class_decs .= $init_tab . "};\n\n";
}
}
sub spew {
# print the info in $enum_decs, @name_aray, and $class_decs to stdout.
my $opname;
print "// THIS FILE IS MACHINE GENERATED! DO NOT EDIT BY HAND!\n\n";
print "#if !defined(OPCODE_NAMES)\n\n";
print $tab . "enum {\n$enum_decs$tab};\n\n";
print $class_decs;
print "#else\n\n";
print $tab . "char *opcodeNames[] = {\n";
for $opname (@name_array) {
print "$tab$tab\"$opname";
for (0 .. $opcode_maxlen - length($opname) - 1) {
print " ";
}
print "\",\n"
}
print "$tab};\n\n";
print "#endif\n\n"
}
sub get_classname {
# munge an OPCODE_MNEMONIC into a ClassName
my ($enum_name) = @_;
my @words = split ("_", $enum_name);
my $cname = "";
my $i = 0;
my $word;
for $word (@words) {
if ((length($word) == 2) && ($i != 0)) {
$cname .= uc($word);
} else {
$cname .= uc(substr($word, 0, 1)) . lc(substr($word, 1));
}
$i++;
}
return $cname;
}
sub get_paramlists {
# parse the params entry (passed into @types) into various parameter lists
# used in the class declaration
my @types = @_;
my @dec;
my @call;
my @tostr;
my @template;
my $op = 1;
my $type;
for $type (@types) {
my $pfx;
my $deref;
my $member;
my $default;
($type, $default) = split (" = ", $type);
if ($default ne "") {
$default = " = " . $default;
}
$pfx = $deref = "";
$member = "mOp$op";
push (@dec, "$type aOp$op" . "$default");
push (@call, "aOp$op");
push (@template, $type);
$op++;
}
return (join (", ", @dec), join (", ", @call), join (", ", @template));
}
sub get_print_body {
# generate the body of the print() function
my (@types) = @_;
my $type;
my @oplist;
my $op = 1;
my $in = $init_tab . $tab . $tab;
for $type (@types) {
if ($type eq "TypedRegister") {
push (@oplist, "mOp$op" );
# push (@oplist, "\"R\" << ((mOp$op.first == NotARegister) ? -1 : mOp$op.first)");
} elsif ($type eq "Label*") {
push (@oplist, "\"Offset \" << ((mOp$op) ? mOp$op->mOffset : NotAnOffset)")
} elsif ($type =~ /String/) {
push (@oplist, "\"'\" << *mOp$op << \"'\"");
} elsif ($type =~ /JSType\*/) {
push (@oplist, "\"'\" << mOp$op->getName() << \"'\"");
} elsif ($type =~ /bool/) {
push (@oplist, "\"'\" << ((mOp$op) ? \"true\" : \"false\") << \"'\"");
} elsif ($type =~ /ICodeModule/) {
push (@oplist, "\"ICodeModule\"");
} elsif ($type =~ /JSClass\*/) {
push (@oplist, "mOp$op->getName()");
} else {
push (@oplist, "mOp$op");
}
$op++;
}
my $rv = join (" << \", \" << ", @oplist);
if ($rv ne "") {
$rv = " << \"\\t\" << " . $rv;
}
return $rv;
}
sub get_printops_body {
# generate the body of the printOperands() function
my (@types) = @_;
my $type;
my @oplist;
my $op = 1;
my $in = $init_tab . $tab . $tab;
for $type (@types) {
if ($type eq "TypedRegister") {
push (@oplist, "mOp$op.first");
# push (@oplist, "\"R\" << mOp$op.first << '=' << registers[mOp$op.first]");
} elsif ($type eq "RegisterList") {
push (@oplist, "ArgList(mOp$op, registers)");
}
$op++;
}
my $rv = join (" << \", \" << ", @oplist);
if ($rv ne "") {
$rv = $init_tab . $tab . $tab . "f << " . $rv . ";\n";
}
return $rv;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,178 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#include "utilities.h"
#include "vmtypes.h"
namespace JavaScript {
namespace VM {
using namespace JSTypes;
#define OPCODE_NAMES
#include "icode.h"
Formatter& operator<< (Formatter& f, Instruction& i)
{
return i.print(f);
}
Formatter& operator<< (Formatter& f, RegisterList& rl)
{
TypedRegister* e = rl.end();
f << "(";
for (RegisterList::iterator r = rl.begin(); r != e; r++) {
f << "R" << r->first;
if ((r + 1) != e)
f << ", ";
}
f << ")";
return f;
}
Formatter& operator<< (Formatter& f, const ArgList& al)
{
const RegisterList& rl = al.mList;
const JSValues& registers = al.mRegisters;
f << "(";
RegisterList::const_iterator i = rl.begin(), e = rl.end();
if (i != e) {
TypedRegister r = *i++;
f << "R" << r.first << '=' << registers[r.first];
while (i != e) {
r = *i++;
f << ", R" << r.first << '=' << registers[r.first];
}
}
f << ")";
return f;
}
Formatter& operator<< (Formatter& f, TypedRegister& r)
{
if (r.first == NotARegister)
f << "<NaR>";
else
f << "R" << r.first;
return f;
}
Formatter& operator<< (Formatter &f, InstructionStream &is)
{
for (InstructionIterator i = is.begin();
i != is.end(); i++) {
/*
bool isLabel = false;
for (LabelList::iterator k = labels.begin();
k != labels.end(); k++)
if ((ptrdiff_t)(*k)->mOffset == (i - is.begin())) {
f << "#" << (uint32)(i - is.begin()) << "\t";
isLabel = true;
break;
}
if (!isLabel)
f << "\t";
f << **i << "\n";
*/
printFormat(stdOut, "%04u", (uint32)(i - is.begin()));
f << ": " << **i << "\n";
}
return f;
}
BinaryOperator::BinaryOp BinaryOperator::mapICodeOp(ICodeOp op) {
// a table later... or maybe we need a grand opcode re-unification
switch (op) {
case ADD : return Add;
case SUBTRACT : return Subtract;
case MULTIPLY : return Multiply;
case DIVIDE : return Divide;
case REMAINDER : return Remainder;
case SHIFTLEFT : return LeftShift;
case SHIFTRIGHT : return RightShift;
case USHIFTRIGHT: return LogicalRightShift;
case AND : return BitwiseAnd;
case OR : return BitwiseOr;
case XOR : return BitwiseXor;
case COMPARE_LT : return Less;
case COMPARE_LE : return LessOrEqual;
case COMPARE_EQ : return Equal;
case STRICT_EQ : return Identical;
default :
NOT_REACHED("Unsupported binary op");
return (BinaryOp)-1;
}
}
Formatter& operator<< (Formatter &f, BinaryOperator::BinaryOp &b)
{
switch (b) {
case BinaryOperator::Add: return f << "Add";
case BinaryOperator::Subtract: return f << "Subtract";
case BinaryOperator::Multiply: return f << "Multiply";
case BinaryOperator::Divide: return f << "Divide";
case BinaryOperator::Remainder: return f << "Remainder";
case BinaryOperator::LeftShift: return f << "LeftShift";
case BinaryOperator::RightShift: return f << "RightShift";
case BinaryOperator::LogicalRightShift: return f << "LogicalRightShift";
case BinaryOperator::BitwiseAnd: return f << "BitwiseAnd";
case BinaryOperator::BitwiseOr: return f << "BitwiseOr";
case BinaryOperator::BitwiseXor: return f << "BitwiseXor";
case BinaryOperator::Less: return f << "Less";
case BinaryOperator::LessOrEqual: return f << "LessOrEqual";
case BinaryOperator::Equal: return f << "Equal";
case BinaryOperator::Identical: return f << "Identical";
default :
NOT_REACHED("inner peace, either");
return f;
}
}
} /* namespace VM */
} /* namespace JavaScript */

View File

@@ -1,304 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef vmtypes_h
#define vmtypes_h
#include "numerics.h" /* needed for formatter << double */
#include "jstypes.h"
#include "jsclasses.h"
#include "world.h"
#include <vector>
/* forward declare classes from JavaScript::ICG */
namespace JavaScript {
namespace ICG {
class ICodeModule;
} /* namespace ICG */
} /* namespace JavaScript */
namespace JavaScript {
namespace VM {
using namespace JSTypes;
using namespace JSClasses;
/********************************************************************/
typedef uint32 ICodeOp;
extern char *opcodeNames[];
/* super-class for all instructions */
class Instruction
{
public:
Instruction(ICodeOp aOpcode) : mOpcode(aOpcode) {}
virtual Formatter& print(Formatter& f) = 0;
virtual Formatter& printOperands(Formatter& f, const JSValues& /*registers*/) = 0;
ICodeOp op() { return mOpcode; }
virtual int32 count() { return 0; }
protected:
ICodeOp mOpcode;
};
/********************************************************************/
enum { NotARegister = 0xFFFFFFFF };
enum { NotALabel = 0xFFFFFFFF };
enum { NotAnOffset = 0xFFFFFFFF };
enum { NotABanana = 0xFFFFFFFF };
/********************************************************************/
typedef uint32 Register;
typedef std::pair<Register, JSType*> TypedRegister;
typedef std::vector<TypedRegister> RegisterList;
typedef std::vector<Instruction *> InstructionStream;
typedef InstructionStream::iterator InstructionIterator;
typedef std::map<String, TypedRegister, std::less<String> > VariableMap;
/**
* Helper to print Call operands.
*/
struct ArgList {
const RegisterList& mList;
const JSValues& mRegisters;
ArgList(const RegisterList& rl, const JSValues& registers)
: mList(rl), mRegisters(registers) {}
};
/********************************************************************/
Formatter& operator<< (Formatter& f, Instruction& i);
Formatter& operator<< (Formatter& f, RegisterList& rl);
Formatter& operator<< (Formatter& f, const ArgList& al);
Formatter& operator<< (Formatter& f, InstructionStream& is);
Formatter& operator<< (Formatter& f, TypedRegister& r);
/********************************************************************/
class Label {
public:
Label(InstructionStream* aBase) :
mBase(aBase), mOffset(NotALabel) {}
InstructionStream *mBase;
uint32 mOffset;
};
typedef std::vector<Label *> LabelList;
typedef LabelList::iterator LabelIterator;
/********************************************************************/
/* 1, 2 and 3 operand opcode templates */
template <typename Operand1>
class Instruction_1 : public Instruction {
public:
Instruction_1(ICodeOp aOpcode, Operand1 aOp1) :
Instruction(aOpcode), mOp1(aOp1) { }
Operand1& o1() { return mOp1; }
virtual int32 count() { return 1; }
protected:
Operand1 mOp1;
};
template <typename Operand1, typename Operand2>
class Instruction_2 : public Instruction {
public:
Instruction_2(ICodeOp aOpcode, Operand1 aOp1, Operand2 aOp2) :
Instruction(aOpcode), mOp1(aOp1), mOp2(aOp2) {}
Operand1& o1() { return mOp1; }
Operand2& o2() { return mOp2; }
virtual int32 count() { return 2; }
protected:
Operand1 mOp1;
Operand2 mOp2;
};
template <typename Operand1, typename Operand2, typename Operand3>
class Instruction_3 : public Instruction {
public:
Instruction_3(ICodeOp aOpcode, Operand1 aOp1, Operand2 aOp2,
Operand3 aOp3) :
Instruction(aOpcode), mOp1(aOp1), mOp2(aOp2), mOp3(aOp3) { }
Operand1& o1() { return mOp1; }
Operand2& o2() { return mOp2; }
Operand3& o3() { return mOp3; }
virtual int32 count() { return 3; }
protected:
Operand1 mOp1;
Operand2 mOp2;
Operand3 mOp3;
};
template <typename Operand1, typename Operand2, typename Operand3, typename Operand4>
class Instruction_4 : public Instruction {
public:
Instruction_4(ICodeOp aOpcode, Operand1 aOp1, Operand2 aOp2,
Operand3 aOp3, Operand4 aOp4) :
Instruction(aOpcode), mOp1(aOp1), mOp2(aOp2), mOp3(aOp3), mOp4(aOp4) { }
Operand1& o1() { return mOp1; }
Operand2& o2() { return mOp2; }
Operand3& o3() { return mOp3; }
Operand4& o4() { return mOp4; }
virtual int32 count() { return 4; }
protected:
Operand1 mOp1;
Operand2 mOp2;
Operand3 mOp3;
Operand4 mOp4;
};
/********************************************************************/
/* Instruction groups */
class Arithmetic : public Instruction_3<TypedRegister, TypedRegister, TypedRegister> {
public:
Arithmetic (ICodeOp aOpcode, TypedRegister aDest, TypedRegister aSrc1,
TypedRegister aSrc2) :
Instruction_3<TypedRegister, TypedRegister, TypedRegister>(aOpcode, aDest, aSrc1, aSrc2) {}
virtual Formatter& print(Formatter& f)
{
f << opcodeNames[mOpcode] << "\tR" << mOp1.first << ", R" << mOp2.first << ", R" << mOp3.first;
return f;
}
virtual Formatter& printOperands(Formatter& f, const JSValues& registers)
{
f << "R" << mOp1.first << '=' << registers[mOp1.first] << ", " << "R" << mOp2.first << '=' << registers[mOp2.first] << ", " << "R" << mOp3.first << '=' << registers[mOp3.first];
return f;
}
};
class Unary : public Instruction_2<TypedRegister, TypedRegister> {
public:
Unary(ICodeOp aOpcode, TypedRegister aDest, TypedRegister aSrc) :
Instruction_2<TypedRegister, TypedRegister>(aOpcode, aDest, aSrc) {}
virtual Formatter& print (Formatter& f) {
f << opcodeNames[mOpcode] << "\tR" << mOp1.first << ", R" << mOp2.first;
return f;
}
virtual Formatter& printOperands(Formatter& f, const JSValues& registers)
{
f << "R" << mOp1.first << '=' << registers[mOp1.first] << ", " << "R" << mOp2.first << '=' << registers[mOp2.first];
return f;
}
};
class GenericBranch : public Instruction_2<Label*, TypedRegister> {
public:
GenericBranch (ICodeOp aOpcode, Label* aLabel,
TypedRegister aR = TypedRegister(NotARegister, &Any_Type) ) :
Instruction_2<Label*, TypedRegister>(aOpcode, aLabel, aR) {}
virtual Formatter& print (Formatter& f) {
f << opcodeNames[mOpcode] << "\tOffset " << mOp1->mOffset;
if (mOp2.first == NotARegister) {
f << ", R~";
} else {
f << ", R" << mOp2.first;
}
return f;
}
virtual Formatter& printOperands(Formatter& f, const JSValues& registers)
{
if (mOp2.first != NotARegister)
f << "R" << mOp2.first << '=' << registers[mOp2.first];
return f;
}
void resolveTo (uint32 aOffset) { mOp1->mOffset = aOffset; }
uint32 getOffset() { return mOp1->mOffset; }
void setTarget(Label *label) { mOp1 = label; }
};
/********************************************************************/
class BinaryOperator {
public:
// Wah, here's a third enumeration of opcodes - ExprNode, ICodeOp and now here, this can't be right??
typedef enum {
BinaryOperatorFirst,
Add = BinaryOperatorFirst, Subtract, Multiply, Divide,
Remainder, LeftShift, RightShift, LogicalRightShift,
BitwiseOr, BitwiseXor, BitwiseAnd, Less, LessOrEqual,
Equal, Identical, BinaryOperatorCount
} BinaryOp;
BinaryOperator(const JSType *t1, const JSType *t2, JSBinaryOperator *function) :
t1(t1), t2(t2), function(function) { }
BinaryOperator(const JSType *t1, const JSType *t2, JSFunction *function) :
t1(t1), t2(t2), function(function) { }
static BinaryOp mapICodeOp(ICodeOp op);
const JSType *t1;
const JSType *t2;
JSFunction *function;
};
typedef std::vector<BinaryOperator *> BinaryOperatorList;
Formatter& operator<<(Formatter &f, BinaryOperator::BinaryOp &b);
/********************************************************************/
#include "icode.h"
} /* namespace VM */
} /* namespace JavaScript */
#endif /* vmtypes_h */

View File

@@ -1,5 +0,0 @@
cd ..\..\..\..
cvs co mozilla/gc/boehm
cd mozilla\gc\boehm
nmake -f NT_MAKEFILE gc.lib
cd ..\..\js\js2\winbuild

View File

@@ -1,234 +0,0 @@
# Microsoft Developer Studio Project File - Name="js2" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=js2 - Win32 Partial Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "js2.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "js2.mak" CFG="js2 - Win32 Partial Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "js2 - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "js2 - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE "js2 - Win32 Partial Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "js2 - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib gc.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\gc\boehm"
# SUBTRACT LINK32 /pdb:none
!ELSEIF "$(CFG)" == "js2 - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "DEBUG" /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG" /d "DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# SUBTRACT BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib gc.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\gc\boehm"
!ELSEIF "$(CFG)" == "js2 - Win32 Partial Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "js2___Win32_Partial_Debug"
# PROP BASE Intermediate_Dir "js2___Win32_Partial_Debug"
# PROP BASE Ignore_Export_Lib 0
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "js2___Win32_Partial_Debug"
# PROP Intermediate_Dir "js2___Win32_Partial_Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "DEBUG" /FR /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG" /d "DEBUG"
BSC32=bscmake.exe
# SUBTRACT BASE BSC32 /nologo
# SUBTRACT BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib gc.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\gc\boehm"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib gc.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\gc\boehm"
!ENDIF
# Begin Target
# Name "js2 - Win32 Release"
# Name "js2 - Win32 Debug"
# Name "js2 - Win32 Partial Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\debugger.cpp
# End Source File
# Begin Source File
SOURCE=..\hash.cpp
# End Source File
# Begin Source File
SOURCE=..\icodegenerator.cpp
# End Source File
# Begin Source File
SOURCE=..\interpreter.cpp
# End Source File
# Begin Source File
SOURCE=..\js2.cpp
# End Source File
# Begin Source File
SOURCE=..\jsmath.cpp
# End Source File
# Begin Source File
SOURCE=..\jstypes.cpp
# End Source File
# Begin Source File
SOURCE=..\numerics.cpp
# End Source File
# Begin Source File
SOURCE=..\parser.cpp
# End Source File
# Begin Source File
SOURCE=..\utilities.cpp
# End Source File
# Begin Source File
SOURCE=..\vmtypes.cpp
# End Source File
# Begin Source File
SOURCE=..\world.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\cpucfg.h
# End Source File
# Begin Source File
SOURCE=..\gc_allocator.h
# End Source File
# Begin Source File
SOURCE=..\hash.h
# End Source File
# Begin Source File
SOURCE=..\icode.h
# End Source File
# Begin Source File
SOURCE=..\icodegenerator.h
# End Source File
# Begin Source File
SOURCE=..\interpreter.h
# End Source File
# Begin Source File
SOURCE=..\jsclasses.h
# End Source File
# Begin Source File
SOURCE=..\jsmath.h
# End Source File
# Begin Source File
SOURCE=..\jstypes.h
# End Source File
# Begin Source File
SOURCE=..\numerics.h
# End Source File
# Begin Source File
SOURCE=..\parser.h
# End Source File
# Begin Source File
SOURCE=..\systemtypes.h
# End Source File
# Begin Source File
SOURCE=..\utilities.h
# End Source File
# Begin Source File
SOURCE=..\vmtypes.h
# End Source File
# Begin Source File
SOURCE=..\world.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project

View File

@@ -1,29 +0,0 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "js2"=.\js2.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

View File

@@ -1,39 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#include "world.h"
namespace JS = JavaScript;
// Return an existing StringAtom corresponding to the String s if there is
// one; if not, create a new StringAtom with String s and return that StringAtom.
JS::StringAtom &JS::StringAtomTable::operator[](const String &s)
{
HT::Reference r(ht, s);
if (r)
return *r;
else
return ht.insert(r, s);
}
JS::World::World()
{
Token::initKeywords(*this);
}

View File

@@ -1,73 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef world_h
#define world_h
#include "utilities.h"
#include "hash.h"
#include "parser.h"
namespace JavaScript {
//
// String atom management
//
// A StringAtom is a String for which the following guarantee applies:
// StringAtoms A and B have the same character sequences if and only if A and B are the
// same StringAtom.
class StringAtom: public String {
public:
Token::Kind tokenKind; // Token::Kind if this is a keyword; Token::identifier if not
explicit StringAtom(const String &s): String(s), tokenKind(Token::identifier) {}
private:
StringAtom(const StringAtom&); // No copy constructor
void operator=(const StringAtom&); // No assignment operator
};
inline bool operator==(const StringAtom &s1, const StringAtom &s2) {return &s1 == &s2;}
inline bool operator!=(const StringAtom &s1, const StringAtom &s2) {return &s1 != &s2;}
class StringAtomTable {
typedef HashTable<StringAtom, const String&> HT;
HT ht;
public:
StringAtom &operator[](const String &s);
StringAtom &operator[](const char *s)
{
return operator[](widenCString(s));
}
};
class World {
public:
StringAtomTable identifiers;
World();
};
}
#endif

View File

@@ -1,44 +0,0 @@
STLPORT = /usr/local/include/stlport
CC = gcc
CFLAGS = -g -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith \
-Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes \
-Wno-non-virtual-dtor -I$(STLPORT)
objs = hash.o \
icodegenerator.o \
interpreter.o \
js2.o \
jsmath.o \
jstypes.o \
numerics.o \
parser.o \
utilities.o \
world.o \
vmtypes.o \
debugger.o
gc_path = ../../gc/boehm/
libs = gc.a -lstdc++ -lm
%.o : %.cpp
$(CC) -c $(CFLAGS) $< -o $@
js2: $(objs) gc.a
$(CC) -o $@ -ggdb $(objs) $(libs)
gc.a:
(cd $(gc_path) ; ln -f -s Makefile.unix Makefile ; make gc.a)
ln -f -s $(gc_path)gc.a ./gc.a
gctest: gc_allocator.o
$(CC) -o $@ -ggdb $^ $(libs)
clean:
rm -f $(objs)
depend:
gcc -MM *.cpp > dependencies
include dependencies

View File

@@ -1,191 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef cpucfg_h
#define cpucfg_h
#define JS_HAVE_LONG_LONG
#ifdef XP_MAC
#undef IS_LITTLE_ENDIAN
#define IS_BIG_ENDIAN 1
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 4L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 32L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 5L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 4L
#define JS_ALIGN_OF_LONG 4L
#define JS_ALIGN_OF_INT64 2L
#define JS_ALIGN_OF_FLOAT 4L
#define JS_ALIGN_OF_DOUBLE 4L
#define JS_ALIGN_OF_POINTER 4L
#define JS_ALIGN_OF_WORD 4L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#elif defined(XP_PC)
#ifdef _WIN32
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 4L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 32L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 5L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 4L
#define JS_ALIGN_OF_LONG 4L
#define JS_ALIGN_OF_INT64 8L
#define JS_ALIGN_OF_FLOAT 4L
#define JS_ALIGN_OF_DOUBLE 4L
#define JS_ALIGN_OF_POINTER 4L
#define JS_ALIGN_OF_WORD 4L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#endif /* _WIN32 */
#if defined(_WINDOWS) && !defined(_WIN32) /* WIN16 */
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
#define JS_BYTES_PER_BYTE 1L
#define JS_BYTES_PER_SHORT 2L
#define JS_BYTES_PER_INT 2L
#define JS_BYTES_PER_INT64 8L
#define JS_BYTES_PER_LONG 4L
#define JS_BYTES_PER_FLOAT 4L
#define JS_BYTES_PER_DOUBLE 8L
#define JS_BYTES_PER_WORD 4L
#define JS_BYTES_PER_DWORD 8L
#define JS_BITS_PER_BYTE 8L
#define JS_BITS_PER_SHORT 16L
#define JS_BITS_PER_INT 16L
#define JS_BITS_PER_INT64 64L
#define JS_BITS_PER_LONG 32L
#define JS_BITS_PER_FLOAT 32L
#define JS_BITS_PER_DOUBLE 64L
#define JS_BITS_PER_WORD 32L
#define JS_BITS_PER_BYTE_LOG2 3L
#define JS_BITS_PER_SHORT_LOG2 4L
#define JS_BITS_PER_INT_LOG2 4L
#define JS_BITS_PER_INT64_LOG2 6L
#define JS_BITS_PER_LONG_LOG2 5L
#define JS_BITS_PER_FLOAT_LOG2 5L
#define JS_BITS_PER_DOUBLE_LOG2 6L
#define JS_BITS_PER_WORD_LOG2 5L
#define JS_ALIGN_OF_SHORT 2L
#define JS_ALIGN_OF_INT 2L
#define JS_ALIGN_OF_LONG 2L
#define JS_ALIGN_OF_INT64 2L
#define JS_ALIGN_OF_FLOAT 2L
#define JS_ALIGN_OF_DOUBLE 2L
#define JS_ALIGN_OF_POINTER 2L
#define JS_ALIGN_OF_WORD 2L
#define JS_BYTES_PER_WORD_LOG2 2L
#define JS_BYTES_PER_DWORD_LOG2 3L
#define PR_WORDS_PER_DWORD_LOG2 1L
#endif /* defined(_WINDOWS) && !defined(_WIN32) */
#elif defined(XP_UNIX) || defined(XP_BEOS)
#error "This file is supposed to be auto-generated on UNIX platforms, but the"
#error "static version for Mac and Windows platforms is being used."
#error "Something's probably wrong with paths/headers/dependencies/Makefiles."
#else
#error "Must define one of XP_MAC, XP_PC, or XP_UNIX"
#endif
#endif

View File

@@ -1,466 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#include "world.h"
#include "debugger.h"
#include <string>
#include <ctype.h>
#include <assert.h>
namespace JavaScript {
namespace Debugger {
using namespace Interpreter;
/* keep in sync with list in debugger.h */
static const char *shell_cmds[][3] = {
{"assemble", "", 0},
{"ambiguous", "", "Test command for ambiguous command detection"},
{"ambiguous2", "", "Test command for ambiguous command detection"},
{"continue", "", "Continue execution until complete."},
{"dissassemble", "[start_pc] [end_pc]", "Dissassemble entire module, or subset of module."},
{"exit", "", 0},
{"help", "", "Display this message."},
{"istep", "", "Execute the current opcode and stop."},
{"let", "", "Set a debugger environment variable."},
{"print", "", 0},
{"register", "", "(nyi) Show the value of a single register or all registers, or set the value of a single register."},
{"step", "", "Execute the current JS statement and stop."},
{0, 0} /* sentry */
};
enum ShellVariable {
TRACE_SOURCE,
TRACE_ICODE,
VARIABLE_COUNT
};
static const char *shell_vars[][3] = {
{"tracesource", "", "(bool) Show JS source while executing."},
{"traceicode", " ", "(bool) Show opcodes while executing."},
{0, 0} /* sentry */
};
/* return true if str2 starts with/is str1
* XXX ignore case */
static bool
startsWith (const String &str1, const String &str2)
{
uint n;
size_t m = str1.size();
if (m > str2.size())
return false;
for (n = 0; n < m; ++n)
if (str1[n] != str2[n])
return false;
return true;
}
/**
* locate the best match for |partial| in the command list |list|.
* if no matches are found, return |length|, if multiple matches are found,
* return |length| plus the number of ambiguous matches
*/
static uint32
matchElement (const String &partial, const char *list[][3], size_t length)
{
uint32 ambig_matches = 0;
uint32 match = length;
for (uint32 i = 0; i < length ; ++i)
{
String possibleMatch (widenCString(list[i][0]));
if (startsWith(partial, possibleMatch))
{
if (partial.size() == possibleMatch.size())
{
/* exact match */
ambig_matches = 0;
return i;
}
else if (match == COMMAND_COUNT) /* no match yet */
match = i;
else
++ambig_matches; /* something already matched,
* ambiguous command */
}
}
if (ambig_matches == 0)
return match;
else
return length + ambig_matches;
}
static void
showHelp(Formatter &out)
{
int i;
out << "JavaScript 2.0 Debugger Help...\n\n";
for (i = 0; shell_cmds[i][0] != 0; i++)
{
out << "Command : " << shell_cmds[i][0] << " " <<
shell_cmds[i][1] << "\n";
if (shell_cmds[i][2])
out << "Help : " << shell_cmds[i][2] << "\n";
else
out << "Help : (probably) Not Implemented.\n";
}
}
static uint32
getClosestSourcePosForPC (Context *cx, InstructionIterator pc)
{
ICodeModule *iCode = cx->getICode();
if (iCode->mInstructionMap->begin() == iCode->mInstructionMap->end())
return NotABanana;
/*NOT_REACHED ("Instruction map is empty, waah.");*/
InstructionMap::iterator pos_iter =
iCode->mInstructionMap->upper_bound (pc - iCode->its_iCode->begin());
if (pos_iter != iCode->mInstructionMap->begin())
--pos_iter;
return pos_iter->second;
}
void
Shell::showSourceAtPC (Context *cx, InstructionIterator pc)
{
if (!mResolveFileCallback)
{
mErr << "Source not available (Debugger was improperly initialized.)\n";
return;
}
ICodeModule *iCode = cx->getICode();
String fn = iCode->getFileName();
const Reader *reader = mResolveFileCallback(fn);
if (!reader)
{
mErr << "Source not available.\n";
return;
}
uint32 pos = getClosestSourcePosForPC(cx, pc);
if (pos == NotABanana)
{
mErr << "Map is empty, cannot display source.\n";
return;
}
uint32 lineNum = reader->posToLineNum (pos);
const char16 *lineBegin, *lineEnd;
uint32 lineStartPos = reader->getLine (lineNum, lineBegin, lineEnd);
String sourceLine (lineBegin, lineEnd);
mOut << fn << ":" << lineNum << " " << sourceLine << "\n";
uint padding = fn.length() + (uint32)(lineNum / 10) + 3;
uint i;
for (i = 0; i < padding; i++)
mOut << " ";
padding = (pos - lineStartPos);
for (i = 0; i < padding; i++)
mOut << ".";
mOut << "^\n";
}
void
Shell::showOpAtPC(Context* cx, InstructionIterator pc)
{
ICodeModule *iCode = cx->getICode();
if ((pc < iCode->its_iCode->begin()) ||
(pc >= iCode->its_iCode->end()))
{
mErr << "PC Out Of Range.";
return;
}
JSValues &registers = cx->getRegisters();
printFormat(mOut, "trace [%02u:%04u]: ",
iCode->mID, (pc - iCode->its_iCode->begin()));
Instruction* i = *pc;
stdOut << *i;
if (i->op() != BRANCH && i->count() > 0) {
mOut << " [";
i->printOperands(stdOut, registers);
mOut << "]\n";
} else {
mOut << '\n';
}
}
void
Shell::listen(Context* cx, Context::Event event)
{
InstructionIterator pc = cx->getPC();
if (mTraceSource)
showSourceAtPC (cx, pc);
if (mTraceICode)
showOpAtPC (cx, pc);
if (!(mStopMask & event))
return;
if ((mLastCommand == STEP) && (mLastICodeID == cx->getICode()->mID) &&
(mLastSourcePos == getClosestSourcePosForPC (cx, cx->getPC())))
/* we're in source-step mode, and the source position hasn't
* changed yet */
return;
if (!mTraceSource && !mTraceICode)
showSourceAtPC (cx, pc);
static String lastLine(widenCString("help\n"));
String line;
LineReader reader(mIn);
do {
stdOut << "jsd";
if (mLastCommand != COMMAND_COUNT)
stdOut << " (" << shell_cmds[mLastCommand][0] << ") ";
stdOut << "> ";
reader.readLine(line);
if (line[0] == uni::lf)
line = lastLine;
else
lastLine = line;
} while (doCommand(cx, line));
}
/**
* lex and execute the debugger command in |source|, return true if the
* command does not require the script being debugged to continue (eg, ask
* for more debugger input.)
*/
bool
Shell::doCommand (Interpreter::Context *cx, const String &source)
{
Lexer lex (mWorld, source, widenCString("debugger console"), 0);
const String *cmd;
uint32 match;
bool rv = true;
const Token &t = lex.get(true);
if (t.hasKind(Token::identifier))
cmd = &(t.getIdentifier());
else
{
mErr << "you idiot.\n";
return true;
}
match = matchElement (*cmd, shell_cmds, (size_t)COMMAND_COUNT);
if (match <= (uint32)COMMAND_COUNT)
{
switch ((ShellCommand)match)
{
case COMMAND_COUNT:
mErr << "Unknown command '" << *cmd << "'.\n";
break;
case AMBIGUOUS:
case AMBIGUOUS2:
mErr << "I pity the foogoo.\n";
break;
case CONTINUE:
mStopMask &= (Context::EV_ALL ^ Context::EV_STEP);
rv = false;
break;
case DISSASSEMBLE:
mOut << *cx->getICode();
break;
case HELP:
showHelp (mOut);
break;
case PRINT:
doPrint (cx, lex);
break;
case STEP:
mStopMask |= Context::EV_STEP;
rv = false;
break;
case LET:
doSetVariable (lex);
break;
default:
mErr << "Input '" << *cmd << "' matched unimplemented " <<
"command '" << shell_cmds[match][0] << "'.\n";
break;
}
mLastSourcePos = getClosestSourcePosForPC (cx, cx->getPC());
mLastICodeID = cx->getICode()->mID;
mLastCommand = (ShellCommand)match;
} else
mErr << "Ambiguous command '" << *cmd << "', " <<
(match - (uint32)COMMAND_COUNT + 1) << " similar commands.\n";
return rv;
}
void
Shell::doSetVariable (Lexer &lex)
{
uint32 match;
const String *varname;
const Token *t = &(lex.get(true));
if (t->hasKind(Token::identifier))
varname = &(t->getIdentifier());
else
{
mErr << "invalid variable name.\n";
return;
}
match = matchElement (*varname, shell_vars, (size_t)VARIABLE_COUNT);
if (match <= (uint32)VARIABLE_COUNT)
switch ((ShellVariable)match)
{
case VARIABLE_COUNT:
mErr << "Unknown variable '" << *varname << "'.\n";
break;
case TRACE_SOURCE:
t = &(lex.get(true));
if (t->hasKind(Token::assignment))
t = &(lex.get(true)); /* optional = */
if (t->hasKind(Token::True))
mTraceSource = true;
else if (t->hasKind(Token::False))
mTraceSource = false;
else
goto badval;
break;
case TRACE_ICODE:
t = &(lex.get(true));
if (t->hasKind(Token::assignment))
t = &(lex.get(true)); /* optional = */
if (t->hasKind(Token::True))
mTraceICode = true;
else if (t->hasKind(Token::False))
mTraceICode = false;
else
goto badval;
break;
default:
mErr << "Variable '" << *varname <<
"' matched unimplemented variable '" <<
shell_vars[match][0] << "'.\n";
}
else
mErr << "Ambiguous variable '" << *varname << "', " <<
(match - (uint32)COMMAND_COUNT + 1) << " similar variables.\n";
return;
badval:
mErr << "Invalid value for variable '" <<
shell_vars[(ShellVariable)match][0] << "'\n";
}
void
Shell::doPrint (Context *, Lexer &lex)
{
const Token *t = &(lex.get(true));
if (!(t->hasKind(Token::identifier)))
{
mErr << "Invalid register name.\n";
return;
}
/*
const StringAtom *name = &(t->getIdentifier());
VariableMap::iterator i = ((cx->getICode())->itsVariables)->find(*name);
// if (i)
mOut << (*i).first << " = " << (*i).second << "\n";
// else
// mOut << "No " << *name << " defined.\n";
*/
}
} /* namespace Debugger */
} /* namespace JavaScript */

View File

@@ -1,163 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/* this is all vapor, don't take it to serious yet */
#ifndef debugger_h
#define debugger_h
#include "utilities.h"
#include "interpreter.h"
#include <stdio.h>
namespace JavaScript {
namespace Debugger {
using namespace Interpreter;
class Shell;
typedef const Reader *ResolveFileCallback (const String &fileName);
typedef bool DebuggerCommandCallback (Shell &debugger, const Lexer &lex);
class Breakpoint {
public:
/* representation of a breakpoint */
void set();
void clear();
bool getState();
InstructionIterator getPC();
};
struct DebuggerCommand
{
DebuggerCommand(String aName, String aParamDesc, String aShortHelp,
String aLongHelp = widenCString("No more help available."),
DebuggerCommandCallback *aCommandFunction = 0)
: mName(aName), mParamDesc(aParamDesc), mShortHelp(aShortHelp),
mLongHelp(aLongHelp), mCommandFunction(aCommandFunction) {}
String mName;
String mParamDesc;
String mShortHelp;
String mLongHelp;
DebuggerCommandCallback *mCommandFunction;
};
/* keep in sync with list in debugger.cpp */
enum ShellCommand {
ASSEMBLE,
AMBIGUOUS,
AMBIGUOUS2,
CONTINUE,
DISSASSEMBLE,
EXIT,
HELP,
ISTEP,
LET,
PRINT,
REGISTER,
STEP,
COMMAND_COUNT
};
class Shell : public Context::Listener {
public:
Shell (World &aWorld, FILE *aIn, Formatter &aOut, Formatter &aErr,
ResolveFileCallback *aCallback = 0) :
mWorld(aWorld), mIn(aIn), mOut(aOut), mErr(aErr),
mResolveFileCallback(aCallback), mStopMask(Context::EV_DEBUG),
mTraceSource(false), mTraceICode(false), mLastSourcePos(0),
mLastICodeID(NotABanana), mLastCommand(COMMAND_COUNT)
{
}
~Shell ()
{
}
ResolveFileCallback
*setResolveFileCallback (ResolveFileCallback *aCallback)
{
ResolveFileCallback *rv = mResolveFileCallback;
mResolveFileCallback = aCallback;
return rv;
}
void listen(Context *context, Context::Event event);
/**
* install on a context
*/
bool attachToContext (Context *aContext)
{
aContext->addListener (this);
return true;
}
/**
* detach an icdebugger from a context
*/
bool detachFromContext (Context *aContext)
{
aContext->removeListener (this);
return true;
}
FILE *getIStream() { return mIn; }
Formatter &getOStream() { return mOut; }
Formatter &getEStream() { return mErr; }
private:
bool doCommand (Context *cx, const String &aSource);
void doSetVariable (Lexer &lex);
void doPrint (Context *cx, Lexer &lex);
void showOpAtPC(Context* cx, InstructionIterator pc);
void showSourceAtPC(Context* cx, InstructionIterator pc);
World &mWorld;
FILE *mIn;
Formatter &mOut, &mErr;
ResolveFileCallback *mResolveFileCallback;
uint32 mStopMask;
bool mTraceSource, mTraceICode;
uint32 mLastSourcePos, mLastICodeID;
ShellCommand mLastCommand;
};
} /* namespace Debugger */
} /* namespace JavaScript */
#endif /* debugger_h */

View File

@@ -1,26 +0,0 @@
debugger.o: debugger.cpp world.h utilities.h systemtypes.h hash.h \
parser.h debugger.h interpreter.h jstypes.h gc_allocator.h vmtypes.h \
numerics.h jsclasses.h icode.h icodegenerator.h
gc_allocator.o: gc_allocator.cpp gc_allocator.h gc_container.h
hash.o: hash.cpp hash.h utilities.h systemtypes.h
icodegenerator.o: icodegenerator.cpp numerics.h utilities.h \
systemtypes.h world.h hash.h parser.h vmtypes.h jstypes.h \
gc_allocator.h jsclasses.h icode.h icodegenerator.h interpreter.h
interpreter.o: interpreter.cpp interpreter.h utilities.h systemtypes.h \
jstypes.h gc_allocator.h vmtypes.h numerics.h jsclasses.h world.h \
hash.h parser.h icode.h icodegenerator.h jsmath.h
js2.o: js2.cpp world.h utilities.h systemtypes.h hash.h parser.h \
interpreter.h jstypes.h gc_allocator.h vmtypes.h numerics.h \
jsclasses.h icode.h icodegenerator.h debugger.h
jsmath.o: jsmath.cpp jsmath.h jstypes.h utilities.h systemtypes.h \
gc_allocator.h
jstypes.o: jstypes.cpp jstypes.h utilities.h systemtypes.h \
gc_allocator.h jsclasses.h numerics.h icodegenerator.h parser.h \
vmtypes.h world.h hash.h icode.h
numerics.o: numerics.cpp numerics.h utilities.h systemtypes.h
parser.o: parser.cpp numerics.h utilities.h systemtypes.h parser.h \
world.h hash.h
utilities.o: utilities.cpp utilities.h systemtypes.h
vmtypes.o: vmtypes.cpp utilities.h systemtypes.h vmtypes.h numerics.h \
jstypes.h gc_allocator.h jsclasses.h world.h hash.h parser.h icode.h
world.o: world.cpp world.h utilities.h systemtypes.h hash.h parser.h

View File

@@ -1,150 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include "gc_allocator.h"
#include "gc_container.h"
/*
namespace JavaScript {
template <class T>
typename gc_allocator<T>::pointer
gc_allocator<T>::allocate(gc_allocator<T>::size_type n, const void*)
{
return static_cast<pointer>(GC_malloc(n*sizeof(T)));
}
template <class T>
void gc_allocator<T>::deallocate(gc_allocator<T>::pointer ptr, gc_allocator<T>::size_type)
{
// this can really be a NO-OP with the GC.
// ::GC_free(static_cast<void*>(ptr));
}
}
*/
// test driver for standalone GC development.
namespace JS = JavaScript;
template <class T>
void* operator new(std::size_t, const JS::gc_allocator<T>& alloc)
{
return alloc.allocate(1);
}
/**
* Define a C++ class that is garbage collectable, and wants to have its destructor
* called when it is finalized.
*/
class A {
public:
typedef JS::gc_traits_finalizable<A> traits;
typedef JS::gc_allocator<A, traits> allocator;
friend struct traits;
static int instances;
void* operator new(std::size_t)
{
return allocator::allocate(1);
}
A()
{
++instances;
std::cout << "A::A() here." << std::endl;
}
protected:
~A()
{
--instances;
std::cout << "A::~A() here." << std::endl;
}
private:
// void operator delete(void*) {}
};
int A::instances = 0;
int main(int /* argc */, char* /* argv[] */)
{
using namespace std;
using namespace JS;
cout << "testing the GC allocator." << endl;
#ifdef XP_MAC
// allocate a string, using the GC, and owned by an auto_ptr, that knows how to correctly destroy the string.
typedef gc_container<char>::string char_string;
typedef gc_allocator<char_string> char_string_alloc;
auto_ptr<char_string, char_string_alloc> ptr(new(char_string_alloc()) char_string("This is a garbage collectable string."));
const char_string& str = *ptr;
cout << str << endl;
#endif
// question, how can we partially evaluate a template?
// can we say, typedef template <class T> vector<typename T>.
// typedef vector<int, gc_allocator<int> > int_vector;
typedef gc_container<int>::vector int_vector;
// generate 1000 random values.
int_vector values;
for (int i = 0; i < 1000; ++i) {
int value = rand() % 32767;
values.push_back(value);
// allocate a random amount of garbage.
if (!GC_malloc(static_cast<size_t>(value)))
cerr << "GC_malloc failed." << endl;
// allocate an object that has a finalizer to call its destructor.
A* a = new A();
}
// run a collection.
// gc_allocator<void>::collect();
GC_gcollect();
// print out instance count.
cout << "A::instances = " << A::instances << endl;
// sort the values.
sort(values.begin(), values.end());
// print the values.
int_vector::iterator iter = values.begin(), last = values.end();
cout << *iter++;
while (iter < last)
cout << ' ' << *iter++;
cout << endl;
#ifdef XP_MAC
// finally, print the string again.
cout << str << endl;
#endif
return 0;
}

View File

@@ -1,178 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef gc_allocator_h
#define gc_allocator_h
#include <memory>
#ifndef _WIN32 // Microsoft VC6 bug: standard identifiers should be in std namespace
using std::size_t;
using std::ptrdiff_t;
#endif
namespace JavaScript {
extern "C" {
void* GC_malloc(size_t bytes);
void* GC_malloc_atomic(size_t bytes);
void GC_free(void* ptr);
void GC_gcollect(void);
typedef void (*GC_finalization_proc) (void* obj, void* client_data);
void GC_register_finalizer(void* obj, GC_finalization_proc proc, void* client_data,
GC_finalization_proc *old_proc, void* *old_client_data);
}
#if 0 && !defined(XP_MAC)
// for platforms where GC doesn't exist yet.
inline void* GC_malloc(size_t bytes) { return ::operator new(bytes); }
inline void* GC_malloc_atomic(size_t bytes) { return ::operator new(bytes); }
inline void GC_free(void* ptr) { operator delete(ptr); }
inline void GC_gcollect() {}
inline void GC_register_finalizer(void* obj, GC_finalization_proc proc, void* client_data,
GC_finalization_proc *old_proc, void* *old_client_data) {}
#endif
/**
* General case: memory for type must be allocated as a conservatively
* scanned block of memory.
*/
template <class T> struct gc_traits {
static T* allocate(size_t n) { return static_cast<T*>(GC_malloc(n * sizeof(T))); }
};
/**
* Specializations for blocks of atomic types: the macro define_atomic_type(_type)
* specializes gc_traits<T> for types that need not be scanned by the
* GC. Implementors are free to define other types as atomic, if they are
* guaranteed not to contain pointers.
*/
#define define_atomic_type(_type) \
template <> struct gc_traits<_type> { \
static _type* allocate(size_t n) \
{ \
return static_cast<_type*>(GC_malloc_atomic(n * sizeof(_type))); \
} \
};
define_atomic_type(char)
define_atomic_type(unsigned char)
define_atomic_type(short)
define_atomic_type(unsigned short)
define_atomic_type(int)
define_atomic_type(unsigned int)
define_atomic_type(long)
define_atomic_type(unsigned long)
define_atomic_type(float)
define_atomic_type(double)
#undef define_atomic_type
/**
* Traits for classes that need to have their destructor called
* when reclaimed by the garbage collector.
*/
template <class T> struct gc_traits_finalizable {
static void finalizer(void* obj, void* client_data)
{
T* t = static_cast<T*>(obj);
size_t n = reinterpret_cast<size_t>(client_data);
for (size_t i = 0; i < n; ++i)
t[i].~T();
}
static T* allocate(size_t n)
{
T* t = gc_traits<T>::allocate(n);
GC_finalization_proc old_proc; void* old_client_data;
GC_register_finalizer(t, &finalizer, reinterpret_cast<void*>(n), &old_proc, &old_client_data);
return t;
}
};
/**
* An allocator that can be used to allocate objects in the garbage collected heap.
*/
template <class T, class traits = gc_traits<T> > class gc_allocator {
public:
typedef T value_type;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
typedef T *pointer;
typedef const T *const_pointer;
typedef T &reference;
typedef const T &const_reference;
gc_allocator() {}
template<typename U, typename UTraits> gc_allocator(const gc_allocator<U, UTraits>&) {}
// ~gc_allocator() {}
static pointer address(reference r) { return &r; }
static const_pointer address(const_reference r) { return &r; }
static pointer allocate(size_type n, const void* /* hint */ = 0) { return traits::allocate(n); }
static void deallocate(pointer, size_type) {}
static void construct(pointer p, const T &val) { new(p) T(val);}
static void destroy(pointer p) { p->~T(); }
#if defined(__GNUC__) || defined(_WIN32)
static size_type max_size() { return size_type(-1) / sizeof(T); }
#else
static size_type max_size() { return std::numeric_limits<size_type>::max() / sizeof(T); }
#endif
template<class U> struct rebind { typedef gc_allocator<U> other; };
#ifdef _WIN32
// raw byte allocator used on some platforms (grrr).
typedef char _Char[1];
static char* _Charalloc(size_type n) { return (char*) rebind<_Char>::other::allocate(n); }
// funky operator required for calling basic_string<T> constructor (grrr).
template<typename U, typename UTraits> int operator==(const gc_allocator<U, UTraits>&) { return 0; }
#endif
// void* deallocate used on some platforms (grrr).
static void deallocate(void*, size_type) {}
static void collect() { GC_gcollect(); }
};
/**
* Generic base class for objects allocated using a gc_allocator. How they are allocated
* can be controlled by specializing gc_traits for the specific class.
*/
template <typename T> class gc_object {
public:
void* operator new(size_t) { return gc_allocator<T>::allocate(1, 0); }
void operator delete(void* /* ptr */) {}
};
/**
* Simpler base class for classes that have no need to specialize allocation behavior.
*/
class gc_base {
public:
void* operator new(size_t n) { return GC_malloc(n); }
void operator delete(void*) {}
};
}
#endif /* gc_allocator_h */

View File

@@ -1,71 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef gc_container_h
#define gc_container_h
#include "gc_allocator.h"
#include <list>
#include <vector>
#include <string>
#define LIST std::list
#define VECTOR std::vector
#if defined(__GNUC__)
// grr, what kind of standard is this?
#define STRING basic_string
#define CHAR_TRAITS string_char_traits
#else
#define STRING std::basic_string
#define CHAR_TRAITS std::char_traits
#endif
namespace JavaScript {
/**
* Rebind some of the basic container types to use a GC_allocator.
* What I really want is something more general, something like:
* template <typename Container, typename T> class gc_rebind {
* typedef typename Container<T, gc_allocator<T> > other;
* };
* But I can't figure out how to do that with C++ templates.
*/
template <class T> struct gc_container {
typedef typename LIST<T, gc_allocator<T> > list;
typedef typename VECTOR<T, gc_allocator<T> > vector;
typedef typename STRING<T, CHAR_TRAITS<T>, gc_allocator<T> > string;
};
/**
* But, it's pretty easy to do with macros:
*/
#define GC_CONTAINER(container, type) container<T, gc_allocator<T> >
/*
// this gives an "unimplemented C++ feature" error using CWPro5.
// maybe someday.
template <template<class, class> typename Container, typename T>
struct gc_rebind {
typedef typename Container<T, gc_allocator<T> > container;
};
*/
}
#endif /* gc_container_h */

View File

@@ -1,173 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#include "hash.h"
#include <new>
namespace JS = JavaScript;
//
// Hash Codes
//
// General-purpose null-terminated C string hash function
JS::HashNumber JS::hashString(const char *s)
{
HashNumber h = 0;
uchar ch;
while ((ch = (uchar)*s++) != 0)
h = (h >> 28) ^ (h << 4) ^ ch;
return h;
}
// General-purpose String hash function
JS::HashNumber JS::hashString(const String &s)
{
HashNumber h = 0;
String::const_iterator p = s.begin();
String::size_type n = s.size();
if (n < 16)
// Hash every character in a short string.
while (n--)
h = (h >> 28) ^ (h << 4) ^ *p++;
else
// Sample a la java.lang.String.hash().
for (String::size_type m = n / 8; n >= m; p += m, n -= m)
h = (h >> 28) ^ (h << 4) ^ *p;
return h;
}
//
// Hash Tables
//
const uint minLgNBuckets = 4;
JS::GenericHashTableIterator::GenericHashTableIterator(GenericHashTable &ht):
ht(ht), entry(0), nextBucket(ht.buckets)
{
DEBUG_ONLY(++ht.nReferences);
operator++();
}
JS::GenericHashTableIterator &
JS::GenericHashTableIterator::operator++()
{
GenericHashEntry *e = entry;
if (e) {
backpointer = &e->next;
e = e->next;
}
if (!e) {
GenericHashEntry **const bucketsEnd = ht.bucketsEnd;
GenericHashEntry **bucket = nextBucket;
while (bucket != bucketsEnd) {
e = *bucket++;
if (e) {
backpointer = bucket-1;
break;
}
}
nextBucket = bucket;
}
entry = e;
return *this;
}
JS::GenericHashTable::GenericHashTable(uint32 nEntriesDefault):
nEntries(0)
{
DEBUG_ONLY(nReferences = 0);
uint lgNBuckets = ceilingLog2(nEntriesDefault);
if (lgNBuckets < minLgNBuckets)
lgNBuckets = minLgNBuckets;
defaultLgNBuckets = lgNBuckets;
recomputeMinMaxNEntries(lgNBuckets);
uint32 nBuckets = JS_BIT(lgNBuckets);
buckets = new GenericHashEntry*[nBuckets];
// No exceptions after this point unless buckets is deleted.
bucketsEnd = buckets + nBuckets;
zero(buckets, bucketsEnd);
}
// Initialize shift, minNEntries, and maxNEntries based on the lg2 of the
// number of buckets.
void JS::GenericHashTable::recomputeMinMaxNEntries(uint lgNBuckets)
{
uint32 nBuckets = JS_BIT(lgNBuckets);
shift = 32 - lgNBuckets;
maxNEntries = nBuckets; // Maximum ratio is 100%
minNEntries = lgNBuckets <= defaultLgNBuckets ? 0 : 3*(nBuckets>>3); // Minimum ratio is 37.5%
}
// Rehash the table. This method cannot throw out-of-memory exceptions, so it is
// safe to call from a destructor.
void JS::GenericHashTable::rehash()
{
uint32 newLgNBuckets = ceilingLog2(nEntries);
if (newLgNBuckets < defaultLgNBuckets)
newLgNBuckets = defaultLgNBuckets;
uint32 newNBuckets = JS_BIT(newLgNBuckets);
try {
GenericHashEntry **newBuckets = new GenericHashEntry*[newNBuckets];
// No exceptions after this point.
GenericHashEntry **newBucketsEnd = newBuckets + newNBuckets;
zero(newBuckets, newBucketsEnd);
recomputeMinMaxNEntries(newLgNBuckets);
GenericHashEntry **be = bucketsEnd;
for (GenericHashEntry **b = buckets; b != be; b++) {
GenericHashEntry *e = *b;
while (e) {
GenericHashEntry *next = e->next;
// Place e in the new set of buckets.
GenericHashEntry **nb = newBuckets + (e->keyHash*goldenRatio >> shift);
e->next = *nb;
*nb = e;
e = next;
}
}
delete[] buckets;
buckets = newBuckets;
bucketsEnd = newBucketsEnd;
} catch (std::bad_alloc) {
// Out of memory. Ignore the error and just relax the resizing boundaries.
if (buckets + JS_BIT(newLgNBuckets) > bucketsEnd)
maxNEntries >>= 1;
else
minNEntries <<= 1;
}
}

View File

@@ -1,373 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 1998 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef hash_h
#define hash_h
#include "utilities.h"
namespace JavaScript {
//
// Hash Codes
//
typedef uint32 HashNumber;
HashNumber hashString(const char *s);
HashNumber hashString(const String &s);
template<class Key>
struct Hash {
HashNumber operator()(Key key) const;
};
template<class Key>
inline HashNumber Hash<Key>::operator()(Key key) const
{
return hashString(key);
}
const HashNumber goldenRatio = 0x9E3779B9U;
//
// Private
//
// Base class for user-defined hash entries.
// private
class GenericHashEntry {
public:
GenericHashEntry *next; // Link to next entry in the same bucket
const HashNumber keyHash; // This entry's hash value
protected:
explicit GenericHashEntry(HashNumber keyHash): next(0), keyHash(keyHash) {}
friend class GenericHashTable;
};
// private
class GenericHashTableIterator;
class GenericHashTable {
protected:
GenericHashEntry **buckets; // Vector of hash buckets
GenericHashEntry **bucketsEnd; // Pointer past end of vector of hash buckets
uint defaultLgNBuckets; // lg2 of minimum number of buckets for which to size the table
uint32 nEntries; // Number of entries in table
uint32 minNEntries; // Minimum number of entries without rehashing
uint32 maxNEntries; // Maximum number of entries without rehashing
uint32 shift; // 32 - lg2(number of buckets)
#ifdef DEBUG
public:
uint32 nReferences; // Number of iterators and references currently pointing to this hash table
#endif
public:
explicit GenericHashTable(uint32 nEntriesDefault);
~GenericHashTable() {
#ifndef _WIN32
ASSERT(nReferences == 0);
#endif
delete[] buckets;
}
void recomputeMinMaxNEntries(uint lgNBuckets);
void rehash();
void maybeGrow() {if (nEntries > maxNEntries) rehash();}
void maybeShrink() {if (nEntries < minNEntries) rehash();}
friend class GenericHashTableIterator;
typedef GenericHashTableIterator Iterator;
};
// This ought to be GenericHashTable::Iterator, but this doesn't work due to a
// Microsoft VC6 bug.
class GenericHashTableIterator {
protected:
GenericHashTable &ht; // Hash table being iterated
GenericHashEntry *entry; // Current entry; nil if done
GenericHashEntry **backpointer; // Pointer to pointer to current entry
GenericHashEntry **nextBucket; // Next bucket; pointer past end of vector of hash buckets if done
public:
explicit GenericHashTableIterator(GenericHashTable &ht);
~GenericHashTableIterator() {ht.maybeShrink(); DEBUG_ONLY(--ht.nReferences);}
operator bool() const {return entry != 0;} // Return true if there are entries left.
GenericHashTableIterator &operator++();
};
//
// Hash Tables
//
template<class Data, class Key, class H = Hash<Key> >
class HashTable: private GenericHashTable {
H hasher; // Hash function
struct Entry: public GenericHashEntry {
Data data;
Entry(HashNumber keyHash, Key key): GenericHashEntry(keyHash), data(key) {}
template<class Value>
Entry(HashNumber keyHash, Key key, Value value): GenericHashEntry(keyHash), data(key, value) {}
};
public:
class Reference {
#ifdef _WIN32 // Microsoft VC6 bug: friend declarations to inner classes don't work
public:
#endif
Entry *entry; // Current entry; nil if done
GenericHashEntry **backpointer; // Pointer to pointer to current entry
const HashNumber keyHash; // This entry's key's hash value
#ifdef DEBUG
GenericHashTable *ht; // Hash table to which this Reference points
#endif
public:
#ifndef _WIN32
Reference(HashTable &ht, Key key); // Search for an entry with the given key.
#else // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
Reference(HashTable &ht, Key key): keyHash(ht.hasher(key)) {
#ifdef DEBUG
Reference::ht = &ht;
++ht.nReferences;
#endif
HashNumber kh = keyHash;
HashNumber h = kh*goldenRatio >> ht.shift;
GenericHashEntry **bp = ht.buckets + h;
Entry *e;
while ((e = static_cast<Entry *>(*bp)) != 0 && !(e->keyHash == kh && e->data == key))
bp = &e->next;
entry = e;
backpointer = bp;
}
#endif
private:
Reference(const Reference&); // No copy constructor
void operator=(const Reference&); // No assignment operator
public:
#if defined(DEBUG) && !defined(_WIN32)
~Reference() {if (ht) --ht->nReferences;}
#endif
operator bool() const {return entry != 0;} // Return true if an entry was found.
Data &operator*() const {ASSERT(entry); return entry->data;} // Return the data of the entry that was found.
friend class HashTable;
};
class Iterator: public GenericHashTableIterator {
public:
explicit Iterator(HashTable &ht): GenericHashTableIterator(ht) {}
private:
Iterator(const Iterator&); // No copy constructor
void operator=(const Iterator&); // No assignment operator
public:
// Go to next entry.
Iterator &operator++() {return *static_cast<Iterator*>(&GenericHashTableIterator::operator++());}
Data &operator*() const {ASSERT(entry); return static_cast<Entry *>(entry)->data;} // Return current entry's data.
void erase();
};
HashTable(uint32 nEntriesDefault = 0, const H &hasher = H()): GenericHashTable(nEntriesDefault), hasher(hasher) {}
~HashTable();
template<class Value> Data &insert(Reference &r, Key key, Value value);
Data &insert(Reference &r, Key key);
Data &insert(Key key);
void erase(Reference &r);
void erase(Key key);
Data *operator[](Key key);
friend class Reference;
friend class Iterator;
#ifndef _WIN32
template<class Value> Data &insert(Key key, Value value);
#else // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
template<class Value> Data &insert(Key key, Value value) {
Reference r(*this, key);
if (r)
return *r = value;
else
return insert(r, key, value);
}
#endif
};
//
// Implementation
//
template<class Data, class Key, class H>
HashTable<Data, Key, H>::~HashTable()
{
GenericHashEntry **be = bucketsEnd;
for (GenericHashEntry **b = buckets; b != be; b++) {
Entry *e = static_cast<Entry *>(*b);
while (e) {
Entry *next = static_cast<Entry *>(e->next);
delete e;
e = next;
}
}
}
#ifndef _WIN32
template<class Data, class Key, class H>
HashTable<Data, Key, H>::Reference::Reference(HashTable &ht, Key key):
keyHash(ht.hasher(key))
{
#ifdef DEBUG
Reference::ht = &ht;
++ht.nReferences;
#endif
HashNumber kh = keyHash;
HashNumber h = kh*goldenRatio >> ht.shift;
GenericHashEntry **bp = ht.buckets + h;
Entry *e;
while ((e = static_cast<Entry *>(*bp)) != 0 && !(e->keyHash == kh && e->data == key))
bp = &e->next;
entry = e;
backpointer = bp;
}
// Insert the given key/value pair into the hash table. Reference must
// be the result of an unsuccessful search for that key in the table.
// The reference is not valid after this method is called.
// Return a reference to the new entry's value.
template<class Data, class Key, class H> template<class Value>
inline Data &HashTable<Data, Key, H>::insert(Reference &r, Key key, Value value)
{
ASSERT(r.ht == this && !r.entry);
Entry *e = new Entry(r.keyHash, key, value);
*r.backpointer = e;
++nEntries;
maybeGrow();
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
return e->data;
}
#endif
// Same as above but without a Value argument.
template<class Data, class Key, class H>
inline Data &HashTable<Data, Key, H>::insert(Reference &r, Key key)
{
ASSERT(r.ht == this && !r.entry);
Entry *e = new Entry(r.keyHash, key);
*r.backpointer = e;
++nEntries;
maybeGrow();
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
return e->data;
}
// Insert the given key/value pair into the hash table. If an entry with a
// matching key already exists, replace that entry's value.
// Return a reference to the new entry's value.
#ifndef _WIN32 // Microsoft VC6 bug: VC6 doesn't allow this to be defined outside the class
template<class Data, class Key, class H> template<class Value>
Data &HashTable<Data, Key, H>::insert(Key key, Value value)
{
Reference r(*this, key);
if (r)
return *r = value;
else
return insert(r, key, value);
}
#endif
// Same as above but without a Value argument.
template<class Data, class Key, class H>
Data &HashTable<Data, Key, H>::insert(Key key)
{
Reference r(*this, key);
if (r)
return *r;
else
return insert(r, key);
}
// Reference r must point to an existing entry. Delete that entry.
// The reference is not valid after this method is called.
template<class Data, class Key, class H>
inline void HashTable<Data, Key, H>::erase(Reference &r)
{
Entry *e = r.entry;
ASSERT(r.ht == this && e);
*r.backpointer = e->next;
--nEntries;
delete e;
#ifdef DEBUG
--r.ht->nReferences;
r.ht = 0;
#endif
maybeShrink();
}
// Remove the hash table entry, if any, matching the given key.
template<class Data, class Key, class H>
void HashTable<Data, Key, H>::erase(Key key)
{
Reference r(*this, key);
if (r)
erase(r);
}
// Return a pointer to the value of the hash table entry matching the given key.
// Return nil if no entry matches.
template<class Data, class Key, class H>
Data *HashTable<Data, Key, H>::operator[](Key key)
{
Reference r(*this, key);
if (r)
return &*r;
else
return 0;
}
}
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,306 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef icodegenerator_h
#define icodegenerator_h
#include <vector>
#include <stack>
#include "utilities.h"
#include "parser.h"
#include "vmtypes.h"
#include "jsclasses.h"
namespace JavaScript {
namespace ICG {
using namespace VM;
using namespace JSTypes;
using namespace JSClasses;
typedef std::map<String, TypedRegister, std::less<String> > VariableList;
typedef std::map<uint32, uint32, std::less<uint32> > InstructionMap;
class ICodeModule {
public:
ICodeModule(InstructionStream *iCode, VariableList *variables,
uint32 maxRegister, uint32 maxParameter,
InstructionMap *instructionMap) :
its_iCode(iCode), itsVariables(variables),
itsParameterCount(maxParameter), itsMaxRegister(maxRegister),
mID(++sMaxID), mInstructionMap(instructionMap) { }
~ICodeModule()
{
delete its_iCode;
delete itsVariables;
delete mInstructionMap;
}
Formatter& print(Formatter& f);
void setFileName (String aFileName) { mFileName = aFileName; }
String getFileName () { return mFileName; }
InstructionStream *its_iCode;
VariableList *itsVariables;
uint32 itsParameterCount;
uint32 itsMaxRegister;
uint32 mID;
InstructionMap *mInstructionMap;
String mFileName;
static uint32 sMaxID;
};
typedef std::vector<const StringAtom *> LabelSet;
class LabelEntry {
public:
LabelEntry(LabelSet *labelSet, Label *breakLabel)
: labelSet(labelSet), breakLabel(breakLabel), continueLabel(NULL) { }
LabelEntry(LabelSet *labelSet, Label *breakLabel, Label *continueLabel)
: labelSet(labelSet), breakLabel(breakLabel), continueLabel(continueLabel) { }
bool containsLabel(const StringAtom *label);
LabelSet *labelSet;
Label *breakLabel;
Label *continueLabel;
};
typedef std::vector<LabelEntry *> LabelStack;
Formatter& operator<<(Formatter &f, ICodeModule &i);
/****************************************************************/
// An ICodeGenerator provides the interface between the parser and the
// interpreter. The parser constructs one of these for each
// function/script, adds statements and expressions to it and then
// converts it into an ICodeModule, ready for execution.
class ICodeGenerator {
public:
typedef enum { kNoFlags = 0, kIsTopLevel = 0x01, kIsStaticMethod = 0x02, kIsWithinWith = 0x04 } ICodeGeneratorFlags;
private:
InstructionStream *iCode;
bool iCodeOwner;
LabelList labels;
Register mTopRegister; // highest (currently) alloacated register
uint32 mParameterCount; // number of parameters declared for the function
// these must come before any variables declared.
TypedRegister mExceptionRegister; // reserved to carry the exception object.
VariableList *variableList; // name|register pair for each variable
World *mWorld; // used to register strings
JSScope *mGlobal; // the scope for compiling within
LabelStack mLabelStack; // stack of LabelEntry objects, one per nested looping construct
// maps source position to instruction index
InstructionMap *mInstructionMap;
JSClass *mClass; // enclosing class when generating code for methods
ICodeGeneratorFlags mFlags; // assorted flags
std::vector<bool> mPermanentRegister;
Register getTempRegister()
{
while (mTopRegister < mPermanentRegister.size())
if (!mPermanentRegister[mTopRegister])
return mTopRegister++;
else
++mTopRegister;
mPermanentRegister.resize(mTopRegister + 1);
mPermanentRegister[mTopRegister] = false;
return mTopRegister++;
}
void resetTopRegister() { mTopRegister = mParameterCount; }
void resetStatement() { resetTopRegister(); }
TypedRegister allocateRegister(const StringAtom& name, JSType *type);
void setRegisterForVariable(const StringAtom& name, TypedRegister r) { (*variableList)[name] = r; }
JSType *findType(const StringAtom& typeName);
void setLabel(Label *label);
void jsr(Label *label) { iCode->push_back(new Jsr(label)); }
void rts() { iCode->push_back(new Rts()); }
void branch(Label *label);
GenericBranch *branchTrue(Label *label, TypedRegister condition);
GenericBranch *branchFalse(Label *label, TypedRegister condition);
void beginTry(Label *catchLabel, Label *finallyLabel)
{ iCode->push_back(new Tryin(catchLabel, finallyLabel)); }
void endTry() { iCode->push_back(new Tryout()); }
void beginWith(TypedRegister obj) { iCode->push_back(new Within(obj)); }
void endWith() { iCode->push_back(new Without()); }
void startStatement(uint32 pos) { (*mInstructionMap)[iCode->size()] = pos; }
ICodeOp mapExprNodeToICodeOp(ExprNode::Kind kind);
bool isTopLevel() { return (mFlags & kIsTopLevel) != 0; }
bool isWithinWith() { return (mFlags & kIsWithinWith) != 0; }
bool isStaticMethod() { return (mFlags & kIsStaticMethod) != 0; }
void setFlag(uint32 flag, bool v) { mFlags = (ICodeGeneratorFlags)((v) ? mFlags | flag : mFlags & ~flag); }
typedef enum {Var, Property, Slot, Static, Constructor, Name, Method} LValueKind;
LValueKind resolveIdentifier(const StringAtom &name, TypedRegister &v, uint32 &slotIndex);
TypedRegister handleIdentifier(IdentifierExprNode *p, ExprNode::Kind use, ICodeOp xcrementOp, TypedRegister ret, RegisterList *args);
TypedRegister handleDot(BinaryExprNode *b, ExprNode::Kind use, ICodeOp xcrementOp, TypedRegister ret, RegisterList *args);
ICodeModule *genFunction(FunctionStmtNode *f, bool isConstructor, JSClass *superClass);
public:
ICodeGenerator(World *world, JSScope *global, JSClass *aClass = NULL, ICodeGeneratorFlags flags = kIsTopLevel);
~ICodeGenerator()
{
if (iCodeOwner) {
delete iCode;
delete mInstructionMap;
}
}
ICodeModule *complete();
TypedRegister genExpr(ExprNode *p,
bool needBoolValueInBranch = false,
Label *trueBranch = NULL,
Label *falseBranch = NULL);
TypedRegister genStmt(StmtNode *p, LabelSet *currentLabelSet = NULL);
void returnStmt(TypedRegister r);
void returnStmt();
void throwStmt(TypedRegister r) { iCode->push_back(new Throw(r)); }
void debuggerStmt() { iCode->push_back(new Debugger()); }
TypedRegister allocateVariable(const StringAtom& name);
TypedRegister allocateVariable(const StringAtom& name, const StringAtom& typeName);
TypedRegister findVariable(const StringAtom& name)
{
VariableList::iterator i = variableList->find(name);
return (i == variableList->end()) ? TypedRegister(NotARegister, &None_Type) : (*i).second;
}
TypedRegister allocateParameter(const StringAtom& name) { mParameterCount++; return allocateRegister(name, &Any_Type); }
TypedRegister allocateParameter(const StringAtom& name, const StringAtom& typeName)
{ mParameterCount++; return allocateRegister(name, findType(typeName)); }
TypedRegister allocateParameter(const StringAtom& name, JSType *type)
{ mParameterCount++; return allocateRegister(name, type); }
Formatter& print(Formatter& f);
TypedRegister op(ICodeOp op, TypedRegister source);
TypedRegister op(ICodeOp op, TypedRegister source1, TypedRegister source2);
TypedRegister binaryOp(ICodeOp op, TypedRegister source1, TypedRegister source2);
TypedRegister call(TypedRegister base, TypedRegister target, RegisterList *args);
TypedRegister getMethod(TypedRegister thisArg, uint32 slotIndex);
void move(TypedRegister destination, TypedRegister source);
TypedRegister logicalNot(TypedRegister source);
TypedRegister test(TypedRegister source);
TypedRegister loadBoolean(bool value);
TypedRegister loadImmediate(double value);
TypedRegister loadString(const String &value);
TypedRegister loadString(const StringAtom &name);
TypedRegister newObject(TypedRegister constructor);
TypedRegister newArray();
TypedRegister newFunction(ICodeModule *icm);
TypedRegister newClass(JSClass *clazz);
TypedRegister cast(TypedRegister arg, JSType *toType);
TypedRegister super();
TypedRegister loadName(const StringAtom &name, JSType *t = &Any_Type);
void saveName(const StringAtom &name, TypedRegister value);
TypedRegister nameXcr(const StringAtom &name, ICodeOp op);
TypedRegister deleteProperty(TypedRegister base, const StringAtom &name);
TypedRegister getProperty(TypedRegister base, const StringAtom &name);
void setProperty(TypedRegister base, const StringAtom &name, TypedRegister value);
TypedRegister propertyXcr(TypedRegister base, const StringAtom &name, ICodeOp op);
TypedRegister getStatic(JSClass *base, const String &name);
void setStatic(JSClass *base, const StringAtom &name, TypedRegister value);
TypedRegister staticXcr(JSClass *base, const StringAtom &name, ICodeOp op);
TypedRegister getElement(TypedRegister base, TypedRegister index);
void setElement(TypedRegister base, TypedRegister index, TypedRegister value);
TypedRegister elementXcr(TypedRegister base, TypedRegister index, ICodeOp op);
TypedRegister getSlot(TypedRegister base, uint32 slot);
void setSlot(TypedRegister base, uint32 slot, TypedRegister value);
TypedRegister slotXcr(TypedRegister base, uint32 slot, ICodeOp op);
TypedRegister varXcr(TypedRegister var, ICodeOp op);
InstructionStream *getICode() { return iCode; }
Label *getLabel();
};
Formatter& operator<<(Formatter &f, ICodeGenerator &i);
Formatter& operator<<(Formatter &f, ICodeModule &i);
/*
std::ostream &operator<<(std::ostream &s, ICodeGenerator &i);
std::ostream &operator<<(std::ostream &s, StringAtom &str);
*/
} /* namespace IGC */
} /* namespace JavaScript */
#endif /* icodegenerator_h */

File diff suppressed because it is too large Load Diff

View File

@@ -1,113 +0,0 @@
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
//
// The contents of this file are subject to the Netscape Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of
// the License at http://www.mozilla.org/NPL/
//
// Software distributed under the License is distributed on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
// implied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Original Code is the JavaScript 2 Prototype.
//
// The Initial Developer of the Original Code is Netscape
// Communications Corporation. Portions created by Netscape are
// Copyright (C) 2000 Netscape Communications Corporation. All
// Rights Reserved.
#ifndef interpreter_h
#define interpreter_h
#include "utilities.h"
#include "jstypes.h"
#include "vmtypes.h"
#include "icodegenerator.h"
#include "gc_allocator.h"
namespace JavaScript {
namespace Interpreter {
using namespace ICG;
using namespace JSTypes;
struct Activation;
struct Linkage;
class Context : public gc_base {
void initContext();
public:
explicit Context(World& world, JSScope* aGlobal)
: mWorld(world), mGlobal(aGlobal), mLinkage(0), mActivation(0), mHasOperatorsPackageLoaded(false) { initContext(); }
World& getWorld() { return mWorld; }
JSScope* getGlobalObject() { return mGlobal; }
InstructionIterator getPC() { return mPC; }
JSValues& getRegisters();
ICodeModule* getICode();
enum Event {
EV_NONE = 0x0000,
EV_STEP = 0x0001,
EV_THROW = 0x0002,
EV_DEBUG = 0x0004,
EV_ALL = 0xffff
};
class Listener {
public:
virtual void listen(Context *context, Event event) = 0;
};
void addListener(Listener* listener);
void removeListener(Listener* listener);
class Frame {
public:
virtual Frame* getNext() = 0;
virtual void getState(InstructionIterator& pc, JSValues*& registers,
ICodeModule*& iCode) = 0;
};
Frame* getFrames();
JSValue interpret(ICodeModule* iCode, const JSValues& args);
void doCall(JSFunction *target, Instruction *pc);
ICodeModule* compile(const String &source);
ICodeModule* genCode(StmtNode *p, const String &fileName);
JSValue readEvalFile(FILE* in, const String& fileName);
void addBinaryOperator(BinaryOperator::BinaryOp op, BinaryOperator *fn) { mBinaryOperators[op].push_back(fn); }
const JSValue findBinaryOverride(JSValue &operand1, JSValue &operand2, BinaryOperator::BinaryOp op);
bool hasOperatorsPackageLoaded() { return mHasOperatorsPackageLoaded; }
private:
void broadcast(Event event);
void initOperatorsPackage();
private:
World& mWorld;
JSScope* mGlobal;
Linkage* mLinkage;
typedef std::vector<Listener*, gc_allocator<Listener*> > ListenerList;
typedef ListenerList::iterator ListenerIterator;
ListenerList mListeners;
Activation* mActivation;
bool mHasOperatorsPackageLoaded;
InstructionIterator mPC;
BinaryOperatorList mBinaryOperators[BinaryOperator::BinaryOperatorCount];
}; /* class Context */
} /* namespace Interpreter */
} /* namespace JavaScript */
#endif /* interpreter_h */

View File

@@ -1,316 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the JavaScript 2 Prototype.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
#ifndef jsclasses_h
#define jsclasses_h
#include "jstypes.h"
namespace JavaScript {
namespace JSClasses {
using JSTypes::JSValue;
using JSTypes::JSObject;
using JSTypes::JSType;
using JSTypes::JSScope;
using JSTypes::JSFunction;
using ICG::ICodeModule;
struct JSSlot {
typedef enum { kNoFlag = 0, kIsConstructor = 0x01 } SlotFlags; // <-- readonly, enumerable etc
JSType* mType;
uint32 mIndex;
SlotFlags mFlags;
JSSlot() : mType(0), mFlags(kNoFlag)
{
}
bool isConstructor() const { return (mFlags & kIsConstructor) != 0; }
};
#if defined(XP_MAC)
// copied from default template parameters in map.
typedef gc_allocator<std::pair<const String, JSSlot> > gc_slot_allocator;
#elif defined(XP_UNIX)
typedef JSTypes::gc_map_allocator gc_slot_allocator;
#elif defined(_WIN32)
typedef gc_allocator<JSSlot> gc_slot_allocator;
#endif
typedef std::map<String, JSSlot, std::less<const String>, gc_slot_allocator> JSSlots;
typedef std::pair<String, JSFunction*> MethodEntry;
typedef std::vector<MethodEntry> JSMethods;
/**
* Represents a class in the JavaScript 2 (ECMA 4) language.
* Since a class defines a scope, and is defined in a scope,
* a new scope is created whose parent scope is the scope of
* class definition.
*/
class JSClass : public JSType {
protected:
JSScope* mScope;
uint32 mSlotCount;
JSSlots mSlots;
uint32 mStaticCount;
JSSlots mStaticSlots;
JSValue* mStaticData;
JSMethods mMethods;
public:
JSClass(JSScope* scope, const String& name, JSClass* superClass = 0)
: JSType(name, superClass),
mScope(new JSScope(scope)),
mSlotCount(superClass ? superClass->mSlotCount : 0),
mStaticCount(0),
mStaticData(0)
{
if (superClass) {
// inherit superclass methods
JSMethods::iterator end = superClass->mMethods.end();
for (JSMethods::iterator i = superClass->mMethods.begin(); i != end; i++)
mMethods.push_back(*i);
}
}
JSClass* getSuperClass()
{
return static_cast<JSClass*>(mBaseType);
}
JSScope* getScope()
{
return mScope;
}
const JSSlot& defineSlot(const String& name, JSType* type)
{
JSSlot& slot = mSlots[name];
ASSERT(slot.mType == 0);
slot.mType = type;
slot.mIndex = mSlotCount++; // starts at 0.
return slot;
}
const JSSlot& getSlot(const String& name)
{
return mSlots[name];
}
bool hasSlot(const String& name)
{
return (mSlots.find(name) != mSlots.end());
}
JSSlots& getSlots()
{
return mSlots;
}
uint32 getSlotCount()
{
return mSlotCount;
}
/**
* Define a static/class variable.
*/
const JSSlot& defineStatic(const String& name, JSType* type)
{
JSSlot& slot = mStaticSlots[name];
ASSERT(slot.mType == 0);
slot.mType = type;
slot.mIndex = mStaticCount++;
return slot;
}
const JSSlot& defineConstructor(const String& name)
{
JSSlot& slot = mStaticSlots[name];
ASSERT(slot.mType == 0);
slot.mType = &JSTypes::Function_Type;
slot.mIndex = mStaticCount++;
slot.mFlags = JSSlot::kIsConstructor;
return slot;
}
const JSSlot& getStatic(const String& name)
{
return mStaticSlots[name];
}
bool hasStatic(const String& name, JSType*& type, bool &isConstructor)
{
JSSlots::const_iterator i = mStaticSlots.find(name);
if (i != mStaticSlots.end()) {
type = i->second.mType;
isConstructor = i->second.isConstructor();
return true;
}
return false;
}
bool hasStatic(const String& name)
{
return (mStaticSlots.find(name) != mStaticSlots.end());
}
bool complete()
{
mStaticData = new JSValue[mStaticCount];
return (mStaticData != 0);
}
JSValue& operator[] (uint32 index)
{
return mStaticData[index];
}
virtual void printProperties(Formatter& f)
{
f << "Properties:\n";
JSObject::printProperties(f);
f << "Statics:\n";
printStatics(f);
}
void printStatics(Formatter& f)
{
JSClass* superClass = getSuperClass();
if (superClass) superClass->printStatics(f);
for (JSSlots::iterator i = mStaticSlots.begin(), end = mStaticSlots.end(); i != end; ++i) {
f << i->first << " : " << mStaticData[i->second.mIndex] << "\n";
}
}
void defineMethod(const String& name, JSFunction *f)
{
uint32 slot;
if (hasMethod(name, slot))
mMethods[slot] = MethodEntry(name, f);
else
mMethods.push_back(MethodEntry(name, f));
}
bool hasMethod(const String& name, uint32& index)
{
JSMethods::iterator end = mMethods.end();
for (JSMethods::iterator i = mMethods.begin(); i != end; i++) {
if (i->first == name) {
index = i - mMethods.begin();
return true;
}
}
return false;
}
JSFunction* getMethod(uint32 index)
{
return mMethods[index].second;
}
};
/**
* Represents an instance of a JSClass.
*/
class JSInstance : public JSObject {
protected:
JSValue mSlots[1];
public:
void* operator new(size_t n, JSClass* thisClass)
{
uint32 slotCount = thisClass->getSlotCount();
if (slotCount > 0) n += sizeof(JSValue) * (slotCount - 1);
return gc_base::operator new(n);
}
#if !defined(XP_MAC)
void operator delete(void* /*ptr*/, JSClass* /*thisClass*/) {}
#endif
JSInstance(JSClass* thisClass)
{
mType = thisClass;
// initialize extra slots with undefined.
uint32 slotCount = thisClass->getSlotCount();
if (slotCount > 0) {
std::uninitialized_fill(&mSlots[1], &mSlots[1] + (slotCount - 1),
JSTypes::kUndefinedValue);
}
// for grins, use the prototype link to access methods.
setPrototype(thisClass->getScope());
}
JSFunction* getMethod(uint32 index)
{
return getClass()->getMethod(index);
}
JSClass* getClass()
{
return static_cast<JSClass*>(mType);
}
JSValue& operator[] (uint32 index)
{
return mSlots[index];
}
virtual void printProperties(Formatter& f)
{
f << "Properties:\n";
JSObject::printProperties(f);
f << "Slots:\n";
printSlots(f, getClass());
}
private:
void printSlots(Formatter& f, JSClass* thisClass)
{
JSClass* superClass = thisClass->getSuperClass();
if (superClass) printSlots(f, superClass);
JSSlots& slots = thisClass->getSlots();
for (JSSlots::iterator i = slots.begin(), end = slots.end(); i != end; ++i) {
f << i->first << " : " << mSlots[i->second.mIndex] << "\n";
}
}
};
} /* namespace JSClasses */
} /* namespace JavaScript */
#endif /* jsclasses_h */

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