waterson%netscape.com
7f0d4111fa
Bug 20147. Make sure to correctly scope 'parent' when creating script objects. XUL document's parent is the window; XUL element's parent is the document. r=brendan
1999-11-29 20:53:40 +00:00
hyatt%netscape.com
accc6a1b3f
More skin work. r=pavlov
1999-11-29 06:51:24 +00:00
tbogard%aol.net
46918d296f
nsXULDocument now uses the nsIBaseWindow interface for windowing stuff on webshell instead of nsIWebShell. This paves the way for the new docshell object to move in.
1999-11-29 06:04:15 +00:00
warren%netscape.com
4ab4ee4d4e
Eliminated the libs build pass.
1999-11-28 03:05:01 +00:00
vidur%netscape.com
cadeecc8a4
Changed signature of AddScriptEventListener. Event handlers that are attributes of XUL elements are now compiled only when first invoked. R=joki
1999-11-25 00:06:10 +00:00
waterson%netscape.com
f24b150fb3
More random flailing to fix gcc-2.7.2.3
1999-11-24 23:39:34 +00:00
waterson%netscape.com
03e82d50ce
Random flailing to fix gcc-2.7.2.3 bustage.
1999-11-24 23:19:52 +00:00
waterson%netscape.com
062b2d5a6f
Expose nsIXULDocument and nsIXULPrototypeDocument as public interfaces. Properly implement nsIXULDocument::CreateFromPrototype().
1999-11-24 22:46:09 +00:00
waterson%netscape.com
20db57f648
Add methods to individually flush prototypes and style sheets.
1999-11-24 22:44:52 +00:00
waterson%netscape.com
725a3b67cd
Bug 20036. Fix style sheet ordering.
1999-11-24 22:43:45 +00:00
akkana%netscape.com
8c8562ff71
More on 11818 (xulkey): make meta the default mac xulkey,
...
since platformGlobalOverlay.xul isn't loaded. r=brade
Also fix the mac and unix platformGlobalOverlay files
for when platformGlobalOverlay.xul merging gets fixed.
1999-11-24 20:44:56 +00:00
tbogard%aol.net
a0640b60c4
Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
1999-11-24 06:03:41 +00:00
akkana%netscape.com
63a098fcc6
11818: Rename the special XUL key from "command" to "xulkey" so it won't
...
confuse people into thinking it has something to do with the Mac command key.
This means changing all the XUL keybinding files from command= to xulkey=.
r=brade.
1999-11-23 23:24:57 +00:00
tbogard%aol.net
d32c6dfc9c
Enabled nsXULElement to implement the nsIChromeEventHandler interface. r=hyatt
1999-11-23 09:36:39 +00:00
rjc%netscape.com
47c7e1b6e6
One less loop (figured out what was preventing this).
1999-11-23 05:37:33 +00:00
rjc%netscape.com
29c08f34ab
Get rid of a warning.
1999-11-23 04:47:38 +00:00
rjc%netscape.com
8d87ea18f6
Get rid of another signed/unsigned warning.
1999-11-23 04:44:52 +00:00
rjc%netscape.com
4d89b5ea58
Get rid of a signed/unsigned warning.
1999-11-23 04:43:01 +00:00
rjc%netscape.com
33404d8a24
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
84e2b4c550
When sorting, only set found="true" attribute if not a natural order sort.
1999-11-23 02:27:03 +00:00
rjc%netscape.com
fddf5943ca
Set some sorting hints on the root of the tree (allows for faster insertion sort, due to not having to look around for treecol tags; also makes it pretty easy for drag&drop code to determine if a sort is currently being imposed.)
1999-11-23 01:51:46 +00:00
waterson%netscape.com
f664dd64c8
Bug 19421. Brendan's fixes for brutal sharing of script, plus a 'placeholder channel' that ensures we don't fire the EndDocumentLoad() before the prototype walk completes. r=brendan
1999-11-23 01:44:51 +00:00
rjc%netscape.com
3f3e3b8f3a
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
ec7ad9543d
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
norris%netscape.com
1c4dac85f3
Modify generated dom code to use a enum rather than a string for codesize
...
and efficiency.
Tighten checks on document properties and node properties. Should resolve
several bugs:
18965 document.firstChild vulnerability
19043 document.childNodes vulnerability
19044 document.lastChild vulnerability
r=mstoltz
1999-11-20 07:28:34 +00:00
waterson%netscape.com
0116ab78df
Bug 12734. Make check for duplicate insertions debug-only. Thanks to zee@northrock.bm
1999-11-20 07:13:25 +00:00
sfraser%netscape.com
78aa804bcf
Workaround for bug 19421 -- no menus on mac. This is a problem with brutal sharing of overlays that waterson needs to fix. For now, turn off brutal sharing of scripts. r=brendan, saari.
1999-11-20 06:42:24 +00:00
brendan%mozilla.org
7289c9d1cb
Followup to my last checkin: get list-unlink vs. ResumeWalk order right (r=waterson@netscape.com)
1999-11-20 03:10:42 +00:00
rods%netscape.com
74e45c0e2a
removed select initialization code r=dcone bug 18241
1999-11-19 15:42:06 +00:00
buster%netscape.com
4cbe3e3538
bug 12022, r=rickg
1999-11-19 08:26:56 +00:00
bienvenu%netscape.com
8737dce8ab
small performance tweak for null id xul elements r=waterson
1999-11-19 01:31:36 +00:00
waterson%netscape.com
aaf9e7f9c7
Clean up some timing printfs.
1999-11-18 05:47:51 +00:00
brendan%mozilla.org
098299e271
Brutal JS script sharing (15146, r=waterson@netscape.com).
1999-11-18 02:25:33 +00:00
warren%netscape.com
aaf83521f5
Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
1999-11-17 08:14:52 +00:00
waterson%netscape.com
52d85162a9
Fix build bustage: disambiguate nsXULDocument::State from nsForwardReference::State by renaming to nsForwardReference::Phase.
1999-11-17 03:20:03 +00:00
waterson%netscape.com
2d34222855
Bug 13378. Make sure that we hook up any broadcasters that arrive in overlay subtrees. r=hyatt
1999-11-17 02:45:46 +00:00
rjc%netscape.com
22d78384e5
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
a4c33e24fa
Bug 10469. Remove 'natural order position' stuff. Make sure that nsXULSortService::InsertContainerNode() does the right thing when presented with an unsorted tree. r=rjc
1999-11-16 05:34:13 +00:00
norris%netscape.com
411aade911
* Fix 12124 [DOGFOOD] Reading user's preferences
...
* Implement site-specific security policies (bug 858)
r=mstoltz
* Use Recycle rather than delete[] to clean up Purify logs
r=law
1999-11-16 05:07:31 +00:00
tbogard%aol.net
50379d48b1
Changed places where containers were set to use nsISupports instead of nsIContentViewerContainer. r=dp
1999-11-15 22:17:54 +00:00
tbogard%aol.net
23832caf58
Changed interfaces to take nsISupports for the container instead of nsIContentViewerContainer. nsXULDocument was for some reason holding on to this interface (as a weak reference) but was never using it. I have therefore gotten rid of this member variable. r=dp
1999-11-15 22:14:37 +00:00
putterman%netscape.com
97fca30909
Partial fix for 10208. When adding items to a container, update the empty attribute. reviewed by
...
waterson.
1999-11-15 20:58:39 +00:00
rods%netscape.com
d6847ac0e2
added the call DoneAddingContent for the select after it has been created.
...
r=dcone,bug 18784,16821
1999-11-15 15:11:33 +00:00
rjc%netscape.com
a6dd3f11da
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
saari%netscape.com
7f0c6ab02f
Fixing keybinding. Was using an nsDOMUIEvent interface when I should have been using nsDOMKeyEvent. Something chaged recently that exposed this bug. Also inserted a few nsCOMPtrs to fix leaks. R: waterson, mostly
1999-11-11 08:48:25 +00:00
putterman%netscape.com
14b976d5b4
Use get() instead of ==
1999-11-11 01:22:59 +00:00
rjc%netscape.com
35b6bda704
Add support for secondary key sort. Convert over to using nsCOMPtrs. Review: me
1999-11-10 23:50:34 +00:00
waterson%netscape.com
0f802e0c50
Bug 18102. Consolidate element map, command dispatcher, and broadcaster hookup into AddSubtreeToDocument(). Fixes over-eager hookup of broadcast listeners into unresolved overlay elements, which left a dangling pointer. r=saari, a=chofmann
1999-11-08 19:07:13 +00:00
dmose%mozilla.org
8535dda53e
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
50ad3f2022
Bug 18058. Remove 'commandDispatcher' from interface; obsolete, and leaky. r=hyatt, a=chofmann
1999-11-05 05:31:15 +00:00
waterson%netscape.com
1d630564b4
Bug 17955. Don't unnecessarily add script event listeners to temporary nodes used for overlay hookup. r=hyatt, a=chofmann
1999-11-04 19:43:43 +00:00
waterson%netscape.com
1604985632
Bug 17847. Fix 'commandupdater' hookup for master document. r=hyatt, a=chofmann
1999-11-04 18:37:58 +00:00
beard%netscape.com
ba1a567cb2
bug #17847 , fix clobbering of mSlots->mAttributes in GetAttributes(). r=waterson, a=chofmann
1999-11-04 02:56:54 +00:00
hyatt%netscape.com
0eea38f731
Partial fix for 17848. Part 1 of 2. 2nd part will be checked in by hangas. r=hangas, a=brendan
1999-11-04 01:59:04 +00:00
waterson%netscape.com
52ce5fde68
Bug 17024. Fix mClassList leak; add bloaty stats for nsClassList. r=hyatt a=chofmann
1999-11-04 01:50:47 +00:00
waterson%netscape.com
6cb382251f
Bug 15146. Don't eagerly create a <xul:menu>'s contents. r=hyatt a=brendan
1999-11-04 01:49:34 +00:00
joki%netscape.com
d5c05ea133
Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur
1999-11-03 07:11:45 +00:00
waterson%netscape.com
a68d61b330
Bug 13252. Build content for current template before recursing to build content for children. r=alecf.
1999-11-03 06:59:49 +00:00
cls%seawood.org
14ef08310e
Removed unused NECKO ifdefs.
...
a=leaf
1999-11-02 23:34:03 +00:00
alecf%netscape.com
b0da944f95
fix for #12703 - don't hold onto XULElements after they have been removed from the tree - don't bother checking mDocument because it will be null when the content has been removed from the document
...
r=hyatt
1999-11-02 23:30:33 +00:00
warren%netscape.com
2a827fc8c2
Made nsIUnicharStreamLoader be scriptable and deal with an xpcom observer instead of a proc pointer and void*. Part of bug#11159. r=nisheeth,kipp,pierre
1999-11-02 06:49:44 +00:00
waterson%netscape.com
6552d7ba4d
remove CTOR and DTOR counters, because the descendant classes will all
...
account for this space. r=warren
1999-11-02 06:21:07 +00:00
warren%netscape.com
21c3c164cd
Fix for bad refcount tracing. r=buster,nisheeth
1999-11-02 05:37:04 +00:00
waterson%netscape.com
cc4295c551
Fix manky nsCOMPtr asserts.
1999-11-02 02:02:27 +00:00
pinkerton%netscape.com
5beb600570
fix for bug 17381 where leaving the frame before a drag gesture was began caused the event target to be set incorrectly. (r=saari).
1999-11-02 01:34:16 +00:00
waterson%netscape.com
981af88aa4
Bug 15146. Brutal sharing, Phase III. Turn on protoype, script, and style sheet caching. r=hyatt
1999-11-02 01:14:07 +00:00
brendan%mozilla.org
fe51b61664
(13163, r=alecf, scc, waterson, others; names available on request)
...
- Fix most of bug 13163 (see TODO for rest). This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks.
- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp. These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that.
- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString. Also changed various nsresult vars to be named rv. Also restored brace/style conformity to nsJSProtocolHandler.cpp.
- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject.
- Lots of nsCOMPtr uses added. I'm using one for mNameSpaceManager. Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak). These two managers should be moved to the window object -- TODO item below.
- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver.
- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated. This meant factoring nsJSUtils.cpp code.
- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace.
- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
troy%netscape.com
effb3aefb7
Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
...
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up
1999-10-30 02:52:11 +00:00
waterson%netscape.com
389d9233e7
Pull script object and event listener list out of slots and into delegate to avoid faulting a heavyweight element. Fix EnsureSlots() to _not_ do a bunch of extra work that is already being done when we create an element from its prototype. Use nsCOMPtr's in nsXULAttributes to avoid leak of nsIStyleRule. r=hyatt
1999-10-29 22:09:20 +00:00
waterson%netscape.com
05904342f7
Fix SizeOf() operation.
1999-10-29 03:07:38 +00:00
waterson%netscape.com
59a9169ad9
Bug 15146. Brutal content model sharing, Phase II. XUL content sink now constructs prototype documents; 'real' content model constructed from walking prototype. Landed XUL_SHARING_19991027_BRANCH (derived from XUL_SHARING_19991022_BRANCH). See branch comments for details. r=hyatt.
1999-10-29 01:21:15 +00:00
pepper%netscape.com
eb9c85f96d
Added a newline to the end of file so that AIX and HP compilers are happy.
...
r=mgleeson
1999-10-28 22:17:43 +00:00
hyatt%netscape.com
deace1a2e2
making the chrome registry work with dynamic overlays r=pavlov
1999-10-27 02:21:05 +00:00
dp%netscape.com
94d79e100e
bug#16742 Fixing delete on nsISupports. Thanks for patch from <heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing operating on refcnt directly. r=dp
1999-10-24 04:41:17 +00:00
waterson%netscape.com
a20e5bc21b
Bug 15146. Factor nsXULElement's members into prototype and optional 'slots' for heavyweight elements. r=hyatt.
1999-10-20 18:55:32 +00:00
tbogard%aol.net
7c498dda21
Removed the last of gimpy's warnings. r=gimpy.
1999-10-19 08:03:11 +00:00
waterson%netscape.com
3900f1915d
Obsolete.
1999-10-19 03:05:25 +00:00
waterson%netscape.com
3a7da7d02f
Move nsXULElement declaration into the header file.
1999-10-18 23:05:35 +00:00
waterson%netscape.com
a306c3e8d7
Remove nsRDFElement.cpp
1999-10-18 22:08:39 +00:00
waterson%netscape.com
b668580ada
Rename nsRDFElement to nsXULElement; rename nsXULElement to nsXULAggregateElement.
1999-10-18 22:08:15 +00:00
warren%netscape.com
2dceb727af
Took out redundant MOZ_COUNT_CTOR/DTOR calls.
1999-10-18 19:21:53 +00:00
warren%netscape.com
edf3235d43
Took out redundant MOZ_COUNT_CTOR/DTOR calls.
1999-10-18 19:06:21 +00:00
peterl%netscape.com
c94fbefb6e
Made style rules work against nsIMutableStyleContext
...
r=troy
1999-10-16 04:06:04 +00:00
peterl%netscape.com
527516876e
Added namespace ID to the AttributeChanged notification
...
Part of the fix for Bug 15153
r=troy
1999-10-15 23:17:53 +00:00
tbogard%aol.net
c8335260db
Adding support for retrieving the EditorShell from editor element. r=hyatt
1999-10-15 21:21:10 +00:00
tbogard%aol.net
0900c2bee6
Adding support for retrieving the EditorShell from editor element. r=hyatt
1999-10-15 21:07:27 +00:00
waterson%netscape.com
583670b716
Darnit. Didn't mean to FORCE_PR_LOG. Removing that #define.
1999-10-15 20:55:54 +00:00
waterson%netscape.com
47b4f27357
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
63f18c6cb3
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
8457e8ceee
Unclutter stuff by using nsCOMPtr in the nsElementMap::ContentListItem. Add leakenmacros to ContentListItem. Fix a leak in the the internal enumerator routine. Comment the internal enumerator routine since it's kinda funky. Add 'tag name' to the log messages.
1999-10-15 04:45:43 +00:00
bienvenu%netscape.com
97a4d06a76
fix memory leak of nsIURI in Set and GetAttribute r=waterson
1999-10-15 02:59:37 +00:00
ftang%netscape.com
bd9000ea54
landing keyEvent_19991004_BRANCH
...
bugs # see the log of the check in into branch
author/reviewer:
mozilla/layout/base/src/nsRangeList.cpp brade/mjudge
mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp brade/ftang
mozilla/layout/events/src/nsDOMEvent.cpp brade/joki
mozilla/layout/events/src/nsEventStateManager.cpp brade/joki
mozilla/widget/public/nsGUIEvent.h akkana/ftang
mozilla/widget/src/windows/nsWindow.cpp ftang/mjudge
mozilla/widget/src/windows/nsWindow.h ftang/mjudge
mozilla/widget/src/mac/nsTextAreaWidget.cpp brade/ftang
mozilla/widget/src/mac/nsMacEventHandler.cpp brade/simon
mozilla/widget/src/xpwidgets/nsKeyBindMgr.cpp brade/ftang
mozilla/widget/src/gtk/nsGtkEventHandler.cpp akkana/?
mozilla/widget/src/gtk/nsWidget.cpp erik/ftang
mozilla/layout/xul/base/src/nsTreeCellFrame.cpp brade/ftang
mozilla/editor/base/nsEditorEventListeners.cpp brade/akkana
mozilla/editor/base/nsHTMLEditor.cpp brade/akkana
mozilla/rdf/content/src/nsXULKeyListener.cpp ftang/saari
fix the master bug- 15693
fix at least, but not limited to, the following bugs
10158,11956,6053,9333,10901,14348,6449,11845,13016,14410,15657,15307,15842,13856
1999-10-14 18:27:01 +00:00
hyatt%netscape.com
b2564031fe
Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++)
1999-10-14 10:58:25 +00:00
waterson%netscape.com
fa01dc07d1
Add check-for-null-pointer to FireOnSelectHandler() to avoid crashing in the case where a select handler fires on an 'orphaned' node with no document. This can happen if a document is being destroyed and random scripts and events are still filtering through the system.
1999-10-13 08:02:02 +00:00
waterson%netscape.com
a793e85d4b
Add PR_LOG() calls to aid debugging.
1999-10-13 08:00:45 +00:00
waterson%netscape.com
24bc946a88
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
ab20f5e245
Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
1999-10-12 02:10:08 +00:00
waterson%netscape.com
776523083a
Misc cleanup, r=hyatt
1999-10-08 07:26:39 +00:00
waterson%netscape.com
181da7c5c9
Add elements to element map by 'ref', as well.
1999-10-08 07:26:14 +00:00
waterson%netscape.com
cf46eeb0d6
Bug 15687. Make sure to test whether CreateTemplateBuilder() succeeded before dereferencing the builder we get back. r=rjc
1999-10-07 23:07:00 +00:00