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

487 Коммитов

Автор SHA1 Сообщение Дата
waterson%netscape.com 9cf221295f Bug 35818. Add support for 'tag' attribute on 'content' condition. 2000-05-17 05:57:09 +00:00
waterson%netscape.com 219e7b6f2e Bug 39512. Remember the last match; support 'container=' and 'member=' attributes on 'template' tag; deduce them if they're not present. 2000-05-17 05:33:23 +00:00
jst%netscape.com 930a889eb7 Updating nsIContent to allow accessin the attribute prefix and not only the attribute name and value. 2000-05-17 00:21:53 +00:00
mkaply%us.ibm.com 4c8a84ce2c # 37239
r= waterson
OS/2 bring up continues - add PR_CALLBACK for VisualAge
2000-05-12 22:23:36 +00:00
jst%netscape.com ee4b181034 Changing the way content elements store their name information, previously the elements generally stored a name atom and a namespace ID, now they store a pointer to a shared structure containing the name atom, the prefix atom and the namespace ID. This structure is shared between nodes with unique names (ie same name, prefix and ns ID) within a document. Documents now hold a hash table of the names in the document. The changes to mozilla/rdf are not reviewed but they are approved by waterson@netscape.com and the changes to mozilla/layout are reviewed by buster@netscape.com. 2000-05-10 13:13:39 +00:00
rjc%netscape.com b0f9f4a94a Whitespace cleanup. 2000-05-07 08:43:42 +00:00
rjc%netscape.com 9ac436086f Fix bug # 20795: can now to specify order of template generated vs. XUL content. 2000-05-06 00:01:01 +00:00
waterson%netscape.com 3a3b744651 Bug 34623. Add 'rebuild()' API to XUL elements. 2000-05-05 23:39:59 +00:00
waterson%netscape.com 799b5beee6 Bug 34623. Add nsIXULTemplateBuilder.idl. 2000-05-05 20:42:21 +00:00
waterson%netscape.com 8743489395 Bug 38185. Fix ports build bustage. a=brade 2000-05-04 19:57:31 +00:00
rjc%netscape.com 40f7929750 Comment change. 2000-05-04 12:54:11 +00:00
waterson%netscape.com b833debf12 Bug 37290. Fix 'bindings' implementation to avoid excessive update when re-computing: only index sources that participate in a binding, using bindings rather than lookup to maintain values even for 'simple' rules, lazily compute bindings. Rename 'nsBinding' to 'nsAssertion' to clarify difference. 2000-05-04 09:57:59 +00:00
mjudge%netscape.com 2cfb602409 making string conversions explicit. scc 2000-04-26 01:13:55 +00:00
waterson%netscape.com 079ecb2f99 Bug 34619. Fixed-size allocators for nsXULTemplateBuilder, try numero dos, with egcs fixed. 2000-04-25 04:11:53 +00:00
waterson%netscape.com 5051f62fad Back out changes: they broke egcs. 2000-04-25 01:28:09 +00:00
waterson%netscape.com ae8d8c7160 Bug 34619. Judicious use of fixed size allocators to reduce overhead. 2000-04-25 01:24:24 +00:00
waterson%netscape.com 05bfe47153 Bug 35815. Implement <bindings> for XUL templates. 2000-04-24 04:22:26 +00:00
waterson%netscape.com bdcb7aec30 Bug 10208. Correctly update 'empty' attribute when a container's contents are changed. 2000-04-19 05:39:26 +00:00
scc%netscape.com c709f689ab making string conversions explicit 2000-04-17 14:47:33 +00:00
scc%netscape.com 8495fc494c making string conversions explicit 2000-04-17 14:30:23 +00:00
waterson%netscape.com 6170746169 Fix uninitialized variable, caught by shalabh@pspl.co.in 2000-04-17 02:07:00 +00:00
waterson%netscape.com 7fc48dcee5 Bug 34565. Initial support for extended <template> syntax. 2000-04-13 21:13:00 +00:00
waterson%netscape.com 25a338cc46 Fix compiler warning; use of uninitialized variable. 2000-04-13 20:04:13 +00:00
waterson%netscape.com 8c1fa57510 Add commentary, Value::GetType() method. 2000-04-13 20:03:39 +00:00
waterson%netscape.com 2464cb88da Be sure to initialize out parameter when FindChildByTag() doesn't find anything. 2000-04-13 20:02:38 +00:00
waterson%netscape.com 71dff3183c Bug 35360. Fix UMRs in MatchList discovered by bruce@cybersight.com. 2000-04-11 22:36:53 +00:00
waterson%netscape.com 0b9683de47 Bug 35392. Fix leaking MemoryElement when already in set. r=beard -- thanks for wiping my chin. 2000-04-11 22:35:43 +00:00
waterson%netscape.com 315557d12e Bug 34726. Add an out parameter to ConflictSet::Add() that indicates whether the new instantiation triggered any new rules to be matched. The caller then uses this parameter to decide whether or not to add the key of a rule cluster to the 'newkeys' set. r=rjc, a=leaf 2000-04-07 19:22:59 +00:00
saari%netscape.com 8642c8be3a Checking in fix for Waterson for M15 bug #34464, Mac menus crashing after you close a window. Waterson did the work, I just reviewed. r=saari, a=leaf 2000-04-06 22:43:18 +00:00
waterson%netscape.com 3133985689 Bug 34714. Only add 'default' containment properties if the 'containment' attribute *isn't* set on the root. r=rjc, a=leaf 2000-04-06 22:01:32 +00:00
waterson%netscape.com 7b851fb8ab Fix windows bustage introduced trying to fix solaris bustage. 2000-04-05 05:48:33 +00:00
waterson%netscape.com 79215cf024 Fix build bustage on Solaris Workshop compiler. 2000-04-05 05:18:42 +00:00
mkaply%us.ibm.com cedcce6c59 # 34082
r= waterson@netscape.com
OS/2 Visual Age build - Adding PR_CALLBACK to some functoins for linkage
2000-04-05 02:39:51 +00:00
waterson%netscape.com 713bcb8c56 Remove redundant class forward decls that were causing VC++ internal compiler errors. 2000-04-04 08:32:58 +00:00
waterson%netscape.com f070169ada Ok, really fix HP-UX this time. 2000-04-04 08:19:51 +00:00
waterson%netscape.com c0d96583c0 Fix build bustage on HP-UX. Access to protected classes only allowed by 'friends'. 2000-04-04 07:28:31 +00:00
waterson%netscape.com 62b54345cf Rename Key::Hash(const void*) to avoid ambiguity on Mac. 2000-04-04 00:40:41 +00:00
waterson%netscape.com e0626a8313 Reduce allocation overhead in ConflictSet; lazily create hashtable in MatchSet. NOT YET IN THE BUILD. 2000-04-03 07:55:35 +00:00
waterson%netscape.com 5fd1e516f9 Leak fixes. NOT YET IN THE BUILD. 2000-04-03 06:44:41 +00:00
waterson%netscape.com 37ec600551 Fix nsCOMPtr bustage on Linux. NOT YET PART OF THE BUILD. 2000-04-02 09:22:50 +00:00
waterson%netscape.com 37e1e5cda4 Fix memory leaks, problems with incrmental update. NOT YET IN THE BUILD. 2000-04-02 09:11:00 +00:00
waterson%netscape.com d3d9596fe6 Fix performance problem with KeySet, removing content from a container. NOT YET IN THE BUILD. 2000-04-02 01:55:46 +00:00
waterson%netscape.com f3fc4cb99b Check in new and improved rule matching for XUL templates. NOT YET IN THE BUILD. a=leaf 2000-04-01 01:38:55 +00:00
scc%netscape.com 210cd384fb small changes to clients of string converting APIs 2000-03-26 10:52:00 +00:00
rjc%netscape.com 0091b3af6e Clean up: functions which return booleans should not return nsresults. 2000-03-26 09:16:58 +00:00
rjc%netscape.com 9ae6ccb84d Fix a simple signed/unsigned warning, as well as a bad return. 2000-03-26 09:07:16 +00:00
hyatt%netscape.com 11ec7eda8a Changing XUL template syntax to use <textnode> for wrapped text creation rather
than <text>, which is now a genuine XUL element.
2000-03-22 21:57:35 +00:00
nhotta%netscape.com fa26301684 Removed headers and constants for nsFactory, bug 11880, r=rjc. 2000-03-20 23:58:40 +00:00
nhotta%netscape.com 367e07ec52 Changed to use nsILocaleService instead of nsLocaleFactory, bug 18338, r=rjc. 2000-03-20 22:48:39 +00:00
putterman%netscape.com 0d9ec530bb Fix for 15142. Fixing typo makes secondary sort now work. 2000-03-17 00:03:46 +00:00
rjc%netscape.com df001914ec Part of fix for bug # 25876: bookmarks drag&drop behavior modification. Approval: jevering Review: waterson 2000-02-26 01:26:02 +00:00
waterson%netscape.com c1897bf17d 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 2000-02-25 23:08:43 +00:00
bienvenu%netscape.com 89181e6adc fix handling of uri's with 8 bit characters, a=phil r=waterson 24692 2000-02-23 20:51:36 +00:00
waterson%netscape.com 85010931c6 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. 2000-02-19 00:56:13 +00:00
waterson%netscape.com 725a6b2b3d Revert fix for 26947, 27271 due to bad interaction with the 'find' datasource that causes crash-on-exit. a=chofmann. 2000-02-16 22:44:15 +00:00
waterson%netscape.com 21c4ae46b3 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 2000-02-16 07:36:35 +00:00
waterson%netscape.com 8ce00f5245 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. 2000-02-15 07:08:45 +00:00
putterman%netscape.com d1428bcbdb Speed up sorting. r=rjc. Bug 26131. 2000-02-15 05:05:29 +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
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
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 776ac8a3e9 Clean up shared structures between nsRDFGenericBuilder.cpp and nsXULSortService.cpp; r=rjc 2000-01-25 04:07:41 +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
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
rjc%netscape.com b2951b5f50 Sorting optimizations. (Sort-of) review by putterman@netscape.com 2000-01-14 01:21:55 +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
rjc%netscape.com 02fab863f0 Tweak resource cache usage. Change from putterman, Review from me 2000-01-11 22:03:53 +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 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
nhotta%netscape.com 1cb7735520 Fixed memory leak, bug 22281, r=waterson. 2000-01-06 19:47:20 +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
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
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
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 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 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
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
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
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
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
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
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
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
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 55489d1b93 Bug 15146. Don't eagerly create a <xul:menu>'s contents. r=hyatt a=brendan 1999-11-04 01:49:34 +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
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
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
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
warren%netscape.com 26fb3f9eba Took out redundant MOZ_COUNT_CTOR/DTOR calls. 1999-10-18 19:21:53 +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 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 9d26c76a5e Misc cleanup, r=hyatt 1999-10-08 07:26:39 +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
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
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 c3bd3a1e15 Fix mac build bustage. 1999-09-24 20:39:26 +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
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
waterson%netscape.com 25694dc329 Fix bugs with computing containment. 1999-09-21 05:57:47 +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 9fe5928235 Fix HTML-rooted templates. 1999-09-15 20:08:37 +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
rjc%netscape.com 37e13748c5 Add check for NS_RDF_NO_VALUE. 1999-09-09 00:58:08 +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
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
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 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
putterman%netscape.com 702944dcc2 speedup building content. checkin for waterson. 1999-09-01 04:58:36 +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 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
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 43b89f11ed Bug 12254. Fix templates that are built inside of or use nested HTML. 1999-08-25 07:56:52 +00:00
dougt%netscape.com 32a9a77110 xpild-ing nsIAtom. Now nsIAtom is xpcom compliant. 1999-08-21 07:07:00 +00:00
rjc%netscape.com 5ed11f9b0d Fix bug # 10352: date sorting. 1999-08-11 06:24:56 +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 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
rjc%netscape.com 3b08048ac8 Persist attributes via the content model only. 1999-08-01 03:24:18 +00:00
waterson%netscape.com a0ea173e2f Bugs 10640, 10689. Fix assertions when opening a folder. Crude performance improvement for asynchronously generated content in tree controls. 1999-07-31 00:03:45 +00:00
rjc%netscape.com 931e33f799 Hook up persistent (via the localstore). 1999-07-30 23:42:41 +00:00
waterson%netscape.com a5d129b99b Bug 10617. Get folder performance back. We now _do not_ tell layout about individual content that gets appended during CreateContainerContents(), and instead wait until we've constructed all child nodes to do a ContentChanged() notification. 1999-07-28 05:21:22 +00:00
waterson%netscape.com d9a7613550 Implement RemoveWidgetItem(). Whoops. 1999-07-28 02:53:49 +00:00
waterson%netscape.com 952e4e3de7 Fix --pedantic bustage. 1999-07-27 18:04:55 +00:00
waterson%netscape.com 91a8ac09e7 Land TEMPLATE_19990726_BRANCH; RDF C++ content model builder exorcism. 1999-07-27 17:20:28 +00:00
waterson%netscape.com d1e0dbad12 Fix computation of empty containers. 1999-07-22 05:11:52 +00:00
rjc%netscape.com 0d632627c1 Set empty="false" attribute even if container is closed. 1999-07-22 00:49:50 +00:00
putterman%netscape.com 60f0c0a65e Messenger Copy/Move menus now show menuitems instead of all menus. 1999-07-22 00:26:00 +00:00
rjc%netscape.com ce1364e264 Now update "empty" attribute as children count changes. 1999-07-21 23:10:07 +00:00
rjc%netscape.com 1ed51dd105 Ensure that we have a value. 1999-07-21 23:02:35 +00:00
bienvenu%netscape.com 5ade5dfee3 checkin jefft's fix mailnews startup crash 1999-07-20 17:32:43 +00:00
rjc%netscape.com c8406785e0 Work harder at getting the REAL parent container when determining if the parent container is a RDF_Seq during a natural order sort. 1999-07-20 09:04:24 +00:00
rjc%netscape.com 0708ffd2ac Only support sorting on RDF Seqs if container is actually a RDF_Seq itself. 1999-07-20 05:20:32 +00:00
rjc%netscape.com e236e64c7d Fix for bug #9899: set "empty" attribute on containers if they appear to be empty. 1999-07-20 04:21:24 +00:00
rjc%netscape.com 395b5ec7a8 Oops... PR_FALSE instead of just FALSE. 1999-07-20 03:14:34 +00:00
rjc%netscape.com cbda70fa34 Add support for sorting RDF_Seqs when in natural order sort mode. 1999-07-20 03:13:15 +00:00
waterson%netscape.com e55647074b Bug 6873. Performance improvements to the generic builder. The template builder now instantiates template content 'lazily' when the frame system asks for it. 1999-07-19 19:18:10 +00:00
rjc%netscape.com c62018929a Fix a warning by tossing out some old debugging code. 1999-07-18 08:25:24 +00:00
rjc%netscape.com ba2f8f9be7 Use application locale when sorting with collation service; fix for bug #9968. 1999-07-17 21:36:17 +00:00
rjc%netscape.com 5cea898d16 Add check for null. 1999-07-15 09:20:54 +00:00
waterson%netscape.com fb0dd58baf Bug 8514. Add support s.t. 'ref=' changes will re-root a tree control (or other RDF-generated content). 1999-07-15 01:22:59 +00:00
rjc%netscape.com 7cfab409c1 Use GetTextForNode() more, as well as use GetValueConst(). 1999-07-14 21:13:13 +00:00
waterson%netscape.com a475eefcf3 Bug 8318. Don't include rdf:local-store in the generic builder until we have all of the persistence issues sorted out. 1999-07-12 18:24:26 +00:00
waterson%netscape.com 99a3ebae55 Bug 8854. Fix CloseWidgetItem() to play nice with mixture of XUL and RDF content. 1999-07-09 20:41:41 +00:00
rjc%netscape.com 62c5b9e788 Small insertion fix. 1999-07-07 06:34:18 +00:00
rjc%netscape.com 2224f3cb34 Now able to sort by dateLiterals and intLiterals too. <Whee> 1999-07-07 05:32:07 +00:00
waterson%netscape.com 25d4abb1e7 Remove XUL_TEMPLATES and XUL_TEMPLATE_ASSERTIONS #ifdefs. Add FALLBACK_BUILDERS #ifdef that (when removed) will turn off the C++ builders for constructing content. 1999-07-07 01:31:00 +00:00
waterson%netscape.com 62530d62af Implement OnChange() on the Generic and XUL builders. 1999-07-03 02:41:13 +00:00
rjc%netscape.com bc9d03d879 Use a binary insertion sort. (Note: there is a conditional near the top of the file that can turn off the binary insertion sort and revert back to the older, slower code, in case of any weird bugs I haven't caught.) For the moment, its turned ON as I haven't seen any problems with it. 1999-07-01 01:55:09 +00:00
waterson%netscape.com 2bc96a3bce Bug 9098. Remove NS_PRECONDITION, as this can happen normally as part of teardown. 1999-07-01 01:21:14 +00:00
rjc%netscape.com b71e65cc64 Only set natural order attribute on the containment element. 1999-06-25 09:32:43 +00:00
rjc%netscape.com 990539b30a Unset sortActive and sortDirection attributes if "natural order" is being used. 1999-06-25 09:19:29 +00:00
rjc%netscape.com d61393dde8 Get sorting working with new tree structure. Basically, just look for treechildren instead of treebody when walking down from the root of the tree. 1999-06-25 06:47:28 +00:00
waterson%netscape.com 4b1f9242e4 Land RDF_19990617_BRANCH. Add Change() and Move() methods to nsIRDFDataSource; add OnChange() and OnMove() methods to nsIRDFObserver. Factor nsIRDFDatasource::Init() and ::Flush() into nsIRDFRemoteDataSource. Change ownership model s.t. a datasource reference counts its observers. 1999-06-24 00:22:58 +00:00
hyatt%netscape.com fc69b0751c Fix for 8735. 1999-06-23 07:21:11 +00:00
hyatt%netscape.com b66c3c67f2 Landing the tree widget branch. 1999-06-23 03:02:21 +00:00
rjc%netscape.com 2a4f942c9a Clean up. 1999-06-21 10:46:47 +00:00
rjc%netscape.com 2df2a78102 Turn on. 1999-06-21 09:22:17 +00:00
rjc%netscape.com 3937aff223 Conditionalize. 1999-06-21 09:12:35 +00:00
rjc%netscape.com c806f94639 OnAssert() and OnUnassert() now understand if the contents were generated by a XUL template and, if so, try to do the right thing. 1999-06-21 08:59:14 +00:00
rjc%netscape.com a853570702 When building a subtree from a template, nodes are now unique until we find one with the "uri='...'" attribute set. 1999-06-20 09:11:25 +00:00
rjc%netscape.com b1c1954e42 Fix bug #8465 by starting at the parent of the node which is about to be inserted when looking for the "ignore" attribute. Also, save the "id" of the template node used to create node... in preparation for getting onAssert() and onUnassert() working fully with templates. 1999-06-20 05:45:40 +00:00
waterson%netscape.com 082e6c8f04 Bug 3440. Annotate node on 'close' to ensure XUL builder re-runs when the node is opened again. r=rjc, a=chofmann 1999-06-17 22:08:21 +00:00
waterson%netscape.com dbf578a94e Bug 6665. Hack to addref resources before doing the sort. This saves mailnews from having to recreate them. 1999-06-16 02:07:56 +00:00
waterson%netscape.com 096ab07f71 Fix leak of tree element. 1999-06-14 21:15:29 +00:00
rjc%netscape.com 5853a4243b Unset column sorting attributes instead of setting them to false if they aren't active. 1999-06-14 08:20:35 +00:00
waterson%netscape.com 6eb6f4542d Fix incorrect use of dont_QueryInterface() that was causing massive leakage. 1999-06-12 19:35:54 +00:00
rjc%netscape.com 3161197c50 XUL templates now look for any attribute (other than "uri") which equals "..." and substitutes the URI of the attached node. 1999-06-10 19:44:59 +00:00
peterl%netscape.com 784f0c9bee added code to ignore unknown namespace prefix for attributes
(actually the parser should've rejected it before here)
1999-06-10 05:18:46 +00:00
waterson%netscape.com 1715e9d49e Don't rely on rdf_PossiblyMake[Relative|Absolute](); rather, use XUL-specific functions to do it. 1999-06-09 08:30:47 +00:00
rjc%netscape.com 30efebddc1 XUL templates are now strong enough to support building menus and menuitems. 1999-06-03 07:16:18 +00:00
waterson%netscape.com 2e2773036a Bug 4045. Make GenericBuilder and its kin look at the 'ref=' attribute first, so that it's possible to have two elements in the same document tree that refer to the same RDF resource. 1999-06-03 02:23:50 +00:00
rjc%netscape.com be0b2911a6 Checking in a workaround for bug #7437 until Rickg fixes that. 1999-06-02 00:01:23 +00:00
rjc%netscape.com 3d401b9151 Disable XUL templates for the moment. 1999-06-01 21:34:05 +00:00
rjc%netscape.com f86fec73d9 Fix some bugs with template rules. Added some needed styles for bookmarks window. Fixed a bug with sorting in bookmarks window (don't add RDFCore into list, as its unnecessary.) Bookmarks panel in sidebar is now using template rules. 1999-05-29 00:17:32 +00:00
waterson%netscape.com 246d4762ab Bug 6895. Create HTML elements (not XUL elements) when the tag is in the HTML namespace. Minor performance enhancements to reduce number of calls to layout during content model construction. 1999-05-28 11:30:59 +00:00
rjc%netscape.com 5f33c29784 Fix Unix bustage on previous checking for bug # 6778. 1999-05-20 01:55:37 +00:00
rjc%netscape.com c03e43cdb3 Fix bug # 6778. Reviewed by sdagley, approved by chofmann. The fix consists of checking the proper default namespace on attributes (instead of using the XUL namespace), and adding a XUL template in for the bookmarks panel in the sidebar. 1999-05-20 01:21:20 +00:00
hyatt%netscape.com 95a6b34717 Fix for bug 5911. 1999-05-19 08:26:21 +00:00
rjc%netscape.com 457caa5821 Apply Scott Putterman's fix for XUL sorting. 1999-05-19 05:30:25 +00:00
rjc%netscape.com b0cf560690 Get rid of a few warnings. 1999-05-18 06:34:15 +00:00
rjc%netscape.com 70bf5173d4 More XUL template changes. Also re-enabling XUL_TEMPLATES. 1999-05-18 06:27:04 +00:00
rjc%netscape.com 83617f5b88 Even more support for collation keys. 1999-05-18 06:19:04 +00:00
rjc%netscape.com f6e8f86744 Checking in some additional collation key support. 1999-05-17 22:43:47 +00:00
waterson%netscape.com ada5fed6e3 Bug 3367. Need to 1) treat ArcLabelsOut as returning an 'optimistic' list of arcs, that is, possible arcs out; 2) use GetTarget() to test the containment property, not just existence of the arc; 3) implement 'rdf:ignore' to skip properties that may require extensive computation. In the process, I had to #ifdef XUL_TEMPLATES some of the XUL template stuff. 1999-05-15 23:46:17 +00:00
waterson%netscape.com f5c0bb9854 Fixed missing release service. 1999-05-13 20:52:15 +00:00
waterson%netscape.com 6a7e4de78b Okay, let's try that fix again. 1999-05-13 17:27:51 +00:00
waterson%netscape.com e8e6b41913 Fix inappropriate use of member functions. 1999-05-13 16:57:59 +00:00
rjc%netscape.com 05ac669b96 Don't compare nsCOMPtrs against nsnull. 1999-05-13 08:29:56 +00:00
rjc%netscape.com 00a8fbfe13 More cleanup on nsXULSortService (more nsCOMPtr usage, more C++ usage, etc.) Also, begin to add support for collation keys. 1999-05-13 08:25:12 +00:00
rjc%netscape.com e2802314c3 Add support for any node attribute that wants to bind its value to RDF by looking it up in the graph. 1999-05-13 08:02:19 +00:00
warren%netscape.com 87b26617d5 Fixed nsICollection (and Count in particular) to be xpidl friendly. 1999-05-13 04:56:04 +00:00
mcafee%netscape.com 492b4cef0f Renaming nsQuickSort to NS_QuickSort so it doesn't look like a class name. r=brendan@netscape.com 1999-05-10 06:47:04 +00:00
rjc%netscape.com 5100f5eef5 Yet another shot at fixing another Unix pedantic issue. 1999-05-08 21:47:49 +00:00
rjc%netscape.com f84a92af1e Try fixing another Unix pedantic issue. 1999-05-08 21:07:18 +00:00
rjc%netscape.com f44baf6931 Fix Unix pedantic issue. (hopefully) 1999-05-08 20:22:41 +00:00
rjc%netscape.com 32b84dcc23 Don't compare nsCOMPtrs against nsnull. 1999-05-07 21:24:09 +00:00
rjc%netscape.com 4c3a89fd0b First cut at adding template and rule support for XUL builders. 1999-05-07 21:20:33 +00:00
briano%netscape.com 4eef4b871a Converted 'true' to 'PR_TRUE' so it'll build on Unix. 1999-05-07 05:17:30 +00:00
kipp%netscape.com f85c7d58ee Use DOM api's instead of layout private api's 1999-05-06 19:28:22 +00:00
waterson%netscape.com fe7fe2c9cb Fix compiler warnings. Make -pedantic build again. 1999-05-06 06:34:07 +00:00
rjc%netscape.com 5a70431bf0 Add some small NULL checks. 1999-05-06 00:38:54 +00:00
waterson%netscape.com 4c9acf711d Bug 5853. Fix vanishing bookmark titles problem: need to re-query graph on update. 1999-05-05 03:10:25 +00:00
rjc%netscape.com 8315e6fde0 Add some more nsCOMPtrs to fix leakage. 1999-04-28 07:03:11 +00:00
waterson%netscape.com db5ad72a02 Fix leak of composite datasource on each sort. 1999-04-28 06:23:21 +00:00
waterson%netscape.com b6bd7f337e Land RDF_19990426_BRANCH, which extracted some static C++ routines for manipulating RDF containers into bona fide interfaces. 1999-04-27 05:54:18 +00:00
rjc%netscape.com 2f3ff86b87 Remove debugging crap. 1999-04-27 05:12:10 +00:00
rjc%netscape.com 38a75ee0a4 Added support for smart-sorting, whereby for example in bookmarks, when sorting on the name column, we'll sort in-between separators. 1999-04-27 02:28:12 +00:00
rjc%netscape.com 6fb51639ac More change for nsISupportsArray usage. 1999-04-27 01:48:37 +00:00
waterson%netscape.com 4dac3b7dc6 The Great Cursor Excorcism. Removed cursors in favor of enumerators. Misc updates to purge the xpidl stubs stuff in preparation for XPConnect. Details on RDF_19990422_BRANCH. 1999-04-24 02:41:02 +00:00
rjc%netscape.com 857cea3cdf Checking in Scott Putterman's changes to use nsISupportsArray instead of a void array. 1999-04-23 08:32:42 +00:00