Commit Graph

2372 Commits

Author SHA1 Message Date
dbaron%dbaron.org
a8191642ef Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@149687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:46:25 +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
dbaron%dbaron.org
40c2c5502c Scale fixed line-heights when the minimum font size pref kicks in. b=158868 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149483 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 05:53:22 +00:00
bzbarsky%mit.edu
f37280891e Convert URL stuff in XBL to use nsIURI instead of strings. Bug 224765, r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@149454 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 21:03:32 +00:00
dbaron%dbaron.org
cf4b71aec2 Remove unneeded chromeOverride variable. b=225936 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149419 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 04:10:55 +00:00
bzbarsky%mit.edu
e145168a0f Be a little smarter about handling the mess that is broken images. Only look
for a frame if we've had a frame at some point in the past; this should keep us
from calling GetPrimaryFrameFor quite so much during pageload.  Bug 225848,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@149399 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 07:34:25 +00:00
bryner%brianryner.com
c6fc0e8155 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.
git-svn-id: svn://10.0.0.236/trunk@149369 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 21:29:07 +00:00
bryner%brianryner.com
f56464de41 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.
git-svn-id: svn://10.0.0.236/trunk@149345 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 08:16:23 +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
jst%mozilla.jstenback.com
efdc7bfac3 Silly whitespace cleanup.
git-svn-id: svn://10.0.0.236/trunk@149234 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 04:15:25 +00:00
jshin%mailaps.org
9c4ba03cbb bug 222346 : streamline JS script loading code (deleegate charset alias resolution to GetUnicodeDecoder()) (r=smontagu, sr=bz)
git-svn-id: svn://10.0.0.236/trunk@149212 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 19:51:12 +00:00
hpradhan%hotpop.com
5024f10b1e bug 223108 : Syntax error when loading non-existant external javascript file
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@149099 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-10 05:53:48 +00:00
bzbarsky%mit.edu
26875d9420 document.config has become document.domConfig to prevent backwards-compat
issues.  Bug 222733, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@149040 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-08 19:30:30 +00:00
sicking%bigfoot.com
9794c1e527 Bug 224856: Fix nsGenericDOMDataNode::AppendTextTo by not relying on mText.Get1b() being nullterminated
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@148995 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-07 16:46:15 +00:00
bryner%brianryner.com
b7dacdff78 Attempting to fix Windows bustage
git-svn-id: svn://10.0.0.236/trunk@148977 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-07 10:16:36 +00:00
bryner%brianryner.com
05acc6f72e Inline nsIContent::GetParent() and GetDocument(). Also, remove unused return value on SetParent(). Bug 224331, r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148976 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-07 09:47:23 +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
bzbarsky%mit.edu
d7a72652a6 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


