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
brendan%mozilla.org
b6473d8bd0
Use .get() for comptr==rawptr comparisons, for weak-minded compilers.
...
git-svn-id: svn://10.0.0.236/trunk@55161 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 04:45:36 +00:00
brendan%mozilla.org
4ccbd4b644
- 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 )
git-svn-id: svn://10.0.0.236/trunk@55157 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 03:40:30 +00:00
waterson%netscape.com
e313aaa0ab
Bug 20309. Use nsCAutoString. Kudos to buhr@stat.wisc.edu
...
git-svn-id: svn://10.0.0.236/trunk@55114 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 23:53:25 +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
buster%netscape.com
a5b61285a7
bug 2253. added controller to html text input
...
r = kmcclusk, norris
git-svn-id: svn://10.0.0.236/trunk@54909 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 15:11:33 +00:00
waterson%netscape.com
452d6d03a6
Bug 16516. Doh! Fix use of NS_RELEASE()-ed pointer that was causing load handlers to not run on brutally shared docs.
...
git-svn-id: svn://10.0.0.236/trunk@54797 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:47:41 +00:00
ftang%netscape.com
11dd650525
fix bug 20181. r=ftang a=beard
...
git-svn-id: svn://10.0.0.236/trunk@54784 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:24:16 +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
waterson%netscape.com
5b5c83c2d3
Fix RemoveStyleSheet() per pierre's comments.
...
git-svn-id: svn://10.0.0.236/trunk@54718 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:33:28 +00:00
hyatt%netscape.com
3f8b94159a
Adding RemoveStyleSheet to nsIDocument (needed for skins). r=waterson
...
git-svn-id: svn://10.0.0.236/trunk@54608 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 22:15:07 +00:00
waterson%netscape.com
ca6783642d
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
...
git-svn-id: svn://10.0.0.236/trunk@54575 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 20:53:40 +00:00
hyatt%netscape.com
dfb64c2671
More skin work. r=pavlov
...
git-svn-id: svn://10.0.0.236/trunk@54557 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 06:51:24 +00:00
tbogard%aol.net
a75802872d
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.
...
git-svn-id: svn://10.0.0.236/trunk@54555 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 06:04:15 +00:00
vidur%netscape.com
2b3d123d93
Changed signature of AddScriptEventListener. Event handlers that are attributes of XUL elements are now compiled only when first invoked. R=joki
...
git-svn-id: svn://10.0.0.236/trunk@54459 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-25 00:06:10 +00:00
waterson%netscape.com
0d2ce02d14
More random flailing to fix gcc-2.7.2.3
...
git-svn-id: svn://10.0.0.236/trunk@54449 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 23:39:34 +00:00
waterson%netscape.com
91d3876ee2
Random flailing to fix gcc-2.7.2.3 bustage.
...
git-svn-id: svn://10.0.0.236/trunk@54448 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 23:19:52 +00:00
waterson%netscape.com
c270cdebcb
Expose nsIXULDocument and nsIXULPrototypeDocument as public interfaces. Properly implement nsIXULDocument::CreateFromPrototype().
...
git-svn-id: svn://10.0.0.236/trunk@54445 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 22:46:09 +00:00
waterson%netscape.com
d19314125e
Add methods to individually flush prototypes and style sheets.
...
git-svn-id: svn://10.0.0.236/trunk@54444 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 22:44:52 +00:00
waterson%netscape.com
bb116685ba
Bug 20036. Fix style sheet ordering.
...
git-svn-id: svn://10.0.0.236/trunk@54443 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 22:43:45 +00:00
tbogard%aol.net
ae5a81e394
Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
...
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00
tbogard%aol.net
1911c4e4d3
Enabled nsXULElement to implement the nsIChromeEventHandler interface. r=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@54268 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 09:36:39 +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
waterson%netscape.com
8085996e7f
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
...
git-svn-id: svn://10.0.0.236/trunk@54234 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:44:51 +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
waterson%netscape.com
8b7f58ab3c
Bug 12734. Make check for duplicate insertions debug-only. Thanks to zee@northrock.bm
...
git-svn-id: svn://10.0.0.236/trunk@54044 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:13:25 +00:00
sfraser%netscape.com
612e5331ad
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.
...
git-svn-id: svn://10.0.0.236/trunk@54042 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 06:42:24 +00:00
brendan%mozilla.org
3b43f14bd3
Followup to my last checkin: get list-unlink vs. ResumeWalk order right (r=waterson@netscape.com)
...
git-svn-id: svn://10.0.0.236/trunk@54028 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 03:10:42 +00:00
rods%netscape.com
f5defbd9b7
removed select initialization code r=dcone bug 18241
...
git-svn-id: svn://10.0.0.236/trunk@54001 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 15:42:06 +00:00
buster%netscape.com
292497ba01
bug 12022, r=rickg
...
git-svn-id: svn://10.0.0.236/trunk@53987 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 08:26:56 +00:00
bienvenu%netscape.com
c9cba49af2
small performance tweak for null id xul elements r=waterson
...
git-svn-id: svn://10.0.0.236/trunk@53947 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:31:36 +00:00
waterson%netscape.com
a66438f908
Clean up some timing printfs.
...
git-svn-id: svn://10.0.0.236/trunk@53832 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 05:47:51 +00:00
brendan%mozilla.org
ec11858386
Brutal JS script sharing (15146, r=waterson@netscape.com).
...
git-svn-id: svn://10.0.0.236/trunk@53804 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 02:25:33 +00:00
warren%netscape.com
d8627fe912
Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
...
git-svn-id: svn://10.0.0.236/trunk@53761 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:14:52 +00:00
waterson%netscape.com
011da6cb8c
Fix build bustage: disambiguate nsXULDocument::State from nsForwardReference::State by renaming to nsForwardReference::Phase.
...
git-svn-id: svn://10.0.0.236/trunk@53736 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 03:20:03 +00:00
waterson%netscape.com
304a4f2540
Bug 13378. Make sure that we hook up any broadcasters that arrive in overlay subtrees. r=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@53732 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 02:45:46 +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
norris%netscape.com
331cf153db
* 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
git-svn-id: svn://10.0.0.236/trunk@53631 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 05:07:31 +00:00
tbogard%aol.net
67a365111c
Changed places where containers were set to use nsISupports instead of nsIContentViewerContainer. r=dp
...
git-svn-id: svn://10.0.0.236/trunk@53553 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 22:17:54 +00:00
tbogard%aol.net
9e4e911de1
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
...
git-svn-id: svn://10.0.0.236/trunk@53550 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 22:14:37 +00:00