Commit Graph

101071 Commits

Author SHA1 Message Date
seawood%netscape.com
6b5be4cbcb Oops forgot local include path.
Bug #105005


git-svn-id: svn://10.0.0.236/trunk@105609 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 06:40:48 +00:00
seawood%netscape.com
f2559aab90 Use LOCAL_INCLUDES to make sure that our ldap.h gets used before any system copy.
Bug #103281


git-svn-id: svn://10.0.0.236/trunk@105608 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 06:20:42 +00:00
rbs%maths.uq.edu.au
4050ab700c More bullet-proofing of glyph resolution. b=103777 r=shanjian sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@105607 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 06:06:09 +00:00
seawood%netscape.com
a5686224c1 Remove use of additional dirs in VPATH as it causes problems in srcdir builds and the previous workarounds do not always work due to a bug in gcc's -MD.
Bug #105005 r=jag


git-svn-id: svn://10.0.0.236/trunk@105606 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 06:00:18 +00:00
rpotts%netscape.com
3db15629d1 bug #104769 (r=pavlov@netscape.com, sr=jst@netscape.com) Opening new windows sometimes stalls...
git-svn-id: svn://10.0.0.236/trunk@105605 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:57:29 +00:00
waterson%netscape.com
e1d5f4d759 Bug 104658. Ignore AttributeChanged notifications before the initial reflow has occurred. r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@105603 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:34:35 +00:00
gerv%gerv.net
22f4f719e8 Bug 101431 - create chromelist.txt for use with Patch Maker. r=cls, leaf.
git-svn-id: svn://10.0.0.236/trunk@105602 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:27:42 +00:00
jaggernaut%netscape.com
7421efac1f Bug 73292: Add const nsACString& constructor to NS_Convert(ASCII|UTF8)toUCS2. r=dbaron, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@105601 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:17:53 +00:00
mkaply%us.ibm.com
2460fe3a97 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@105600 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 05:01:54 +00:00
naving%netscape.com
1e17e4ef59 105162 r=racham sr=mscott. Remove unused prefs
git-svn-id: svn://10.0.0.236/trunk@105599 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 04:53:25 +00:00
naving%netscape.com
5d71096783 105162 r=racham sr=mscott. Make download message size pref work for pop3 again. Remove unused pref.
git-svn-id: svn://10.0.0.236/trunk@105597 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 04:53:23 +00:00
leaf%mozilla.org
35a5aa446b Automated update
git-svn-id: svn://10.0.0.236/trunk@105595 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 04:28:20 +00:00
blizzard%redhat.com
c5726e9c99 Update gtk2 link flags. r=cls
git-svn-id: svn://10.0.0.236/trunk@105594 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 04:25:45 +00:00
waldemar%netscape.com
671b3acf59 Added support for writable actions
git-svn-id: svn://10.0.0.236/trunk@105593 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:57:51 +00:00
waldemar%netscape.com
93633d4a47 Enhanced list*-bind and added tree-member
git-svn-id: svn://10.0.0.236/trunk@105592 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:57:32 +00:00
waldemar%netscape.com
b252b660c4 Fixes from October 1 ECMA meeting
git-svn-id: svn://10.0.0.236/trunk@105591 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:57:06 +00:00
waldemar%netscape.com
b55d66715b Test of writable actions
git-svn-id: svn://10.0.0.236/trunk@105590 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:55:46 +00:00
waldemar%netscape.com
65c89ecbb4 Updated for new syntax
git-svn-id: svn://10.0.0.236/trunk@105589 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:55:25 +00:00
brendan%mozilla.org
69d4fd60de Fixes for bug 80981 (``Need extended jump bytecode to avoid "script too large"
errors, etc.''):

We now ReportStatementTooLarge only if
- a jump offset overflows 32 bits, signed;
- there are 2**32 or more span dependencies in a script;
- a backpatch chain link is more than (2**30 - 1) bytecodes long;
- a source note's distance from the last note, or from script main entry
  point, is > 0x7fffff bytes.

Narrative of the patch, by file:

- js.c
  The js_SrcNoteName array of const char * is now a js_SrcNoteSpec array of
  "specifiers", structs that include a const char *name member.  Also, due to
  span-dependent jumps at the ends of basic blocks where the decompiler knows
  the basic block length, but not the jump format, we need an offset operand
  for SRC_COND, SRC_IF_ELSE, and SRC_WHILE (to tell the distance from the
  branch bytecode after the condition expression to the span-dependent jump).