git-svn-id: svn://10.0.0.236/trunk@148807 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 02:15:28 +00:00
bzbarsky%mit.edu
919f3f5dbd Fix crash when frameset is wiped out before onload events on all subframes have
fired.  Bug 212563, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@148805 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 02:01:23 +00:00
timeless%mozdev.org
6e60b330e4 Bug 224018 unused variables gDumpFileNameCnt, gDumpLOFileNameCnt in nsDocumentViewer.cpp
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@148768 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-03 13:17:00 +00:00
dbaron%dbaron.org
a6fb82fcaa Clamp -moz-opacity to the range [0.0,1.0]. b=224478 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@148730 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 22:40:43 +00:00
peter%propagandism.org
fd46bc361d Restoring fix for bug 224231, didn't affect btek's Tp.
git-svn-id: svn://10.0.0.236/trunk@148726 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 15:16:24 +00:00
peter%propagandism.org
f866a4f3f5 Back out a part of the fix for bug 224231 to see if it affects btek's Tp.
git-svn-id: svn://10.0.0.236/trunk@148723 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 13:51:42 +00:00
uid502
bdc0f5a1e4 Bug 212366. Make '-moz-opacity' behave like CSS3 opacity: it does not inherit by default, and it composites the element and all its children as a group. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@148696 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 22:34:59 +00:00
peter%propagandism.org
e6ae01a399 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@148687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 10:57:41 +00:00
uid502
e56ed2443c Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
peter%propagandism.org
3ba29338bc Fix for bug 126765 (Change NormalizeAttrString to GetAttrWithName). Original fix by Daniel Bratell and sicking, r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148564 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 13:47:29 +00:00
peter%propagandism.org
7ba809f0ec Fix for bug 223751 (documentType's nodeValue should be null). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148561 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 12:24:28 +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
caillon%returnzero.com
34f81b2b3a Ensure that content can always grab a security manager and namespace manager.
Bug 223373; r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@148521 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:53:08 +00:00
dbaron%dbaron.org
220a62afce 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
git-svn-id: svn://10.0.0.236/trunk@148493 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:40:33 +00:00
sicking%bigfoot.com
ff5093b729 Bug 222667: Add newlines between root-nodes in serializer rather then encoder.
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@148328 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-23 22:24:21 +00:00
timeless%mozdev.org
c9c7dab5e9 MOZ_TIMELINE - Bug 222134
git-svn-id: svn://10.0.0.236/trunk@148306 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-23 10:23:30 +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
caillon%returnzero.com
c1914505cb Re-land patch for bug 83536, merging principal objects.
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@148229 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 22:11:49 +00:00
peter%propagandism.org
38b3b01586 Additional fix for bug 56764 (Document appendChild, insertBefore fail to throw HIERARCHY_REQUEST_ERR when inserting Text Nodes). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148217 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 19:33:31 +00:00
bzbarsky%mit.edu
e081726408 Fix handling of id attrs to not assume that they are named "id" as much. Bug
208744, r=caillon, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@148205 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 16:16:42 +00:00
peter%propagandism.org
23df54e8d3 Fix for bug 56764 (Document appendChild, insertBefore fail to throw HIERARCHY_REQUEST_ERR when inserting Text Nodes). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148200 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 12:27:00 +00:00
uid502
f97b0819f2 Bug 165149. More cleanup. Make nsStyleContext::GetPseudoType return a weak pointer. Also remove unnecessary arguments to nsHTMLContainerFrame::CreateViewForFrame. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148055 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-17 02:38:37 +00:00
bzbarsky%mit.edu
3e2e83624b 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


git-svn-id: svn://10.0.0.236/trunk@148033 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-16 18:14:25 +00:00
bzbarsky%mit.edu
2b84a18076 Adding support for DOM3 DOMStringList and DOMNameList. Bug 217159,
implementation by peterv, classinfo changes by me, r/sr=me on peterv's changes,
r/sr=peterv on my changes, r=caillon on the whole thing, sr=jst


git-svn-id: svn://10.0.0.236/trunk@148006 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-16 00:44:20 +00:00
sicking%bigfoot.com
832241db81 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


git-svn-id: svn://10.0.0.236/trunk@147995 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 20:10:47 +00:00
bzbarsky%mit.edu
d43d8c0e1e Add pref for the default :active styling. Bug 142163, patch by
mats.palmgren@bredband.net (Mats Palmgren), r=bzbarsky/sr=dbaron on the
layout/xpfe parts of the patch, r=glazou/sr=bzbarsky on the editor part,
moa=neil on the prefwindow changes.


git-svn-id: svn://10.0.0.236/trunk@147979 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 01:56:12 +00:00
bzbarsky%mit.edu
e6d13528ea Better output on null URIs.
git-svn-id: svn://10.0.0.236/trunk@147607 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 02:56:27 +00:00
bzbarsky%mit.edu
4dcff7ec30 Fix debug DumpRegressionData method to not crash on null uris for things like
mBinding, mBackgroundImage, etc


git-svn-id: svn://10.0.0.236/trunk@147603 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 02:16:20 +00:00
darin%meer.net
bc1bb52b19 fixes bug 210125 "need to be able to AsyncWait for closure only" r=dougt sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147597 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 01:46:31 +00:00
bzbarsky%mit.edu
0bfa6aeb80 Fix bogus loop test that would never let the loop terminate. Bug 221289, patch
by tenthumbs@cybernex.net, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@147588 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-05 18:12:14 +00:00
hpradhan%hotpop.com
1c581a3fca still bug 218837 : backing out all the backouts. they did not work.
git-svn-id: svn://10.0.0.236/trunk@147582 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-05 11:28:06 +00:00