62 Commits

Author SHA1 Message Date
jst%netscape.com
f54ba5cc66 Removing static IID's (NS_DEFINE_IID()) and replace the static IID's with NS_GET_IID(), this cleans things up and simplifies my fix for nsbeta3+ bug 7515. r=pollmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78591 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 05:46:14 +00:00
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
attinasi%netscape.com
20b7c1ce10 Fixed the application of the BodyFixupRule so that it is only created when the BODY element has the HTML element as its parent. b=17911 r=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@76648 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 20:38:29 +00:00
jst%netscape.com
0a1ad0b622 Fxing nsbeta3+ bug 45680. Cloning an HTML element with a style attribute didn't clone the style declaration in the element so changing the style on the clone resulted in a style change for both elements. Also fixing a few memory leaks in nsHTMLTableElement. r=pollmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@76627 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 06:52:31 +00:00
attinasi%netscape.com
ad73ad64b4 Part of fix to allow background on BODY element to be inherited. b=47127 r=pierre
git-svn-id: svn://10.0.0.236/trunk@75598 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:44:08 +00:00
attinasi%netscape.com
248ad9b5be Fixed bug 44199: fixed position background images were not being treated as fixed in all cases. b=44199 r=dbaron
git-svn-id: svn://10.0.0.236/trunk@75068 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 20:50:57 +00:00
attinasi%netscape.com
f02e8d4669 Fixed the way the HTML element's background is handled. b=2285 r=dbaron
git-svn-id: svn://10.0.0.236/trunk@74706 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-24 22:51:41 +00:00
attinasi%netscape.com
44c387c3c8 Fixed problem with fixed background images. b=40217 r=mcclusk a=karnaze
git-svn-id: svn://10.0.0.236/trunk@71189 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 22:34:03 +00:00
hyatt%netscape.com
e469c92e38 fix for making skins script-safe. r=scc
git-svn-id: svn://10.0.0.236/trunk@70503 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 04:48:43 +00:00
attinasi%netscape.com
9793097100 Fixed a problem where background color could not be cleared once set. b=9151 r=rickg
git-svn-id: svn://10.0.0.236/trunk@70231 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 01:44:49 +00:00
jst%netscape.com
0f0b4d6367 Changing the way content elements store their name information, previously the elements generally stored a name atom and a namespace ID, now they store a pointer to a shared structure containing the name atom, the prefix atom and the namespace ID. This structure is shared between nodes with unique names (ie same name, prefix and ns ID) within a document. Documents now hold a hash table of the names in the document. The changes to mozilla/rdf are not reviewed but they are approved by waterson@netscape.com and the changes to mozilla/layout are reviewed by buster@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@69034 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 13:13:39 +00:00
attinasi%netscape.com
0c6d39b35f Fixed the BodyBackground rule to propagate the backgound color when the background color is cleared as well as set. b=11491
git-svn-id: svn://10.0.0.236/trunk@68506 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-06 05:56:02 +00:00
pierre%netscape.com
8352fc6523 33710 "background-color: inherit doesn't work correctly". Split the NS_STYLE_BG_PROPOGATED flag into 2 flags: NS_STYLE_BG_PROPAGATED_TO_PARENT and NS_STYLE_BG_PROPAGATED_FROM_CHILD. MapDeclarationColorInto() fetches the color from the grand-parent if PROPAGATED_TO_PARENT is set.
git-svn-id: svn://10.0.0.236/trunk@66083 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 10:38:13 +00:00
attinasi%netscape.com
9657bf7bed Implemented Style Size Dump. r=rickg b=26565
git-svn-id: svn://10.0.0.236/trunk@64709 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:08:36 +00:00
jim_nance%yahoo.com
b1ccfbf2cb Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  r=troy@netscape.com


git-svn-id: svn://10.0.0.236/trunk@64566 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 03:21:26 +00:00
jst%netscape.com
96aefc9b5d Landing changes Vidur made while the tree was closed for beta1 work, here's a list of the changes. r=me
[1] Cutting down the size of content. Made nsIJSScriptObject inherit from nsIScriptObjectOwner
[2] Cutting down the size of content. Made nsITextContent inherit from nsIContent.
[3] Cutting down the size of content. Moved implementation of nsIDOMReceiver to nsListenerManager. This is not true aggregation since it isn't transitive, but it's OK for now. It will be necessary for nsListenerManager to have a reference to its content in the future anyway, so the transitivity could be done.

