204 Commits

Author SHA1 Message Date
peterv%propagandism.org
b64b04886f Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 10:08:43 +00:00
bzbarsky%mit.edu
e79cce1c42 Allow passing a cached nsIContentPolicy service pointer to
NS_CheckContent*Policy if the caller has one.  Bug 304845, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178242 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 15:00:01 +00:00
cbiesinger%web.de
12a01dec29 Bug 295047 Want unicode stream readers/writers: Makes nsIUnicharInputStream and
nsIConverterInputStream scriptable, and adds nsIUnicharOutputStream and
nsIConverterOutputStream (together with implementations).
r=jshin sr=darin a=chofmann


git-svn-id: svn://10.0.0.236/trunk@175107 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 19:44:50 +00:00
bzbarsky%mit.edu
5fab1e95f2 Clean up includes a bit in CSSLoader. Bug 290107, r+sr=dbaron, a=brendan
git-svn-id: svn://10.0.0.236/trunk@172224 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-14 15:27:16 +00:00
dbaron%dbaron.org
be07cbe034 Consolidate and deCOMtaminate parsing and storage of media lists. b=156716 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171350 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 00:36:57 +00:00
bzbarsky%mit.edu
91c825c2cc Use nsContentUtils for error-reporting for <area> parsing. Bug 269697,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@165646 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 17:45:37 +00:00
dbaron%dbaron.org
e8bca4edc1 Add function to nsContentUtils to report a localized error message to the error console, and use it from the three places that were doing pretty much the same thing. b=187007 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162314 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 17:26:35 +00:00
dbaron%dbaron.org
a4ca9058c6 Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
dbaron%dbaron.org
d116431504 Pass line number information for style elements through to the CSS parser so we can give correct line numbers in error reports. b=240420 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161992 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 17:32:35 +00:00
timeless%mozdev.org
5f942cda70 Bug 253539 Report origin url for css mime warnings/errors
r=bz sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@160886 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-18 02:32:25 +00:00
neil%parkwaycc.co.uk
0bbab9b402 Bug 32372 should be possible to completely disable CSS p=fantasai@inkedblade.net r=me (xpfe) r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160395 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 11:38:42 +00:00
dbaron%dbaron.org
59572fab24 Move things that aren't author stylesheets out of nsDocument's mStyleSheets array to simplify stylesheet management code. Add a level of the cascade for style attributes and ensure that there's only one rule processor per level of the cascade, and simplify the logic of nsCSSRuleProcessor creation. b=252578 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159965 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-28 07:08:41 +00:00
bzbarsky%mit.edu
50d5ce0bc2 Switch context back to being nsISupports, but make it clear that it's expected
to be an nsIDOMNode or nsIDOMWindow.  Bug 252027, r=mvl, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@159916 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 17:15:53 +00:00
dbaron%dbaron.org
7d1892d30f Ensure chrome: URLs stay that way so theme switching code doesn't get confused, even though most chrome: stylesheet loads don't come through this codepath. b=226791 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159203 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:21:07 +00:00
dbaron%dbaron.org
876fe15a8a Send correct HTTP Referer header for CSS @import. b=249171 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159194 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:52:19 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bsmedberg%covad.net
41d6e4ccc6 Bug 239925 - fix static initializers in DOM/widget/libpr0n so that we can restart XPCOM safely r=jst sr=darin
git-svn-id: svn://10.0.0.236/trunk@157668 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 18:36:25 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
mvl%exedo.nl
c0b2e4667b Make content policy api (nsIContentPolicy) not suck.
bug 191839. Original patch and hard work by Tim <riceman+bmo@mail.rit.edu>, r=bzbarsky (on backend stuff), r=neil (on the tabbrowser stuff), sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@156366 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 18:34:18 +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
darin%meer.net
af98e4f306 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
jst%mozilla.jstenback.com
6629ad58f7 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00
bzbarsky%mit.edu
59d6abe4a5 Make pretty-printing stylesheets force UTF-8 for themselves. Update charset
stuff in CSSLoader to look at the parent sheet charset and use NSPR logging.
Bug 230660, r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@151254 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 19:01:26 +00:00
bzbarsky%mit.edu
3e32bc588c Don't use HTML rules to parse (redundantly) media strings in CSS @import
rules.  Bug 153755, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@151128 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 02:27:41 +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
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
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
bzbarsky%mit.edu
4651d2cebb Make sure that sheets in a document always know their URL. Bug 218031, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147623 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 13:24:55 +00:00
bzbarsky%mit.edu
62c2420626 Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
notifications).  Bug 200931, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@147516 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-02 21:29:40 +00:00
bzbarsky%mit.edu
af8ba69ee3 Make charset-detection code work with just a BOM (no @charset rule) in the
sheet.  Bug 218915, r=smontagu, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147288 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-25 05:57:28 +00:00
bryner%brianryner.com
978d05c917 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146614 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 21:50:21 +00:00
bzbarsky%mit.edu
edbe6382af Don't use uninitialiazed hashtable. Bug 214941, r=bsmedberg, sr=peterv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@145875 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-11 18:16:48 +00:00
bsmedberg%covad.net
f24d69bc30 Fix assertion from bug 211470, rs=bz
git-svn-id: svn://10.0.0.236/trunk@145261 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 01:12:36 +00:00
bsmedberg%covad.net
3ae54818a4 Forgot a review nit from bug 211470.
git-svn-id: svn://10.0.0.236/trunk@145254 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 15:46:52 +00:00
bsmedberg%covad.net
2c2c23dd44 Bug 211470 - need a common nsURIHashKey r=darin sr=bz
git-svn-id: svn://10.0.0.236/trunk@145253 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 15:20:11 +00:00
jaggernaut%netscape.com
e9505aff6f Fix bustage
git-svn-id: svn://10.0.0.236/trunk@144993 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 08:35:21 +00:00
jaggernaut%netscape.com
40f122a577 Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144991 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:40:43 +00:00
caillon%returnzero.com
e69f301e32 Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
r=bzbarsky@mit.edu, sr=dbaron@dbaron.org


