Commit Graph

2506 Commits

Author SHA1 Message Date
sicking%bigfoot.com
dbd12bd760 Bug 232989: Fix crash due to bad refcounting in nsDOMAttribute
r+sr=bryner
2004-02-11 02:02:39 +00:00
sicking%bigfoot.com
b207ff1bdf Bug 232706: Remove unneccesary datatypes from nsHTMLValue and cleanup AttributeToString.
r=caillon sr=jst
2004-02-11 00:09:59 +00:00
sicking%bigfoot.com
99077ffa6f Bug 232480: Make nsGenericHTMLElement inherit nsGenericContainerElement and kill the concept of leaf vs. container elements. Also remove unused argument to CopyInnerOf
r=peterv sr=jst
2004-02-10 19:36:43 +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
bzbarsky%mit.edu
7077fb69a1 Make SVG use the normal attribute mapping codepath (via HasAttributeDependence)
by pushing the relevant helpers up to nsGenericElement..  Remove referrer code
in nsSVGDocument, since nsDocument handles that.  Bug 233370,
r=alex@croczilla.com, sr=jst
2004-02-09 20:48:20 +00:00
dbaron%dbaron.org
952d32ee39 Clean up nsStyleContext::GetUniqueStyleData. b=233480 r+sr=bzbarsky 2004-02-09 06:55:14 +00:00
alex.fritze%crocodile-clips.com
5c676d4a47 Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).

Not part of default build; code is #ifdef'ed out.