- jsarena.[ch]
  JS arenas are used mainly for last-in-first-out allocation with _en masse_
  release to the malloc pool (or, optionally, to a private freelist).  But
  the code generator needs to allocate and grow (by doubling, to avoid O(n^2)
  growth) allocations that hold bytecode, source notes, and span-dependency
  records.  This exception to LIFO allocation works by claiming an entire
  arena from the pool and realloc'ing it, as soon as the allocation size
  reaches the pool's default arena size.  Call such an allocation a "large
  single allocation".

  This patch adds a new arena API, JS_ArenaFreeAllocation, which can be used
  to free a large single allocation.  If called with an allocation that's not
  a large single allocation, it will nevertheless attempt to retract the arena
  containing that allocation, if the allocation is last within its arena.
  Thus JS_ArenaFreeAllocation adds a non-LIFO "free" special case to match the
  non-LIFO "grow" special case already implemented under JS_ARENA_GROW for
  large single allocations.

  The code generator still benefits via this extension to arenas, over purely
  manual malloc/realloc/free, by virtue of _en masse_ free (JS_ARENA_RELEASE
  after code generation has completed, successfully or not).

  To avoid searching for the previous arena, in order to update its next
  member upon reallocation of the arena containing a large single allocation,
  the oversized arena has a back-pointer to that next member stored (but not
  as allocable space within the arena) in a (JSArena **) footer at its end.

- jscntxt.c
  I've observed for many scripts that the bytes of source notes and bytecode
  are of comparable lengths, but only now am I fixing the default arena size
  for cx->notePool to match the size for cx->codePool (1024 instead of 256).

