Commit Graph

987 Commits

Author SHA1 Message Date
hyatt%netscape.com
8ac3ffd335 Fixing command dispatcher horkage. r=saari 2000-02-09 03:14:03 +00:00
dp%netscape.com
3c5ef57426 Fixing build bustage. 2000-02-09 02:43:48 +00:00
hyatt%netscape.com
6dd01225a8 Command dispatcher fix for PDT+ focus issues on Linux. r=saari 2000-02-09 01:32:42 +00:00
tbogard%aol.net
840c8350e1 GlobalWindow now calls up nsIDocShellTreeOwner rather than nsIBrowserWindow. GlobalWindow has mostly been re-organized as well as cleaned up to provide this new functionality. DocShellTreeOwners got implementations filled in and many bugs fixed. nsIScriptGlobalObject now talks in terms of docShells instead of webShells. Fixed a number of cases where people were walking through content viewers etc to get to a presShell and changed them to simply ask for the presShell from the docShell. GlobalWindow now deals completely in terms of docShells. r=vidur 2000-02-08 13:40:10 +00:00
joki%netscape.com
3480787577 Adding getPreventDefault method to events and fixing its propagation through content. r:hyatt 2000-02-08 02:05:57 +00:00
waterson%netscape.com
d4305ba238 Tweak MOZ_COUNT_[CTOR|DTOR] macros. 2000-02-06 02:56:06 +00:00
alecf%netscape.com
1cb5e2dedd when form elements are generated via a template, set the form to the XUL Doc's hidden form so that the element behaves correctly.
r=waterson
2000-02-05 01:03:39 +00:00
alecf%netscape.com
a59485a7ad hook up this object to the globalobjectowner so that we can report errors
r=waterson
2000-02-04 01:42:05 +00:00
waterson%netscape.com
65ae380cbe Bug 25333. Implement nsIScriptGlobalObjectOwner so we can report compilation errors. r=scc 2000-02-03 08:51:49 +00:00
waterson%netscape.com
3ecb7666ea Bug 26304. Make sure the nsXULSortService updates does 'deep' SetDocument() calls when twiddling content nodes: regressed with fixes for 20677 and 23905. r=scc,rjc. 2000-02-03 07:57:51 +00:00
waterson%netscape.com
b0ab68c1e3 Bug 20677, 23905, attempt number 2. This time, in the DOM methods, we make sure to do a 'deep' set on mDocument *before* calling to their nsIContent brethren. This ensures that any code in layout that wants to access the document gets the right value. r=scc 2000-02-03 07:55:34 +00:00
pp%ludusdesign.com
63dc886c6b Removed hand-made QueryInterface that wasn't used for a long time.
r=pinkerton@netscape.com
2000-02-03 01:25:38 +00:00
valeski%netscape.com
a567c875bb r=warren. nsIUnicharStreamLoader is dead. Now we have a generic byte stream loader that can be used for any sort of data. 2000-02-02 23:04:47 +00:00
waterson%netscape.com
8dd7b2ed23 Revert changes that cause mail sort to crash. 2000-02-02 19:46:03 +00:00
waterson%netscape.com
a26daa2f0d Bugs 20677, 23905. Change nsXULElement to implement nsIContent like nsGenericElement and nsGenericHTMLElement. Specifically, do 'shallow' SetDocument() calls in AppendChildTo(), InsertChildAt() and ReplaceChildAt() methods. Change nsXULDocument to leave newly create element's mDocument as null (so 'null mDocument' means 'this element is not currently in the document'. Fix callers to ensure that a deep SetDocument() is made where necessary. r=hyatt 2000-02-01 22:57:36 +00:00
pp%ludusdesign.com
48e640ed4f Conversion to NS_GET_IID(). Bug #20232, r=scc@netscape.com 2000-02-01 14:26:27 +00:00
beard%netscape.com
64f273abee fix nsIAtom leak. bug=25778, r=waterson 2000-01-31 23:29:08 +00:00
vidur%netscape.com
e8157b30cb Fix for bugs 20485 and 24600. We no longer flush immediately in the content sink when we hit a script element. Instead the sink is a document observer and listens for BeginUpdate/EndUpdate notifications when evaluating a script and flushes only if necessary. Added BeginUpdate/EndUpdate notifications to nsIDocument and layout content (note that it's still necessary for XUL content). r=nisheeth,pollmann 2000-01-28 23:43:12 +00:00
hyatt%netscape.com
6face65492 Fix for bug#15946 2000-01-28 03:41:24 +00:00
hyatt%netscape.com
98a3a526b1 Getting rid of createPopup 2000-01-28 03:04:40 +00:00
sspitzer%netscape.com
5f82aeba31 fix for crash in bug #25339, r=hyatt. the problem is someone is trying to select a null
element in the tree (from js).  now, on to fix that problem.
2000-01-28 01:30:29 +00:00
hyatt%netscape.com
1b09ed7f43 Making the XUL key listener a bubbler. Removing its capability to handle
textareas and inputs.
2000-01-27 09:43:19 +00:00
hyatt%netscape.com
757fc8d376 More popup work. 2000-01-26 23:30:10 +00:00
sspitzer%netscape.com
1a7841574a change PR_ASSERT to NS_ASSERTION. on linux, PR_ASSERT calls abort, and
I was getting getting to the PR_ASSERT when copying text in a quoted mail message.  r=akkana, a=leaf
2000-01-26 20:39:28 +00:00
norris%netscape.com
7ec9655d07 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
jband%netscape.com
eef6de8432 Lots of xpconnect bug fixes...
- fix bug 12954 "should throw when setting non-settable props".

- fix bug 13418 "xpconnect needs to be threadsafe".
I think I filled in the cracks. Tests would be nice :)

- fix bug 22802 "[MLK] XPConnect Leaks".

- fix bug 24119 "[MLK] Reminder about cleaning up maps".

- fix bug 24453 "xpconnect needs default security manager".
I also changed the code in DOM and caps to just install a default secman and
not install a secman for each JSContext.

- fix bug 24687 "xpconect should avoid resolve performance suckage".
Added (modified) patch from shaver to create my JSObjects with the
global object as the temporary proto to avoid losing lookup.

- hack for bug 24688 "runtime errors in wrapped JS are not made obvious"
Added a debug only printf. We still need a JSErrorConsole service for this.

- fix bug 16130 "createInstanace and getService can create wrappers around wrappers"
Fixing this one really entailed changing the semantics of nsIXPConnect::wrapNative
and nsIXPConnect::wrapJS to use common code in xpcconvert that deals with existing
wrappers and DOM objects (with their own schemes for wrapping and unwrapping).
So, I changed the callers because the params changed slightly and some callers
were doing more work than necessary given the new semantics.

- Continued in the crusade to replace manaual refcounting with nsCOMPtrs whenever
touching old code.

- Added myself as first contributor to xpconnect files (vanity prevails!)

- Added new copyright header on some files that were missing it.

- Added some API comments.

- Converted nsXPCWrappedJS to implement nsIXPConnectWrappedJS via MI rather than
the old loser scheme of the nsIXPConnectWrappedJSMethods tearoff object.

- added DumpJSStack as globals to xpconnect and DOM dlls to be callable from
debuggers. I have ideas on how to improve and expand this support soon.

