611 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
34dea24b9d Do a better job of flagging "reserved" names and don't flush till we know we're
not dealing with one of those in ResolveName.  Bug 240633, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@156103 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-07 20:02:40 +00:00
bzbarsky%mit.edu
c0cd0937ba Move presentation attributes into the UA level in non-HTML documents and a
separate preshint level in HTML.  Bug 234861, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@155949 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-05 00:30:57 +00:00
silver%warwickcompsoc.co.uk
8ba276ba57 Bug 240962 - Move TryChannelCharset up to nsDocument, and use it for XML and XHTML documents.
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@155839 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 19:48:54 +00:00
jst%mozilla.jstenback.com
fac9cd6517 Checking in patch by smaug@welho.com. Fixing bug 242151. Making document.body work right in XHTML documents when the body is a frameset element. Also fixing a compiler warning while I'm at it. r+sr=jst@mozilla.jstenback.com
git-svn-id: svn://10.0.0.236/trunk@155758 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 17:44:53 +00:00
jst%mozilla.jstenback.com
74089032ff Fixing bug 240543. Hiding some nsIPref* API bloatyness in nsContentUtils. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@155712 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-29 23:34:19 +00:00
bzbarsky%mit.edu
9293f1009d Implement "replace" argument for document.open(). bug 164821, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@155618 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-28 01:40:39 +00:00
bryner%brianryner.com
3b4b8ed6c9 deCOMtaminate nsIScriptObjectPrincipal (bug 240745). This also fixes some code in nsCrypto.cpp that sems to have been mis-braced (I don't think it was working as intended). r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@155049 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 00:28:47 +00:00
gerv%gerv.net
98831918fc Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
bzbarsky%mit.edu
16f1f02320 Make getElementsByAttribute be an nsContentList so that it's got that live
DOMNodeList goodness that all nodelists should have.  Change some JS to not
break, and some other JS to be a little more efficient with the new world of
lazy listness.  Bug 240186, r=neil on the JS changes, r=jst on the content
changes, sr=jst


git-svn-id: svn://10.0.0.236/trunk@154907 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 01:51:32 +00:00
jst%mozilla.jstenback.com
0a001bb675 Fixing bug 240321. Making XHTML documents default to UTF8 in stead of trying to autodetect or what not. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@154832 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 22:28:16 +00:00
jst%mozilla.jstenback.com
11e4581e68 Fixing bug 239953. Remove duplicated code in nsContentUtils. r=jonas@sicking.cc, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@154766 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 03:21:50 +00:00
jst%mozilla.jstenback.com
f39d004081 Fixing bug 240122. Making the document.body setter do the right thing, and be faster and less bloaty. Also deCOMtaminate accesskey code in nsGenericHTMLElement. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@154727 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 23:30:01 +00:00
sicking%bigfoot.com
e4632ed495 Bug 237566: Remove nsIContent::ReplaceChildAt and supportive codepaths.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@154723 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 22:48:33 +00:00
dbaron%dbaron.org
a12a464f6d De-COM-ify nsHTMLStyleSheet. b=239008 r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@154709 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 21:56:09 +00:00
darin%meer.net
b9dcb1f1b3 landing marco's patch for bug 238928 "domstubs.idl should not include nsAString.h" r=bsmedberg sr=jst a=dbaron
git-svn-id: svn://10.0.0.236/trunk@154430 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-01 19:44:17 +00:00
brade%comcast.net
bd35822cb0 fix for bug 237103; implement QueryCommandIndeterm; patch by Alexandre Trémon; r=brade, sr=jst; a=chofmann
git-svn-id: svn://10.0.0.236/trunk@154106 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-19 14:17:51 +00:00
sicking%bigfoot.com
d706565d96 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


git-svn-id: svn://10.0.0.236/trunk@153510 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-04 02:06:28 +00:00
bzbarsky%mit.edu
ee0a2e7a8a Move CreateCDATASection, CreateProcessingInstruction, and CreateEntityReference
up to nsDocument so they're available in XHTML documents.  Bug 69840, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@153443 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-02 22:39:46 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
jst%mozilla.jstenback.com
d28978604e Fixing bug 68215. Adding support for the onbeforeunload event. r=peterv@propagandism.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@152654 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 06:09:51 +00:00
bryner%brianryner.com
7ace3321e6 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 04:57:07 +00:00
jst%mozilla.jstenback.com
8380e41d46 Fixing regression bug 233753. Making document.createElement() create HTML elements again when called on an HTML document. r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@152634 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 02:22:43 +00:00
sicking%bigfoot.com
15ec97ef25 Bug 232706: Remove unneccesary datatypes from nsHTMLValue and cleanup AttributeToString.
r=caillon sr=jst


git-svn-id: svn://10.0.0.236/trunk@152621 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 00:09:59 +00:00
peterv%propagandism.org
3e7ac82893 Fix for bug 16603 (DOM doesn't throw INVALID_CHARACTER_ERR for arguments with invalid characters). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@152589 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 10:58:13 +00:00
jst%mozilla.jstenback.com
854468a176 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
bzbarsky%mit.edu
97dc62f04e Fix bug 233197. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@152484 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 19:38:10 +00:00
jst%mozilla.jstenback.com
534a59157f Checking in patch from psolanki@myrealbox.com for bug 232417. DeCOMtaminating nsIHTMLDocument. r+sr=jst@mozilla.jstenback.com
git-svn-id: svn://10.0.0.236/trunk@152244 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 23:23:10 +00:00
bryner%brianryner.com
018aeefc0d 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
git-svn-id: svn://10.0.0.236/trunk@152137 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 10:09:07 +00:00
jst%mozilla.jstenback.com
421fc415c0 Fixing bug 227263. Making document.domain return null in stead of throwing an exception when there's no domain to return. r+sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@151993 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 23:44:08 +00:00
jst%mozilla.jstenback.com
bdd7b1f7ab Fixing bug 202636. Patch by psolanki@myrealbox.com. Adding document.referrer to all document types. r+sr=jst@mozilla.jstenback.com
git-svn-id: svn://10.0.0.236/trunk@151886 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 04:41:12 +00:00
ere%atp.fi
a5fdb5e5d3 Fix for bug 231001: [rte] HTMLArea (Midas) broken since 20040114
r=brade
sr=bz


git-svn-id: svn://10.0.0.236/trunk@151841 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 09:48:50 +00:00
jst%mozilla.jstenback.com
9b5d38706f Removing unused variable (bug 230947). Patch bygautheri@noos.fr, r+sr=jst@mozilla.jstenback.com
git-svn-id: svn://10.0.0.236/trunk@151715 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 22:20:54 +00:00
bzbarsky%mit.edu
487c2df707 Move the methods for handling inline style and attribute style sheets up to
nsDocument.  Bug 230947, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@151678 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 03:35:09 +00:00
peterv%propagandism.org
2b68893784 Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup) - share CreateElement. r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@151496 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 11:59:21 +00:00
bzbarsky%mit.edu
86fee95b4d 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


git-svn-id: svn://10.0.0.236/trunk@151268 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 23:14:49 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
bryner%brianryner.com
468d3e2e8d 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.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bzbarsky%mit.edu
efce25943d Nodes with an id but not in a form should not be accessible via
document.forms["foo"].bar.  Bug 207481, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@150926 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 17:14:58 +00:00
hpradhan%hotpop.com
fb9f42cbfb bug 229183 : Eliminate an unnecessary QI r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@150730 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-25 10:30:48 +00:00
peter%propagandism.org
cf13bd6210 Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@150684 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 15:41:10 +00:00
jst%mozilla.jstenback.com
2affc5b4f0 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.
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
caillon%returnzero.com
6809f01316 Followup to 225411
XHTML as XML documents need to support the document.xml* DOM 3 attributes
r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@149510 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 22:07:53 +00:00
bryner%brianryner.com
98fb7d2529 deCOMtaminate nsINodeInfo and nsINodeInfoManager. See bug 225060 for details. r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@149340 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 05:27:37 +00:00
caillon%returnzero.com
f106859f0a Bug 225411; updating DOM 3 Core's Document.xml*
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@149295 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 11:10:11 +00:00
bryner%brianryner.com
2097395338 Speed up mapping HTML tag enums to atoms by using an array of static atoms, indexed by enum value. This avoids a UTF16 to UTF8 conversion and atom table lookup for each tag. Add a CString version of nsINodeInfoManager::GetNodeInfo(), convert literal string callers to use that version, and remove some unused variants of GetNodeInfo(). Bug 223595, r=axel@pike.org, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148857 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-05 05:17:07 +00:00
dwitte%stanford.edu
32492a98fc removing redundant variable as a result of my previous checkin.
git-svn-id: svn://10.0.0.236/trunk@148848 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 23:15:22 +00:00
dwitte%stanford.edu
ee1a82264b remove support for dom.disable_cookie_{get,set} prefs.
b=223782, r=jst,caillon, sr=alecf,darin (yes really, four reviews).


git-svn-id: svn://10.0.0.236/trunk@148845 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 22:44:51 +00:00
caillon%returnzero.com
e64c44f945 Make content grab the cached security manager off of nsContentUtils rather than ask the service manager to find one.
Bug 223192; r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@148524 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 03:01:25 +00:00
dwitte%stanford.edu
55a5a686dc remove nsCCookieManager.h in favor of nsNetCID.h.
b=221886, r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@148522 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:59:31 +00:00
bryner%brianryner.com
eeddf02bde 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.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00