68 Commits

Author SHA1 Message Date
dbaron%dbaron.org
0c2068f65a Separate sheet URI and base URI for style attributes and for CSS parsing from DOM APIs. b=258707 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162122 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 23:31:48 +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
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
bzbarsky%mit.edu
af7c69e56c Relanding, since backing out did not fix orange. Bug 232691.
git-svn-id: svn://10.0.0.236/trunk@156781 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 20:02:43 +00:00
bzbarsky%mit.edu
3594b59c19 Backing out to attempt to fix Mac orange. Bug 232691
git-svn-id: svn://10.0.0.236/trunk@156776 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 19:26:52 +00:00
bzbarsky%mit.edu
b500ffc684 Convert users of nsC?String(), nsC?AutoString(), and NS_LITERAL_C?STRING("") to
using EmptyC?String instead.  Bug 232691, patch by Charles Fenwick
<clf03f@garnet.acns.fsu.edu>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@156769 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 17:04:53 +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
bzbarsky%mit.edu
3f597c2555 Fix more bustage. Bug 239079. I wish gcc would at least warn on this or
something instead of merrily compiling it....


git-svn-id: svn://10.0.0.236/trunk@154494 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-03 19:01:38 +00:00
bzbarsky%mit.edu
f3dfc01adb Fixing debug build bustage. Bug 239079.
git-svn-id: svn://10.0.0.236/trunk@154490 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-03 17:47:26 +00:00
bzbarsky%mit.edu
668e1489b3 Fix ID selector parsing to check for a valid identifier. Bug 239079,
r+sr=dbaron, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@154486 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-03 17:18:45 +00:00
dbaron%dbaron.org
eb0911d7d5 Fix one more out-of-bounds access to gLexTable. b=233399 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152517 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 19:43:50 +00:00
dbaron%dbaron.org
ecdc074868 Fix another case of out-of-bounds access of gLexTable. b=233399 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152516 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 19:22:47 +00:00
dbaron%dbaron.org
2b5b062b8e Fix crashes caused by out-of-bounds access to gLexTable and some other bugs. b=233399 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152510 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 07:29:42 +00:00
dbaron%dbaron.org
4c629e6e15 Make aErrorCode values nsresult, since that's what they are. Remove obsolete handling of -1 for EOF and now-obsolete TODO list. b=224254 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149269 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 22:48:05 +00:00
bzbarsky%mit.edu
636fa48493 Make some static data const in content. Bug 204532, patch by ataylor@its.to
(Andrew Taylor), r=bzbarsky, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@142936 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-27 03:49:22 +00:00
bzbarsky%mit.edu
e0cdf6ff12 Fix parsing of |url()| to treat it like the URI "" instead of as an error. Bug
203256, r+sr=dbaron, a=brendan


