Commit Graph

237 Commits

Author SHA1 Message Date
rjc%netscape.com
bdc14248c0 Part of fix for bug # 25876: bookmarks drag&drop behavior modification. Approval: jevering Review: waterson
git-svn-id: svn://10.0.0.236/trunk@61717 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-26 01:26:02 +00:00
waterson%netscape.com
0b852cd3c6 Bug 28632. Check container to see if contents have -ever- been built before 'rebuilding'. If no content has been built yet, then trying to rebuild causes bizarre things to happen (like, two of everything). r=rjc,putterman. a=jar
git-svn-id: svn://10.0.0.236/trunk@61689 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 23:08:43 +00:00
bienvenu%netscape.com
041c1de8de fix handling of uri's with 8 bit characters, a=phil r=waterson 24692
git-svn-id: svn://10.0.0.236/trunk@61505 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 20:51:36 +00:00
waterson%netscape.com
8c4d394eda Bugs 27271, 27947. Re-order menu creation so that RDF-generated menus are created simultaneously with XUL content. Use style rather than content tree crawling to avoid over-eager creation of menu content. r=hyatt,danm a=jevering.
git-svn-id: svn://10.0.0.236/trunk@61333 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 00:56:13 +00:00
waterson%netscape.com
f4e7200748 Revert fix for 26947, 27271 due to bad interaction with the 'find' datasource that causes crash-on-exit. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@61138 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 22:44:15 +00:00
waterson%netscape.com
66ed9d00a5 Bugs 27947, 27271. Re-order content-model-to-layout notification to avoid an incremental reflow. This ensures that 1) all menus will be completely created before they are displayed, and 2) the 'oncreate' handler runs after RDF content has been generated. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@61107 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 07:36:35 +00:00
waterson%netscape.com
1345e54414 Bug 25303. Remember container into which content was inserted and the index of first insertion, rather than the first element that was inserted. With the latter approach, we were sending incorrect ContentAppended notifications to layout when the insertion sort would move the position of the 'first' inserted element. r=rjc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@60830 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 07:08:45 +00:00
putterman%netscape.com
e490d0457b Speed up sorting. r=rjc. Bug 26131.
git-svn-id: svn://10.0.0.236/trunk@60806 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 05:05:29 +00:00
alecf%netscape.com
b3c0caac38 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


git-svn-id: svn://10.0.0.236/trunk@59816 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 01:03:39 +00:00
waterson%netscape.com
eff6647c5e 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.
git-svn-id: svn://10.0.0.236/trunk@59635 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 07:57:51 +00:00
jband%netscape.com
7ac1267323 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


git-svn-id: svn://10.0.0.236/trunk@58762 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 08:38:10 +00:00
waterson%netscape.com
4f5a5431ee Clean up shared structures between nsRDFGenericBuilder.cpp and nsXULSortService.cpp; r=rjc
git-svn-id: svn://10.0.0.236/trunk@58557 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 04:07:41 +00:00
hyatt%netscape.com
4ea3d4d3d5 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