git-svn-id: svn://10.0.0.236/trunk@144937 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 01:26:47 +00:00
bzbarsky%mit.edu
7c1787f026 Make the URI of a sheet be its final URI after all the redirects, not the URI
linked to from the original document.  Bug 96858, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144934 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 00:35:49 +00:00
bzbarsky%mit.edu
43571b323e Fixing assert condition to be correct. Thanks to riceman+bmo@mail.rit.edu for
noticing.


git-svn-id: svn://10.0.0.236/trunk@144613 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 01:48:20 +00:00
bzbarsky%mit.edu
50802bdf22 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@144415 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:45:34 +00:00
bzbarsky%mit.edu
fe3f1277a3 Make setting contentType or contentCharset act as hints if done before channel
open; use this in the CSSLoader to hint that we want text/css data.  Bug
120789, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@144065 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 21:00:46 +00:00
bzbarsky%mit.edu
889c257b53 Fix some DEBUG_bzbarsky code people didn't bother to update. r+sr=whatever
git-svn-id: svn://10.0.0.236/trunk@144060 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 18:34:02 +00:00
jshin%mailaps.org
e51a020a30 bug 206379 : additional patch : get rid of ResolveCharset() (static) and
rely on GetUnicodeDecoder() of nsICharacterSetConverterManager to take care of
the charset alias resolution. (r/sr=bzbarsky, sr=alecf)


git-svn-id: svn://10.0.0.236/trunk@144048 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 05:04:43 +00:00
alecf%flett.org
71e5d724e5 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
aaronl%netscape.com
290c0f8aa6 Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl
git-svn-id: svn://10.0.0.236/trunk@143756 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 11:17:18 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
caillon%returnzero.com
fb75cd3bbb Bug 209133
Make |Node| from script recognize constants defined in nsIDOM3Node.
Move DOM3 constants over to nsIDOM3Node.
Update the names and values to reflect the latest draft of the DOM 3 Core (Last Call)

r=timeless sr=jst


git-svn-id: svn://10.0.0.236/trunk@143619 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-12 02:54:16 +00:00
alecf%flett.org
1c89787dc0 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +00:00
bryner%netscape.com
0c66a2052e Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00