41 Commits

Author SHA1 Message Date
sharparrow1%yahoo.com
fe5d6d86f0 Bug 393499: Clean up character lookup in nsCSSScanner. r=bzbarsky, sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@233090 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-26 02:20:27 +00:00
sharparrow1%yahoo.com
5b5dfe183a Bug 393286: Make nsCSSScanner::Read regularize newlines. r+sr=bzbarsky, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232988 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 23:01:52 +00:00
sharparrow1%yahoo.com
ccecfafc90 Bug 393080: Make count and offset in nsCSSScanner unsigned. r+sr=bzbarsky, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232867 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-22 17:32:59 +00:00
sharparrow1%yahoo.com
13e2702914 Bug 392840: Get rid of nsCSSScanner::Unread. r+sr=bzbarsky, r+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232467 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-21 18:29:50 +00:00
dbaron%dbaron.org
a02fd2d2f8 File comments that show up in LXR and provide a quick summary of what's in each file.
git-svn-id: svn://10.0.0.236/trunk@192979 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 05:47:31 +00:00
bzbarsky%mit.edu
af2cb40df0 Make sure that CSS escapes don't introduce UTF16 surrogates into the character
stream.  Bug 316394 final patch, r=smontagu, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@184819 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 15:17:00 +00:00
bzbarsky%mit.edu
f80c7c537d Make parsing out of a string just parse out of the string instead of wrapping
it in a stream.  Bug 314920, patch by Alfred Kayser <alfredkayser@nl.ibm.com>,
r=dbaron, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@184431 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 22:26:06 +00:00
dbaron%dbaron.org
0b167b55e7 Only accept a decimal point as part of a number when there are digits after it. Remove unused IS_ALPHA. b=306504 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@179391 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 16:15:58 +00:00
bzbarsky%mit.edu
92b9eb9e93 Escapes should be allowed to start an id. Bug 299148, r+sr=dbaron, a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176257 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 20:49:34 +00:00
dbaron%dbaron.org
effc175afd Handle unterminated strings in CSS by using an additional error token type. b=286262 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@170886 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-18 06:56:56 +00:00
bzbarsky%mit.edu
cde277f1cf Don't create new nsCSSScanners all the time. Just make nsCSSScanner a
non-pointer member of nsCSSParser so when we recycle parsers scanners get
recycled automatically.  Bug 263959, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163709 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 03:30:55 +00:00
dbaron%dbaron.org
b791c16965 Move CSS error reporting functions from parser to scanner so that scanner can report errors, and fix up the one existing error report in the scanner that I'd forgotten about. b=262249 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@163612 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 18:44:14 +00:00
dbaron%dbaron.org
58f19edbad Improve performance of CSS error reporting. b=261283 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162996 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 05:18:05 +00:00
dbaron%dbaron.org
40677d0de3 Turn on CSS error reporting. b=65469 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162579 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 04:41:42 +00:00
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
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
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
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
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
sfraser%netscape.com
ff5c1dcc81 Fix for bug 115157 -- shrink data structures by converting PRBool to PRPackedBool. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@110494 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-14 23:10:42 +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
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
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
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
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
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
a56e7c62ac added helper method to token
git-svn-id: svn://10.0.0.236/trunk@34566 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:27:01 +00:00
peterl%netscape.com
97c2dbe99d Added token append to string
Improved handling of bad strings
Improved handling of escapes


git-svn-id: svn://10.0.0.236/trunk@19971 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 21:47:48 +00:00
peterl%netscape.com
6bb837e2c4 improvements to parsing @import, HTML comments and identifiers
git-svn-id: svn://10.0.0.236/trunk@19402 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:59:51 +00:00
brade%netscape.com
eea6e4ca83 remove extra comma to reduce warnings on Mac
git-svn-id: svn://10.0.0.236/trunk@16745 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-21 16:39:17 +00:00
peterl%netscape.com
f7190f6f47 added CSS2 property handling
git-svn-id: svn://10.0.0.236/trunk@13513 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 23:22:40 +00:00
peterl%netscape.com
ad7699672b handle HTML comment tags as whitespace
git-svn-id: svn://10.0.0.236/trunk@11013 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 01:50:51 +00:00
kipp
fb1503758e moved to pub
git-svn-id: svn://10.0.0.236/trunk@165 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:24:54 +00:00