git-svn-id: svn://10.0.0.236/trunk@58215 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 03:11:39 +00:00
rjc%netscape.com
5787e39722 A few small sorting tweaks.
git-svn-id: svn://10.0.0.236/trunk@58208 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 02:39:40 +00:00
rjc%netscape.com
69054862bc Enable the optimized binary insertion node with end-point interpolation. (Sort-of) review: putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@58199 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 01:44:29 +00:00
rjc%netscape.com
bc39bd9fe7 More preparations to land an optimized binary insertion node. (Going to test more later. Currently #ifdef'ed out.)
git-svn-id: svn://10.0.0.236/trunk@58014 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 13:15:44 +00:00
rjc%netscape.com
338727d7b3 Prepare to land an optimized binary insertion sort. (Going to test more later. Currently #ifdef'ed out.)
git-svn-id: svn://10.0.0.236/trunk@58007 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 11:00:13 +00:00
rjc%netscape.com
dd85e83ce4 Small optimizations.
git-svn-id: svn://10.0.0.236/trunk@57999 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 07:02:17 +00:00
rjc%netscape.com
87f34c0dbe Sorting optimizations. (Sort-of) review by putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57768 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 01:21:55 +00:00
rjc%netscape.com
36f2641445 Attempt to fix wensleydale (SunOS 5.6) bustage.
git-svn-id: svn://10.0.0.236/trunk@57670 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 11:03:56 +00:00
rjc%netscape.com
f2a60c889e Sorting optimizations. (Sort-of) review by putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57667 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 10:16:32 +00:00
rjc%netscape.com
2f68be984f Tweak resource cache usage. Change from putterman, Review from me
git-svn-id: svn://10.0.0.236/trunk@57438 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 22:03:53 +00:00
pp%ludusdesign.com
b5787cf895 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com


git-svn-id: svn://10.0.0.236/trunk@57423 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:49:15 +00:00
rjc%netscape.com
722d05e615 Use native ptr [via .get()]
git-svn-id: svn://10.0.0.236/trunk@57383 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 08:41:15 +00:00
rjc%netscape.com
321eac2192 Defer creation of resource cache until a sort is imposed. Also, added a temporary working for db->OnChange() not enjoying a null oldTarget.
git-svn-id: svn://10.0.0.236/trunk@57382 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 08:38:47 +00:00
rjc%netscape.com
a5c192cf93 Move resource cache up from the XUL sort service into the generic builder. Review: me
git-svn-id: svn://10.0.0.236/trunk@57369 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 06:28:28 +00:00
waterson%netscape.com
37bf1de35b 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
git-svn-id: svn://10.0.0.236/trunk@57128 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 00:27:04 +00:00
nhotta%netscape.com
418ad5150b Fixed memory leak, bug 22281, r=waterson.
git-svn-id: svn://10.0.0.236/trunk@56976 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 19:47:20 +00:00
rjc%netscape.com
9a29a914a5 Small sorting change: always sort {null} items last (after non-null items).
git-svn-id: svn://10.0.0.236/trunk@56485 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-23 12:01:44 +00:00
jband%netscape.com
191411b358 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


git-svn-id: svn://10.0.0.236/trunk@56202 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 20:29:29 +00:00
rjc%netscape.com
b1a59b34b6 Fix PDT+ bug # 21245: add sorting support for <treecolgroup> trags. Review: hyatt, putterman. Approval: chofmann.
git-svn-id: svn://10.0.0.236/trunk@55904 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-11 08:17:31 +00:00
waterson%netscape.com
40b96f684e Remove NS_ENSURE macros from my little empire. r=caesar
git-svn-id: svn://10.0.0.236/trunk@55278 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 07:41:07 +00:00
waterson%netscape.com
c8a6b35854 Fix latent bug exposed by recent script global changes; need to check owner, not rv.
git-svn-id: svn://10.0.0.236/trunk@55212 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 22:04:47 +00:00
tbogard%aol.net
067920c238 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.


git-svn-id: svn://10.0.0.236/trunk@55175 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 09:24:22 +00:00
rjc%netscape.com
b73d858405 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.


git-svn-id: svn://10.0.0.236/trunk@55064 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 10:07:44 +00:00
danm%netscape.com
9bfb5a41b9 adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@54950 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:35:33 +00:00
rjc%netscape.com
3f51838418 Create static trueStr and falseStr once instead of various "true" and "false" usage.
git-svn-id: svn://10.0.0.236/trunk@54750 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 12:08:54 +00:00
warren%netscape.com
51881fbcea Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms.
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +00:00
rjc%netscape.com
8d33404471 One less loop (figured out what was preventing this).
git-svn-id: svn://10.0.0.236/trunk@54255 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 05:37:33 +00:00
rjc%netscape.com
555f303d71 Get rid of a warning.
git-svn-id: svn://10.0.0.236/trunk@54254 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 04:47:38 +00:00
rjc%netscape.com
c10829cb59 Get rid of another signed/unsigned warning.
git-svn-id: svn://10.0.0.236/trunk@54253 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 04:44:52 +00:00
rjc%netscape.com
75ef977af7 Get rid of a signed/unsigned warning.
git-svn-id: svn://10.0.0.236/trunk@54252 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 04:43:01 +00:00
rjc%netscape.com
632f1cacc1 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.]
git-svn-id: svn://10.0.0.236/trunk@54251 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 04:39:29 +00:00
rjc%netscape.com
3be3d684c2 When sorting, only set found="true" attribute if not a natural order sort.
git-svn-id: svn://10.0.0.236/trunk@54240 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 02:27:03 +00:00
rjc%netscape.com
e1871db87e 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.)
git-svn-id: svn://10.0.0.236/trunk@54235 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:51:46 +00:00
rjc%netscape.com
ecb5a962fe Better handling of natural order calculation on RDF sequences; add support for sorting in-between separators.
git-svn-id: svn://10.0.0.236/trunk@54225 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:02:55 +00:00
rjc%netscape.com
c9c6db0307 Better handling of natural order calculate on RDF sequences. Makes drag&drop work fairly well in natural order.
git-svn-id: svn://10.0.0.236/trunk@54064 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 08:46:22 +00:00
rjc%netscape.com
7635ec807d Trim out some crufty/old unused code, and speed up sorting a bit by reducing the number of string copies. Review: me
git-svn-id: svn://10.0.0.236/trunk@53730 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 02:03:46 +00:00
waterson%netscape.com
9e9294757a Bug 10469. Remove 'natural order position' stuff. Make sure that nsXULSortService::InsertContainerNode() does the right thing when presented with an unsorted tree. r=rjc
git-svn-id: svn://10.0.0.236/trunk@53632 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 05:34:13 +00:00
putterman%netscape.com
e2cbb7c81b Partial fix for 10208. When adding items to a container, update the empty attribute. reviewed by
waterson.


git-svn-id: svn://10.0.0.236/trunk@53530 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 20:58:39 +00:00