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

2370 Коммитов

Автор SHA1 Сообщение Дата
hpradhan%hotpop.com c1e26f8bf8 bug 218837 : Refactor some code duplicated in the xml and html
content sinks into a base class r=sicking sr=peterv
2003-10-05 07:29:50 +00:00
bzbarsky%mit.edu 8801e97e8f 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
bzbarsky%mit.edu 0e78725ef4 Serialize attributes in the same order as they were parsed (and the opposite of
the order in which they were stored, which changed in bug 213347).

Bug 218919, r=sicking, sr=jst
2003-10-02 20:51:09 +00:00
dbaron%dbaron.org 6d2b1156a2 Fix DEBUG bustage. b=113173 2003-10-02 02:58:40 +00:00
dbaron%dbaron.org 19a12727ec Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky 2003-10-01 22:53:56 +00:00
jst%mozilla.jstenback.com 8aa7b563d2 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
bryner%brianryner.com 983bfe41ff If we're in the middle of printing when window.close() is called, then defer closing the window until printing completes. This avoids tearing down the presentation while the print engine is still using it. Bug 172921, r=jkeiser, sr=dbaron. 2003-09-26 21:45:15 +00:00
bzbarsky%mit.edu a5e1d728b9 Make userContent.css come after the prefs sheet in the user sheet list (so that
rules in userContent.css can override prefs).  Bug 215668, r+sr=dbaron
2003-09-24 19:03:06 +00:00
bzbarsky%mit.edu db0a53ec1d Fix GetID to not try to get attrs in unknown namespaces. Bug 220027, r=peterv, sr=jst 2003-09-24 13:22:09 +00:00
peter%propagandism.org ce47230292 Fix for bug 85798 (INUSE_ATTRIBUTE_ERR expected when using setNamedItem()). r=sicking, sr=jst.
Fix for bug 127205 (setNamedItemNS() in NamedNodeMap  doesn't set the item properly). r=sicking, sr=jst.
2003-09-23 13:46:20 +00:00
peter%propagandism.org cfcd206cd5 Fix for bug 219819 (.nodeValue shouldn't throw NO_MODIFICATION_ALLOWED_ERR for documents and elements). r/sr=jst.
Fix for bug 206416 (tagName property of element created with xmlDocument.createElementNS should contain the qualified name but contains only the local name). r=bz, sr=jst.
2003-09-23 13:45:48 +00:00
peter%propagandism.org 7763db228d 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 34cd826f08 Bug 218938: document.lastModified returns current time for local file 2003-09-20 05:57:19 +00:00
mkaply%us.ibm.com eff94a6e1e #219573
r=peterv, sr=bzbarsky
Fix from Josh Aas - remove unused variables in nsSelection.cpp
2003-09-18 18:58:14 +00:00
bsmedberg%covad.net 3c7f6e517d Bug 179834. Separate application resources and GRE resources. r=darin sr=dougt 2003-09-13 17:55:56 +00:00
bryner%brianryner.com 7f4af2e0f9 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
mkaply%us.ibm.com 23092c5ec4 Bug #212821
r=mkaply, sr=roc, a=mkaply
Allows show all pages in print preview
2003-09-05 20:09:25 +00:00
caillon%returnzero.com c11c6acb17 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
bzbarsky%mit.edu d4c0337b01 Fix bug 214874. Script should not execute while innerHTML is being set.
r+sr=jst, a=dveditz
2003-08-11 18:13:16 +00:00
rjesup%wgate.com bfe1334e33 Bug 193011: frame recursion limits re-added/docshell limit removed (backout
of bug 98158 and follow-on patches).  Re-fixes bug 98158 in a different way.
r=darin, sr=dbaron, a=asa
2003-08-08 20:32:22 +00:00
rjesup%wgate.com 53409793f6 Undo mistaken checkin of bug 193011 2003-08-08 13:14:06 +00:00
rjesup%wgate.com dcdf4824bb Bug 193011: frame recursion limits re-added/docshell limit removed (backout
of bug 98158 and follow-on patches).  Also re-fixes bug 98158.
r=darin, sr=dbaron
2003-08-08 13:06:40 +00:00
roc+%cs.cmu.edu 50878e792b Bug 190735. nsIFrame deCOMtamination, r+rs=dbaron 2003-08-06 03:07:12 +00:00
brendan%mozilla.org f6be8fe74f Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron). 2003-08-05 20:09:21 +00:00
axel%pike.org d7a30c5fba bugs 151002, 212892, CDATA should be eTEXT, add nsIContent::ePROCESSING_INSTRUCTION and nsITextContent::AppendTextTo for XSLT perf 2003-08-01 11:44:17 +00:00
timeless%mozdev.org 42d179412d Bug 213461 Want a way to specify single-sided or double-sided printing
patch by Roland.Mainz@informatik.med.uni-giessen.de r=jblanco sr=bryner
2003-08-01 01:56:15 +00:00
bzbarsky%mit.edu db19c4b681 Fix issues with ScriptAvailable() not firing for some scripts. Bug 214081, r+sr=jst 2003-07-31 01:28:16 +00:00
bzbarsky%mit.edu 4fd8cf233b Fix selection regression. Bug 214343, r=caillon, sr=jst 2003-07-29 23:49:41 +00:00
bzbarsky%mit.edu b70406f07e Fix silly warning 2003-07-29 05:24:59 +00:00
bzbarsky%mit.edu 1c89273d3a DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
2003-07-28 21:25:13 +00:00
bzbarsky%mit.edu 0a144d33f1 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823, r+sr=jst 2003-07-28 21:09:56 +00:00
jaggernaut%netscape.com f1efc20ae6 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron 2003-07-25 19:06:59 +00:00
caillon%returnzero.com 1bcbfbb835 Bug 213341 - Use smart pointer classes for long lived strong references in nsGenericElement and friends.
r=bzbarsky@mit.edu sr=jst@netscape.com
2003-07-24 20:38:08 +00:00
bzbarsky%mit.edu 2710b0cafe This was not supposed to land. Fixing bustage. 2003-07-24 18:30:50 +00:00
bzbarsky%mit.edu 76799ff743 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 9c22160a4b 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
jaggernaut%netscape.com ef99140d6d Bug 213601: Switch some users of NS_NewAtom over to do_GetAtom. r=bzbarsky, sr=dbaron 2003-07-24 04:53:13 +00:00
bzbarsky%mit.edu 0c05923e45 Make the loop actually deal with observers removing themselves. Bug 213611,
patch by riceman+bmo@mail.rit.edu (Tim), r+sr=bzbarsky
2003-07-23 23:09:33 +00:00
dbaron%dbaron.org f61c45ed1a Remove unused content quality stubs. b=111346 r+sr=bzbarsky 2003-07-22 18:38:08 +00:00
mkaply%us.ibm.com 6fe32627a5 rs=leaf
Remove XP_OS2_VACPP from the tree
2003-07-21 22:10:08 +00:00
caillon%returnzero.com dd8f6dba2b Comment update. rs=jst@netscape.com. No bug. 2003-07-21 21:40:52 +00:00
brade%netscape.com 5e9420f33f patch from mjudge to maintainselection; r/sr=dbaron, bug=56401 2003-07-21 19:51:34 +00:00
brade%netscape.com ceee5b5c28 use atom version of parser method to reduce string usage; r/sr=dbaron, bug=213101 2003-07-21 13:12:11 +00:00
jaggernaut%netscape.com f008bc2bad Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron 2003-07-20 07:47:59 +00:00
jaggernaut%netscape.com 024a2adbb2 Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron 2003-07-20 07:40:43 +00:00
brade%netscape.com 6e740ccad6 reduce string usage by using atom version of method; r/sr=dbaron, bug=213101 2003-07-19 08:34:31 +00:00
caillon%returnzero.com 01645eaf4b 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
bzbarsky%mit.edu 70a7eb44a5 Fix up name resolution under forms to not find elements that are just
randomly in the document.  Bug 148782, r=caillon, sr=jst
2003-07-15 02:07:55 +00:00
jaggernaut%netscape.com bf82a649b9 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 a33f58cdd0 Backing out part of patch for bug 211128, since it regressed all sorts of
XBL-ish stuff.  r=stuff-is-broken sr=jag for the backout.
2003-07-14 05:35:09 +00:00
jaggernaut%netscape.com 20004e3489 Bug 73353: clean up MODULE/REQUIRES story. r=cls, sr=bryner 2003-07-13 22:29:00 +00:00
bzbarsky%mit.edu 9fad3e7dfe 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 0cd190ffee Random array stuff in nsScriptLoader; fix a leak. Bug 212271, r=caillon, sr=jst 2003-07-11 22:47:17 +00:00
caillon%returnzero.com f32e4950ff Bug 212218
Start supporting bits and pieces of the additions to |Document| in DOM Level 3 Core.
r=jst@netscape.com sr=bzbarsky@mit.edu
2003-07-11 22:32:25 +00:00
timeless%mozdev.org b4fae80195 Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=jst sr=jst
2003-07-11 21:53:22 +00:00
dbaron%dbaron.org 92b921aca3 Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky 2003-07-11 21:16:12 +00:00
timeless%mozdev.org af4f62e783 Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=bz sr=bz
2003-07-11 21:08:12 +00:00
rbs%maths.uq.edu.au b5e2cec742 Stop animated images with Esc key or Stop button, b=70030, r=akkana, sr=jst 2003-07-11 20:19:34 +00:00
timeless%mozdev.org 191f7d3925 Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=bz sr=bz
2003-07-11 20:01:51 +00:00
bzbarsky%mit.edu 52e8bb5fa3 Backing out part of patch to test whether this is causing the perf regression.
Bug 212133, a=dbaron to back out of tree if I do it before morning builds and
such.
2003-07-09 09:47:13 +00:00
bzbarsky%mit.edu c94df0d9d2 Make <html:img> nodes correctly work with xml:base on ancestors by deferring
the load till after we know who our parent is.  Bug 212133, r=caillon, sr=jst
2003-07-09 06:57:14 +00:00
dbaron%dbaron.org 4288eb04b0 Convert jump tables to if-else trees to avoid the performance cost of function pointers. b=210550 r+sr=bzbarsky 2003-07-09 03:46:27 +00:00
bzbarsky%mit.edu fb6c2bde9f Make comment change requested by caillon in review that I forgot about 2003-07-08 09:23:32 +00:00
bzbarsky%mit.edu 80f18b18c8 DOM properties that return URIs should return absolute URIs when they
are accessed (even if the corresponding attribute value is a relative URI).
Bug 47534, r=caillon, sr=jst
2003-07-08 05:35:04 +00:00
bzbarsky%mit.edu 874126b90f Don't bother reresolving style when empty stylesheets get added (eg from empty
<style> elements).  Also remove the methods for blowing away the ruletree
during a style reresolve, since ruletrees are now garbage-collected.  Bug
196557, r+sr=dbaron
2003-07-04 01:44:24 +00:00
caillon%returnzero.com 9ae39b6952 Fixing member re-ordering warnings. r+sr=jst@netscape.com; No bug. 2003-07-03 23:33:36 +00:00
bzbarsky%mit.edu 25471a836d 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
caillon%returnzero.com 9a00b94017 Bug 210556 - Plaintext serialization with no formatting whatsoever should be possible.
This makes Node.textContent behave as defined in the DOM Level 3 draft.
r=harishd@netscape.com sr=jst@netscape.com
2003-07-03 00:34:34 +00:00
dbaron%dbaron.org 509bbcc446 Remove hints from CSS property list. b=158713 r+sr=bzbarsky 2003-07-02 22:17:23 +00:00
timeless%mozdev.org c7c42203cb Bug 211281 optimization for 'rare' oom check
r=bz sr=bz
2003-07-01 18:41:39 +00:00
bzbarsky%mit.edu 10e836c35b Change GetHrefUTF8 to GetHrefURI to make sure that we don't lose track of the
origin charset.  Bug 166996, r=dbaron,darin sr=jst
2003-07-01 02:59:54 +00:00
dbaron%dbaron.org 107c5d16aa Clean up EnsureBlockDisplay and make it do the right thing for inner table display types. b=210873 r+sr=bzbarsky 2003-06-30 21:48:56 +00:00
jkeiser%netscape.com 63f24a78b5 Make NOSCRIPT show up normally when script disabled (bug 77296), r=bzbarsky@mit.edu, sr=dbaron@dbaron.org 2003-06-26 06:10:03 +00:00
rbs%maths.uq.edu.au 677dc71376 Helper patch for bug 15364. Expose an API to allow scripts to show the caret even in selections (a la Emacs). Users can also set the pref ui.caretVisibleWithSelection to 1, which gives a nice combination with caret browsing (hit F7). r=sfraser, sr=bzbarsky 2003-06-25 01:14:25 +00:00
caillon%returnzero.com 2c67074440 210451 - Make Node.textContent settable, followup to earlier checkin.
r+sr=jst@netscape.com
2003-06-24 23:05:59 +00:00
jst%netscape.com 2e8edec781 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com 2003-06-24 21:43:01 +00:00
caillon%returnzero.com c0dd16f7be 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 e5462134b5 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
jst%netscape.com 9d32883569 Fixing bug 210443. Cut down on the malloc's done when loading images. r=caillon@aillon.org, sr=bzbarsky@mit.edu. 2003-06-24 05:32:59 +00:00
bzbarsky%mit.edu 62064e4328 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 f03f48c524 Backing the rest of this out to see whether it affects Tp. 2003-06-22 03:33:33 +00:00
bzbarsky%mit.edu 36eb6c4539 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 a749a7af60 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 36a00e95c1 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag
2003-06-21 00:15:41 +00:00
dbaron%dbaron.org 9b1d1eed2b Add nsIFrame::GetPresContext, which gets the pres context from the rule node which it gets from the style context. DeCOMtaminate nsStyleContext::GetRuleNode, nsRuleNode::GetRule, and nsRuleNode::GetPresContext. Remove unused nsRuleNode::PathContainsRule. b=208190 r+sr=roc 2003-06-20 01:22:44 +00:00
caillon%returnzero.com 7a7daee571 When comparing principals, callers should explicitly check if the subject principal is the system principal, if it cares that it is.
This fixes bug 209946, Copy doesn't work anymore.
r=bzbarsky, sr=jst
2003-06-19 23:59:24 +00:00
dbaron%dbaron.org 42b06cc4f5 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
dbaron%dbaron.org 83af5aded6 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky 2003-06-18 01:59:57 +00:00
kaie%netscape.com f32538e3ea Follow up patch to bug 183582.
This was requested in order to get sr= for the previous checkin.
I'm checking this in as a separate step, to make the real
logic change easier recognizable.