dom/public/nsDOMPropEnums.h,v  - bug 12559
dom/public/nsIJSScriptObject.h,v - [1]
dom/public/html/MANIFEST,v - bug 12559
dom/public/html/Makefile.in,v - bug 12559
dom/public/html/makefile.win,v -  bug 12559
dom/public/html/nsIDOMHTMLInputElement.h,v - bug 17544
dom/public/idl/html/HTMLAnchorElement.idl,v - bug 12559
dom/public/idl/html/HTMLAreaElement.idl,v - bug 12559
dom/public/idl/html/HTMLInputElement.idl,v - bug 17544
dom/src/base/nsGlobalWindow.cpp,v - bug 30700
dom/src/base/nsGlobalWindow.h,v - [1]
dom/src/base/nsLocation.cpp,v - [1]
dom/src/html/nsJSHTMLAnchorElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLAreaElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLInputElement.cpp,v - bug 17544
layout/base/public/nsIDocument.h,v - bug 27953
layout/base/public/nsITextContent.h,v - [2]
layout/base/src/nsCommentNode.cpp,v - [2]
layout/base/src/nsDocument.cpp,v - bug 27953
layout/base/src/nsDocument.h,v - bug 27953
layout/base/src/nsDocumentViewer.cpp,v - bug 27953
layout/base/src/nsGenericDOMDataNode.cpp,v - [3]
layout/base/src/nsGenericDOMDataNode.h,v - [3]
layout/base/src/nsGenericElement.cpp,v - [3]
layout/base/src/nsGenericElement.h,v - [3]
layout/base/src/nsNameSpaceManager.cpp,v - bug 7834
layout/base/src/nsStyleContext.cpp,v - outline property shouldn't reflow
layout/base/src/nsTextNode.cpp,v - [2]
layout/events/src/nsEventListenerManager.cpp,v - [3]
layout/events/src/nsEventListenerManager.h,v - [3]
layout/html/base/src/nsGfxScrollFrame.cpp,v - nsString->nsAutoString
layout/html/content/src/nsAttributeContent.cpp,v - [2]
layout/html/content/src/nsHTMLAnchorElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAppletElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBodyElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLButtonElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDirectoryElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDivElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLEmbedElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFieldSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFormElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadingElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHtmlElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLImageElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInputElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInsElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIsIndexElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLIElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLabelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLayerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLegendElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLinkElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMapElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMenuElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMetaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLModElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLObjectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParagraphElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParamElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLPreElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLQuoteElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLScriptElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSelectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpacerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpanElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLStyleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCaptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCellElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableRowElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableSectionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTextAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTitleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLUListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLWBRElement.cpp,v - [1][3]
layout/html/document/src/nsHTMLDocument.cpp,v - bug 27953
layout/html/document/src/nsHTMLDocument.h,v - bug 27953
layout/xml/content/src/nsXMLCDATASection.cpp,v - [1][2]
layout/xml/content/src/nsXMLDocumentType.cpp,v - [1][2]
layout/xml/content/src/nsXMLElement.h,v - [1][2]
layout/xml/content/src/nsXMLEntity.cpp,v - [1][2]
layout/xml/content/src/nsXMLNotation.cpp,v - [1][2]
layout/xml/content/src/nsXMLProcessingInstruction.cpp,v - [1][2]
layout/xul/base/src/nsBoxFrame.cpp,v - nsString->nsAutoString
layout/xul/base/src/nsSliderFrame.cpp,v - nsString->nsAutoString
netwerk/protocol/http/src/nsHTTPRequest.cpp,v - nsString->nsAutoString
rdf/content/src/nsXULDocument.cpp,v - bug 27953
rdf/content/src/nsXULDocument.h,v - bug 27953
rdf/content/src/nsXULElement.h,v - [1]
xpcom/base/IIDS.h,v  - bug 12559


git-svn-id: svn://10.0.0.236/trunk@63290 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 13:27:00 +00:00
tbogard%aol.net
e0ccbcff63 Converted a number of places to use the docShell APIs instead of the webShell ones.
git-svn-id: svn://10.0.0.236/trunk@62570 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:37:07 +00:00
pollmann%netscape.com
9184319076 Bug 17613: Allow 0 margins on frames per HTML4 errata. Fix courtesy of VYV03354@nifty.ne.jp r=self and harishd
git-svn-id: svn://10.0.0.236/trunk@57077 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-07 05:54:23 +00:00
tbogard%aol.net
ae5a81e394 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00
buster%netscape.com
9bc057e191 DOM extension for exposing text areas to XUL
bug 12022, r=rickg, vidur


git-svn-id: svn://10.0.0.236/trunk@53975 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 07:24:15 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
peterl%netscape.com
f3c05f912b Added new style data accessors.
Added nsIMutableStyleContext interface.
Made style rules work against nsIMutableStyleContext
r=troy


git-svn-id: svn://10.0.0.236/trunk@50919 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 04:05:59 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
warren%netscape.com
c9fbdb8075 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty.
git-svn-id: svn://10.0.0.236/trunk@50188 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:49:06 +00:00
kipp%netscape.com
99aaa55232 Updated SizeOf methods for html content objects to be more accurate; implemented MOZ_DECL_CTOR_COUNTER for all html content objects
git-svn-id: svn://10.0.0.236/trunk@50066 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:35:04 +00:00
buster%netscape.com
fee0b64d1f fixed BodyFixupRule::MapStyleInto to respect background color properly
code-reviewed by Peter Linss


