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

1818 Коммитов

Автор SHA1 Сообщение Дата
caillon%redhat.com bfd1f05ff4 Bug 86193
Add a preference allowing users to prevent sites from cancelling the contextmenu event, so right click will always bring up a context menu if the pref is set.
r=jst sr=bryner
2004-03-06 02:58:08 +00:00
sicking%bigfoot.com fc084e0c73 Bug 236620: kill nsIContent::CanContainChildren
r/sr=jst
2004-03-06 00:22:03 +00:00
bsmedberg%covad.net ebcffc4232 Bug 235866 - add xulelement.builder.refresh and dynamically respond to changes in the datsources="" attribute. r+sr=bryner 2004-03-05 04:32:55 +00:00
sicking%bigfoot.com 973fa76ca8 Fix build bustage 2004-03-04 18:30:53 +00:00
sicking%bigfoot.com 0c80133eea Bug 236472: Fix 3 warnings.
r/sr=tor
2004-03-04 18:04:29 +00:00
sicking%bigfoot.com 28169f7a8a Bug 232706: Make nsAttrValue able to directly store all needed datatypes without using nsHTMLValue. Move parsing of various types from nsHTMLValue to nsAttrValue. Rename StringToAttribute to ParseAttribute and make it return a PRBool, as well as make a couple of minor fixes in the ParseAttribute code.
r=caillon sr=jst
2004-03-04 02:06:28 +00:00
bryner%brianryner.com ed98c9a308 deCOMtaminate nsIPresContext::GetEventStateManager. Bug 229371, r+sr=roc. 2004-02-27 17:17:37 +00:00
dbaron%dbaron.org f016bec80e Improve comments and function names related to attribute mapping and HasAttributeDependentStyle. b=235342 r+sr=jst 2004-02-25 21:04:50 +00:00
sicking%bigfoot.com 79cdf52b70 Bug 235435: Don't crash when serializing a XUL prototype document without a root. Fixes regression from bug 195350
r/sr=jst
2004-02-24 23:36:44 +00:00
darin%meer.net 44ce35aebb landing patch for bug 234864 "string branch landing resulted in large spike in heap allocations (brad:A metric)" r+sr=dbaron
this patch also introduces nsTFixedString and removes CBufDescriptor.
2004-02-20 01:53:23 +00:00
bzbarsky%mit.edu 73d9e5d993 Add null checks to some DOM methods. Bug 234331, r+sr=jst 2004-02-19 21:54:12 +00:00
bzbarsky%mit.edu 9513d305ed Make sure to retarget events when they leave native anonymous content. Also
make sure that native anonymous content is marked so (this way clicking on a
url()-created image in :before won't have an <img> node as a target).  Bug
233286, r+sr=bryner, a=dveditz
2004-02-15 04:45:18 +00:00
bryner%brianryner.com 92499cbd13 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron. 2004-02-11 04:57:07 +00:00
peterv%propagandism.org d5850e3177 Fix warnings. 2004-02-10 13:17:48 +00:00
peterv%propagandism.org 713c734ef8 Fix for bug 16603 (DOM doesn't throw INVALID_CHARACTER_ERR for arguments with invalid characters). r=sicking, sr=jst. 2004-02-10 10:58:13 +00:00
sicking%bigfoot.com 4cedcd531b Final patch for bug 195350. Make XUL use new nsAttrAndChildren class. Kill nsXULAttributeValue and nsXULAttributes in favour of nsAttrValue resp. nsDOMAttributeMap. Should fix a few bugs, improve performance and reduce bloat.
r=bz sr=jst
2004-02-10 09:08:06 +00:00
jst%mozilla.jstenback.com 505c634885 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com. 2004-02-09 22:48:53 +00:00
jst%mozilla.jstenback.com 75d15492c5 Fixing regression bug 233191. Make sure we fire the correct document notifications when inserting/appending children to a DOM node through the DOM APIs. r=mscott@mozilla.org, sr=bzbarsky@mit.edu 2004-02-06 02:26:10 +00:00
jst%mozilla.jstenback.com cb45f84bb7 Fixing bug 197427. Making insertBefore, appendChild, replaceChild, and removeChild() work correctly on XUL elements by sharing the implementation with nsGenericElement. r=jonas@sicking.cc, sr=bzbarsky@mit.edu 2004-02-05 06:48:30 +00:00
tingley%sundell.net 6b5bffc068 bug 232854: RemoveBroadcastListenerFor wasn't removing listeners properly.
r=varga sr=bzbarsky
2004-02-05 01:08:07 +00:00
bryner%brianryner.com 42adb9f1be More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron 2004-02-01 10:09:07 +00:00
jst%mozilla.jstenback.com 90431d8022 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org 2004-01-29 22:04:45 +00:00
neil%parkwaycc.co.uk 5cade97563 Don't retarget events that are bubbling back out of content anonymous to the original target b=196755 r=bryner sr=jst 2004-01-29 21:14:53 +00:00
dbaron%dbaron.org 96079e83a3 Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r=jst sr=peterv 2004-01-28 21:04:33 +00:00
jst%mozilla.jstenback.com ce1edc1dc9 Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com 2004-01-24 00:46:17 +00:00
neil%parkwaycc.co.uk 84428dc828 Bug 231368 Remove unused nsIPref includes p=arne.anka@stupido.com r/sr=dbaron 2004-01-23 13:31:07 +00:00
bzbarsky%mit.edu cdb84804de Move the methods for handling inline style and attribute style sheets up to
nsDocument.  Bug 230947, r+sr=jst
2004-01-22 03:35:09 +00:00
dbaron%dbaron.org 83bdcbc379 Fix leak regression by restoring code that gets the script context from the prototype document for compiling event handlers that are going to be stored in the prototype. b=231384 r=brendan sr=bryner 2004-01-21 21:11:29 +00:00
peterv%propagandism.org fbd88a1d66 Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup) - share CreateElement. r=caillon, sr=jst. 2004-01-18 11:59:21 +00:00
peterv%propagandism.org 379d6c8a41 Miscellaneous cleanup. r/sr=jst. 2004-01-18 10:45:26 +00:00
sicking%bigfoot.com 7dae6dd93c Bug 195350: First stage of attributes overhaul. New class for storing attributes and children for an element. Use this class for xml elements. Also remove a couple of unneccesary functions from nsIContent.
r=caillon sr=jst
2004-01-15 17:07:27 +00:00
timeless%mozdev.org 088027c49a Bug 190826 nsIRDFNodeList is not used
r=jag sr=bz
2004-01-15 08:39:11 +00:00
brendan%mozilla.org 7f1ddb9c0b Remove trailing whitespace. 2004-01-14 20:18:54 +00:00
bsmedberg%covad.net 3d0c574845 Re-landing bug 229285 - There was a misplaced close-brace in nsXULDocument.cpp that was causing problems non-chrome XUL documents. 2004-01-14 18:03:25 +00:00
bsmedberg%covad.net 0459dfe56b Backing out bug 229285 until I can figure out the orange with the -chrome file:///blah scenario. 2004-01-14 15:26:08 +00:00
bsmedberg%covad.net 386f40c13a Bug 229285 - separate nsIXULOverlayProvider from nsIXULChromeRegistry
r=bryner sr=hyatt
2004-01-14 13:30:55 +00:00
bzbarsky%mit.edu 8093efd14c Remove nsIHTMLContentContainer, merge those three functions into nsIDocument,
and make XUL style attribute dynamic changes get a proper CSSLoader off the
document. Bug 211376, r+sr=jst
2004-01-13 23:14:49 +00:00
bryner%brianryner.com 2bddef83ba Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard. 2004-01-12 08:25:18 +00:00
neil%parkwaycc.co.uk 2181ff5286 Bug 229526 Don't trim whitespace in <label> <description> or non-XUL r/sr=hyatt 2004-01-10 23:40:54 +00:00
jst%mozilla.jstenback.com c000ae86e8 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org 2004-01-09 23:54:21 +00:00
dbaron%dbaron.org 6d01bebb80 Better refcount logging for subclasses of nsXULPrototypeNode. b=230368 r+sr=bryner 2004-01-09 00:01:05 +00:00
bryner%brianryner.com e65d2d2fe5 Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron. 2004-01-07 22:30:53 +00:00
caillon%returnzero.com 09603ffccb Move the nsISupports branch up to avoid asking the binding manager for an nsISupports; tinderbox orange fix.
r+sr=bzbarsky
2004-01-06 03:07:57 +00:00
caillon%returnzero.com 319d92fa7d Bug 226375
We were leaking nsIClassInfo objects because a DOM class info getter returned AddRef()ed raw pointers.  Most of our dom/ and content/ QueryInterface() implementations knew this and accounted for it, but not all. The leak fix is thus achieved by fixing the method to not call AddRef() on its return value, and fixing the appropriate QueryInterface() macros/implementations. As a bonus, this macro-izes many  QueryInterface() implementations in content/ which were fully written out.
r=peterv@propagandism.org
sr=alecf@flett.org
 CVS: ----------------------------------------------------------------------
2004-01-06 00:36:01 +00:00
hpradhan%hotpop.com ab67185554 bug 229182 r+sr=jst 2003-12-25 10:25:12 +00:00
peter%propagandism.org 166c671ee0 Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst. 2003-12-23 15:41:10 +00:00
bsmedberg%covad.net 0c471686e7 bug 219233 - Unfork nsIChromeRegistry.idl (not the impl, just the interface) and move it into content/base/public until we can get a more fine-grained separation of that interface in to GRE/non-GRE pieces. r/sr=hyatt+jst
I couldn't do a CVS move of nsIChromeRegistry.idl, sorry... it was added on a branch earlier. The old CVS log/blame can be found at mozilla/rdf/chrome/public/nsIChromeRegistry.idl
2003-12-22 05:23:10 +00:00
neil%parkwaycc.co.uk b07923af53 Bug 225207 Focused element is scrolled into view when switching tab r=caillon sr=bryner a=dbaron 2003-12-07 09:44:40 +00:00
jst%mozilla.jstenback.com 4183787fa9 Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com. 2003-11-19 01:20:56 +00:00
sicking%bigfoot.com f2f76f28e7 Bug 223012: Make xul fully case sensitive.
r=bryner sr=jst
2003-11-18 18:20:03 +00:00
bzbarsky%mit.edu bfd6b88a89 Convert URL stuff in XBL to use nsIURI instead of strings. Bug 224765, r+sr=bryner 2003-11-17 21:03:32 +00:00
bryner%brianryner.com 74ca0ad36b No need to keep an owning reference to an element's NodeInfo if we already have an owning reference to the element. Bug 225825, r=bz, sr=jst. 2003-11-15 21:29:07 +00:00
bryner%brianryner.com b556210cb0 Fixing orange (hopefully). Don't dereference a pointer in the same call where it's passed as getter_AddRefs, because that will null it out first. For now, I'm keeping a strong reference to the node info manager at these call sites since it's not clear to me that it's guaranteed to stay around after the NodeInfo is released. 2003-11-15 08:16:23 +00:00
bryner%brianryner.com 823f2f2aa7 deCOMtaminate nsINodeInfo and nsINodeInfoManager. See bug 225060 for details. r=sicking, sr=jst. 2003-11-15 05:27:37 +00:00
timeless%mozdev.org 02325c6f3f Bug 225120 Remove compiler warnings
patch by arne.anka@stupido.com r=dbaron sr=bz
2003-11-09 22:51:28 +00:00
bryner%brianryner.com 78bc7f6016 Inline nsIContent::GetParent() and GetDocument(). Also, remove unused return value on SetParent(). Bug 224331, r=sicking, sr=jst. 2003-11-07 09:47:23 +00:00
bzbarsky%mit.edu f81481e074 Hold a strong ref to the node we plan to remove, since we want to use it after
removing it from the tree.  Bug 221494, r+sr=jst
2003-11-05 17:54:46 +00:00
bzbarsky%mit.edu 0fc82ad629 Refactor child element handling such that we don't duplicate event-firing code
all over (now we just do it in nsGenericElement and nsXULElement).  Bug 223349,
r=sicking, sr=peterv
2003-11-04 02:15:28 +00:00
scott%scott-macgregor.org 41809ab2b4 Bug #224313 --> crashes when clicking on mail/news accounts. Patch by Peter van der Beken.
sr=dbaron
2003-11-03 06:49:02 +00:00
peter%propagandism.org e9bdf0c636 Fix for bug 126765 (Change NormalizeAttrString to GetAttrWithName). Original fix by Daniel Bratell and sicking, r=sicking, sr=jst. 2003-10-30 13:47:29 +00:00
caillon%returnzero.com 150adb2e29 Make content grab the cached security manager off of nsContentUtils rather than ask the service manager to find one.
Bug 223192; r+sr=bzbarsky
2003-10-30 03:01:25 +00:00
bzbarsky%mit.edu 75c3e6a121 Make nsExpatDriver and nsIExpatSink be on the same wavelength as far as passing
attributes to HandleStartElement.  Update callees as needed.  Bug 223470,
r=sicking, sr=peterv
2003-10-30 02:17:50 +00:00
dbaron%dbaron.org ec0bfea4ea Implement element.style for XUL elements. Fully fault XUL attributes when style attribute is modified, and ensure that string and style rule versions of style attribute stay in sync. (HTML elements only store the latter.) b=7639 r+sr=bzbarsky 2003-10-30 01:40:33 +00:00
bryner%brianryner.com 605cc06382 deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst. 2003-10-22 06:09:48 +00:00
caillon%returnzero.com 66caced69a Re-land patch for bug 83536, merging principal objects.
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst
2003-10-21 22:11:49 +00:00
bzbarsky%mit.edu 44da342b5c Fix handling of id attrs to not assume that they are named "id" as much. Bug
208744, r=caillon, sr=peterv
2003-10-21 16:16:42 +00:00
varga%nixcorp.com 199cf9bc76 Changing my email address. 2003-10-21 15:35:57 +00:00
bzbarsky%mit.edu f384166efa Create a mozAutoDocUpdate class to handle automatically calling
BeginUpdate/EndUpdate on documents.  Use this in a bunch of places to make sure
that EndUpdate is called in the face of early returns.  Bug 131775, also fixes
bug 211022, r=caillon, sr=jst
2003-10-16 18:14:25 +00:00
sicking%bigfoot.com e97fb73528 Bug 199613: Don't put textnodes in the root of the document when parsing XML and XUL since the DOM doesn't allow that.
r=peterv sr=jst
2003-10-15 20:10:47 +00:00
neil%parkwaycc.co.uk a4ef7ac4a5 Bug 161452 Tree content and builder views may need to recheck empty status after children are removed based on patch by kyle yuan r=varga sr=bryner 2003-10-10 08:39:35 +00:00
neil%parkwaycc.co.uk c06f3e743b Bug 221288 XUL tree builder abuses tree batching r=jan sr=alecf 2003-10-07 15:49:50 +00:00
bzbarsky%mit.edu a972a3e501 Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
notifications).  Bug 200931, r=peterv, sr=jst
2003-10-02 21:29:40 +00:00
hpradhan%hotpop.com ded5666bf0 Bug 217972 : fix warning 2003-09-28 08:54:51 +00:00
bzbarsky%mit.edu fff80d5874 Fix crash in XUL sort service -- unsigned ints are never less than 0... Bug
220516, r+sr=dbaron
2003-09-28 06:05:08 +00:00
jst%mozilla.jstenback.com 5037b2a4a2 Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org. 2003-09-27 04:18:26 +00:00
bzbarsky%mit.edu 24ea48e040 Fix GetAttributes() in XUL to work right. Bug 169825, r=sicking, sr=peterv 2003-09-25 03:51:12 +00:00
peter%propagandism.org 9269335d2c Fix for bug 219819 (.nodeValue shouldn't throw NO_MODIFICATION_ALLOWED_ERR for documents and elements). r/sr=jst. 2003-09-23 13:45:02 +00:00
hpradhan%hotpop.com 9cc206ea7b Bug 217972 : nsRDFDOMNodeList cleanup r=caillon sr=jst 2003-09-20 06:15:54 +00:00
hpradhan%hotpop.com 72c3e2054d Bug 217971: kEventHandlerMap in nsXULElement.cpp doesn't need to store iid pointers r+sr=bryner 2003-09-20 06:09:10 +00:00
bryner%brianryner.com 2fcdb4e2d5 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan. 2003-09-07 21:50:21 +00:00
caillon%returnzero.com f8e8aed8a7 Backing out the patch to bug 83536.
I will reland this when 1.6a re-opens.
r+sr=jst@netscape.com
a=chofmann
2003-08-22 03:06:53 +00:00
cls%seawood.org 1b51ba858c Set MODULE in makefiles at the top of a heirarchy so that module-deps lists are more precise and builds will have the proper order if some subdirs contain other modules. 2003-08-16 00:42:35 +00:00
roc+%cs.cmu.edu 0b8cd870e1 Bug 190735. nsIFrame deCOMtamination, r+rs=dbaron 2003-08-06 03:07:12 +00:00
timeless%mozdev.org 3d2cd91336 Bug 211290 PRBool nsTemplateMatchRefSet::Add doesn't check the return value of PL_DHashTableInit
r=dbaron sr=bz
2003-08-05 11:45:02 +00:00
timeless%mozdev.org 219eb03947 Bug 211286 void nsContentSupportMap::Init doesn't check the return value of PL_DHashTableInit
r=dbaron sr=bz
2003-08-05 11:41:14 +00:00
timeless%mozdev.org 8ea554ebaa Bug 211285 void nsRuleNetwork::Init doesn't check the return value of PL_DHashTableInit
r=dbaron sr=bz
2003-08-05 11:40:44 +00:00
bzbarsky%mit.edu e2dae4d2f9 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
2003-07-28 21:17:26 +00:00
bsmedberg%covad.net 279d0db1f7 Bug 211470 - need a common nsURIHashKey r=darin sr=bz 2003-07-27 15:20:11 +00:00
brendan%mozilla.org 4fa5213a91 Big dynamic footprint win via script filename caching, plus line number fix for strict/const diags (see http://bugzilla.mozilla.org/attachment.cgi?id=127130&action=view for detailed checkin comments; 208030, r/rs=shaver, r=rginda on the jsd change, r=jst on the dom change). 2003-07-26 22:37:11 +00:00
jaggernaut%netscape.com 95899387f6 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron 2003-07-25 19:06:59 +00:00
bzbarsky%mit.edu d0666152a5 Add an nsIDocument* GetOwnerDocument() to nsGenericElement, deCOMify
nsINodeInfo a tad.  Bug 211634, r=jkeiser, sr=jst
2003-07-24 17:30:52 +00:00
caillon%returnzero.com 91b7c60bee Bug 83536.
Merge script principal implementations into one class.
Should reduce footprint, speed up calls to caps a little bit, and fixes several memory leaks.
Also fixes bugs 211174 and 211263
r=jst@netscape.com
sr=bzbarsky@mit.edu
moa=mstoltz@netscape.com (he looked at an earlier patch and said it looked fine, and will do a retroactive review when he returns from vacation as well)
2003-07-24 05:15:20 +00:00
dbaron%dbaron.org 47183725c7 Remove unused content quality stubs. b=111346 r+sr=bzbarsky 2003-07-22 18:38:08 +00:00
varga%utcru.sk fbd78f9fd1 Fix for bug 152209. unnecessary distinction between "content" and "treeitem" template conditions
r=neil, sr=bienvenu
2003-07-20 10:35:41 +00:00
caillon%returnzero.com 7495519180 Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
2003-07-18 01:26:47 +00:00
chanial%noos.fr 316f244de3 bug 210196 Fix use of bookmarks root / top root as a target and correct caller of CanDropBeforeAfter
r=varga, sr=jag
2003-07-17 11:08:07 +00:00
jaggernaut%netscape.com 817298ce0b Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky 2003-07-14 07:37:39 +00:00
bzbarsky%mit.edu 9cb380a7ff Make XBL anonymous content get its base URI from the XBL document (the binding
URI) instead of from the document of the bound element.  This way relative URIs
in a binding are always relative to the binding.  Bug 211128, r=caillon, sr=jst
2003-07-11 23:06:26 +00:00
bzbarsky%mit.edu e6028a883c Add correct line number reporting to errors from XBL fields and handlers. Make
it possible to pass a url and line number to CompileEventHandler in general.
Bug 127567, r=bryner, sr=brendan
2003-07-11 22:54:36 +00:00
dbaron%dbaron.org d85698fd40 Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky 2003-07-11 21:16:12 +00:00
varga%netscape.com 8334a1dd99 Fix for bug 202393. Add DOM class info for nsIXULTreeBuilder.
r=pike, sr=peterv
2003-07-08 21:10:52 +00:00
varga%netscape.com 3cd2cbee70 Fix for bug 145309. [turbo] On exit after unloading accts we are again loading accts because we are rebuilding tree
r=varga, sr=jag, patch by waterson
2003-07-08 13:56:58 +00:00
bzbarsky%mit.edu 0b0c3f7646 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.
2003-07-03 02:45:34 +00:00
neil%parkwaycc.co.uk 44cffa15b1 Bug 209911 XUL tree blob sort ignores sort direction r=varga sr=jag 2003-06-25 08:46:31 +00:00
caillon%returnzero.com fd98991136 210451 - Implement getting Node.textContent (see the DOM3 WD)
r+sr=jst@netscape.com
2003-06-24 21:39:39 +00:00
bzbarsky%mit.edu 938220298d Add asserts on people attempting to fetch attributes in the
kNamespaceID_Unknown namespace or call HasAttr on such.  Bug 210314, r+sr=jst
2003-06-24 06:45:34 +00:00
bzbarsky%mit.edu 8d87ec2250 Seems to have no effect on Tp, so relanding. Who knows what btek is
thinking....
2003-06-22 06:34:08 +00:00
bzbarsky%mit.edu 16ff7adf5e Backing the rest of this out to see whether it affects Tp. 2003-06-22 03:33:33 +00:00
bzbarsky%mit.edu 1ba227c7d1 Make sure to fire no mutation events or internal notifications on attribute
changes that don't change the attr value.  Bug 209634, r=caillon, sr=jst
2003-06-21 04:55:32 +00:00
jst%netscape.com 947ba67a9d Fixing one more part of bug 209699. Replace NS_Convert* with Copy/Append*. r=dwitte@stanford.edu, sr=alecf@flett.org. 2003-06-21 00:26:28 +00:00
caillon%returnzero.com 4cc64cee34 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag
2003-06-21 00:15:41 +00:00
brendan%mozilla.org 555de8f52e Use NS_REINTERPRET_CAST, not NS_STATIC_CAST, to go from void* native context type to opaque-here-without-jscntxt.h JSContext * (fixes HPUX build). 2003-06-20 01:47:31 +00:00
dbaron%dbaron.org 4afcaa0e69 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc 2003-06-19 23:44:01 +00:00
brendan%mozilla.org e66f3155de Don't include private and unnecessary js header files. 2003-06-19 23:13:59 +00:00
alecf%flett.org b7fa256d74 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
2003-06-17 16:40:34 +00:00
aaronl%netscape.com fccde7c7eb Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl 2003-06-16 11:17:18 +00:00
caillon%returnzero.com 2df173e9c8 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
seawood%netscape.com 97649bab86 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 21:18:27 +00:00
timeless%mozdev.org 4d465226f7 Bug 207603 nsXULDocument should CallGetService kXMLElementFactoryCID
r=peterv sr=peterv
2003-06-01 14:59:21 +00:00
brendan%mozilla.org eec1202138 Crash fix: Use the current proto-doc's global object, not the possibly-null window global, when compiling overlay out-of-line scripts (204935, r=ben, sr=jst). 2003-05-30 06:30:27 +00:00
mstoltz%netscape.com 5cf6b5c420 Bug 180748 - call CheckLoadURI when loading remote scripts from XUL. r=heikki, sr=brendan 2003-05-29 23:22:21 +00:00
timeless%mozdev.org 83f2065eab Bug 207336 Should nsXULDocument GetService kHTMLElementFactoryCID like everyone else?
r=bz sr=bz
2003-05-28 22:34:24 +00:00
brendan%mozilla.org b97f6a85da Share a system global and system principal among all chrome:-loaded prototype documents (204145, r=ben, sr=bryner). 2003-05-24 02:14:23 +00:00
varga%netscape.com 61a6cd0fb0 Fixing OS/2 bustage. 2003-05-23 13:04:24 +00:00
varga%netscape.com 717feaab4a Landing bookmarks changes.
Bug 205378 - Meta bug for changes in bookmarks sorting code
r=jag, sr=sspitzer, a=sspitzer,asa

The CloneResource() has been back ported from Firebird, originally
implemented by Pierre Chanial.
2003-05-23 12:03:40 +00:00
brendan%mozilla.org 961716913a Include primary package locale as well as chrome path in the FastLoad file, so locale-switching invalidates any incompatible file (189870, r=jrgm, sr=ben, a=asa). 2003-05-22 04:09:34 +00:00
dbaron%dbaron.org 75ff60c62f Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan 2003-05-15 03:42:21 +00:00
bryner%netscape.com c0274671dc Bug 159450 - only allow overlays to load from the same origin as the master document. Also, fix non-chrome overlays. Bug 159450, r=mstoltz, sr=ben, a=asa. 2003-05-02 18:15:30 +00:00
varga%netscape.com 03791fb613 Fix for bug 160140. sort in xul treecol does not use locale sensitive sorting.
r=neil, sr=jag
2003-04-23 06:01:50 +00:00
jst%netscape.com 8f24979ea4 Fixing bug 199399. Eliminating the interfaces nsIXMLDocument now that it's not needed any more. r=peterv@netscape.com, sr=heikki@netscape.com 2003-04-22 21:57:25 +00:00
bzbarsky%mit.edu de68c0523a Move document.lastModified up onto nsIDOMNSDocument; refactor the
RetrieveRelevantHeaders stuff a bit.  Bug 192366, patch by Pratik
<psolanki@netscape.net>, r=bzbarsky, sr=jst
2003-04-19 16:53:44 +00:00
varga%netscape.com 06de0c92a9 Fix for bug 199178. Bookmarks folder in personal toolbar is empty
r=hyatt, sr=bryner
2003-04-19 08:40:32 +00:00
jst%netscape.com f1b9b87862 Fixing bug 111514. In an XHTML document served as application/xhtml+xml, |document| is not an HTML document object, but an XML document object. r=bugmail@sicking.cc, sr=peterv@netscape.com 2003-04-19 00:28:09 +00:00
brendan%mozilla.org e81a02eeb2 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be
2003-04-12 01:34:11 +00:00
bryner%netscape.com 3a3ec0cbd5 Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.
2003-04-11 00:56:27 +00:00
sfraser%netscape.com abe53e192f Fix bug 201257 -- clean up use of nsIControllerCommandManager by editor:
Renaming nsIControllerCommandManager to nsIControllerCommandTable to reduce confusion.
Moving the immutability flag from the nsBaseCommandController to the nsControllerCommandTable.
Renaming the 'refcon' on nsIControllerContext to 'context', and giving nsIControllerContext an Init() method that optionally takes a command table.
Fixing the editor and composer module code to create pre-filled nsIControllerCommandTables as services, and the controller constructors to create singleton command tables with do_GetService.
r=brade, sr=alecf.
2003-04-10 18:44:03 +00:00
heikki%netscape.com b6ee57a69a Bug 200382, reduce content's dependencies on webshell, r=adamlock, sr=jst. 2003-04-03 18:57:33 +00:00
alecf%netscape.com bff73e5ad2 fix for bug 199503 - consolidate layout atoms into the main layout atom lists
sr=bryner, r=jag
2003-04-02 23:02:40 +00:00
seawood%netscape.com 80e1b303cc Purge XP_PC.
Bug #56767 r=mkaply sr=alecf
2003-04-02 22:45:08 +00:00
rbs%maths.uq.edu.au c6058a5ff9 Remove unused code, b=199704, r=peterv, sr=jst 2003-04-02 04:05:36 +00:00
bzbarsky%mit.edu ce3a0d97fb "Backing" changes back in since tree has reopened. 2003-04-02 03:19:50 +00:00
bzbarsky%mit.edu 429e0e4ded Backing all this out, since tree is closed. 2003-04-02 02:02:10 +00:00
bzbarsky%mit.edu 996f069a78 Remove some more redundant code -- nsXMLDocument handles this fine. Bug
200071, r=sicking, sr=jst
2003-04-02 01:37:01 +00:00
jst%netscape.com a1432acf07 Removing unused nsresult rv. 2003-04-02 00:09:20 +00:00
jst%netscape.com b4cc5d4695 Fixing bug 124412. Making nsXULDocument inherit nsXMLDocument to avoid the need to duplicate a large amount of code in nsXULDocument. Also removing nsMarkupDocument and nsIDOMEventCapturer that are no longer needed. Changing the inheritance of nsIDOMXULDocument to avoid ~60 or so forwarding methods, and doing a *lot* of code cleanup. r=bugmail@sicking.cc, sr=peterv@netscape.com 2003-03-26 07:41:30 +00:00
alecf%netscape.com 8c50d0242a landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron
2003-03-25 18:55:59 +00:00
varga%netscape.com a8670013de Landing bookmarks branch. Everything except mozilla/xpfe
Bug 196756 - Meta bug for major architectural changes in bookmarks code
r=jag, sr=bryner
2003-03-25 04:44:31 +00:00
kyle.yuan%sun.com 9c0b9d7fec Bug 197152 AccDoAction failed with menuitem that has command (not oncommand) attribute
r=bryner, sr=jag
move command tag support from individual frames to nsXULElement
2003-03-25 03:15:37 +00:00
alecf%netscape.com b6584a77fb backout my static atom patch for now until I figure out the performance loss! :(
bug 195262
2003-03-21 20:13:08 +00:00
alecf%netscape.com be937c3d3c augh! how did I miss these files?!
more for bug 195262
2003-03-21 06:52:12 +00:00