L. David Baron
|
d866ade4dc
|
Only allow escaped newlines inside strings (which includes url() tokens that contain strings). (Bug 384672, patch 4) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
L. David Baron
|
d515b79069
|
Allow ParseAndAppendEscape to fail when the stream does not contain an escape, and make callers handle this failure appropriately. This changes our behavior when backslash immediately precedes end-of-stream. (Bug 384672, patch 3) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
L. David Baron
|
754745585b
|
Handle failure of GatherIdent, which can (starting with the next patch) fail when the character sequence is not an identifier. Additionally, change the tokenization of a hash (#) followed by a non-name character or EOF to tokenize as DELIM (eCSSToken_Symbol) rather than as eCSSToken_Hash. This only changes the behavior in the EOF case, because the only caller (color parsing) that accepts eCSSToken_Hash (rather than only eCSSToken_ID) checks the length. (Bug 384672, patch 2) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
L. David Baron
|
1ea1c2738c
|
Pass whether we're in a string to ParseAndAppendEscape. (Bug 384672, patch 1) r=bzbarsky
This passes true for string tokens and for url() tokens containing
string, since that is what CSS 2.1 chapter 4's tokenization suggests.
|
2011-05-03 13:19:18 -07:00 |
Masatoshi Kimura
|
d8883cbb58
|
Bug 650653 - Fix test_ident_escaping.html and test_parse_ident.html when using DBCS locales. r=dbaron
|
2011-04-17 23:13:15 +02:00 |
L. David Baron
|
e055e9f2d6
|
Include the opening "url(" in URL and Bad_URL tokens (though the latter do not have a close paren), and make tokenization of url() function be noncontextual, as required by CSS. (Bug 604179, patch 7) r=bzbarsky
Note that tokenization of url-prefix() and domain() remains contextual.
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
|
2011-03-11 11:29:45 -06:00 |
L. David Baron
|
5d6a08f7ca
|
Include the close parenthesis in the URL token and make quoted URLs produce URL tokens rather than string tokens. (Bug 604179, patch 6) r=bzbarsky
|
2011-03-11 11:29:45 -06:00 |
L. David Baron
|
15a86695af
|
Disallow control characters less than space inside unquoted url(), per spec. (Bug 604179, patch 5) r=bzbarsky
|
2011-03-11 11:29:44 -06:00 |
L. David Baron
|
d44c2477e5
|
Fix incorrect indentation in nsCSSScanner::NextURL. (Bug 604179, patch 4) r=bzbarsky
|
2011-03-11 11:29:44 -06:00 |
L. David Baron
|
3fb9258741
|
Move the consumption of beginning whitespace (for all forms) and ending whitespace (for the string form) inside url() into the tokenizer. (Bug 604179, patch 3) r=bzbarsky
|
2011-03-11 11:29:44 -06:00 |
L. David Baron
|
32741bb192
|
Rename CSS tokens to be closer to the names of newly-added tokens (BAD_STRING, BAD_URI) in the CSS 2.1 tokenization. (Bug 604179, patch 2) r=bzbarsky
|
2011-03-11 11:29:44 -06:00 |
Mihai Sucan
|
5676e1f24c
|
Bug 606498 - Make sure the new nsIScriptError2 is used in all possible places- part 3; r=bzbarsky,dbaron,mrbkap sr=jst a=blocking2.0
|
2010-12-20 12:21:59 -04:00 |
Robert Longson
|
a8568a8a12
|
Bug 489871 - CSS comments should not be allowed in presentation attribute values. r=dbaron a=roc
--HG--
extra : rebase_source : 7a41fca1422a024934839ebe0c50cc479223915f
|
2010-12-05 20:37:39 +00:00 |
L. David Baron
|
b9952af8b0
|
Accept PR_INT32_MIN as an integer in CSS. (Bug 602890) r=bzbarsky a2.0=roc
|
2010-10-17 19:36:26 -07:00 |
L. David Baron
|
87521717b3
|
Make NBSP an identifier character per resolution of CSS 2.1 issue 196. (Bug 591589) r=bzbarsky a2.0=roc
|
2010-09-18 11:43:17 -07:00 |
Mitchell Field
|
895792930a
|
Bug 564950 - Make more use of mozilla::services, r=surkov, jst, neil, smontagu, roc, joshmoz, gavin, shaver
|
2010-05-14 18:24:41 +09:00 |
Alfred Kayser
|
efb0f2b494
|
Bug 399495: nsCSSScanner: absorb the '(' when returning a FUNCTION token. r=dbaron
|
2010-01-27 16:20:04 -08:00 |
Zack Weinberg
|
4f7a058ada
|
Bug 522292: Make the table of character properties in nsCSSScanner.cpp a compile-time constant.
|
2009-10-15 13:18:21 -07:00 |
Alfred Kayser
|
6e494268a7
|
Bug 483977 - nsCSSScanner: Simplify IsDigit. r+sr=dbaron
|
2009-09-04 14:25:27 +02:00 |
Zack Weinberg
|
83a772fc35
|
Bug 443976: Parsing support for the unicode-range: descriptor in @font-face. r=dbaron
|
2009-08-20 14:52:47 -07:00 |
L. David Baron
|
19e0871ec3
|
Rewrite parsing of CSS url() function to make it more like the tokenization that's described in the spec. (bug 476856, though originally written for bug 337287) r=bzbarsky
|
2009-08-05 17:45:49 -07:00 |
Boris Zbarsky
|
01b4c24009
|
Bug 503467. Rearrange the code a bit in ParseNumber to make it more readable. r=dbaron
|
2009-07-22 21:35:07 -04:00 |
Boris Zbarsky
|
0aec2cb31c
|
Bug 498559 followup to clean up the code. r=dbaron
|
2009-07-09 20:36:57 -07:00 |
Boris Zbarsky
|
da1fe1d477
|
Bug 498559. Speed up tokenizing numbers in CSS. r+sr=dbaron
|
2009-07-09 18:44:20 -07:00 |
Alfred Kayser
|
237bf9cba3
|
Bug 483971 - nsCSSScanner: cleanup of EatWhiteSpace and removal of EatNewline. r+sr=dbaron
|
2009-04-09 08:46:26 +02:00 |
Boris Zbarsky
|
cb067c4c0f
|
Backed out changeset 3c687f3d4ff4 (bug 482971) on suspicion of causing intermittent leak orange.
|
2009-04-09 11:58:40 -04:00 |
Alfred Kayser
|
5ff59cd88c
|
Bug 483971 - nsCSSScanner: cleanup of EatWhiteSpace and removal of EatNewline. r+sr=dbaron
|
2009-04-09 08:46:26 +02:00 |
L. David Baron
|
4687ab4bb6
|
Avoid recursion after parsing CSS comments. (Bug 473914) r+sr=bzbarsky
|
2009-01-16 19:44:21 -08:00 |
L. David Baron
|
4dc922bd27
|
Remove handling of comments inside CSS url() tokens. (Bug 473914) r+sr=bzbarsky
|
2009-01-16 19:44:20 -08:00 |
Zack Weinberg
|
d70ad578de
|
Bug 228856 - [FIX] \0 in CSS is ignored; r+sr=dbaron
|
2008-10-23 18:29:24 +02:00 |
Arpad Borsos
|
4460c617be
|
Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan
|
2008-10-10 17:04:34 +02:00 |
Zack Weinberg
|
16fa629998
|
bug 452518: move private functions out of nsCSSScanner.h. r+sr=dbaron
|
2008-09-09 21:38:29 -07:00 |
Zack Weinberg
|
0688a23edb
|
bug 452275: eliminate aErrorCode argument to most nsCSSScanner/nsCSSParserImpl functions. r+sr=dbaron
|
2008-09-09 21:38:14 -07:00 |
Robert Longson
|
fe3fda665d
|
bug 302971 - Scientific notation in stroke-width doesnt work r+sr=dbaron
|
2008-08-12 15:02:22 +01:00 |
L. David Baron
|
6616c3d33c
|
Don't printf CSS errors to standard output. (Bug 449429) r+sr=bzbarsky
|
2008-08-06 10:58:14 -07:00 |
Zack Weinberg
|
15d993c3bc
|
Change CSS parser to close constructs open at end-of-file by changing ExpectSymbol not to fail on EOF when expecting one of }, ), ], or ;. (Bug 325064) r+sr=dbaron
|
2008-07-19 15:52:09 -07:00 |
Boris Zbarsky
|
8114e324a8
|
Bug 444838. Correctly stringify all tokens instead of asserting on some. r+sr=dbaron
|
2008-07-11 18:49:46 -04:00 |
Boris Zbarsky
|
1901551a14
|
Make sure to not call Pushback(-1) on EOF error conditions. Bug 422868, r+sr=dbaron
|
2008-07-11 17:02:16 -04:00 |
Daniel Glazman ext:(%20and%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
|
914369776a
|
Implement :nth-child(), :nth-last-child(), :nth-of-type(), :nth-last-of-type(). b=75375 r+sr=bzbarsky
|
2008-06-02 20:17:35 -07:00 |
reed@reedloden.com
|
5d98382f4a
|
Bug 419080 - "build with undefined CSS_REPORT_PARSE_ERRORS broken" [p=romaxa@gmail.com (romaxa) r+sr=bzbarsky a1.9=beltzner]
|
2008-02-23 23:39:47 -08:00 |
dbaron@dbaron.org
|
87b5c5a99a
|
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+
|
2008-02-21 17:37:04 -08:00 |
bzbarsky@mit.edu
|
630092579e
|
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
|
2008-02-14 20:21:57 -08:00 |
reed@reedloden.com
|
24f36a82fa
|
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]
|
2008-01-22 03:52:27 -08:00 |
sharparrow1@yahoo.com
|
60c3597caa
|
Bug 393499: Clean up character lookup in nsCSSScanner. r=bzbarsky, sr+a=dbaron
|
2007-08-25 19:20:27 -07:00 |
sharparrow1@yahoo.com
|
02d501373b
|
Bug 393286: Make nsCSSScanner::Read regularize newlines. r+sr=bzbarsky, a=dbaron
|
2007-08-23 16:01:52 -07:00 |
sharparrow1@yahoo.com
|
a44bf5795e
|
Bug 393080: Make count and offset in nsCSSScanner unsigned. r+sr=bzbarsky, a=dbaron
|
2007-08-22 10:32:59 -07:00 |
sharparrow1@yahoo.com
|
0f4595bc4a
|
Bug 392840: Get rid of nsCSSScanner::Unread. r+sr=bzbarsky, r+a=dbaron
|
2007-08-21 11:29:50 -07:00 |
sharparrow1@yahoo.com
|
fe56700772
|
Bug 387511: CSs scanner causes parse error for URLs starting with a codepoint > 255. r+sr=bzbarsky, a=dbaron
|
2007-08-19 20:39:22 -07:00 |
roc+@cs.cmu.edu
|
0054412272
|
Bug 374866. Reftests for text-transform. r=dbaron
|
2007-03-22 16:01:14 -07:00 |
reed%reedloden.com
|
6492be721f
|
Bug 419080 - "build with undefined CSS_REPORT_PARSE_ERRORS broken" [p=romaxa@gmail.com (romaxa) r+sr=bzbarsky a1.9=beltzner]
|
2008-02-24 07:39:47 +00:00 |