r=mccabe
2000-01-26 08:38:10 +00:00
waterson%netscape.com
07c10d9502 Minor code cleanup from review with brendan: use shared finalizer in nsJSUtils. 2000-01-26 01:56:56 +00:00
waterson%netscape.com
a566daa16c Use NS_REINTERPRET_CAST instead of including private header files. 2000-01-26 01:55:59 +00:00
hyatt%netscape.com
ed3ccb2fbf Multiple selection capability configurable in trees now. 2000-01-25 10:30:51 +00:00
hyatt%netscape.com
ec1342578e Fixing Linux bustage. 2000-01-25 08:39:53 +00:00
hyatt%netscape.com
0dfb94bf0a Fixes for bugs: 18193, 13971, 23440, 18444, 21462, 21818, 22619, 23498, 24081, and 21972. r=just about everybody. 2000-01-25 06:35:27 +00:00
putterman%netscape.com
3ca3cf5499 r=waterson. Necessary for 24768. Put nsIDOMXULDocument into this. 2000-01-25 05:09:23 +00:00
waterson%netscape.com
776ac8a3e9 Clean up shared structures between nsRDFGenericBuilder.cpp and nsXULSortService.cpp; r=rjc 2000-01-25 04:07:41 +00:00
nisheeth%netscape.com
22a5959edb Work done by Vidur and me. Added a FlushPendingNotifications() method to the document. This method flushes the pending content notifications from the content sink and the pending reflow notifications from the pres shell. This code is turned off for now so that it can be tested more thoroughly by Vidur and me. 2000-01-24 06:43:15 +00:00
jfrancis%netscape.com
75b2d70c6e fixing rdf build bustage 2000-01-23 00:25:21 +00:00
waterson%netscape.com
d100985675 Bugs 18127, 20677, 23905. Partial fix. Give the nsXULPrototypeDocument it's own JSContext to use for compiling scripts and event handlers. Modify script and event handler code to compile shared scripts using this context, if appropriate. r=brendan 2000-01-22 22:00:35 +00:00
troy%netscape.com
8a78d916a5 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
michael.lowe%bigfoot.com
6696fa133b Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan 2000-01-21 21:56:09 +00:00
waterson%netscape.com
d009ef8c34 Gak. Forgot to comment the oddity that may occur... 2000-01-19 06:00:25 +00:00
waterson%netscape.com
fef380fbe7 Remove bogobotch that is breaking cloneNode(). r=brendan 2000-01-19 05:51:30 +00:00
hyatt%netscape.com
b8c4dff420 Adding a XUL element factory so that the XML content sink over in layout will
be able to make XUL elements. r=waterson
2000-01-19 03:28:06 +00:00
hyatt%netscape.com
1d0e1d86fd Patching XUL documents so that they support extensibility of content creation.
Patching the RDF generic builder so that it can build any type of content
element (using the generic factory building interface). r=waterson
2000-01-19 03:11:39 +00:00
rjc%netscape.com
edaebbff0b A few small sorting tweaks. 2000-01-19 02:39:40 +00:00
rjc%netscape.com
7ac034530e Enable the optimized binary insertion node with end-point interpolation. (Sort-of) review: putterman@netscape.com 2000-01-19 01:44:29 +00:00
waterson%netscape.com
d5fbf22774 Bug 24134. Re-apply r1.233, which was steamrollered by tao's recent checkin. Re-using the r=valeski here. 2000-01-17 19:34:23 +00:00
rjc%netscape.com
822b28d53c More preparations to land an optimized binary insertion node. (Going to test more later. Currently #ifdef'ed out.) 2000-01-17 13:15:44 +00:00
rjc%netscape.com
c478f38a12 Prepare to land an optimized binary insertion sort. (Going to test more later. Currently #ifdef'ed out.) 2000-01-17 11:00:13 +00:00
rjc%netscape.com
8f14d36af0 Small optimizations. 2000-01-17 07:02:17 +00:00
danm%netscape.com
5a261c8ad9 reapplying changes from rev 1.234, which was lost as part of 1.235 2000-01-15 05:53:41 +00:00
alecf%netscape.com
94b65d019c attempted fix at build bustage. I have no idea if this is the "right" thing or not but it gets the build green 2000-01-15 03:51:31 +00:00
tao%netscape.com
da49ef2262 bug 23400: Need to expose api GetDocumentCharacterSet() to JS. r=vidur. 2000-01-15 02:01:05 +00:00
mscott%netscape.com
d5354ef4c7 Bug #24007 --> you can't remove xul elements from html elements in JS
this was because of an unitialized variable in layout because xul elements
don't support the notion of ranges.
r=waterson
2000-01-15 01:37:16 +00:00
rjc%netscape.com
b2951b5f50 Sorting optimizations. (Sort-of) review by putterman@netscape.com 2000-01-14 01:21:55 +00:00
brendan%mozilla.org
dfaa05987e InitStandardClasses so JS compiler makes well-prototyped objects (22048,22098 r=shaver). 2000-01-14 00:49:30 +00:00
danm%netscape.com
05825e9716 removing initial window sizing from StartLayout (now done in nsWebShellWindow). Long overdue change; also necessary as part of bug 15775. r:hyatt@netscape.com 2000-01-13 23:49:25 +00:00
waterson%netscape.com
a8efb387b8 Bug 23799. Ignore failure from GetContentType() in StartDocumentLoad(), because some channels may not have yet resolved the content type. In this case, cross our fingers and pray that it's text/xul. r=valeski 2000-01-13 23:23:51 +00:00
waterson%netscape.com
ce2f72d531 Remove some additional bogoasserts. 2000-01-13 23:18:05 +00:00
rjc%netscape.com
f84f23778b Attempt to fix wensleydale (SunOS 5.6) bustage. 2000-01-13 11:03:56 +00:00
rjc%netscape.com
6222e5412c Sorting optimizations. (Sort-of) review by putterman@netscape.com 2000-01-13 10:16:32 +00:00
hyatt%netscape.com
25002cc5a7 Fix Linux bustage. 2000-01-13 09:20:58 +00:00
hyatt%netscape.com
7868624ce2 Giving XUL elements the capability to own bindings. 2000-01-13 08:48:33 +00:00
alecf%netscape.com
714e7a48a9 expose the form controls in a XUL document in the "controls" DOM attribute
this will make prefs and wizards much faster
r=hyatt
2000-01-13 02:59:08 +00:00
waterson%netscape.com
e3393dd236 Remove assertion from nsRDFDOMNodeList::Item(); it was being triggered from JS, and it really isn't a "fatal" program condition. 2000-01-13 02:49:10 +00:00
waterson%netscape.com
c098826ddd Bugs 20724, 23715. Add a fixed-size allocator for nsXULAttribute objects. Always atomize 'id' attributes so nsXULElement::GetID() can be fast. r=hyatt 2000-01-13 02:22:16 +00:00
sspitzer%netscape.com
1c84b93a3a fix warning. 2000-01-12 08:57:41 +00:00
waterson%netscape.com
468ebfdd06 Bug 17195. Implement nsIDOMNode::CloneNode(). r=hyatt 2000-01-12 03:23:48 +00:00
rjc%netscape.com
b945bae5b3 Somehow, we lost some of the magical attributes we need to check for. (coalescing dup arcs, and allowing negative arcs) 2000-01-12 01:47:23 +00:00
rjc%netscape.com
02fab863f0 Tweak resource cache usage. Change from putterman, Review from me 2000-01-11 22:03:53 +00:00
waterson%netscape.com
c0a53ad72f Bug 22915. Be sure to add the nsCachedChromeChannel to the load group on nsIChannel::SetLoadGroup(). Also, don't assume (in nsXULDocument::StartDocumentLoad) that when you 'hit' in the cache that the channel is actually a nsCachedChromeChannel; instead, inspect its content type. Finally, get rid of extraneous 'command' member variable in nsCachedChromeChannel. r=mscott 2000-01-11 21:18:19 +00:00
pp%ludusdesign.com
698852a4f4 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
rjc%netscape.com
898f051fc7 Use native ptr [via .get()] 2000-01-11 08:41:15 +00:00
rjc%netscape.com
86f0302402 Defer creation of resource cache until a sort is imposed. Also, added a temporary working for db->OnChange() not enjoying a null oldTarget. 2000-01-11 08:38:47 +00:00
rjc%netscape.com
423ba787b8 Move resource cache up from the XUL sort service into the generic builder. Review: me 2000-01-11 06:28:28 +00:00
waterson%netscape.com
971c4ab2ab Take out crufty debug printfs. 2000-01-11 02:49:18 +00:00
hyatt%netscape.com
fa8f3d858e Making nsIXULContent visible. 2000-01-10 04:03:12 +00:00
hyatt%netscape.com
1152f9e9ba Teaching the XUL DOM how to keep anonymous content events from being seen
by enclosing explicit content.
2000-01-10 03:57:49 +00:00
rpotts%netscape.com
023f2ff6e1 Made contentType a read/write attribute of nsIChannel 2000-01-08 06:26:04 +00:00
hyatt%netscape.com
f8c91fadf4 Making tree scrolling faster. 2000-01-08 02:18:14 +00:00
waterson%netscape.com
0a61fb89c2 Bug 21477. Add |nsIContent** aFirstGeneratedChild| parameter to several methods that is used as an 'out' parameter to determine the first generated child in a subtree. This allows us to send the correct |ContentAppended()| notification to layout. Fixes the 'unfurling menu' problem. r=rjc 2000-01-08 00:27:04 +00:00
alecf%netscape.com
e533d87b8a one more time! this time don't look inside templates, instead look inside <treechildren> of trees
r=scottip
2000-01-07 00:38:24 +00:00
alecf%netscape.com
cf3ead0374 followup fix for #12895 - actually find the content correctly
r=scottip
2000-01-07 00:00:27 +00:00
waterson%netscape.com
73e507347d Bug 22805. Wrap NS_GetWeakReference() with getter_AddRefs(). Thanks beard! r=beard 2000-01-06 20:01:56 +00:00
nhotta%netscape.com
1cb7735520 Fixed memory leak, bug 22281, r=waterson. 2000-01-06 19:47:20 +00:00
alecf%netscape.com
c78c629151 fix my previous checkin after talking to hyatt - we'll be getting the outer frame, so iterate through the children and QI on each one, sending EnsureRowIsVisible to each when it succeeds
r=hyatt
2000-01-06 09:19:31 +00:00
alecf%netscape.com
cb1027f2f0 add new method to ensure that tree content is visible: go through all the presentation shells, and call EnsureRowIsVisible for each tree.
also expose a method to get the visible row for a tree - I needed it anyway, figured I might as well expose it from JS.
other half of fix for #12895
r=bryner
2000-01-06 07:54:43 +00:00
waterson%netscape.com
4c6aed1d16 Bug 19033. Wait until the parse is complete to set the 'root' element in the prototype document. This ensures that malformed XUL with too few close-tags won't leave the prototype document with a dangling pointer to a destroyed element. r=hyatt 2000-01-06 00:29:30 +00:00
sspitzer%netscape.com
fbd97e9856 fix warnings. 1999-12-28 19:37:29 +00:00
sspitzer%netscape.com
e32328cd40 only hyatt needs to see his debugging printfs. 1999-12-24 07:53:41 +00:00
rjc%netscape.com
fe407f203d Small sorting change: always sort {null} items last (after non-null items). 1999-12-23 12:01:44 +00:00
waterson%netscape.com
48a17f7378 Bug 22305. Fix leak when replacing cache entry for style sheet and prototype document. r=buster, a=sdagley 1999-12-22 01:42:42 +00:00
pinkerton%netscape.com
2275305f2f remove hand-rolled QI and using scc's macros. Also removing static IID's where necessary. r=hyatt,scc a=sdagley. 1999-12-21 19:28:15 +00:00
jband%netscape.com
ef9c82db1e Landing big set of DOM and XPConnect changes:
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.

XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.

Also, xpconnect tests are reorganized and improved.

fixes bugs: 13419, 17736, 17746, 17952, 22086

r=vidur r=mccabe r=norris r=cbegle
a=chofmann
1999-12-18 20:29:29 +00:00
hyatt%netscape.com
d3e0848c19 Fixes for 3 PDT+ bugs (THAT'S RIGHT). Bugs 21895, 21832, and 21610. r=mjudge,
a=i'm leaving now for vacation, and i can't find anyone around, but i'm assuming that you
actually want them before January 3rd, so I'm checking them in.
1999-12-18 04:02:28 +00:00
waterson%netscape.com
59f08eb360 Bug 21364. Fix document leaks that occur via uncollected script objects: compile scripts against a special global object owned by the prototype document. shaver mostly did this work. r=brendan Bug 21661. Break circular reference between command dispatcher and XUL document. r=saari 1999-12-17 00:06:28 +00:00
hyatt%netscape.com
78ed47b45c Fix for 21610. r=waterson 1999-12-16 03:19:34 +00:00
waterson%netscape.com
d13a83fb9f Bug 21610. Add support to distinguish key binding overlay from normal overlay documents. 1999-12-15 23:18:34 +00:00
waterson%netscape.com
9d9ae83f9d Bug 20724. Atomize short attribute values to avoid string allocation and copying overhead. r=hyatt, a=chofmann 1999-12-11 18:16:22 +00:00
rjc%netscape.com
c2328d93bf Fix PDT+ bug # 21245: add sorting support for <treecolgroup> trags. Review: hyatt, putterman. Approval: chofmann. 1999-12-11 08:17:31 +00:00
hyatt%netscape.com
70f793378c Fix for PDT bug #21247. r=saari, mjudge 1999-12-11 00:06:29 +00:00
dougt%netscape.com
b854d078d4 fix for 19133. r=waterson, a=brendan. 1999-12-09 02:28:43 +00:00
waterson%netscape.com
be17379f6b What a dumbass! I should've 'cvs diff'-ed before checking that in. Landed some random local mods in my tree. Sorry! 1999-12-08 08:08:39 +00:00
waterson%netscape.com
bc16c6794e Bug 17680. Only need to add template builders on nodes that are more than -two- levels in from an overlay root. The first ply will be set up in nsXULDocument::OverlayForwardReference::Merge(). 1999-12-08 07:59:12 +00:00
waterson%netscape.com
a377d5e847 Bug 21033. Delete broadcast listeners in Slots dtor. thanks beard! 1999-12-08 07:18:59 +00:00
waterson%netscape.com
0e5acf581a Bug 20714. Use static names for roots. 1999-12-08 06:58:00 +00:00
hyatt%netscape.com
c026e8d315 Fixing bustage on wensleydale. 1999-12-08 06:04:10 +00:00
hyatt%netscape.com
f23566bf16 Massive rewrite of the key binding system and the command dispatcher. Key
bindings are now fully hierarchical.  In addition, DOM windows, input fields
and textareas can pull their key bindings from a separate XUL file.  This
allows configurable key bindings.

Massive rewrite of the command dispatcher system.  The command dispatcher now
deals with DOM windows in addition to DOM elements.  It now tracks both
successfully and works in conjunction with the new focus/blur architecture.

r=saari
1999-12-08 04:56:56 +00:00
brendan%mozilla.org
5eacb7f5c1 Add off-by-default metering, improve comments (r=waterson@netscape.com). 1999-12-07 02:06:10 +00:00
waterson%netscape.com
77a02a8fff Bug 16709. Set 'content ID' fields on elements as they are constructed from XUL. 1999-12-06 23:05:31 +00:00
waterson%netscape.com
c3688d7937 Bug 20897. Change flow-of-control; panic if we can't get from a presshell to a webshell and beyond. r=danm 1999-12-06 23:03:53 +00:00
waterson%netscape.com
2bca9671fc Bug 20785. Root event handlers for JavaScript GC. r=brendan@mozilla.org 1999-12-06 08:23:47 +00:00
waterson%netscape.com
38e938ebbc Bug 20470. Add weak reference from 'controllers' object back to command dispatcher. Miscellaneous cleanup. r=hyatt 1999-12-05 23:04:22 +00:00
waterson%netscape.com
82fb1998b7 Bug 18392. Use XUL document cache for retrieving master document. 1999-12-04 07:45:57 +00:00
waterson%netscape.com
e634ed06f2 Remove NS_ENSURE macros from my little empire. r=caesar 1999-12-04 07:41:07 +00:00
waterson%netscape.com
46ed13c843 Bug 20714. Sever link to prototype after faulting in as heavyweight. 1999-12-04 01:45:30 +00:00
vidur%netscape.com
1cf2db67a5 For bug 17325. Changed signature of css loader methods. R=nisheeth. 1999-12-04 01:29:18 +00:00
waterson%netscape.com
c8028526ce Fix latent bug exposed by recent script global changes; need to check owner, not rv. 1999-12-03 22:04:47 +00:00
tbogard%aol.net
317758d9f3 include of nsIScriptGlobalObject.h is now in nsXULDocument.h. 1999-12-03 19:29:23 +00:00
tbogard%aol.net
72218fe6d8 Moved the include over. This should fix wensleydale. 1999-12-03 19:26:23 +00:00
tbogard%aol.net
94a95754d7 Hoping this will help wensleydale. 1999-12-03 12:09:10 +00:00
tbogard%aol.net
eb96099e6d 1.) WebShell no longer implements nsIScriptContextOwner.
2.)  WebShell now implements the new nsIScriptGlobalObjectOwner.
3.)  WebShell supports GetInterface to nsIScriptGlobalObject.
4.)  Documents no longer carry around a reference to nsIScriptContextOwner.  Instead they hold on to a nsIScriptGlobalObject.  nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject().  Same change to the set methods.
1999-12-03 09:24:22 +00:00
brendan%mozilla.org
8c97186a42 Use .get() for comptr==rawptr comparisons, for weak-minded compilers. 1999-12-03 04:45:36 +00:00
brendan%mozilla.org
d44c35ee1b - Doc-comments for nsIScriptContext methods I added or modified.
- Rename nsIScriptContext::CompileFunction to CompileEventHandler, and add BindCompiledEventHandler, to reflect function name restrictions and help brutal sharing.
- Add adjunct-interface nsIScriptEventHandlerOwner to nsIScriptObjectOwner.h; this interface is queried for by nsEventListenerManger.cpp to test and fill the XUL prototype event handler "cache".
- PR_LOG JS warnings, and look in javascript.options.{strict,werror} for those options.  
- Implement nsIScriptEventHandlerOwner in nsXULElement, keeping pointers to pre-compiled event handlers in nsXULPrototypeAttribute.
 
