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

487 Коммитов

Автор SHA1 Сообщение Дата
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
waterson%netscape.com 86749161a0 Bugscape 2856. Use NS_ConvertUTF8toUCS2() when inflating URIs. r=rjc,jelwell sr=hyatt 2000-10-21 00:19:56 +00:00
waterson%netscape.com 617762c217 Bug 54715. Use iterators instead of CharAt() in ParseAttribute(). r=scc, a=hyatt 2000-10-18 02:05:57 +00:00
waterson%netscape.com a4f7d803c2 Bug 56349. Be more conservative in RemoveMember(): use new function IsDirectlyContainedBy() to walk template and generated tree in parallel. r=rjc, a=hyatt 2000-10-18 02:01:45 +00:00
waterson%netscape.com a15b07d579 Bug 53627. Use nsAutoString to get around bug with nsPromiseFlatString; don't clobber positive result in IsVarInSet(). r=rjc, sr=hyatt 2000-10-09 20:28:04 +00:00
mkaply%us.ibm.com f1ceec88bb OS/2 Tinderbox break continued
Better fix for breakage per waterson
2000-09-29 20:48:04 +00:00
mkaply%us.ibm.com e751ae1955 OS/2 Tinderbox breakage
Need to make these values really PRUint32 for VisualAge
If you guys thought your changes to get gcc to work were bad, wait until you see these
2000-09-29 14:36:46 +00:00
waterson%netscape.com a3e9232614 Better fix, with explicit temporary for gcc-2.7.2.3's lame self. (thanks for the assist, scc.) 2000-09-29 06:45:22 +00:00
waterson%netscape.com 6aead1bea9 Temporary fix orange on gcc-2.7.2.3 build. 2000-09-29 06:29:44 +00:00
waterson%netscape.com 491a3997fb Bug 46134, the final chapter. Factor funky attribute parsing logic into a separate routine, ParseAttribute(), add callbacks to make SubstituteText() and IsAttrImpactedByVars() use this. Also (the real fix), make sure that we call it from AddSimpleRuleBindings() so we don't drop old-sk00l bindings on the floor when multiple substitutions present in an attribute. r=rjc, sr=hyatt 2000-09-29 04:09:42 +00:00
waterson%netscape.com a9d0d3baf6 Bug 54475. Don't mark leaf nodes as 'requiring more work'. We know they're leaves! r=rjc, sr=hyatt 2000-09-28 23:25:10 +00:00
waterson%netscape.com 5eb5d1ab39 Bug 53608. Avoid creating atoms in nsXULContentUtils. r,a=hyatt 2000-09-26 03:53:21 +00:00
rjc%netscape.com e8f1aa48bd Fix bug # 52789: bookmark sorting fix. r=jag, brendan, scc 2000-09-22 00:42:21 +00:00
waterson%netscape.com aa07e7a254 Tune arena sizes, per news://news.mozilla.org/39BEC105.5090206%40netscape.com. 2000-09-14 23:11:40 +00:00
waterson%netscape.com ef371ea288 Fix 'const' bustage. 2000-09-14 23:10:37 +00:00
waterson%netscape.com ec2a45d34d Bug 51813. The change in r1.194 made it so that we respect a XUL element's lazy state. Because of this, we no longer need to check for 'new' matches in InstantiationNode::Propogate() -- *all* matches should be returned. Re-constify methods that should be const, and add NS_CONST_CAST() to call out where we're doing naughty things. r=rjc 2000-09-14 23:07:29 +00:00
waterson%netscape.com 713b804df2 Bug 46134, redux. Fix another piece o' code affected by the '^' character. r=rjc 2000-09-14 04:39:59 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
scc%mozilla.org 70ad30814f if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 04:50:55 +00:00
waterson%netscape.com 083b26da8d Bugs 46134. Use caret ('^') character to concatenate text. Fix nsPromiseSubstring usage. r=rjc. Bug 46686. Update container attrs *before* we nuke the bestmatch. r=rjc 2000-09-12 23:12:40 +00:00
bryner%uiuc.edu e596018a21 Fixing 50554 - keep the tree in a consistent state while removing its content.
This is prep work for 47795.  Also fixes chatzilla crash.  r=waterson.
2000-08-31 02:39:48 +00:00
jst%netscape.com ca738093f5 Fixing nsbeta3+ bug 48213 and most of bug 48161. Finally removing the temporary DOM Level 2 debugging code, cleaning out some unused code and making getAttribute and setAttribute on HTML elemensts case insensitive. r=vidur@netscape.com, waterson@netscape.com 2000-08-31 00:36:31 +00:00
waterson%netscape.com a5a55e573d Try to fix AIX build bustage... 2000-08-30 04:07:56 +00:00
waterson%netscape.com 4de3aaabdb Bug 46134. Support >1 value in attribute substitution. r=rjc 2000-08-30 01:00:02 +00:00
jst%netscape.com 9abec73fbe DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2000-08-23 17:27:06 +00:00
rjc%netscape.com 456f4c8a43 Fix bug # 35022: slow bookmark operations. r=waterson 2000-08-22 00:44:07 +00:00
scc%mozilla.org cca6f9e011 fixing code that relied on implicit string construction 2000-08-19 22:46:00 +00:00
hyatt%netscape.com 1ec75c7bd1 Fix that is needed for 46719, r=ducarroz,ben 2000-08-16 00:42:13 +00:00
waterson%netscape.com 2dd8f2d2a0 Bug 48086. Be sure to update XUL document's ID-to-element map when removing generated content. r=rjc 2000-08-14 21:46:04 +00:00
rjc%netscape.com a08d78f72c Remove Mac debugging info. r=me 2000-08-08 05:55:22 +00:00
rjc%netscape.com 83eb62c847 Sorting fixes for bug # 26131. r=me, nhotta, putterman 2000-08-08 05:50:10 +00:00
waterson%netscape.com d9cda5ebc1 Bugs 46616, 46964. Clean up RebuildContainer(): factor into two methods to share code better. Maintain a queue of ungenerated elements to scan for generated children. Add tons of comments so I don't have to figure this all out again when I look at it next. r=rjc 2000-08-08 04:57:55 +00:00
waterson%netscape.com d867e404c8 Bug 46053. Add [begin|end]UpdateBatch() to nsIRDFObserver; case-normalize the resot of the nsIRDFObserver methods; update implemetors, users. r=bienvenu,rjc,dmose,slamm 2000-08-08 00:22:36 +00:00
rjc%netscape.com 330ae57a24 Small sorting fix. (Can't find bug #) r=me 2000-07-29 16:15:48 +00:00
rjc%netscape.com 2cd7fc48a5 Fix bug # 46211: handle insertion/sorting correctly with mixed static-dynamic content. r=waterson 2000-07-27 00:22:42 +00:00
hyatt%netscape.com 3a140ded51 Fixes to template builder for non-aggressive groveling. r=waterson,a=waterson 2000-07-26 23:56:02 +00:00
bienvenu%netscape.com 1a83ee0a8b turn on warren and waterson's rdf optimization 2000-07-26 23:47:35 +00:00
hyatt%netscape.com 398a91d272 Fix for bug #45951. r=waterson. 2000-07-24 22:42:34 +00:00
warren%netscape.com de3523d540 Added nsIRDFDataSource::HasArcIn/HasArcOut. Changed nsXULTemplateBuilder.cpp to use it (ifdef'd for now). Speed up folder loading by about 24%. r=waterson,alecf 2000-07-19 03:58:25 +00:00
waterson%netscape.com 095615e661 Bug 37621. Add necessary logic to retract and fire rules in nsXULTemplateBuilder::OnChange(). I lost these when I re-wrote this method :-(. r=rjc 2000-07-07 23:01:14 +00:00
evaughan%netscape.com 4db3654be5 Clean up for autoscrolling menu landing. ScrollBox events need their own type and should not be
on top of menu events.

-r hyatt
2000-06-28 00:00:18 +00:00
evaughan%netscape.com 969d067559 Autoscrolling menus feature landing #32730
-r hyatt, saari
2000-06-23 05:15:04 +00:00
waterson%netscape.com 6166c3b129 Bug 42991. Get rid of obsolete 'rdf:child' identifier. r=rjc 2000-06-20 02:25:48 +00:00
waterson%netscape.com fd39c4187e Bug 39699. Add re-entrancy guards so that we ignore updates while we're in the middle of building content. r=rjc 2000-06-16 21:46:04 +00:00
dbaron%fas.harvard.edu dd0c6672be Fix leak of XMLElementFactoryImpl. r=waterson@netscape.com 2000-06-15 02:16:28 +00:00
scc%mozilla.org 484ee8fb96 don't extract characters from empty strings 2000-06-11 08:19:41 +00:00
mkaply%us.ibm.com 03c7ec7c31 # 37239
r = waterson, a = waterson
OS/2 bringup - PR_CALLBACKs for VisualAge
2000-06-05 19:19:14 +00:00
waterson%netscape.com 84ec5e0e86 Bug 40284. Ensure that 'container' attribute correctly updated for extended templates. r=rjc 2000-05-31 00:03:12 +00:00
waterson%netscape.com b6ac1476df Bug 39876. QI() for nsIXULContent rather than checking the element's namespace. Who knows, some day HTML might support nsIXULContent ;-). r=rjc 2000-05-26 22:26:57 +00:00
hyatt%netscape.com 21e5ef59a2 fix for making skins script-safe. r=scc 2000-05-19 04:48:43 +00:00
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