100 Commits

Author SHA1 Message Date
dveditz%cruzio.com
f67665a1ba bug 228856 \0 is ignored in css, patch=zweinberg, r/sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255099 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 20:09:42 +00:00
reed%reedloden.com
2fc59542f5 Bug 419080 - "build with undefined CSS_REPORT_PARSE_ERRORS broken" [p=romaxa@gmail.com (romaxa) r+sr=bzbarsky a1.9=beltzner]
git-svn-id: svn://10.0.0.236/trunk@246400 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-24 07:39:47 +00:00
dbaron%dbaron.org
5295df0606 Do string appending in chunks rather than one character at a time in GatherIdent and ParseString. Allow EOF to terminate strings, per CSS 2.1. b=311566 Patch by Alfred Kayser <alfredkayser@gmail.com>, with some review comments addressed by me. r+sr=dbaron a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@246263 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-22 01:37:04 +00:00
bzbarsky%mit.edu
6c8a73dee7 Change the nsICSSParser::Parse() API so that we don't hand out a stylesheet;
require a stylesheet to be set before calling Parse().  Bug 404315,
r+sr=dbaron, a=beltzner


git-svn-id: svn://10.0.0.236/trunk@245761 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-15 04:21:57 +00:00
reed%reedloden.com
606be5a7ee Bug 413198 - "Make layout.css.report_errors apply to debug build text terminal (stderr)" [p=matt@nightrealms.com (Matthew Cline) r+sr=dbaron a1.9=schrep]
git-svn-id: svn://10.0.0.236/trunk@243724 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-22 11:52:27 +00:00
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
sharparrow1%yahoo.com
8a0c2c2633 Bug 387511: CSs scanner causes parse error for URLs starting with a codepoint > 255. r+sr=bzbarsky, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232372 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-20 03:39:23 +00:00
dbaron%dbaron.org
73ebb32115 Correct punctuation in CSS error reports. b=315250 r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@218817 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 22:49:49 +00:00
sayrer%gmail.com
1173d9db39 bug 361005. remove nsCRT::strdup from layout. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@215393 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-17 01:49:06 +00:00
mats.palmgren%bredband.net
4397567068 Don't let Peek() change 'mLastRead' because it makes a subsequent Unread() restore the wrong char. b=321518 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@198969 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-03 22:29:20 +00:00
gavin%gavinsharp.com
fa5240b78f Bug 265871: rename JavaScript console to Error console, patch by Kurt <supernova_00@yahoo.com>, r=mconnor, ui-r=beltzner, sr=neil/bzbarsky
git-svn-id: svn://10.0.0.236/trunk@198424 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-25 21:22:32 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +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
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
dbaron%dbaron.org
774535f574 Add pref for CSS error reporting and mark as warnings rather than errors. b=264162 r=shaver sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@186630 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-27 22:03:29 +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
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