(bug 13218, r=waterson@netscape.com,vidur@netscape.com)
1999-12-03 03:40:30 +00:00
waterson%netscape.com
bbccd5d47b Bug 20309. Use nsCAutoString. Kudos to buhr@stat.wisc.edu 1999-12-02 23:53:25 +00:00
rjc%netscape.com
23e994f315 Optimization: 99% of trees which use the containment and/or ignore attributes put those attributes on the root node,
so check there first before trying to recurse from the current node all the way up to the root node.
1999-12-02 10:07:44 +00:00
danm%netscape.com
d25d8e587a adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com 1999-12-01 22:35:33 +00:00
buster%netscape.com
fd31de07ac bug 2253. added controller to html text input
r = kmcclusk, norris
1999-12-01 15:11:33 +00:00
waterson%netscape.com
b226f5a42a Bug 16516. Doh! Fix use of NS_RELEASE()-ed pointer that was causing load handlers to not run on brutally shared docs. 1999-11-30 22:47:41 +00:00
ftang%netscape.com
f6e3351358 fix bug 20181. r=ftang a=beard 1999-11-30 22:24:16 +00:00
rjc%netscape.com
e63af9cb8c Create static trueStr and falseStr once instead of various "true" and "false" usage. 1999-11-30 12:08:54 +00:00
warren%netscape.com
2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
waterson%netscape.com
947d490060 Fix RemoveStyleSheet() per pierre's comments. 1999-11-30 04:33:28 +00:00
hyatt%netscape.com
7ab98f7f26 Adding RemoveStyleSheet to nsIDocument (needed for skins). r=waterson 1999-11-29 22:15:07 +00:00
waterson%netscape.com
7e03717d55 Bug 20147. Make sure to correctly scope 'parent' when creating script objects. XUL document's parent is the window; XUL element's parent is the document. r=brendan 1999-11-29 20:53:40 +00:00
hyatt%netscape.com
9d73ef65cc More skin work. r=pavlov 1999-11-29 06:51:24 +00:00
tbogard%aol.net
85b5334721 nsXULDocument now uses the nsIBaseWindow interface for windowing stuff on webshell instead of nsIWebShell. This paves the way for the new docshell object to move in. 1999-11-29 06:04:15 +00:00
vidur%netscape.com
2f89fad454 Changed signature of AddScriptEventListener. Event handlers that are attributes of XUL elements are now compiled only when first invoked. R=joki 1999-11-25 00:06:10 +00:00
waterson%netscape.com
dd7c188516 More random flailing to fix gcc-2.7.2.3 1999-11-24 23:39:34 +00:00
waterson%netscape.com
1260e2100c Random flailing to fix gcc-2.7.2.3 bustage. 1999-11-24 23:19:52 +00:00
waterson%netscape.com
1eb45f5c91 Expose nsIXULDocument and nsIXULPrototypeDocument as public interfaces. Properly implement nsIXULDocument::CreateFromPrototype(). 1999-11-24 22:46:09 +00:00
waterson%netscape.com
42f49b9da2 Add methods to individually flush prototypes and style sheets. 1999-11-24 22:44:52 +00:00
waterson%netscape.com
47352eeda1 Bug 20036. Fix style sheet ordering. 1999-11-24 22:43:45 +00:00
tbogard%aol.net
af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
tbogard%aol.net
214c6f7a18 Enabled nsXULElement to implement the nsIChromeEventHandler interface. r=hyatt 1999-11-23 09:36:39 +00:00
rjc%netscape.com
7b8ef00a40 One less loop (figured out what was preventing this). 1999-11-23 05:37:33 +00:00
rjc%netscape.com
08110eb10f Get rid of a warning. 1999-11-23 04:47:38 +00:00
rjc%netscape.com
2cba0e8647 Get rid of another signed/unsigned warning. 1999-11-23 04:44:52 +00:00
rjc%netscape.com
8c4f250de4 Get rid of a signed/unsigned warning. 1999-11-23 04:43:01 +00:00
rjc%netscape.com
f2baa21b51 Speed up sorting by reducing the # of times we loop over the list of nodes. Now, we loop over once to build up a flat array of nodes [qsort needs a flat array] and remove them from the content model, then we sort, then we loop again to re-add the now-sorted nodes, and finally we loop to check if any of the nodes is a container with children such that we need to recursively sort on it. [Note: I tried to combine the final two loops but the tree widget didn't like that. Oh well... its still a lot better than before.] 1999-11-23 04:39:29 +00:00
rjc%netscape.com
4fceaba909 When sorting, only set found="true" attribute if not a natural order sort. 1999-11-23 02:27:03 +00:00
rjc%netscape.com
895bfe63f8 Set some sorting hints on the root of the tree (allows for faster insertion sort, due to not having to look around for treecol tags; also makes it pretty easy for drag&drop code to determine if a sort is currently being imposed.) 1999-11-23 01:51:46 +00:00
waterson%netscape.com
eb971c4df2 Bug 19421. Brendan's fixes for brutal sharing of script, plus a 'placeholder channel' that ensures we don't fire the EndDocumentLoad() before the prototype walk completes. r=brendan 1999-11-23 01:44:51 +00:00
rjc%netscape.com
12d6f261c0 Better handling of natural order calculation on RDF sequences; add support for sorting in-between separators. 1999-11-23 01:02:55 +00:00
rjc%netscape.com
dc4a206fff Better handling of natural order calculate on RDF sequences. Makes drag&drop work fairly well in natural order. 1999-11-20 08:46:22 +00:00
waterson%netscape.com
f4acc98b16 Bug 12734. Make check for duplicate insertions debug-only. Thanks to zee@northrock.bm 1999-11-20 07:13:25 +00:00
sfraser%netscape.com
5065e2a283 Workaround for bug 19421 -- no menus on mac. This is a problem with brutal sharing of overlays that waterson needs to fix. For now, turn off brutal sharing of scripts. r=brendan, saari. 1999-11-20 06:42:24 +00:00
brendan%mozilla.org
e291840c27 Followup to my last checkin: get list-unlink vs. ResumeWalk order right (r=waterson@netscape.com) 1999-11-20 03:10:42 +00:00
rods%netscape.com
f64b7ae035 removed select initialization code r=dcone bug 18241 1999-11-19 15:42:06 +00:00
buster%netscape.com
fdbc16704a bug 12022, r=rickg 1999-11-19 08:26:56 +00:00
bienvenu%netscape.com
2d8cd89204 small performance tweak for null id xul elements r=waterson 1999-11-19 01:31:36 +00:00
waterson%netscape.com
3c3b7dbdca Clean up some timing printfs. 1999-11-18 05:47:51 +00:00
brendan%mozilla.org
4849241687 Brutal JS script sharing (15146, r=waterson@netscape.com). 1999-11-18 02:25:33 +00:00
warren%netscape.com
34ecf73507 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott 1999-11-17 08:14:52 +00:00
waterson%netscape.com
3af1eee9aa Fix build bustage: disambiguate nsXULDocument::State from nsForwardReference::State by renaming to nsForwardReference::Phase. 1999-11-17 03:20:03 +00:00
waterson%netscape.com
b20b076a88 Bug 13378. Make sure that we hook up any broadcasters that arrive in overlay subtrees. r=hyatt 1999-11-17 02:45:46 +00:00
rjc%netscape.com
d4c8bb0b9c Trim out some crufty/old unused code, and speed up sorting a bit by reducing the number of string copies. Review: me 1999-11-17 02:03:46 +00:00
waterson%netscape.com
6ba54713f1 Bug 10469. Remove 'natural order position' stuff. Make sure that nsXULSortService::InsertContainerNode() does the right thing when presented with an unsorted tree. r=rjc 1999-11-16 05:34:13 +00:00
norris%netscape.com
5b4b0169aa * Fix 12124 [DOGFOOD] Reading user's preferences
* Implement site-specific security policies (bug 858)
r=mstoltz
* Use Recycle rather than delete[] to clean up Purify logs
r=law
1999-11-16 05:07:31 +00:00
tbogard%aol.net
8c8bbce9a7 Changed places where containers were set to use nsISupports instead of nsIContentViewerContainer. r=dp 1999-11-15 22:17:54 +00:00
tbogard%aol.net
4fffbc4bf8 Changed interfaces to take nsISupports for the container instead of nsIContentViewerContainer. nsXULDocument was for some reason holding on to this interface (as a weak reference) but was never using it. I have therefore gotten rid of this member variable. r=dp 1999-11-15 22:14:37 +00:00
putterman%netscape.com
7a6702f1b0 Partial fix for 10208. When adding items to a container, update the empty attribute. reviewed by
waterson.
1999-11-15 20:58:39 +00:00
rods%netscape.com
1cbaf268cf added the call DoneAddingContent for the select after it has been created.
r=dcone,bug 18784,16821
1999-11-15 15:11:33 +00:00
rjc%netscape.com
10a6f091ce XUL templates can now be specified via attribute instead of a child node of the root. Also, sorting info can now be specified on the root node, so now any RDF-generated content can be sorted (not just trees). Review: me 1999-11-14 11:10:34 +00:00
putterman%netscape.com
7a34491281 Use get() instead of == 1999-11-11 01:22:59 +00:00
rjc%netscape.com
537f64c3da Add support for secondary key sort. Convert over to using nsCOMPtrs. Review: me 1999-11-10 23:50:34 +00:00
waterson%netscape.com
1d36d9329e Bug 18102. Consolidate element map, command dispatcher, and broadcaster hookup into AddSubtreeToDocument(). Fixes over-eager hookup of broadcast listeners into unresolved overlay elements, which left a dangling pointer. r=saari, a=chofmann 1999-11-08 19:07:13 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
waterson%netscape.com
87b8e4a574 Bug 18058. Remove 'commandDispatcher' from interface; obsolete, and leaky. r=hyatt, a=chofmann 1999-11-05 05:31:15 +00:00
waterson%netscape.com
dfd9dd6eaa Bug 18058. Remove 'commandDispatcher' from interface; obsolete. r=hyatt, a=chofmann 1999-11-05 05:30:56 +00:00
waterson%netscape.com
f9b4723956 Bug 17955. Don't unnecessarily add script event listeners to temporary nodes used for overlay hookup. r=hyatt, a=chofmann 1999-11-04 19:43:43 +00:00
waterson%netscape.com
2728cb5577 Bug 17847. Fix 'commandupdater' hookup for master document. r=hyatt, a=chofmann 1999-11-04 18:37:58 +00:00
beard%netscape.com
932ec344f4 bug #17847, fix clobbering of mSlots->mAttributes in GetAttributes(). r=waterson, a=chofmann 1999-11-04 02:56:54 +00:00
hyatt%netscape.com
2da1dc5d17 Partial fix for 17848. Part 1 of 2. 2nd part will be checked in by hangas. r=hangas, a=brendan 1999-11-04 01:59:04 +00:00
waterson%netscape.com
a2dfa5b9b1 Bug 17024. Fix mClassList leak; add bloaty stats for nsClassList. r=hyatt a=chofmann 1999-11-04 01:50:47 +00:00
waterson%netscape.com
55489d1b93 Bug 15146. Don't eagerly create a <xul:menu>'s contents. r=hyatt a=brendan 1999-11-04 01:49:34 +00:00
joki%netscape.com
1675be15e0 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur 1999-11-03 07:11:45 +00:00
waterson%netscape.com
d2c5bedf2e Bug 13252. Build content for current template before recursing to build content for children. r=alecf. 1999-11-03 06:59:49 +00:00
cls%seawood.org
bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
alecf%netscape.com
4033a6f681 fix for #12703 - don't hold onto XULElements after they have been removed from the tree - don't bother checking mDocument because it will be null when the content has been removed from the document
r=hyatt
1999-11-02 23:30:33 +00:00
warren%netscape.com
332749d6fa Made nsIUnicharStreamLoader be scriptable and deal with an xpcom observer instead of a proc pointer and void*. Part of bug#11159. r=nisheeth,kipp,pierre 1999-11-02 06:49:44 +00:00
waterson%netscape.com
050ad45bf2 remove CTOR and DTOR counters, because the descendant classes will all
account for this space. r=warren
1999-11-02 06:21:07 +00:00
warren%netscape.com
e78a953005 Fix for bad refcount tracing. r=buster,nisheeth 1999-11-02 05:37:04 +00:00
waterson%netscape.com
22be6e4c41 Fix manky nsCOMPtr asserts. 1999-11-02 02:02:27 +00:00
pinkerton%netscape.com
b235ede1ff fix for bug 17381 where leaving the frame before a drag gesture was began caused the event target to be set incorrectly. (r=saari). 1999-11-02 01:34:16 +00:00
waterson%netscape.com
676716c335 Bug 15146. Brutal sharing, Phase III. Turn on protoype, script, and style sheet caching. r=hyatt 1999-11-02 01:14:07 +00:00
brendan%mozilla.org
f81d5969c6 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
troy%netscape.com
a12c3d6c5d Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up
1999-10-30 02:52:11 +00:00
waterson%netscape.com
b672b00381 Pull script object and event listener list out of slots and into delegate to avoid faulting a heavyweight element. Fix EnsureSlots() to _not_ do a bunch of extra work that is already being done when we create an element from its prototype. Use nsCOMPtr's in nsXULAttributes to avoid leak of nsIStyleRule. r=hyatt 1999-10-29 22:09:20 +00:00
waterson%netscape.com
daab7b6c46 Fix SizeOf() operation. 1999-10-29 03:07:38 +00:00
waterson%netscape.com
ada7441247 Bug 15146. Brutal content model sharing, Phase II. XUL content sink now constructs prototype documents; 'real' content model constructed from walking prototype. Landed XUL_SHARING_19991027_BRANCH (derived from XUL_SHARING_19991022_BRANCH). See branch comments for details. r=hyatt. 1999-10-29 01:21:15 +00:00
pepper%netscape.com
b5b2656f52 Added a newline to the end of file so that AIX and HP compilers are happy.
r=mgleeson
1999-10-28 22:17:43 +00:00
hyatt%netscape.com
e092fcee6b making the chrome registry work with dynamic overlays r=pavlov 1999-10-27 02:21:05 +00:00
dp%netscape.com
b17616fba6 bug#16742 Fixing delete on nsISupports. Thanks for patch from <heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing operating on refcnt directly. r=dp 1999-10-24 04:41:17 +00:00
waterson%netscape.com
15b4a60c84 Bug 15146. Factor nsXULElement's members into prototype and optional 'slots' for heavyweight elements. r=hyatt. 1999-10-20 18:55:32 +00:00
tbogard%aol.net
6bf524bc9e Removed the last of gimpy's warnings. r=gimpy. 1999-10-19 08:03:11 +00:00
waterson%netscape.com
e6f547bf07 Move nsXULElement declaration into the header file. 1999-10-18 23:05:35 +00:00
waterson%netscape.com
5d36702c83 Rename nsRDFElement to nsXULElement; rename nsXULElement to nsXULAggregateElement. 1999-10-18 22:08:15 +00:00
warren%netscape.com
26fb3f9eba Took out redundant MOZ_COUNT_CTOR/DTOR calls. 1999-10-18 19:21:53 +00:00
warren%netscape.com
3f9dc8b6a7 Took out redundant MOZ_COUNT_CTOR/DTOR calls. 1999-10-18 19:06:21 +00:00
peterl%netscape.com
4a9e5d719e Made style rules work against nsIMutableStyleContext
r=troy
1999-10-16 04:06:04 +00:00
peterl%netscape.com
d168caadef Added namespace ID to the AttributeChanged notification
Part of the fix for Bug 15153
r=troy
1999-10-15 23:17:53 +00:00
tbogard%aol.net
f863808cf7 Adding support for retrieving the EditorShell from editor element. r=hyatt 1999-10-15 21:21:10 +00:00
waterson%netscape.com
3d04c11522 Darnit. Didn't mean to FORCE_PR_LOG. Removing that #define. 1999-10-15 20:55:54 +00:00
waterson%netscape.com
6a8ada8d6c Bug 9764. Fix HTML templates to ensure that attribute adding is namespace-agnostic. Add local variable for isUnique so that BuildContentFromTemplate will work if resource- and non-resource elements are siblings in a template. Add logging capability for debug. r=rjc. 1999-10-15 20:47:19 +00:00
rjc%netscape.com
ae28cd2568 Fix leak in nsXULSortService (found by Boehm GC). Also, remove CTOR_COUNT stuff. Review: waterson@netscape.com 1999-10-15 06:27:02 +00:00
waterson%netscape.com
a3b121502f Unclutter stuff by using nsCOMPtr in the nsElementMap::ContentListItem. Add leakenmacros to ContentListItem. Fix a leak in the the internal enumerator routine. Comment the internal enumerator routine since it's kinda funky. Add 'tag name' to the log messages. 1999-10-15 04:45:43 +00:00
bienvenu%netscape.com
cca5e191f9 fix memory leak of nsIURI in Set and GetAttribute r=waterson 1999-10-15 02:59:37 +00:00
hyatt%netscape.com
b2a4325241 Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++) 1999-10-14 10:58:25 +00:00
waterson%netscape.com
01b01edb29 Add check-for-null-pointer to FireOnSelectHandler() to avoid crashing in the case where a select handler fires on an 'orphaned' node with no document. This can happen if a document is being destroyed and random scripts and events are still filtering through the system. 1999-10-13 08:02:02 +00:00
waterson%netscape.com
3ddd2b7390 Add PR_LOG() calls to aid debugging. 1999-10-13 08:00:45 +00:00
waterson%netscape.com
c076e2aac8 Fix 'commandupdater' nodes; make sure that they are hooked up correctly from the XUL content sink; factor code to appropriately deal with being called from two places. r=hyatt. 1999-10-13 00:43:46 +00:00
waterson%netscape.com
8241422540 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 02:10:08 +00:00
waterson%netscape.com
9d26c76a5e Misc cleanup, r=hyatt 1999-10-08 07:26:39 +00:00
waterson%netscape.com
e66ef0e374 Add elements to element map by 'ref', as well. 1999-10-08 07:26:14 +00:00
waterson%netscape.com
c33474f2dd Bug 15687. Make sure to test whether CreateTemplateBuilder() succeeded before dereferencing the builder we get back. r=rjc 1999-10-07 23:07:00 +00:00
waterson%netscape.com
c1b28ef30e Bug 15683. Hack to get the tree open. Don't SetParent(nsnull), <option> elements do funky stuff when the <option> is inside a <xul:template>. r=kmcclusk 1999-10-07 19:32:39 +00:00
waterson%netscape.com
7324012292 Bug 13910. Make sure to update element map for XUL (as well as HTML) elements when changing 'id' or 'ref' attributes. 1999-10-07 10:09:17 +00:00
waterson%netscape.com
b296404b6a Bug 13910. Make sure to add elements to the map by 'ref' attribute, as well. 1999-10-07 10:08:14 +00:00
rjc%netscape.com
bb45ef1bde Add in CTOR/DTOR stuff for leak detection. Review: hyatt@netscape.com 1999-10-07 01:51:30 +00:00
vidur%netscape.com
0e75a67fe1 Added document.width/document.height to nsIDOMNSDocument. Bug 961. R: troy 1999-10-06 20:33:58 +00:00
mgleeson1%netscape.com
2e5a2e52e1 r=waterson enums used in structs must be public members for HPUX 1999-10-06 18:56:03 +00:00
waterson%netscape.com
92d627b5e0 Fix incorrect use of CBufDescriptor that was causing persistence to flake. 1999-10-06 06:42:27 +00:00
waterson%netscape.com
cd0fab49cb Suppress assertions with context menus for now. 1999-10-06 06:40:06 +00:00
waterson%netscape.com
806774dd9d Fix dumb leak. 1999-10-06 01:02:11 +00:00
kipp%netscape.com
3eaba4f422 Support SizeOf methods 1999-10-05 23:47:46 +00:00
waterson%netscape.com
de8f3449d5 Fix crasher when loading XUL in viewer and no localstore is present. 1999-10-05 22:22:40 +00:00
waterson%netscape.com
14d8b9492e Bug 15301. Remove RDF graph from XUL content model construction. Landed XUL_19991005_BRANCH; see branch comments for detailed checkin information. r=shaver,hyatt. 1999-10-05 21:13:55 +00:00
norris%netscape.com
716e97dd9c Fix 15458 "onLoadHandler does not work"
Reviewed by mstoltz.
1999-10-05 04:08:14 +00:00
rjc%netscape.com
a8401f2c5c Fix bug # 15222: The composite datasource has a few operations which are somewhat "expensive". Have these behaviors on by default, but expose a method on the composite datasources so that they can be selectively turned off [for Mail/News, for example] if the capability is not needed/used (such as negative assertions). Review: waterson@netscape.com. Additional Mail/News Testing: putterman@netscape.com 1999-10-01 04:07:55 +00:00
waterson%netscape.com
f002a3fe71 Fuck. These went in onto the tip and were supposed to be on the branch. Backing out. 1999-10-01 03:04:08 +00:00
waterson%netscape.com
61408ff762 Initial checkin on XUL_19990930_BRANCH, the RDF-ectomy. Single XUL documents hobbling along. 1999-10-01 03:01:22 +00:00
waterson%netscape.com
7d31268f14 Bug 13908. Add code to hook up 'forward observer declarations'. r=hyatt. 1999-09-30 02:32:34 +00:00
waterson%netscape.com
e0218beabb Bug 14911. Revert sloppy checkin. The 'DocumentWillBeDestroyed' stuff was never meant to get checked in. It piggy-backed onto another bug fix; I wasn't careful. 1999-09-25 16:29:22 +00:00
waterson%netscape.com
c3bd3a1e15 Fix mac build bustage. 1999-09-24 20:39:26 +00:00
waterson%netscape.com
8cda3dfecc Bug 14754. Support '.database' attribute on HTML elements. Fix ref='...' support for HTML templates. r=rjc, a=chofmann 1999-09-24 19:49:15 +00:00
waterson%netscape.com
4cc8eb6bfe Bug 14752. Support '.database' attribute on HTML elements. Fix ref='...' support for HTML templates. r=rjc, a=chofmann 1999-09-24 19:49:12 +00:00
saari%netscape.com
d891a7b1ef A better fix for blocker #14464. Reviewed by Hyatt w. permission from leaf/choffman 1999-09-23 02:31:37 +00:00
law%netscape.com
3880a61e9a Fixes for context menus; a=hyatt (I just pressed the keys he told me to :-) 1999-09-22 06:27:28 +00:00
waterson%netscape.com
fabf00233c Bug 14273. We weren't recursively creating 'container' contents for HTML elements. Fixed that. 1999-09-22 00:54:05 +00:00
saari%netscape.com
cb935f51c7 Changing broadcaster to use onbroadcast instead of oncommand. Adding the "braodcast" "commandupdate" and "input" events. Changed all xul observes nodes to use onbroadcast instead of onchange. 1999-09-21 23:02:35 +00:00
rpotts%netscape.com
452584594d The document LoadGroup is now a nsWeakPtr... 1999-09-21 06:44:56 +00:00
waterson%netscape.com
25694dc329 Fix bugs with computing containment. 1999-09-21 05:57:47 +00:00
waterson%netscape.com
49cd3cea4d Comment out 'element already in map' warning for now. 1999-09-19 22:42:55 +00:00
waterson%netscape.com
dce22b1ef1 Fix GetContentSink() to addref pointer on the way out thru XPCOM boundary. Hyatt: that's 20 XPCOM Hail Mary's for you. 1999-09-19 19:58:04 +00:00
rpotts%netscape.com
f7a23e30ca Changed GetDocumentLoadGroup(...) to be XPCom complient. THis helps prevent leaks when using nsCOMPtrs. 1999-09-18 06:34:24 +00:00
slamm%netscape.com
35951bb528 Fix build warnings (rename 'tm' to 'value). 1999-09-18 02:15:00 +00:00
waterson%netscape.com
9ed3206e50 Bug 12649. Add support for 'parent' on <rule> tags. 1999-09-17 20:15:29 +00:00
waterson%netscape.com
d7bc730b0d Bug 13790. Okay, let's try that again, this time without the frills. 1999-09-17 04:29:53 +00:00
waterson%netscape.com
fe8d3ee23e Fix nsCOMPtr sloppiness. 1999-09-17 04:13:19 +00:00
waterson%netscape.com
6d9438412e Back out changes that will cause bustage on some compilers. 1999-09-17 04:12:08 +00:00
waterson%netscape.com
bd4a3e6792 Bug 13970. Implement 'commandupdater=' attribute to hook up command udpater nodes to the XUL document's command dispatcher. Make API modifications to support command filtering. Some improvements to XUL document to factor out iteration code. 1999-09-17 04:01:46 +00:00
waterson%netscape.com
9fe5928235 Fix HTML-rooted templates. 1999-09-15 20:08:37 +00:00
waterson%netscape.com
2927803d32 Use nsCOMPtr for the controller. 1999-09-15 20:06:32 +00:00
slamm%netscape.com
52e797192b Fix build warnings. 1999-09-15 18:14:02 +00:00
harishd%netscape.com
999afb72ec CreateXIF() and ToXIF() should return nsresult. 1999-09-15 17:57:55 +00:00
hyatt%netscape.com
04c56a701c Updating the nsIController interface. 1999-09-15 02:16:41 +00:00
hyatt%netscape.com
664a5ace95 Fixing minor bug in command dispatcher. 1999-09-15 02:12:50 +00:00
waterson%netscape.com
57e13eb1a7 Bug 13121. Deal with XUL documents that are created _before_ local store is available (e.g., because they come up before a profile has been selected). 1999-09-14 22:36:55 +00:00
waterson%netscape.com
3a2015c4e4 Partial fix for bug 13768. Be sure to set eChildrenMustBeRebuilt flag _before_ appending child to content model; appending child to content model will cause layout to recur and possibly build up more content. 1999-09-14 22:34:05 +00:00
waterson%netscape.com
8b8a1c6f93 Strip some dead code. Re-enable sorting. 1999-09-14 02:07:46 +00:00
waterson%netscape.com
06ea3cca41 Performance improvements. Make use of CBufDescriptor's where appropriate; replace attribute-based lazy bookkeeping with a private interface (non-XUL content can't be lazy, _anyway_). 1999-09-13 22:06:17 +00:00
warren%netscape.com
d3eb73be23 Removed caps dependency from necko. Used nsCOMPtr for nsInputStreamChannel. 1999-09-11 18:45:36 +00:00
hyatt%netscape.com
2412623576 Popup work. 1999-09-10 08:49:32 +00:00
pinkerton%netscape.com
e5d030d873 correctly set target of dragenter/exit events. 1999-09-09 06:26:58 +00:00
rjc%netscape.com
37e13748c5 Add check for NS_RDF_NO_VALUE. 1999-09-09 00:58:08 +00:00
hyatt%netscape.com
17d71e1b13 Fixing an error in the handleDomEvent function. 1999-09-08 08:06:28 +00:00
waterson%netscape.com
43eca09bd8 Remove SearchForNodeByID(). It's not necessary anymore now that all XUL content is build up-front. 1999-09-08 07:23:45 +00:00
rjc%netscape.com
ba85e5af78 Cache sort resource requests. 1999-09-08 03:04:45 +00:00
rjc%netscape.com
293b334687 Cache sort resources. 1999-09-07 07:27:49 +00:00
waterson%netscape.com
49ac7e179a Replace nsRDFContentUtils with nsXULContentUtils, which can be acquired as a service. This allows it to keep cached member variables to other frequently-accessed services. 1999-09-07 02:51:13 +00:00
waterson%netscape.com
5eecd7bc1a Re-write GetTextForNode() to be a bit more efficient; broke out data format. Bug 13137, fix broken use of CBufDescriptor. Add CBufDescriptors where appropriate. 1999-09-07 02:47:56 +00:00
waterson%netscape.com
e75207446c Add nsXULContentUtils, eventually to replace nsRDFContentUtils. Not yet in the build though. 1999-09-06 22:25:45 +00:00
bruce%cybersight.com
4921b1d83b Use nsAllocator for char* data. 1999-09-04 13:59:52 +00:00
dougt%netscape.com
028f11d2bf Changes nsIAtom iterface to return a shared (non-allocated) wstring when
GetUnicode() is called.  (thanks waterson, jband)

