Commit Graph

1270 Commits

Author SHA1 Message Date
L. David Baron
e2325fd566 Add calc() support for 'font-size' property, which is the only property for which percents are computed to lengths in nsRuleNode. (Bug 363249) r=bzbarsky 2010-05-11 08:49:44 -07:00
L. David Baron
9c24653393 Add calc() support for lengths in text-shadow and -moz-box-shadow. (Bug 363249) r=bzbarsky 2010-05-11 08:49:43 -07:00
L. David Baron
a430938a2a Add calc() support for the easiest cases: properties that take lengths but not percentages and take simple values only (-moz-column-rule-width, -moz-column-width, letter-spacing, word-spacing, marker-offset, outline-offset, border-spacing). (Bug 363249) r=bzbarsky 2010-05-11 08:49:43 -07:00
L. David Baron
b012d16029 Implement parsing of calc(). (Bug 363249) r=bzbarsky 2010-05-11 08:49:43 -07:00
L. David Baron
d50ab9146c Implement :-moz-any() selector to allow simplification of user-agent style sheets. (Bug 544834) r=bzbarsky 2010-04-23 19:59:47 -07:00
L. David Baron
f5632352f5 Clean up SkipUntil handling in parsing of pseudo-classes with arguments. (I haven't found any cases where this actually changes behavior, but it's needed for the next patch.) (Bug 544834) r=bzbarsky 2010-04-23 19:59:47 -07:00
Zack Weinberg
b181abece3 Bug 556661: make nsDOMCSSDeclaration::SetProperty capable of removing !important. r=dbaron 2010-04-06 15:52:02 -07:00
Mats Palmgren
dcab92f9c1 Bug 383488: don't accept trailing tokens in 'value' in style.setProperty(prop,value,"important"). r=dbaron 2010-04-01 23:07:40 -07:00
Zack Weinberg
efec4793b7 Bug 508466 part 3: remove eSelectorParsingStatus_Empty. r=dbaron 2010-03-31 11:08:11 -07:00
Zack Weinberg
61fdaeb21c Bug 508466 part 2: In a CSS selector group, use distinct mOperator codes for the descendant combinator (' ') and the end of the chain ('\0'). r=dbaron 2010-03-31 11:08:09 -07:00
Zack Weinberg
0f2079363a Bug 508466 part 1: Refactor nsCSSParser::ParseSelector and nsCSSParser::ParseSelectorGroup for clarity. r=dbaron 2010-03-31 11:08:08 -07:00
Daniel Glazman
a7dfbe1870 :not() selector with no argument should be a parse error. (Bug 553805) r=dbaron 2010-03-21 15:25:18 -04:00
Neil Deakin
0787ffc5a1 Bug 442228, add -moz-resize property to indicate that elements are resizable, r=dbaron 2010-03-19 07:49:33 -04:00
0bf76f4e6c Bug 550962 add coverity hint in CSSParserImpl to ignore return values from ParseEnum/ExpectSymbol
r=zwol
2010-03-12 07:50:10 +01:00
Zack Weinberg
5499c13a01 Part of bug 541496: Don't use the CSS parser's "low level" error flag to signal namespace lookup failure. r=bzbarsky 2010-03-05 10:43:50 -08:00
Zack Weinberg
09642046d8 Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron 2010-03-02 13:00:53 -08:00
Zack Weinberg
7351c020a1 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron 2010-03-02 12:59:32 -08:00
L. David Baron
d20c4bcc86 Make the 'border' shorthand reset -moz-border-image (per recent CSS WG decision) and -moz-border-*-colors. (Bug 482692) r=bzbarsky 2010-02-26 10:35:09 -08:00
Zack Weinberg
cdff08538b Bug 498036: Report malformed URIs in @import rules to the error console, not by setting the parser's low-level error flag. r=bz 2010-02-17 13:02:56 -08:00
Jae-Seong Lee-Russo
f1dbba608c Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' 2010-02-07 10:52:43 -05:00
Zack Weinberg
3e0101b300 Bug 528096: unexpected-token error recovery paths in the CSS parser need to UngetToken() before calling SkipUntil(), for correct behavior when the unexpected token is ( [ { or FUNCTION. r=dbaron 2010-01-27 16:20:05 -08:00
Alfred Kayser
341d203c63 Bug 399495: nsCSSScanner: absorb the '(' when returning a FUNCTION token. r=dbaron 2010-01-27 16:20:04 -08:00
L. David Baron
55ccca2fa3 Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky 2010-01-24 12:06:19 -08:00
Robert Longson
c67c11123e Bug 537609 - Change to SVG 1.2T stroke-dasharray parsing. r=dbaron 2010-01-06 08:51:45 +00:00
Boris Zbarsky
d16bdd0f1e Bug 525608 followup. Initialize the variable, and remove the extra branch. r=dbaron 2009-12-12 00:03:17 -08:00
L. David Baron
2b3403c74e Ensure that declarations are mutable before calling SlotForValue. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky
1f75de4eb6 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky
5bff61e580 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
e28191d463 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky
16009328f7 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky
e6f87ae055 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-10 14:36:05 -08:00
L. David Baron
a867fb1e9b Put the 'normal' values for 'font-weight' and 'font-stretch' into the keyword tables. (Bug 522320) r=dholbert 2009-11-14 19:16:59 -08:00
L. David Baron
898fba9dad Bug 526402: Stop accepting unitless 0 for angles, times, and frequencies. r=zwol 2009-11-04 18:36:18 -08:00
Zack Weinberg
f788a00b30 Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes 2009-11-02 11:36:43 -08:00
Boris Zbarsky
84aed05c4c Bug 524175. Compute weight correctly again for selectors involving pseudo-elements, and fail parsing selectors with more than one pseudo-element. r=zwol 2009-10-23 21:41:59 -04:00
Daniel Holbert
b58d67fdae Bug 522320 bustage fix (handle 'normal' value for font-variant/font-style in two other places). 2009-10-21 17:05:07 -07:00
Daniel Holbert
fadf3209ae Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 2 (handle remaining properties). r=dbaron 2009-10-21 14:57:57 -07:00
Daniel Holbert
08d5b439dd Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 1 addendum (handle font-style, font-variant, overflow). r=dbaron 2009-10-21 14:57:57 -07:00
Daniel Holbert
3cfc69d23b Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 1 (handle single-valued SVG-animatable properties). r=dbaron 2009-10-21 14:57:57 -07:00
L. David Baron
c4d08418bf Make nsMediaFeature::mKeywordTable an mData union. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
L. David Baron
5d05ebd9ee Fix serialization of tree pseudo-elements with arguments. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
e63ec67602 Parse pseudo-elements into their own pointer so we don't have to go through the trouble of removing them from the pseudo-class list. (Bug 520848) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
b19817c483 Make parsing of tree pseudo-elements do proper parenthesis matching. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
David Zbarsky
836ac861dc Bug 507762: Parse CSS style sheets independently of case-sensitivity, and instead check case correctly when using the stylesheets. r=dbaron 2009-09-28 23:07:45 -07:00
Geoff Lankow
c222694ceb Bug 517882: Implement a -moz-tab-size CSS property that specifies the number of spaces between tab stops in preformatted text. r=roc, dbaron 2009-09-26 13:23:47 -07:00
Jonathan Watt
f5c7d20889 Bug 508179. Implement 'pointer-events:none;' for all elements. r=roc, r=dbaron. 2009-08-26 20:53:35 -07:00
Ryo Kawaguchi
877947a93e Implement background-image: -moz-image-rect(), which allows a region of an image to be used as a background image. (Bug 113577) r=roc, dbaron 2009-08-21 13:39:25 -07:00
Zack Weinberg
5dd3db87bf Bug 443976: Parsing support for the unicode-range: descriptor in @font-face. r=dbaron 2009-08-20 14:52:47 -07:00
Zack Weinberg
6ad982c8c0 Fix parenthesis-matching while parsing format() function in @font-face src: descriptor. (Bug 511333) r=dbaron 2009-08-20 14:52:47 -07:00
L. David Baron
56f10b2dba Fix parenthesis-matching while parsing local() function in @font-face src: descriptor. (Bug 511333) r=zweinberg 2009-08-20 14:52:47 -07:00