git-svn-id: svn://10.0.0.236/trunk@142595 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-18 14:57:23 +00:00
bzbarsky%mit.edu
61cb208768 Bug 160550 -- implement -moz-hsl() (CSS3 hsl() colors). Implement the parsing end of
-moz-rgba() and -moz-hsla(); the GFX end is bug 147017.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139650 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:43:12 +00:00
alecf%netscape.com
326b7425d7 fix for bug 191416 - clean up nsIUnicharInputStream to make it more like nsIInputStream:
- hide Fill() (or remove it where not necessary)
- add ReadSegments() so that we can do reads without copying
- remove the extra offset parameter to Read()
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@139039 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:54:51 +00:00
bzbarsky%mit.edu
da60b0214a fix bustage....
git-svn-id: svn://10.0.0.236/trunk@136230 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 08:02:17 +00:00
bzbarsky%mit.edu
483d0a23ae Bug 60290 -- comments should not be treated as whitespace. r=glazou, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136228 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 07:19:49 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
dbaron%fas.harvard.edu
121b842e9f Turn on CSS parser error reporting in DEBUG builds. Make unexpected-EOF error messages more informative. b=155855 r=bzbarsky sr=ben
git-svn-id: svn://10.0.0.236/trunk@124827 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:28:58 +00:00
dbaron%fas.harvard.edu
ba70a10942 Add command-line tool for parsing CSS files. b=139943 sr=waterson r=attinasi
git-svn-id: svn://10.0.0.236/trunk@120365 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:03:57 +00:00
dbaron%fas.harvard.edu
b447eec349 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117348 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:56:05 +00:00
dbaron%fas.harvard.edu
27328a7fcd Fix |#ifdef CSS_REPORT_PARSE_ERRORS| (not part of default build) bustage from darin's checkin for bug 124042.
git-svn-id: svn://10.0.0.236/trunk@116126 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 02:25:59 +00:00
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
cathleen%netscape.com
ea31156ed0 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
gerv%gerv.net
ed9b258739 License changes, take 2. Bug 98089. mozilla/content/.
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
dbaron%fas.harvard.edu
649e5141cf Fix bustage from scc's checkin for bug 85271.
git-svn-id: svn://10.0.0.236/trunk@97296 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-17 07:38:01 +00:00
glazman%netscape.com
0f9b6f6318 CSS2+ identifiers should support underscores ; b=74845, r=pierre, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91876 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 11:09:07 +00:00
dbaron%fas.harvard.edu
f3554504c8 Fix CSS_REPORT_PARSE_ERRORS build bustage resulting from string changes.
git-svn-id: svn://10.0.0.236/trunk@88960 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 14:25:11 +00:00
dbaron%fas.harvard.edu
14ad030646 Work in progress on CSS error reporting: fix the known false positives and duplicate messages and improve the error messages. It's still a hack that I wouldn't really want to enable by default, but it should be useful for debugging chrome CSS. r=glazman@netscape.com sr=attinasi@netscape.com b=65469
git-svn-id: svn://10.0.0.236/trunk@88605 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:57:30 +00:00
glazman%netscape.com
0c17ea7bbc enhancement for the 3 new attributes selectors in CSS 3. r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@88435 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:54:04 +00:00
disttsc%bart.nl
d30c2be76b Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 09:26:57 +00:00
dbaron%fas.harvard.edu
5f0a7ab9bd Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@85654 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 23:06:33 +00:00
hewitt%netscape.com
89e5dd1e29 52381 - DOM selectorText implementation, r=attinasi/jst, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@85251 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 04:03:48 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
rayw%netscape.com
31f9bce979 Bug fix for 52648 -- remaining stash of progids which I missed on
the mega-change yesterday.  This will fix a few more issues.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79224 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:20:49 +00:00
dbaron%fas.harvard.edu
3ccf2a2ea4 Clean up reporting of CSS parser errors: Use |nsAReadableString|s and an additional macro to allow all the error reporting to be done by macros. Also clean up a few comments. Not part of the default build (you must define CSS_REPORT_PARSE_ERRORS).
Make namespace prefixes case insensitive within CSS by normalizing to lower-case.  b=35813

r=attinasi


git-svn-id: svn://10.0.0.236/trunk@78476 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 02:05:09 +00:00
dbaron%fas.harvard.edu
58582b97ac Add code to allow the CSS parser to report errors. This code is not enabled by default in any builds, but it could be useful for chrome authors to catch CSS errors. We may want to turn it on in debug builds at some point, but it needs some work first. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@78236 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 02:27:46 +00:00
attinasi%netscape.com
921df5eb29 Change to disallow underscore character in identifiers, as required in the CSS2 spec. Fix contributed by VYV03354@nifty.ne.jp, r=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@68257 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 21:36:49 +00:00
attinasi%netscape.com
5f1b41704f Applied patch from VYV03354@nifty.ne.jp to make class names specified in non-ASCII characters recognizable as parts of selectors. b=38038,35800.
git-svn-id: svn://10.0.0.236/trunk@68153 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 22:12:58 +00:00
dbaron%fas.harvard.edu
6b88c55779 Fix bugs 12398, 12450, and 35215, and comment out some unused code. r=pierre@netscape.com
git-svn-id: svn://10.0.0.236/trunk@67336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:12:25 +00:00
scc%netscape.com
8a7f53cc88 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66101 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 20:15:37 +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
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
de60d2685c Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked.
git-svn-id: svn://10.0.0.236/trunk@46637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:05:05 +00:00