Also fixing 12237.  (thanks jband).
1999-09-03 22:21:29 +00:00
waterson%netscape.com
7a6584f998 Put the local store _first_, so that any persisted changes are picked up before default content. 1999-09-03 08:57:42 +00:00
bruce%cybersight.com
f67b510aa5 Use nsCRT::free() instead of delete[] for char* data. 1999-09-03 07:53:26 +00:00
waterson%netscape.com
2239643aca Persistence, again. 1999-09-03 07:02:25 +00:00
hyatt%netscape.com
5c7402981c Changing reflow hint for the width attribute of tree cols so that we can get a reflow on a resize. 1999-09-03 03:25:11 +00:00
pinkerton%netscape.com
bdda0f539f hookup the drag listener attributes. 1999-09-02 23:19:56 +00:00
waterson%netscape.com
fea6bb1b19 Changed ParseNumericValue's declaration to match its definition. 1999-09-02 21:37:30 +00:00
waterson%netscape.com
c82d0aba3a Fix bug that was causing insertion sort to _never_ run. Also, fix code that was looking for ID attribute during RDF:Seq detection. 1999-09-02 21:34:57 +00:00
waterson%netscape.com
07fe48827b Use nsAutoString() to avoid heap allocation during automatic coercion of 'const char*' to nsStrings. 1999-09-02 21:34:17 +00:00
waterson%netscape.com
2d4a0bffa0 Replace calls to nsRDFContentUtils::MakeElementURI() with MakeElementResource(), which is what we wanted anyway. Tweak SplitProperty to use GetValueConst(). 1999-09-02 21:33:53 +00:00
waterson%netscape.com
cc0fb78f13 Use nsAutoString() to avoid heap allocation during automatic coercion of 'const char*' to nsStrings; get rid of dead code that was causing a call to SplitProperty. 1999-09-02 21:32:23 +00:00
waterson%netscape.com
721ee62325 Get rid of silly code that was converting a nsString to a naked unicode, which required automatic coercion _back_ to an nsString, this time using a copy on the heap :-/. 1999-09-02 21:31:22 +00:00
cls%seawood.org
7c07dc5b09 Fix for gcc2.95 bustage. ANSI C++ forbids declaration of function with no type. 1999-09-02 21:06:34 +00:00
hyatt%netscape.com
8a00f5b25e Fix for build bustage. 1999-09-02 02:09:21 +00:00
hyatt%netscape.com
c7a01f28f9 Adding support for proportional widths to tree columns. 1999-09-02 01:13:27 +00:00
putterman%netscape.com
702944dcc2 speedup building content. checkin for waterson. 1999-09-01 04:58:36 +00:00
nisheeth%netscape.com
a3d25a6149 Added Get/Set methods to content IDs. An ID is used as a key to store state information about a content object and its associated frame object. The state information is stored in a dictionary that is manipulated by the frame manager (nsIFrameManager) inside layout. An opaque pointer to this dictionary is passed to the session history as a handle associated with the current document's state. 1999-08-31 10:06:17 +00:00
waterson%netscape.com
c1ca0ebd36 Bug 12811. Fix frame system notifications s.t. as _few_ as possible get forwarded through to layout. Temporarily remove timer hacks from tree widget. 1999-08-31 06:40:41 +00:00
rjc%netscape.com
58afb3537f Try again. 1999-08-30 10:28:37 +00:00
rjc%netscape.com
230b63671a Small fix. 1999-08-30 10:26:55 +00:00
rjc%netscape.com
658964332a Cleanup a bit, and fix bug # 11516. 1999-08-30 10:05:40 +00:00
waterson%netscape.com
c4bed8ca91 Clean up compiler warnings. 1999-08-30 03:18:06 +00:00
waterson%netscape.com
6e2ab0076d Content model whackage. Remove all code that tried to keep the graph in sync with DOM changes. Regenerate JS from newer idlc compiler. Fix bug 12177. Fix miscellaneous breakage with templates. 1999-08-30 02:45:54 +00:00
norris%netscape.com
d8507f844e * clean up nsScriptSecurityManager
* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments
1999-08-29 21:58:42 +00:00
hyatt%netscape.com
de2f28c95a Fixes to enable the command dispatcher to properly instantiate. 1999-08-27 07:54:06 +00:00
rjc%netscape.com
2528124539 Add nsIXULSortService 1999-08-27 06:54:08 +00:00
rjc%netscape.com
9be4830f5d Add nsIXULSortService.idl 1999-08-27 06:52:34 +00:00
waterson%netscape.com
c4e7dd07c2 Bug 12270. XUL builder was ok. Fixed generic builder to do the right thing. 1999-08-26 04:29:15 +00:00
waterson%netscape.com
7b7f065d98 Bug 12470. Check for null pointer in SetParent(); occurs during teardown. 1999-08-26 04:28:47 +00:00
waterson%netscape.com
43b89f11ed Bug 12254. Fix templates that are built inside of or use nested HTML. 1999-08-25 07:56:52 +00:00
ramiro%netscape.com
f2b29e5760 NS_RELEASE -> NS_IF_RELEASE. 1999-08-25 04:04:51 +00:00
hyatt%netscape.com
49d00452b7 Changing focus tracker to be the command dispatcher. 1999-08-25 01:49:24 +00:00
harishd%netscape.com
8ef5e0bd42 Commenting out a pre-condition in EndLoad() method.
Approved by waterson.
1999-08-24 18:37:05 +00:00
sfraser%netscape.com
df04fe1c2d Make sure that mAttributeList is initialized to null. 1999-08-24 00:59:30 +00:00
hyatt%netscape.com
29b55c601b Fixing the focusable content method so that only trees (and not tree cells)
are focusable.
1999-08-24 00:43:03 +00:00
jdunn%netscape.com
83156768b1 HP requires a newline at the end of the file 1999-08-24 00:33:18 +00:00
hyatt%netscape.com
cf77b893a6 Implemented element-level capturing in the XUL DOM. 1999-08-23 07:26:57 +00:00
hyatt%netscape.com
64403860de Tweaking capturing. Still doesn't work for elements though. 1999-08-23 05:32:55 +00:00
hyatt%netscape.com
d5efaf0261 Teaching the RDF element about the concept of being focusable. 1999-08-23 05:20:14 +00:00
hyatt%netscape.com
b77644e753 Fix for several bugs (12299, 12289, 12295). 1999-08-23 01:13:29 +00:00
hyatt%netscape.com
97025b35ec Mmmm-hmmm. 1999-08-22 08:11:27 +00:00
hyatt%netscape.com
27156d3fe7 Making sure the onselect handler gets fired. 1999-08-22 08:01:13 +00:00
hyatt%netscape.com
576659f909 More selection work. 1999-08-22 06:53:01 +00:00
hyatt%netscape.com
46340eebe5 Checking in the selection implementation (with more functions added). 1999-08-22 06:31:00 +00:00
hyatt%netscape.com
b8cf1c5a5d Implemented all of the tree widget selection APIs but ranged selection (which will
be fun and nasty).
1999-08-22 06:17:16 +00:00
hyatt%netscape.com
850b37e110 Defining the selection API for the tree widget. Stubbed all of the functions.
Now I just have to implement them all.
1999-08-22 06:01:52 +00:00
hyatt%netscape.com
739aa6fc11 Tweaking comments. 1999-08-21 20:42:17 +00:00
hyatt%netscape.com
91a63df44f Stubbing out the selection implementation. Need to fill in the empty if
statements next.
1999-08-21 20:39:29 +00:00
hyatt%netscape.com
0c1ba81710 Adding more to the tree's idl. 1999-08-21 20:23:56 +00:00
hyatt%netscape.com
7e7ed03bb4 Checking in changes that teach the tree element how to have its own
array of selected items and cells.
1999-08-21 19:53:39 +00:00
hyatt%netscape.com
2896ff9442 Fixing broadcasters. The hookup wasn't happening correctly. 1999-08-21 19:30:53 +00:00
hyatt%netscape.com
9bd7a20027 The bustage is mine. Fixing it now. 1999-08-21 10:05:02 +00:00
hyatt%netscape.com
0a4a95a2ea Fixing up the broadcaster stuff. 1999-08-21 09:13:14 +00:00
hyatt%netscape.com
7fcea47026 A complete rewrite of the broadcaster/observer system. Much improved. 1999-08-21 09:08:12 +00:00
dougt%netscape.com
32a9a77110 xpild-ing nsIAtom. Now nsIAtom is xpcom compliant. 1999-08-21 07:07:00 +00:00
hyatt%netscape.com
d819a08a33 Renaming onaction to oncommand. 1999-08-20 22:58:32 +00:00
waterson%netscape.com
7d7045cbd4 Resurrect delegation of XULTreeElement interface to an aggregate object. 1999-08-18 05:45:40 +00:00
waterson%netscape.com
e796040451 Add verbage. 1999-08-18 04:25:24 +00:00
waterson%netscape.com
8c885f534e Re-added to support tree selection. Not yet in the build. 1999-08-18 03:21:26 +00:00
rjc%netscape.com
5ed11f9b0d Fix bug # 10352: date sorting. 1999-08-11 06:24:56 +00:00
jband%netscape.com
167d0af817 fix for bug 11510 1999-08-10 05:11:47 +00:00
joki%netscape.com
11585608e8 Adding new onselect event. Also slight modification to ender text widget focus behavior 1999-08-07 23:18:35 +00:00
cls%seawood.org
3f1dcd11dc Various fixes to let the tree compile with gcc 2.95:
String constants are now (const char *)s and must be explicitly cast to (char *).
operator new is expected to be empty or throw an expection instead of returning null. (ifdef'd for gcc 2.95+)
Stricter checks on register clobbering in embedded asm. (at least I think that's what it is)
Expects the main function to return int, not something similiar to it like PRInt32.

Still requires a tweak to remove -mno-486 from NSPR's *.mk files.
1999-08-07 06:01:31 +00:00
waterson%netscape.com
43c0b70372 Fix build warning. 1999-08-06 20:34:55 +00:00
waterson%netscape.com
5e0dfa201e Fix --pedantic bustage. 1999-08-06 18:36:50 +00:00
waterson%netscape.com
b51825bc1d Bug 8159. Fix circularity between content model builder and composite datas source (via 'observer' which now refcounts). Destruction of a XULDocumentImpl now forces builder to do out-of-band release on composite datasource. 1999-08-06 17:59:05 +00:00
waterson%netscape.com
0a6a7275b1 Bug 9474. Use NodeList script object, _not_ HTMLCollection. Gutted code that was aggregating HTMLCollection. 1999-08-04 05:45:09 +00:00
waterson%netscape.com
0035d5bbb3 Fix silent failure from JS on firstChild. Clean up other baby-eating methods. 1999-08-04 02:26:26 +00:00