This checkin does not change any logic.
It only moves methods around in the file.

sr=sfraser
2003-06-17 22:35:01 +00:00
kaie%netscape.com 7f111f30fd b=183582 HTML Drop does not provide contextual info
r=jfrancis sr=sfraser
2003-06-17 22:26:07 +00:00
alecf%flett.org 5614718dd3 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 5df2312334 Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl 2003-06-16 11:17:18 +00:00
caillon%returnzero.com f3fdc6e727 209494 - use nsCOMPtr::swap() in a few loops
r+sr=bzbarsky@mit.edu
2003-06-16 00:14:23 +00:00
caillon%returnzero.com ba75de772b 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
caillon%returnzero.com b56a675840 Bug 209133
Make |Node| from script recognize constants defined in nsIDOM3Node.
Move DOM3 constants over to nsIDOM3Node.
Update the names and values to reflect the latest draft of the DOM 3 Core (Last Call)

r=timeless sr=jst
2003-06-12 02:54:16 +00:00
alecf%flett.org ccf01a2786 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
2003-06-11 18:16:03 +00:00
leon.zhang%sun.com c8439cda76 Bug 207936:[trunk] JA IME: cursor position is off before and after text is committed
r=sfraser sr=kin
2003-06-11 03:29:59 +00:00
varga%netscape.com 6ae39ee29c Fix for bug 208912. DOMParser produces documents with about:blank uri.
r=heikki, sr=peterv
2003-06-10 23:31:07 +00:00
seawood%netscape.com 8f112a4226 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 21:18:27 +00:00
dbaron%dbaron.org eeb3dc21c5 Fix bustage on compilers with broken for loop scoping. b=125246 2003-06-08 00:36:08 +00:00