git-svn-id: svn://10.0.0.236/trunk@42643 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:38:28 +00:00
peterl%netscape.com
4c73c7609e Cleaned up attribute parsing so that illegal values are preserved as strings
git-svn-id: svn://10.0.0.236/trunk@40994 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 19:55:35 +00:00
peterl%netscape.com
27453e4edf fix color handling
git-svn-id: svn://10.0.0.236/trunk@39939 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 00:20:27 +00:00
peterl%netscape.com
c4bfbf18ff reworked attribute storage to seperate attributes mapped in to style from
those that aren't
This lets the style system optimize style contexts better.


git-svn-id: svn://10.0.0.236/trunk@38541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 01:24:40 +00:00
kipp%netscape.com
14245ab0dc Removed white-space stripping from href's/backgrounds/etc to fix bug #8319
git-svn-id: svn://10.0.0.236/trunk@38372 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-05 21:14:37 +00:00
peterl%netscape.com
262c024b61 changed initialization of basefont so as not to override font style on HTML elements
git-svn-id: svn://10.0.0.236/trunk@35703 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:15:01 +00:00
peterl%netscape.com
438c25b48d sync to nsIStyledContent API change
git-svn-id: svn://10.0.0.236/trunk@32800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:46:45 +00:00
peterl%netscape.com
8e868f4143 fixed background propogation code to replace previously propogated background info
git-svn-id: svn://10.0.0.236/trunk@29647 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 01:51:38 +00:00
troy%netscape.com
4756273f12 Changed MapStyleInto() to also reset mBackgroundAttachment when resetting
the BODY's background properties


git-svn-id: svn://10.0.0.236/trunk@28533 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:39:47 +00:00
bruce%cybersight.com
fc7ac0c770 Fix for ANSI C++ compliance: friend foo -> friend class foo
git-svn-id: svn://10.0.0.236/trunk@28428 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 04:16:46 +00:00
peterl%netscape.com
ae015c0f0f split font style mapping from regular style mapping
git-svn-id: svn://10.0.0.236/trunk@27701 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 21:23:05 +00:00
troy%netscape.com
21c4de642c Fix for bug #4434
git-svn-id: svn://10.0.0.236/trunk@25652 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 04:13:24 +00:00
nisheeth%netscape.com
e3f2944049 - Changed name of getter function for style hints to GetStyleHintForAttributeChange().
- Plugged in style hint for changes to the <HR NOSHADE> attribute.


git-svn-id: svn://10.0.0.236/trunk@20724 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 06:42:44 +00:00
troy%netscape.com
176116b148 Fixed some errors related to switch to using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:26 +00:00
kipp%netscape.com
9b917419dc COMized nsIPresShell and nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@20570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:45:58 +00:00
vidur%netscape.com
1349b5dad4 Added additional key argument to string parsing routine. Improved Reset handling for document to include style sets and frame construction. Modified root frame construction. Got out-of-line document.write to work
git-svn-id: svn://10.0.0.236/trunk@19537 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:38:16 +00:00
karnaze%netscape.com
3b1d92015b <form> inside <table> submits; marginwidth, marginheight in <frame> working; scrolling in <frame>, <iframe> working
git-svn-id: svn://10.0.0.236/trunk@18018 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 17:26:06 +00:00
vidur%netscape.com
d81e61b1ff Moved text and comment code out of HTML-specific directories. Completed CloneNode for elements. Completed factory methods for intersection of XML and HTML.
git-svn-id: svn://10.0.0.236/trunk@17775 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 23:14:02 +00:00
troy%netscape.com
5caea33110 Fix for bug #2316. Added back some code I removed because I didn't think we
needed it, but without out it 'color' doesn't inherit properly


git-svn-id: svn://10.0.0.236/trunk@17701 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 05:14:11 +00:00
troy%netscape.com
4c4c2ea13a Fix for bug #2285. Just reseting the mFlags isn't enough, because the PaintBackground()
member function ignores the flags and checks for a non-empty URL. This way is safer and
should work in all cases


git-svn-id: svn://10.0.0.236/trunk@17502 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-11 19:44:22 +00:00
troy%netscape.com
73dcbfbee5 Hooked up marginwidth and marginheight attributes to change the 'margin'
property instead of the 'padding' property


git-svn-id: svn://10.0.0.236/trunk@17448 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 04:31:51 +00:00
troy%netscape.com
cf5cfbf04e Fix for bug #2054. If the HTML element's background is 'transparent' then it
uses the BODY's background property


git-svn-id: svn://10.0.0.236/trunk@17351 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 01:14:59 +00:00
peterl%netscape.com
52a0043631 sync to new attribute api
git-svn-id: svn://10.0.0.236/trunk@16723 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-20 01:21:23 +00:00
nisheeth%netscape.com
51147256cd Added a new method, GetStyleHintForAttributeChange() to nsIHTMLContent and implemented it in all the HTML content classes. The method is used by the HTML style sheet to get a style change hint from the content object when an attribute of the content object changes.
git-svn-id: svn://10.0.0.236/trunk@16185 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 23:52:46 +00:00
peterl%netscape.com
5683510533 moved body fixup rule into content
git-svn-id: svn://10.0.0.236/trunk@15577 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:34:06 +00:00