dbaron%dbaron.org
45d0672c0d
Fix incorrect string conversion. b=314850 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@184084 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-03 07:19:34 +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
dbaron%dbaron.org
ce56186069
Use PRInt32 instead of PRUnichar to match everything else and handle EOF correctly. b=305947 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@179127 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-27 05:59:51 +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
dbaron%dbaron.org
538954918b
Strings terminated by a newline instead of a closing quote should be handled as errors, not strings. b=286262 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@170721 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-15 18:58:36 +00:00
bzbarsky%mit.edu
d72251c48a
Make CSS scanner build when CSS error reporting is disabled too. Bug 279323,
...
patch by Alex Vincent <ajvincent@gmail.com>, r=dbaron, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168167 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-22 04:52:05 +00:00
darin%meer.net
86a93a5874
fixes bug 263360 "Make CallCreateInstance use NS_GetComponentManager instead of nonfrozen/deprecated nsComponentManager symbols" r=bsmedberg sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@165662 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 20:53:38 +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
8552a17451
Add helper functions that make it easier to cache factories. b=261310 r=darin
...
git-svn-id: svn://10.0.0.236/trunk@163132 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-02 00:44:13 +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
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