r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +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
bryner%brianryner.com
433c389ddf Inline getters and setters for scaling factors on nsIDeviceContext. Bug 233103, r+sr=dbaron. 2004-02-05 01:57:10 +00:00
dbaron%dbaron.org
8339f01ba5 Relanding changes for bug 74880. 2004-02-04 08:16:19 +00:00
dbaron%dbaron.org
9ecdb39d54 Backing out part of changes to see which part is causing performance problem. b=74880 2004-02-04 08:03:40 +00:00
dbaron%dbaron.org
474bdc807e Implement -moz-margin-start, -moz-margin-end, -moz-padding-start, and -moz-padding-end and cascade them correctly. Use them in html.css to improve default styles for lists in RTL documents. b=74880 r+sr=bzbarsky 2004-02-04 06:10:56 +00:00
jst%mozilla.jstenback.com
f894d79c80 Checking in patch from psolanki@myrealbox.com for bug 232417. DeCOMtaminating nsIHTMLDocument. r+sr=jst@mozilla.jstenback.com 2004-02-03 23:23:10 +00:00
dbaron%dbaron.org
586744e7f3 Make debugging code compile on gcc. Fix warnings. b=232711 r+sr=bryner 2004-02-02 22:42:29 +00:00
bryner%brianryner.com
4f69ec2c2e Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron. 2004-02-02 22:17:21 +00:00
sicking%bigfoot.com
878604026e Bug 231199: Make hashing of mapped-attributes be case sensitive to improve performance, and enable possible codesharing with xul and svg in the future.
r=peterv sr=jst
2004-02-02 22:00:36 +00:00
hpradhan%hotpop.com
a5975523b9 bug 232731 : misc cleanup in printing code 2004-02-01 12:10:57 +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
bryner%brianryner.com
08f53379c4 Continuing nsIPresContext deCOMtamination (bug 229371). Remove ReParentStyleContext - callers can call frame manager directly. Removed several unused setters. Inlined getters for default colors, font scaler, and focus ring width. Changed GetDefaultFont to return a const nsFont*. r+sr=dbaron. 2004-01-31 22:41:40 +00:00
dbaron%dbaron.org
517939b28f Add missing CPP_THROW_NEW to fix HP-UX bustage. b=195350 2004-01-30 23:26:29 +00:00
sicking%bigfoot.com
8c6f746994 Doh! This is what i ment to do. (Bug 195350) 2004-01-30 22:26:24 +00:00
sicking%bigfoot.com
1756d2df8b More bug 195350 work. Try to improve performance and reduce mallocs by letting buffer for mapped attributes be inline allocated.
r=caillon sr=jst
2004-01-30 22:08:23 +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
jst%mozilla.jstenback.com
2d28da6586 Making nsDocument::RetrieveRelevantHeaders() non-virtual now that noone overrides it. Bug 202636, suggested by psolanki@myrealbox.com, r+sr=jst@mozilla.jstenback.com 2004-01-29 20:52:06 +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
hpradhan%hotpop.com
51b35949b2 bug 229575 : refactor some code that was common between
the xml and html content sinks into nsContentSink
r=sicking sr=jst
2004-01-28 12:14:17 +00:00
hpradhan%hotpop.com
4d399b535b bug 232035 : fix leak and cleanup some stuff in printing code r=dbaron sr=jst 2004-01-28 11:17:14 +00:00
bryner%brianryner.com
bc74f0b352 More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron. 2004-01-28 00:18:22 +00:00
jst%mozilla.jstenback.com
33dc243815 Fixing bug 202636. Patch by psolanki@myrealbox.com. Adding document.referrer to all document types. r+sr=jst@mozilla.jstenback.com 2004-01-27 04:41:12 +00:00
bzbarsky%mit.edu
88734d1060 Remove the broken nsAttributeContent and just use regular textnodes to
implement attr() content.  Use mutation events to handle dynamic attr changes.
Bug 214013, r=dbaron, sr=jst
2004-01-27 04:22:58 +00:00
sicking%bigfoot.com
b1b6747c76 Fix bustage from bad casing in #include 2004-01-26 19:32:48 +00:00
sicking%bigfoot.com
1152b3d656 More bug 195350 work: Make html use new nsAttrAndChildArray class.
r=caillon sr=jst
2004-01-26 19:22:05 +00:00
hpradhan%hotpop.com
3b99f154bd bug 231233 : nsPrintData.h cleanup r+sr=jst 2004-01-24 07:23:56 +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
pkw%us.ibm.com
e14c5e9a65 Bug 231104 - Checkin for Bug 195350 causes AIX build to segfault on startup.
r=bugmail@sicking.cc, sr=tor@acm.org
2004-01-22 21:58:57 +00:00
dbaron%dbaron.org
f3af1a7aef Fix two problems with display fixups. b=231787 r+sr=bzbarsky 2004-01-22 21:34:04 +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
bryner%brianryner.com
ef5c330583 Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky. 2004-01-21 09:35:59 +00:00
peterv%propagandism.org
db653ec4e3 Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup). r=caillon, sr=jst. 2004-01-18 14:52:21 +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
dbaron%dbaron.org
aa4d378d63 Fix parsing of 'cursor' property and ignoring of uri() values, which we don't support. b=77974 r+sr=bzbarsky 2004-01-18 01:12:58 +00:00
pkw%us.ibm.com
7b60572a0e Bug 231104 - Checkin for Bug 195350 causes AIX build to segfault on startup.
r=bugmail@sicking.cc, sr=tor@acm.org
2004-01-16 21:04:12 +00:00
sicking%bigfoot.com
586ea7aa13 Fix to landing of bug 195350. Shuffle the right memory.
r/sr=tor
2004-01-15 23:10:45 +00:00
sicking%bigfoot.com
6403defab2 Fix HP-UX bustage 2004-01-15 20:02:25 +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
dbaron%dbaron.org
b628916220 Make HasMutationListeners less repetitive by making the repeated part its own function. b=230938 r+sr=jst 2004-01-15 02:21:32 +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
dbaron%dbaron.org
d33950dfac Do style resolution of later siblings required by the CSS + combinator on event state and attribute changes by changing the result of Has(Attribute|State)DependentStyle into a bitfield and setting and handling the restyle-later-siblings bit appropriately. b=15608 r+sr=bzbarsky 2004-01-14 01:36:35 +00:00
bzbarsky%mit.edu
81a1f93877 Forgot a file. Bug 211376. 2004-01-13 23:53:23 +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
6996bca809 Don't create new rule processors when a style sheet is enabled or disabled, just clear the rule cascade on the existing processors. Bug 230651, r=dbaron, sr=bzbarsky. 2004-01-13 02:19:28 +00:00
jshin%mailaps.org
a4fb17a613 bug 230104 : fall back to ISO-8859-1 in the script loader when charset name is not recognized or no Unicode decoder is available (r=smontagu, sr=bz) 2004-01-12 20:41:58 +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
bzbarsky%mit.edu
bc704c519e Fix regression bug 230620. r+sr=dbaron 2004-01-11 22:03:41 +00:00
bryner%brianryner.com
d33dc031f2 Revert nsAutoPtr usage here at least until we better understand the bloat. Bug 64116, sr=bzbarsky. 2004-01-11 09:34:07 +00:00
roc+%cs.cmu.edu
9348803726 Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron 2004-01-10 05:36:32 +00:00
jst%mozilla.jstenback.com
120da6a130 Followup for the fix for bug 226522. Undo the part of the change that incorrectly made a bunch of methods in nsGenericHTMLElement virtual. r+sr=dbaron@dbaron.org 2004-01-10 04:42:06 +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
bryner%brianryner.com
9d69e4a727 Fix printing crash regression (bug 230516). r=bzbarsky, sr=dbaron 2004-01-09 22:54:09 +00:00
roc+%cs.cmu.edu
e7f165c614 Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz 2004-01-09 14:20:53 +00:00
bryner%brianryner.com
16be23821e Additional cleanup related to bug 64116. r=bzbarsky. 2004-01-08 19:23:12 +00:00
bzbarsky%mit.edu
0b28e29088 Add Content-Location header support. Bug 109553, r=jst, sr=darin 2004-01-08 04:04:16 +00:00
dbaron%dbaron.org
1480a770ab Fix backwards captions on print error dialogs (printing vs. print preview). b=230342 Patch from Isaac Hwak Han <isaachh@mailc.net>. r+sr=dbaron 2004-01-08 01:24:09 +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
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
bzbarsky%mit.edu
c238e33fe5 Make generic DOM datanodes implement GetBindingParent in a semi-useful way so
that event retargeting works (bug 97634, bug 183878).  Also remove some code
that's no longer needed now that we have retargeting.  r=bryner, sr=jst
2004-01-05 23:52:57 +00:00
bryner%brianryner.com
080ad777b6 Continuing nsIPresContext deCOMtamination. This patch changes Get/SetImageAnimationMode. Bug 229371, r+sr=bzbarsky. 2003-12-26 04:24:11 +00:00
bryner%brianryner.com
d572bc76cf deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky. 2003-12-24 21:51:50 +00:00
hpradhan%hotpop.com
40d0360227 backing out last two checkins since they had no effect on Tp 2003-12-24 13:43:25 +00:00
hpradhan%hotpop.com
7384e4cf47 bug 229163 : One more attempt to try and fix perf regression r=sicking sr=jst 2003-12-24 11:03:19 +00:00
hpradhan%hotpop.com
e77142b163 bug 229163 : Going back to using an nsISupportsArray
to try and fix perf regression r=sicking sr=jst
2003-12-24 07:45:06 +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
bryner%brianryner.com
dfe3513814 Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky. 2003-12-21 05:36:36 +00:00
dbaron%dbaron.org
5803e6024c Fix problems when using generic font when the parent font is not generic but the closest ancestor with a generic font used the same generic. Miscellaneous cleanup. b=226871 r+sr=bzbarsky a=brendan 2003-12-02 22:24:32 +00:00
dbaron%dbaron.org
a012b34247 Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa 2003-11-24 19:46:25 +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
dbaron%dbaron.org
fa64c454c5 Scale fixed line-heights when the minimum font size pref kicks in. b=158868 r+sr=bzbarsky 2003-11-18 05:53:22 +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
dbaron%dbaron.org
0851395ebe Remove unneeded chromeOverride variable. b=225936 r+sr=bzbarsky 2003-11-17 04:10:55 +00:00
bzbarsky%mit.edu
852fbd43f7 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
2003-11-16 07:34:25 +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
caillon%returnzero.com
9f20544ef1 Bug 225411; updating DOM 3 Core's Document.xml*
r+sr=jst
2003-11-14 11:10:11 +00:00
jst%mozilla.jstenback.com
dc9e270b8d Silly whitespace cleanup. 2003-11-13 04:15:25 +00:00
jshin%mailaps.org
dc195dfd03 bug 222346 : streamline JS script loading code (deleegate charset alias resolution to GetUnicodeDecoder()) (r=smontagu, sr=bz) 2003-11-12 19:51:12 +00:00
hpradhan%hotpop.com
6fe196e1f5 bug 223108 : Syntax error when loading non-existant external javascript file
r+sr=bzbarsky
2003-11-10 05:53:48 +00:00
bzbarsky%mit.edu
293e392517 document.config has become document.domConfig to prevent backwards-compat
issues.  Bug 222733, r+sr=jst
2003-11-08 19:30:30 +00:00
sicking%bigfoot.com
7208475e1f Bug 224856: Fix nsGenericDOMDataNode::AppendTextTo by not relying on mText.Get1b() being nullterminated
r=peterv sr=jst
2003-11-07 16:46:15 +00:00
bryner%brianryner.com
1c6ea034f7 Attempting to fix Windows bustage 2003-11-07 10:16:36 +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