Commit Graph

986 Commits

Author SHA1 Message Date
brendan%mozilla.org
f81d5969c6 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
nisheeth%netscape.com
ff14b7a0cf r=nisheeth. Fix for bug 9781 submitted by Johnny Stenbeck (jst@citec.fi). Thanks Johnny. 1999-10-28 01:50:37 +00:00
rbs%maths.uq.edu.au
7900952c3a [MathML] removing registration hooks. They are now handled by nsLayoutModule. 1999-10-12 01:48:05 +00:00
kipp%netscape.com
65f6ba5343 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
kipp%netscape.com
cfa92fd85e Updated SizeOf methods for html content objects to be more accurate; implemented MOZ_DECL_CTOR_COUNTER for all html content objects 1999-10-07 00:35:04 +00:00
kipp%netscape.com
3eaba4f422 Support SizeOf methods 1999-10-05 23:47:46 +00:00
waterson%netscape.com
b9528fb7bc Bug 15460. Expose XML element creation via nsIXMLElementFactory interface. r=kipp. 1999-10-05 00:12:21 +00:00
rbs%maths.uq.edu.au
93ac1da9b5 Adding remaining MathML hooks. r:peterl. 1999-10-02 11:05:49 +00:00
vidur%netscape.com
140612e133 Converted parser into a module. Removed usage of static parser methods and used nsIParserService and nsIDTD methods instead. To be reviewed by RickG. 1999-09-30 22:07:04 +00:00
kipp%netscape.com
c37ecb974c Removed atom table hacks 1999-09-30 21:17:28 +00:00
rpotts%netscape.com
f7a23e30ca Changed GetDocumentLoadGroup(...) to be XPCom complient. THis helps prevent leaks when using nsCOMPtrs. 1999-09-18 06:34:24 +00:00
kipp%netscape.com
d63ca4aef1 Squish a warning or two 1999-09-17 20:16:37 +00:00
briano%netscape.com
97faab6716 General cleanup. 1999-09-14 01:02:20 +00:00
ftang%netscape.com
abfeb59953 fix bug 12500 1999-09-03 22:48:20 +00:00
sspitzer%netscape.com
b494799f9e add newline to end of file to please certain UNIX compilers. 1999-09-03 10:43:00 +00:00
nisheeth%netscape.com
a3d25a6149 Added Get/Set methods to content IDs. An ID is used as a key to store state information about a content object and its associated frame object. The state information is stored in a dictionary that is manipulated by the frame manager (nsIFrameManager) inside layout. An opaque pointer to this dictionary is passed to the session history as a handle associated with the current document's state. 1999-08-31 10:06:17 +00:00
nisheeth%netscape.com
a576de8c20 Work in progress to integrate Keith Visco's XSL processor, Transformiix, into Gecko. All code is protected by #ifdef XSL and will not affect the build. 1999-08-28 07:31:08 +00:00
vidur%netscape.com
7aec7c434b Parse delimiters out of Comment nodes. CharacterData Nodes now return an empty childNodes list instead of null. 1999-08-25 07:35:45 +00:00
nisheeth%netscape.com
98514ba507 Fix build bustage. 1999-08-24 23:09:52 +00:00
nisheeth%netscape.com
a8f29b5e3c Adding the methods for creating entity, documenttype, named node maps, notations. Contributed by Johnny Stenback (jst@citec.fi). 1999-08-24 22:26:57 +00:00
nisheeth%netscape.com
4f94ca838d Adding files that implement the entity, notation, documenttype and namednodemap interfaces. Contributed by Johnny Stenback (jst@citec.fi). 1999-08-24 22:22:36 +00:00
vidur%netscape.com
43c7cb9748 Changed method signature of EvaluateScript to return nsresult. Added nsJSThreadContextStack pushing and popping around script evaluation. 1999-08-19 20:36:31 +00:00
nisheeth%netscape.com
684c74e9b5 Fix for bug 11483. Scripts were not getting loaded on XML pages. 1999-08-11 23:24:59 +00:00
nisheeth%netscape.com
88a7a3eadb Adding a new parameter, aMode, to nsIContentSink::AddDocTypeDecl. 1999-07-28 06:56:05 +00:00
nisheeth%netscape.com
4e5aff98b2 Add static GetIID() method for creating smart pointers to nsIXMLContentSink. 1999-07-28 01:17:09 +00:00
rickg%netscape.com
f4902b78bc replaced calls to deprecated nsString API 1999-07-26 00:37:24 +00:00
vidur%netscape.com
0ebbf485db Forms can now be container content. 1999-07-22 23:28:16 +00:00
warren%netscape.com
bf8423a769 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
peterl%netscape.com
33759cf899 string usage cleanup 1999-07-18 00:34:53 +00:00
peterl%netscape.com
82742cc403 string usage cleanup
sync to new entity api
1999-07-18 00:34:41 +00:00
warren%netscape.com
84bd74a4fd Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome). 1999-07-16 11:14:36 +00:00
nisheeth%netscape.com
817c0d49e4 Removing ifdef XML_PSEUDO_ELEMENT which is never defined. 1999-07-14 17:59:19 +00:00
warren%netscape.com
61c8d73b43 Necko stuff for dealing with load groups when opening URLs. 1999-07-09 21:18:47 +00:00
peterl%netscape.com
b2f56f9f62 force quirks off for XML 1999-07-07 01:33:27 +00:00
andreas.otte%primus-online.de
001ff1afea NECKO only: replacing GetBuffer with ToNewCString and some error checking 1999-07-06 23:08:16 +00:00
warren%netscape.com
bd73f68e8b Renamed OnStartBinding/OnStopBinding to OnStartRequest/OnStopRequest (removing the redundant ones from necko). Numerous necko fixes. Necko now using nsIPrompt interface instead of nsINetSupport. 1999-07-01 19:30:20 +00:00
waterson%netscape.com
a9e63d1095 Add GetIID(). 1999-06-30 19:28:16 +00:00
nisheeth%netscape.com
684b70fd14 Replacing nsIURI.h with nsIURL.h in the include list. 1999-06-28 15:06:33 +00:00
nisheeth%netscape.com
dbca200533 Adding the architecture for an external transformation engine to hook into Raptor's layout process. One way this architecture can be used is for doing XSL transforms using a 3rd party component that implements the XSL processor. More details will be posted in mozilla.layout.
Currently enabled on windows only. Set MOZ_XSL to 1 in your environment and build mozilla/layout.
1999-06-28 14:49:29 +00:00
nisheeth%netscape.com
46687bfc33 Adding the architecture for an external transformation engine to hook into Raptor's layout process. One way this architecture can be used is for doing XSL transforms using a 3rd party component that implements the XSL processor. More details will be posted in mozilla.layout.
Currently enabled on windows only. Set MOZ_XSL to 1 in your environment and build mozilla/layout.
1999-06-28 14:17:30 +00:00
nisheeth%netscape.com
6e140506a0 Adding the architecture for an external transformation engine to hook into Raptor's layout process. One way this architecture can be used is for doing XSL transforms using a 3rd party component that implements the XSL processor. More details will be posted in mozilla.layout.
Currently enabled on windows only.  Set MOZ_XSL to 1 in your environment and build mozilla/layout.
1999-06-28 14:12:07 +00:00
valeski%netscape.com
32de4bf808 various #ifdef NECKO fixes. 1999-06-27 16:12:20 +00:00
warren%netscape.com
fbd6d1dc57 Necko ifdefs for layout and rdf. 1999-06-26 06:36:26 +00:00
warren%netscape.com
4001aade80 Renamed nsIURLGroup to nsILoadGroup in preparation for necko. 1999-06-25 02:17:37 +00:00
warren%netscape.com
1f76168d21 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
valeski%netscape.com
e23b3c673c NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061. 1999-06-18 17:34:08 +00:00
peterl%netscape.com
8eae23158b sync to css loader api change (default namespace) 1999-06-15 06:22:46 +00:00
nisheeth%netscape.com
fcf33c238f Patch from Johny Stenback (jst@citec.fi). Thanks a lot. 1999-06-11 19:08:39 +00:00
peterl%netscape.com
24bee1ac96 added code to ignore unknown namespace prefix for attributes
(actually the parser should've rejected it before here)
1999-06-10 05:33:47 +00:00
nisheeth%netscape.com
4ad268acd8 Fix for bug 4924. Attributes created with no namespace prefix are now assigned no namespace. They were erroneously being assigned the default namespace earlier. 1999-06-04 01:16:18 +00:00
peterl%netscape.com
9a7d3f32e2 tweaks to css loader handling 1999-05-26 23:59:00 +00:00
peterl%netscape.com
e1efc3ec2f use css loader to load css sheets
better css handling
1999-05-26 23:58:06 +00:00
peterl%netscape.com
4672a0483f fixed ref counting of global atoms 1999-05-26 23:56:57 +00:00
peterl%netscape.com
ef63b400f9 added css loader support 1999-05-18 23:16:26 +00:00
neeti%netscape.com
41dc3a3222 Fixed SetEnableRendering() in nsDocumentViewer.cpp
Initialized mEnableRendering in constructors of nsDocumentViewer.cpp and nsPlugin.cpp to a default value of PR_TRU
Do EnableRefresh only if mEnableRendering is set to true in nsHTMLContentSink.cpp,nsXMLContentSink.cpp,
nsXMLContentSink.h
1999-05-13 20:27:47 +00:00
vidur%netscape.com
26a71e3928 Added IsValidFragment and CreateRange implementations. Added GetContentType method to nsIDocument interface. 1999-05-11 20:22:35 +00:00
nisheeth%netscape.com
456d374c32 Pass a pointer to the document object when you call the Parse method on the parser object.f 1999-05-06 01:51:31 +00:00
ftang%netscape.com
cd8197867b set the document character set to UTF-8 for XSL document 1999-04-27 23:42:22 +00:00
ftang%netscape.com
31fe1fe2f7 call SetDocumentCharset method to pass default charset to the parser 1999-04-26 17:58:50 +00:00
nisheeth%netscape.com
732f173e3d Fix off by one error for arrow that points out XML error locations. 1999-04-24 10:23:39 +00:00
rickg%netscape.com
13ca296be6 update to sync with nsString2 1999-04-22 05:49:39 +00:00
rickg%netscape.com
5e42a35ab3 updates to sync with nsString2 api 1999-04-21 23:54:24 +00:00
joki%netscape.com
b6f2484b5b New api's into nsEventStateManager for content state change (hover,focus,active) 1999-04-12 21:24:07 +00:00
waterson%netscape.com
bb23be7a55 Added GetIID() so that this can be used with nsCOMPtr. 1999-04-12 18:10:08 +00:00
vidur%netscape.com
d801e996bd Added epilog and prolog to document. Added processing instructions and CDATASections for XML. Completed document Node methods. 1999-03-31 20:49:25 +00:00
joki%netscape.com
1c2882e5e6 Updating internal implementations to new DOM2 api syntax, capture/bubble functionality, new EventStateManager stuff (focus improvements) 1999-03-28 22:22:54 +00:00
briano%netscape.com
29ed08771b Handle NO_STATIC_LIB being set, when all this file does is create a static library. 1999-03-25 21:21:47 +00:00
vidur%netscape.com
695fabe1b5 Implemented ID targetting for HTML in XML documents. Changed name of GetNameSpacePrefix to avoid clash. 1999-03-20 01:51:00 +00:00
nisheeth%netscape.com
42b362f298 - Beautified error reporting of expat errors. We now don't just dump the error text out as nodes. We create the parsererror and sourcetext HTML nodes that can be styled via ua.css. 1999-03-11 05:29:36 +00:00
vidur%netscape.com
634e324575 Added CreateElementWithNameSpace to proprietary document interface. Fixed GetTagName for HTML to uppercase tag names. Hooked up style rule addition and deletion to reconstruct frames. Fixed DOM generation problem 1999-03-10 01:17:49 +00:00
warren%netscape.com
4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
nisheeth%netscape.com
7b02f128df - Quoted all attributes.
- Fixed casing on the end BookSet tag.  (The expat parser enforces case-sensitivity in XML)
1999-03-09 07:44:47 +00:00
vidur%netscape.com
340a2d50b1 Table of contents example 1999-03-09 00:36:54 +00:00
nisheeth%netscape.com
a8aa6a7b87 Changed nsIContentSink->NotifyError() to accept an nsParserError argument. This change is needed for propagating errors from the new expat parser. 1999-03-06 02:01:11 +00:00
nisheeth%netscape.com
e870ce9054 We've decided to do away with the notion of an nsExpatDTD. The expat tokenizer which encapsulates the expat parser will be driven by nsWellFormedDTD. So, I'm removing the code that constructed an expat DTD for controlling the parsing of an XML document. 1999-03-03 01:57:03 +00:00
vidur%netscape.com
6094c1ca21 Fixes to get CDATASections working again. Also changes to fix XML links. 1999-03-02 23:22:05 +00:00
nisheeth%netscape.com
937b4d59c2 We no longer call RegisterDTD() on nsParser when initiating parsing of XML
documents.
1999-03-02 02:58:25 +00:00
nisheeth%netscape.com
8d35655233 - Add expat to the windows build only...
- Changed nsXMLDocument such that expat gets used for XML parsing if
  EXPAT is #define'd
1999-02-27 08:02:15 +00:00
kipp%netscape.com
2eee855f3b Support entities (bug #3112) 1999-02-26 17:13:51 +00:00
vidur%netscape.com
6803ad7f1b XML books test case (not part of the build so don't shoot me). 1999-02-25 02:26:53 +00:00
vidur%netscape.com
93609d0604 Added nsIStyleSheetLinkingElement interface and implemented it for LINK and STYLE elements. Got attribute modifications for lists and list items working (including correct renumbering of lists when attribute values change). 1999-02-23 19:18:12 +00:00
warren%netscape.com
01dd4f0ed6 Cleaned up nsICollection and nsIEnumerator. Broke out nsIBidirectionalEnumerator. Added ISupportsArray enumerator. Cleaned nsISupportsArray. 1999-02-23 08:10:24 +00:00
scc%netscape.com
5f8d7aa381 updated for nsCOMPtr (no implicit construction from raw pointers) owners should check that they agree with my choices for |dont_QueryInterface|, |do_QueryInterface| and |dont_AddRef| 1999-02-18 23:55:10 +00:00
cyeh%netscape.com
af4818f5e3 Remove mozilla/layout/config and use mozilla/config instead. 1999-02-18 18:16:21 +00:00
vidur%netscape.com
0b6657a837 Backed out bogus update to test 1999-02-18 00:19:12 +00:00
vidur%netscape.com
5ed7dde231 Supported XML namespace decls as attributes of HTML content embedded in XML 1999-02-18 00:18:50 +00:00
rickg%netscape.com
359e6e5567 fixed a wad of little bugs and added regression test 1999-02-16 07:38:27 +00:00
troy%netscape.com
0debd6f0d1 Fixed some errors related to switch to using nsCOMPtr 1999-02-12 18:41:26 +00:00
kipp%netscape.com
36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
peterl%netscape.com
2ddb4e5970 fixed atom ref counting bug 1999-02-12 08:16:00 +00:00
peterl%netscape.com
7f04fb00e6 changed all html atoms to lower case 1999-02-12 06:19:07 +00:00
peterl%netscape.com
8459a64073 fixed bug handling multiple namespace declarations in one tag 1999-02-02 03:24:56 +00:00
joki%netscape.com
c14cc1cb25 Removing nsILinkHandler enum types from dependencies, fixing event handler bugs 1999-01-28 23:14:36 +00:00
peterl%netscape.com
9937b38698 cleaned up style sheet ordering 1999-01-23 07:09:06 +00:00
vidur%netscape.com
22a8cb9919 Fix to get default namespaces to work. Cleanup of DOM handling of character data. 1999-01-21 19:33:03 +00:00
danm%netscape.com
673e89c4af load XUL atoms on XML document creation 1999-01-21 03:35:24 +00:00
vidur%netscape.com
6748215978 Fixing build bustage 1999-01-20 00:50:07 +00:00
vidur%netscape.com
8ff9eaa54b Completion of document as node - specifically, the childNodes array. Completion of nodeName, nodeValue and attributes properties for different types of nodes. 1999-01-19 23:07:33 +00:00
kipp%netscape.com
7f96144059 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
peterl%netscape.com
3a21eef741 better base url handling
Checkin during red tree approved by sar
1999-01-15 02:09:56 +00:00
vidur%netscape.com
895ce771ea Moved text and comment code out of HTML-specific directories. Completed CloneNode for elements. Completed factory methods for intersection of XML and HTML. 1999-01-14 23:14:02 +00:00
vidur%netscape.com
274a4add3e Second pass of attributes as nodes. Improved namespace management - XML elements now hold on to their containing namespace. Fixed Get/SetDOMAttriute naming issue. Added new namespace parsing methods to nsIContent 1999-01-12 16:37:24 +00:00
rickg%netscape.com
8f11084fc8 sync up with mods to the parser 1999-01-09 01:11:37 +00:00
vidur%netscape.com
2934b39e2c Work in progres to get out-of-line document.write working. Created Reset() method in nsDocument. Fix for bug 1668. 1999-01-06 00:32:41 +00:00
jfrancis%netscape.com
bb23b3dbd6 more dom range gravity work 1998-12-30 08:28:16 +00:00
nisheeth%netscape.com
7a8631dcf7 Adding code protected by an ifdef for making the XML content sink initiate
the load of an XSL stylesheet when it sees a stylesheet PI with an XSL
content type.
1998-12-27 08:24:04 +00:00
peterl%netscape.com
650a9f3060 fix spelling
fix namespace of HTML element's attributes
1998-12-21 05:59:40 +00:00
peterl%netscape.com
887cd5f867 sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp%netscape.com
40c2cfef07 Fixed numerous compiler warnings (hopefully) from the mac build 1998-12-18 17:34:34 +00:00
vidur%netscape.com
ef7751a987 Added asynchronous script and style loading to XML. Moved out stream loader to netlib. 1998-12-18 01:36:41 +00:00
jfrancis%netscape.com
94524bd1cb Adding support for notifying content that it harbors a DOMRange. 1998-12-17 07:22:28 +00:00
warren%netscape.com
0580a8e5c4 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener. 1998-12-16 05:40:20 +00:00
shaver%netscape.com
30635270f8 Add --enable-debug=module1,module2 to selective turn on debugging.
Remove --enable-dom, because Mariner is dead (sob).
Rename some MODULE= lines to make the afore-mentioned --enable-debug
technique actually useful.  Feel free to recategorize.
Fix libraptorhtml.so link bogosity by disabling shared lib generation for the
sub-archives (libraptor*_s.a), so that we can put bin before lib in the
library path and still get the right effect.  We could disable static-lib
generation in most other places and cut the build time down a fair bit, too.
[NOTE: I'm getting on a train...msw@gimp.org has agreed to be my tinderbox
buddy.  Thanks, Matt!]
1998-12-15 16:32:37 +00:00
vidur%netscape.com
fd093d0d82 Enabled asynchronous loading of SCRIPT SRC=, STYLE SRC= and LINK elements for style sheets. Changed nsIScriptContext to not be dependent on JavaScript. 1998-12-15 06:10:59 +00:00
vidur%netscape.com
3a9dd64bbf Work in progress of async loading of SCRIPT and STYLE with SRC attributes. Content sinks can now return a BLOCK_PARSER return code, forcing the parser to block. nsIParser::EnableParser can be used to unblock. Also introduced nsIContentSink::SetParser. 1998-12-11 17:02:37 +00:00
peterl%netscape.com
5b4cdf46ee moved name space management to name space manager, tweaked apis 1998-12-11 02:53:49 +00:00
ramiro%netscape.com
e2b921bf3c Add cvsignore entries for makefiles generated bu autoconf. 1998-12-05 09:07:33 +00:00
peterl%netscape.com
c1a6062752 added inline style sheet support for contained HTML 1998-12-02 00:39:10 +00:00
waterson%netscape.com
ca441d8de1 First Checked In. 1998-12-02 00:20:07 +00:00
vidur%netscape.com
1dadb447e1 Fixing build bustage 1998-11-30 08:47:27 +00:00
vidur%netscape.com
6b930eba56 Moved nsGenericElement to base directory. Added basic support for document fragments. 1998-11-30 07:59:11 +00:00
rickg%netscape.com
d23278ec63 improvements to recursive parser calls 1998-11-26 02:56:40 +00:00
peterl%netscape.com
e3f218d5b4 style change notification support 1998-11-26 01:34:53 +00:00
joki%netscape.com
e7f70ce9ce Add click event support for every element and initial keypress event support 1998-11-24 07:46:58 +00:00
vidur%netscape.com
a56f770bde First pass to allow HTML forms to be embedded inside XML documents. 1998-11-16 06:16:17 +00:00
vidur%netscape.com
f0e94f9767 Added Xlink support 1998-11-14 00:22:10 +00:00
vidur%netscape.com
d5fc2aaaea Added support for XLink - simple links and show=replace or new. Modified nsILinkHandler interface. 1998-11-14 00:21:19 +00:00
rickg%netscape.com
2f234d74a2 allow view-source on XML 1998-11-13 04:36:46 +00:00
vidur%netscape.com
8f7d93e602 XML example with scripting 1998-11-12 23:57:54 +00:00
vidur%netscape.com
dbf2544c2b Added script handling to XML content sink. Made sure frame construction by tag wasn't done for XML. 1998-11-12 23:55:47 +00:00
troy%netscape.com
532ccd2885 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element
1998-11-12 23:03:35 +00:00
kipp%netscape.com
7314e95171 init the html atoms too...(temporary) 1998-11-12 18:16:25 +00:00
vidur%netscape.com
4bc4f6896a Modified stylesheet 1998-11-12 17:17:48 +00:00
vidur%netscape.com
f137d57503 new 1998-11-12 16:36:02 +00:00
vidur%netscape.com
f1f2518804 Factored GetAttributStyleSheet method into separate nsHTMLContentContainer interface that can be implemented by both HTML and XML document classes. 1998-11-12 07:54:12 +00:00
vidur%netscape.com
8723f8326b Added XML display support. Split nsGenericHTMLElement into generic and HTML-specific components. Minor style modification. New XML classes and interfaces. 1998-11-11 22:06:16 +00:00