Граф коммитов

81735 Коммитов

Автор SHA1 Сообщение Дата
peterv%netscape.com f611e1c6d2 Adding nsIProgrammingLanguage.idl (mac bustage fix) 2001-05-08 19:17:19 +00:00
dbaron%fas.harvard.edu 8d47a3c3fd Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband 2001-05-08 19:11:51 +00:00
jst%netscape.com 3f55f4aeb1 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 18:02:50 +00:00
jst%netscape.com 621060c4fd Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 17:42:36 +00:00
leaf%mozilla.org aeafd0d638 merging for jst. 2001-05-08 17:14:15 +00:00
jst%netscape.com 4efe5ca336 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 17:02:10 +00:00
ashuk%eng.sun.com 762d6ae262 Bug=61977
author=ashuk
Fix changes CurrentPageImpl.java and fixes leading "null" from
getPageSource and getPageSourceBytes
2001-05-08 16:58:36 +00:00
jst%netscape.com adf1d8320a Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 16:46:42 +00:00
mkaply%us.ibm.com e365bb5bdf #78728
r=pierre, sr=waterson
Change bool/true/false cases to PRBool/PR_TRUE/PR_FALSE
2001-05-08 14:19:01 +00:00
brade%netscape.com e48bb6adcf fix gcc/MacOSX build (bug #66742); patch from davea@xetron.com 2001-05-08 14:12:06 +00:00
nboyd%atg.com 3faa9b4093 Change use of deprecated method. 2001-05-08 13:51:18 +00:00
nboyd%atg.com 342fb9ff6d Commit missing messages for new idswitch tool. 2001-05-08 13:42:56 +00:00
nboyd%atg.com 79e1cced0e Subject:
Rhino: optimization for NativeFunction.java
        Date:
             Mon, 07 May 2001 14:19:59 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

Hi, Norris!

This is the first of 3 patches that are completly independent from each
other.

Currently in NativeFunction its name stored as the first element in the
names array. But this lead to creation of a single element array for
each FunctionObject and for each script function that does not have
arguments or variables. The attached patch splits NativeFunction names
into simple functionName and argNames arrays and adjust code elsewhere
accordingly. This patch can increase memory footprint for anonymous
script functions without arguments because it adds additional field to
each NativeFunction, but I do not think this is a case to worry about.

Regards, Igor
2001-05-08 13:40:22 +00:00
brade%netscape.com e6396486de fix Composer keybindings (bugs #76917, 78064) 2001-05-08 13:39:36 +00:00
nboyd%atg.com 1ff3bdef33 Subject: Rhino: execMethod/methodArity cleanup.
Date: Mon, 07 May 2001 14:25:34 +0200
From: Igor Bukanov <igor.bukanov@windriver.com>
Organization: Wind River
To: Norris Boyd <nboyd@atg.com>

The current code that implements execMethod/methodArity for IdFunction
support returns an arbitrary value for id that is not known. This is not
very good behavior because it may hide bugs in the id support and it
also does not allow to distinguish ids that are used for function  from
ids used for properties like String.length.

To fix this I changed semantic of the methodArity method to return -1
for an unknown/non-method id and added code to throw an exception for
bad ids. This change requires to adjust all NativeSomething objects that
use IdScriptabl and after a release all such interface changes would be
no go, but is not a release yet, right?

I also eliminated the "IdFunction f" argument from
IdFunction.Master.methodArity and the tagId field from IdFunction. When
I wrote  the initial code for IdFunction.java, I added that just to be
able to use same id number in a class that implements IdFunction.Master
and its descendants via checking idTag. But that does not work in
general because IdScriptable can use id for non-function fields as well
so to avoid id clashes another way should be used. For example, if
someone would like to extend NativeMath to support more functionality,
he can use:

class Math2: extends NativeMath {
     private static idBase;

     {
         if (idBase == 0) idBase = super.getMaximumId();
     }

      public int methodArity(int methodId) {
          switch (methodId - idBase) {
             case Id_foo: return 2;
             case Id_bar: return 3;
         }
         return super.methodArity(methodId);
     }

      public Object execMethod
          (int methodId, IdFunction f,
           Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          throws JavaScriptException
      {
          switch (methodId - idBase) {
             case Id_foo: return ...;
             case Id_bar: return ...;
         }
          return super.execMethod(methodId, f, cx, scope, thisObj, args);
     }

      protected int getMaximumId() { return idBase + MAX_ID; }

      protected String getIdName(int id) {
          switch (id - idBase) {
             case Id_foo: return "for";
             case Id_bar: return "bar";
         }
         return super.getIdName(id);
     }
     ...
     private static final int
         Id_foo = 1,
         Id_bar = 2,
         MAX_ID = 2;

etc.


Note that a simpler solution to make MAX_ID field public in NativeMath
and write in Math2:
     private static final int
         Id_foo = NativeMath.MAX_ID + 1,
         Id_bar = NativeMath.MAX_ID + 2,
         MAX_ID = NativeMath.MAX_ID + 2;

does not work because in this way adding any new id to NativeMath would
break binary compatibility with Math2.
2001-05-08 13:36:16 +00:00
dcone%netscape.com 4938181b34 Minor fix. r=sfraser. Does not effect build 2001-05-08 13:35:48 +00:00
nboyd%atg.com e465a24df3 Subject:
Rhino: fix for race conditions in listeners code in Context.java
        Date:
             Mon, 07 May 2001 14:22:57 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

The current code for listeners and contextListeners in Context.java is
not race condition free. If contextListeners Vector would be modified
during context event firing loops, the code can produce
index-out-of-bounds exception. The problem with listeners array is more
subbtle and comes from the fact that ListenerCollection.java uses code like:
         for(Enumeration enum = getAllListeners();enum.hasMoreElements();) {
             Object listener = enum.nextElement();
             if(iface.isInstance(listener)) {
                 array.addElement(listener);
             }
         }
where getAllListeners() uses Vector.elements to get element enumeration.
But to work with such enumeration in a thread safe way, one has to
synchronized against Vector, otherwise between enum.hasMoreElements()
and enum.nextElement() the last element can be removed.

Initially I thought to fix ListenerCollection and use it for
contextListeners as well, but then I realized that in its current form
ListenerCollection is very inefficient (it produces too many objects
just to get simple array to fire events), so I wrote ListenerArray.java
and use it in Context.java. It makes life simpler and shrinks code as well.
2001-05-08 13:33:43 +00:00
jst%netscape.com fca8ad1b44 Adding makefile, not part of the build yet. 2001-05-08 12:34:29 +00:00
timeless%mac.com 8a0fa1ceb4 Bugzilla Bug 79132 Xlib toolkit is kinda inefficient
Cache mStretches[] and mWeights[] to avoid repeated pointer dereferences.
r=dbaron@fas.harvard.edu sr=alecf
2001-05-08 09:34:17 +00:00
rbs%maths.uq.edu.au b0710bb6fb Typographical changes 2001-05-08 08:36:02 +00:00
rbs%maths.uq.edu.au 294057136e Correct stretchy metadata 2001-05-08 08:34:13 +00:00
rbs%maths.uq.edu.au ad4e80b4bb Correct a faulty mapping 2001-05-08 08:31:48 +00:00
ftang%netscape.com fe19b0bcba fix #ifdef IBMBID bustage
change other.mUnicodeBidi to other->mUnicodeBidi
r=noone sr=onone
2001-05-08 08:13:12 +00:00
alecf%netscape.com 9525f86757 add mozilla-based preloader to the cvs tree (not part of build yet) 2001-05-08 07:19:39 +00:00
tajima%eng.sun.com edada4aa1d bug 78704 Preedit text is displayed with bold font in over-the-spot mode
r=tor,blizzard sr=blizzard
2001-05-08 06:11:05 +00:00
alecf%netscape.com c8575b39e8 minor tweak so fast-update picks up new directories. not part of build 2001-05-08 05:21:28 +00:00
edburns%acm.org 5ea51bde30 Files in this Checkin:
M classes_spec/org/mozilla/webclient/test/EMWindow.java
M classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/NativeEventThreadActionEvents.cpp
M src_moz/WindowControlActionEvents.cpp

bug:  79278

This checkin makes webclient work with the trunk as of 7 May 2001 AM PDT.

It also adds support for PROGRESS_URL_LOAD and STATUS_URL_LOAD events.
2001-05-08 04:50:33 +00:00
pavlov%netscape.com 01b5346b5d the rest of 79314 r=bryner sr=hyatt 2001-05-08 04:21:49 +00:00
eddyk%netscape.com de7943cecb bug 63539: clarify networking cache panel
sr=ben@netscape.com r=bryner
2001-05-08 04:16:50 +00:00
pavlov%netscape.com aa3c12db20 fixing bug 74284 r=bryner sr=ben 2001-05-08 04:12:40 +00:00
bryner%uiuc.edu 85682e8c83 Bug 76234 - XPCOM cleanups in PSM2. r=javi, sr=ben. 2001-05-08 04:09:28 +00:00
pavlov%netscape.com b599762391 fixing up the logging in imglib bug 79314 r=bryner sr=hyatt 2001-05-08 04:01:28 +00:00
nelsonb%netscape.com 3465c3f629 Restore explicit dependencies on headers and other sources. 2001-05-08 03:50:02 +00:00
pavlov%netscape.com 021087f601 adding some new files... not part of the build 2001-05-08 03:38:35 +00:00
rbs%maths.uq.edu.au f700e01082 Save cycles by removing unneed code b=74494 sr=brendan 2001-05-08 02:33:53 +00:00
cmanske%netscape.com 84cbecc0da Fixed order of keybinding modifiers, b=78406, r=hurricane, sr=kin 2001-05-08 02:16:52 +00:00
bryner%uiuc.edu 9fe68ff491 Part of fix for 74387 -- return an error code from nsSocketTransport::Init if we don't have a socket provider for the given socket type, such as if PSM is not installed. r=bbaetz, sr=darin. 2001-05-08 02:06:46 +00:00
cmanske%netscape.com 547c3ca373 Fixed menu text for Find and Replace dialogs, b=78227, r=brade, sr=kin 2001-05-08 02:04:36 +00:00
cmanske%netscape.com fae247e4f0 Append '.html' extension when user doesn't, b=77474, r=law, sr=kin 2001-05-08 02:01:49 +00:00
hewitt%netscape.com 145e5200ca 78574 - Mail crashes Trunk when entering a second email address, r=ducarroz, sr=mscott 2001-05-08 01:43:33 +00:00
bnesse%netscape.com 55f46d5b73 Fix for broken color preferences. bug 77828. r=sfraser, sr=alecf. 2001-05-08 01:40:09 +00:00
morse%netscape.com 965845638d bug 78262, can't delete certain passwords, r=matt, sr=alecf 2001-05-08 01:37:18 +00:00
morse%netscape.com 6924db5f51 bug 77525, shouldn't save password when password field is empty, r=matt, sr=alecf 2001-05-08 01:34:54 +00:00
brendan%mozilla.org 82542b00bb - Fix bug 79054, AB-BA deadlock between rt->setSlotLock and one or more claimed scopes (r=shaver, sr=jband)
js_SetProtoOrParent should always have used a condvar in addition to a lock.
- Fix bug 79129, assert-botch in js_AllocSlot (r/sr=jband, sr=shaver)
  JS_INITIAL_NSLOTS is the minimum number of slots, js_FreeSlot guarantees it.
2001-05-08 01:31:02 +00:00
brendan%mozilla.org a496c891b3 Deoptimize JSOP_TABLESWITCH to JSOP_LOOKUPSWITCH upon first duplicate case label (74474, r=rogerl, sr=shaver). 2001-05-08 01:21:01 +00:00
srilatha%netscape.com d119edf8fc Fix for packager-* problem bug# 78926.
r=domse, sr=sspitzer
2001-05-08 01:13:46 +00:00
ftang%netscape.com 7762a9c364 fix bug 75814. add hkscs support
r=nhotta
sr=blizzard
2001-05-08 00:44:30 +00:00
ftang%netscape.com 932028310f fix bug 75814. add hkscs-1 support for unix
r=nhotta sr=blizzard
2001-05-08 00:43:06 +00:00
ftang%netscape.com 1ab4778cb7 fix 75814. add HKSCS langgroup
r=nhotta
sr=blizzard
2001-05-08 00:41:07 +00:00
ftang%netscape.com c06ebca6f5 fix bug 75814. r=nhotta sr=blizzard add nsUnicodeToHKSCS.cpp 2001-05-08 00:39:46 +00:00