- jsemit.c
  Span-dependent instructions in JS bytecode consist of the jump (JOF_JUMP)
  and switch (JOF_LOOKUPSWITCH, JOF_TABLESWITCH) format opcodes, subdivided
  into unconditional (gotos and gosubs), and conditional jumps or branches
  (which pop a value, test it, and jump depending on its value).  Most jumps
  have just one immediate operand, a signed offset from the jump opcode's pc
  to the target bytecode.  The lookup and table switch opcodes may contain
  many jump offsets.

  This patch adds "X" counterparts to the opcodes/formats (X is suffixed, btw,
  to prefer JSOP_ORX and thereby to avoid colliding on the JSOP_XOR name for
  the extended form of the JSOP_OR branch opcode).  The unextended or short
  formats have 16-bit signed immediate offset operands, the extended or long
  formats have 32-bit signed immediates.  The span-dependency problem consists
  of selecting as few long instructions as possible, or about as few -- since
  jumps can span other jumps, extending one jump may cause another to need to
  be extended.

  Most JS scripts are short, so need no extended jumps.  We optimize for this
  case by generating short jumps until we know a long jump is needed.  After
  that point, we keep generating short jumps, but each jump's 16-bit immediate
  offset operand is actually an unsigned index into cg->spanDeps, an array of
  JSSpanDep structs.  Each struct tells the top offset in the script of the
  opcode, the "before" offset of the jump (which will be the same as top for
  simplex jumps, but which will index further into the bytecode array for a
  non-initial jump offset in a lookup or table switch), the after "offset"
  adjusted during span-dependent instruction selection (initially the same
  value as the "before" offset), and the jump target (more below).

  Since we generate cg->spanDeps lazily, from within js_SetJumpOffset, we must
  ensure that all bytecode generated so far can be inspected to discover where
  the jump offset immediate operands lie within CG_CODE(cg).  But the bonus is
  that we generate span-dependency records sorted by their offsets, so we can
  binary-search when trying to find a JSSpanDep for a given bytecode offset,
  or the nearest JSSpanDep at or above a given pc.

  To avoid limiting scripts to 64K jumps, if the cg->spanDeps index overflows
  65534, we store SPANDEP_INDEX_HUGE in the jump's immediate operand.  This
  tells us that we need to binary-search for the cg->spanDeps entry by the
  jump opcode's bytecode offset (sd->before).

  Jump targets need to be maintained in a data structure that lets us look
  up an already-known target by its address (jumps may have a common target),
  and that also lets us update the addresses (script-relative, a.k.a. absolute
  offsets) of targets that come after a jump target (for when a jump below
  that target needs to be extended).  We use an AVL tree, implemented using
  recursion, but with some tricky optimizations to its height-balancing code
  (see http://www.enteract.com/~bradapp/ftp/src/libs/C++/AvlTrees.html).

  A final wrinkle: backpatch chains are linked by jump-to-jump offsets with
  positive sign, even though they link "backward" (i.e., toward lower bytecode
  address).  We don't want to waste space and search time in the AVL tree for
  such temporary backpatch deltas, so we use a single-bit wildcard scheme to
  tag true JSJumpTarget pointers and encode untagged, signed (positive) deltas
  in JSSpanDep.target pointers, depending on whether the JSSpanDep has a known
  target, or is still awaiting backpatching.

  Note that backpatch chains would present a problem for BuildSpanDepTable,
  which inspects bytecode to build cg->spanDeps on demand, when the first
  short jump offset overflows.  To solve this temporary problem, we emit a
  proxy bytecode (JSOP_BACKPATCH; JSOP_BACKPATCH_PUSH for jumps that push a
  result on the interpreter's stack, namely JSOP_GOSUB; or JSOP_BACKPATCH_POP
  for branch ops) whose nuses/ndefs counts help keep the stack balanced, but
  whose opcode format distinguishes its backpatch delta immediate operand from
  a normal jump offset.

  The cg->spanDeps array and JSJumpTarget structs are allocated from the
  cx->tempPool arena-pool.  This created a LIFO vs. non-LIFO conflict: there
  were two places under the TOK_SWITCH case in js_EmitTree that used tempPool
  to allocate and release a chunk of memory, during whose lifetime JSSpanDep
  and/or JSJumpTarget structs might also be allocated from tempPool -- the
  ensuing release would prove disastrous.  These bitmap and table temporaries
  are now allocated from the malloc heap.

- jsinterp.c
  Straightforward cloning and JUMP => JUMPX mutating of the jump and switch
  format bytecode cases.

- jsobj.c
  Silence warnings about %p used without (void *) casts.

- jsopcode.c
  Massive and scary decompiler whackage to cope with extended jumps, using
  source note offsets to help find jumps whose format (short or long) can't
  be discovered from properties of prior instructions in the script.

  One cute hack here: long || and && expressions are broken up to wrap before
  the 80th column, with the operator at the end of each non-terminal line.

- jsopcode.h, jsopcode.tbl
  The new extended jump opcodes, formats, and fundamental parameterization
  macros.  Also, more comments.

- jsparse.c
  Random and probably only aesthetic fix to avoid decorating a foo[i]++ or
  --foo[i] parse tree node with JSOP_SETCALL, wrongly (only foo(i)++ or
  --foo(i), or the other post- or prefix form operator, should have such an
  opcode decoration on its parse tree).

- jsscript.h
  Random macro naming sanity: use trailing _ rather than leading _ for macro
  local variables in order to avoid invading the standard C global namespace.


git-svn-id: svn://10.0.0.236/trunk@105588 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 03:16:48 +00:00
blizzard%redhat.com
164f60d537 Work with versions of bash older than version 2. Not part of the default build. Bug #104768.
git-svn-id: svn://10.0.0.236/trunk@105587 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 02:57:00 +00:00
hyatt%netscape.com
aab94a1cb2 Fix for 97805, r=sfraser, sr=waterson, also fixing event prioritization problems on Win32, r=jag, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@105586 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 02:14:43 +00:00
jst%netscape.com
a698aafccd Fixing most of bug 62536. Adding support for the properties scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth and the method scrollIntoView() to elements for compatibility with IE. Patch by Fabian <hidday@geocities.com> and myself, r=peterv@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105584 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 01:17:47 +00:00
beard%netscape.com
f2a983d650 [Not part of build] Reset versions to 1.0d1.
git-svn-id: svn://10.0.0.236/trunk@105583 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 01:16:48 +00:00
beard%netscape.com
9ad655f30b [not part of build] Removed redundant bundle loading code, #if DEBUG kprintf, etc.
git-svn-id: svn://10.0.0.236/trunk@105582 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 01:16:13 +00:00
wtc%netscape.com
70ee1142a6 Rewrote #ifndef #else #endif by the equivalent #ifdef #else #endif.
git-svn-id: svn://10.0.0.236/trunk@105579 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 01:10:16 +00:00
kmcclusk%netscape.com
2a7864f0bc Scroll browser window to top-left if anchor can not be found (quirks only) bug 80784. r=kin@netscape.com sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105578 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 01:06:19 +00:00
law%netscape.com
4c669fff49 Fixes for bugs:
74445  - Add call to DdeUnaccessData (r=pchen, sr=blake)
103849 - Use ::IsIconic to check if window is minimized before restoring (r=matt, sr=blake)


git-svn-id: svn://10.0.0.236/trunk@105576 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:42:12 +00:00
av%netscape.com
28337089e7 Correction to the fix to bug 104940 (r=peterl, sr=waterson) -- memory leak avoided
git-svn-id: svn://10.0.0.236/trunk@105575 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:39:21 +00:00
law%netscape.com
07eebcccfc Fix for bug 104910; change default for Don't ask me this again checkbox on Quick Launch dialog; r=pchen, sr=blake
git-svn-id: svn://10.0.0.236/trunk@105572 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:36:10 +00:00
blakeross%telocity.com
cfea4e44b9 Removing unused file.
git-svn-id: svn://10.0.0.236/trunk@105571 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:32:35 +00:00
pierre%netscape.com
e0c5a0727b 91665 "Dump Style Contexts doesn't work anymore". Fixed nsStyleContext::List(). r=attinasi/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@105570 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:25:26 +00:00
blakeross%telocity.com
208d60fb50 Removing unused file.
git-svn-id: svn://10.0.0.236/trunk@105569 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:21:06 +00:00
seawood%netscape.com
e999279eab Backing out previous change as it's screwing up --disable-auto-deps builds.
Bug #105005


git-svn-id: svn://10.0.0.236/trunk@105568 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:14:25 +00:00
pierre%netscape.com
e21200cd23 97052 "getComputedStyle returns default value for border width when there is no border". GetBorderWidthFor() now returns 0 if NS_STYLE_BORDER_STYLE_NONE. r=bzbarsky / sr=jst
git-svn-id: svn://10.0.0.236/trunk@105567 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 00:05:05 +00:00
pierre%netscape.com
54f09f85f4 97534 "classic: after changing text color, text [labels] in dialogs/chrome also changed in color". Added GetDocumentColorPreferences() and call it when we set the container (chrome/content) on the presContext. r=dbaron / sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@105566 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:59:25 +00:00
wtc%netscape.com
88fa081a13 Bugzilla bug 105154: fixed a timing problem in OS/2's implementation of
condition variables.  Thanks to Aaron Read <aaronr@us.ibm.com> for the
patch.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@105565 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:54:24 +00:00
seawood%netscape.com
30239478f9 Check for makefiles before running make to avoid needless errors. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@105561 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:44:12 +00:00
dougt%netscape.com
7afa8ce1d2 Allows a QI from nsIServiceManager to nsIServiceManagerObsolete. b=105136, r=beard, sr=darin
git-svn-id: svn://10.0.0.236/trunk@105560 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:39:20 +00:00
seawood%netscape.com
31b5169a1b Removing modules/plugin/tools/mpdk at av's request.
Bug #104941


git-svn-id: svn://10.0.0.236/trunk@105559 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:38:40 +00:00
wtc%netscape.com
7f6484b0b8 We don't assert on invalid arguments now.
git-svn-id: svn://10.0.0.236/trunk@105558 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:36:44 +00:00
tao%netscape.com
4077c4cab0 bug 72496: How to get all platform files w/o downloading 3 Browsers?
r=ssu,sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@105557 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:36:03 +00:00
dougt%netscape.com
28d5971198 Improvements to GetWindowsFolder. bug 104962, r=dveditz@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105556 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:33:08 +00:00
beard%netscape.com
811eb2e35d [Not part of build] Removed extraneous targets, simplified access paths.
git-svn-id: svn://10.0.0.236/trunk@105555 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:32:50 +00:00
wtc%netscape.com
ef741ab75b Bugzilla bug 104269: allow one to specify an includedir or dist_includedir
that doesn't end in "/nspr".  This patch is due to cls.  r=wtc.
The only problem with this solution is that the default value for
--includedir shown in the --help output is wrong.
Modified files: configure.in configure config/autoconf.mk.in


git-svn-id: svn://10.0.0.236/trunk@105554 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:31:02 +00:00
beard%netscape.com
111e19ef60 [not part of build] Removed dependencies on MRJNetworking, which is unavailable in OS X.
git-svn-id: svn://10.0.0.236/trunk@105553 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:29:54 +00:00
beard%netscape.com
d7faa1f8f5 [not part of build] Added MRJPlugin::GetService() static methods. Added support for using both new service manager, and obsolete service manager, for backwards compatibility.
git-svn-id: svn://10.0.0.236/trunk@105552 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:29:15 +00:00
beard%netscape.com
edc0f4a971 [not part of build] Added MRJPlugin::GetService() static methods.
git-svn-id: svn://10.0.0.236/trunk@105551 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:27:47 +00:00
beard%netscape.com
0ecbf3b3ee [not part of build] Removed all uses of raw nsIServiceManager, in favor of MRJPlugin::GetService().
git-svn-id: svn://10.0.0.236/trunk@105550 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:27:15 +00:00
aaronl%netscape.com
a02d72b41b Bug 57192. Alt+Down for combo boxes in HTML. r=rods, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@105547 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:00:12 +00:00
matt%netscape.com
34d29b64ff Adding context menu with search. Bug 15176. r=law sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@105546 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 22:56:52 +00:00