Commit Graph

249 Commits

Author SHA1 Message Date
Zack Weinberg
76dbdde0f4 Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron
--HG--
rename : layout/style/nsCSSDeclaration.cpp => layout/style/Declaration.cpp
rename : layout/style/nsCSSDeclaration.h => layout/style/Declaration.h
rename : layout/style/nsCSSLoader.cpp => layout/style/Loader.cpp
rename : layout/style/nsCSSLoader.h => layout/style/Loader.h
2010-06-28 15:49:35 -07:00
Zack Weinberg
9c006a4ff7 Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron 2010-06-28 15:49:35 -07:00
Craig Topper
dcd5047456 Bug 571946 - Let nsICSSRule::GetType return the type as a PRInt32 type instead of taking an outparam for that. r=bz 2010-07-18 16:39:20 +02:00
Jonathan Kew
1341e3f276 bug 511339 - part 1 - implement -moz-font-feature-settings and -moz-font-language-override in CSS. r=dbaron 2010-07-13 21:30:42 +01:00
L. David Baron
dde6ec680a Add support for calc() expressions in translate functions of -moz-transform. (Bug 531344) r=bzbarsky 2010-07-02 21:18:56 -07:00
L. David Baron
3854183740 Allow CSS parser to forbid min()/max() within certain calc() expressions. (Bug 531344) r=bzbarsky 2010-07-02 21:18:56 -07:00
L. David Baron
fbac3bf4e7 Add additional template parameter expectations to ComputeCalc so that its input can be nsCSSValue or nsStyleCoord. (Bug 363249) r=bzbarsky 2010-07-02 21:18:55 -07:00
L. David Baron
9a129faa59 Rename -moz-background-size to background-size. (Bug 549809) r=roc 2010-06-08 18:44:33 -07:00
L. David Baron
dde8361307 Support for background-clip and background-origin in the background shorthand. (Bug 549809) r=roc 2010-06-08 18:44:33 -07:00
L. David Baron
934c377eda Rename properties and values of background-clip and background-origin to match css3-background. (Bug 549809) r=roc 2010-06-08 18:44:33 -07:00
L. David Baron
4547409e45 Remove comments referencing no-longer-existing no-clip value for background-clip. (Bug 549809) 2010-06-08 18:44:32 -07:00
L. David Baron
308b0473d7 Add -moz-background-clip: content. (Bug 549809) r=roc 2010-06-08 18:44:32 -07:00
Mounir Lamouri
51117776b3 Bug 569337 - Fix compilation issues when SVG and SMIL are disabled. r=dbaron 2010-06-06 19:45:18 +02:00
L. David Baron
56ac47d825 Revert changes in 0ff87d9d2d73 (Bug 541434) and adjust tests appropriately. (Bug 569646) r=zwol 2010-06-03 13:11:35 -07:00
Craig Topper
2abf52364b Bug 569181. nsCOMPtr<nsMediaList> should be nsRefPtr. r=dbaron 2010-06-01 11:50:10 +12:00
Craig Topper
3e0e604d67 Convert some callers of methods that changed from returning already_AddRefed<T> to returning T* away from using unneeded nsCOMPtrs. (Bug 239008) r=dbaron 2010-05-17 21:00:40 -07:00
Craig Topper
d02574b6b4 DeCOMtaminate nsIStyleSheet method signatures. (Bug 239008) r=dbaron 2010-05-12 13:18:47 -07:00
Craig Topper
35e0c06e8d Inline a few methods in nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Craig Topper
cb8187eff9 Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Craig Topper
da6721cdc6 DeCOMtaminate CSSStyleSheet method signatures. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
L. David Baron
85e2b41165 Instantiate the calc ops struct rather than a nested data struct inside of it. (Bug 363249) r=bzbarsky 2010-05-11 08:49:44 -07:00
L. David Baron
0f80044b20 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
88044130de 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
7af761111d 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
3981df643f Implement parsing of calc(). (Bug 363249) r=bzbarsky 2010-05-11 08:49:43 -07:00
L. David Baron
a681499b7e 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
a079319f37 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
2ec3bc6f42 Bug 556661: make nsDOMCSSDeclaration::SetProperty capable of removing !important. r=dbaron 2010-04-06 15:52:02 -07:00
Mats Palmgren
57a4d3a783 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
fc83353867 Bug 508466 part 3: remove eSelectorParsingStatus_Empty. r=dbaron 2010-03-31 11:08:11 -07:00
Zack Weinberg
bd2acbcf31 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
8ad7ae46d4 Bug 508466 part 1: Refactor nsCSSParser::ParseSelector and nsCSSParser::ParseSelectorGroup for clarity. r=dbaron 2010-03-31 11:08:08 -07:00
Daniel Glazman
15d5eeac70 :not() selector with no argument should be a parse error. (Bug 553805) r=dbaron
--HG--
extra : transplant_source : J%23a%3C%1EQ%13%F5%DBx%8E%83%A8%09%3A%E1%93t%AF%D2
2010-03-21 15:25:18 -04:00
Neil Deakin
4f0034acef Bug 442228, add -moz-resize property to indicate that elements are resizable, r=dbaron 2010-03-19 07:49:33 -04:00
timeless@mozdev.org
247b83073d Bug 550962 add coverity hint in CSSParserImpl to ignore return values from ParseEnum/ExpectSymbol
r=zwol

--HG--
extra : rebase_source : 5de1af8537fb0ab490cb51550029006e471cbe63
2010-03-12 07:50:10 +01:00
Zack Weinberg
11dc66e189 Part of bug 541496: Don't use the CSS parser's "low level" error flag to signal namespace lookup failure. r=bzbarsky
--HG--
extra : rebase_source : 7e844cd9061aedc36d0e58d699e0ba18ca34cc82
2010-03-05 10:43:50 -08:00
Zack Weinberg
2c3e543d1d Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Zack Weinberg
96887d3f38 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSParser.h => layout/style/nsCSSParser.h
2010-03-02 12:59:32 -08:00
L. David Baron
c3b73f1ff5 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
6eb316c6e1 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
513e9cf886 Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' 2010-02-07 10:52:43 -05:00
Zack Weinberg
78db9dba3f 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
611bb071bf Bug 399495: nsCSSScanner: absorb the '(' when returning a FUNCTION token. r=dbaron 2010-01-27 16:20:04 -08:00
L. David Baron
244a53d5bb Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky 2010-01-24 12:06:19 -08:00
Robert Longson
23ccf8ff6c Bug 537609 - Change to SVG 1.2T stroke-dasharray parsing. r=dbaron 2010-01-06 08:51:45 +00:00
Boris Zbarsky
d01f0e2af4 Bug 525608 followup. Initialize the variable, and remove the extra branch. r=dbaron 2009-12-12 00:03:17 -08:00
L. David Baron
b192684621 Ensure that declarations are mutable before calling SlotForValue. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky
b10330e45f Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky
6ae14f3465 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
e9f228c7d5 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky
c86ac3e140 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky
d458769f84 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
d2de4eeb32 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
194436e18a Bug 526402: Stop accepting unitless 0 for angles, times, and frequencies. r=zwol 2009-11-04 18:36:18 -08:00
Zack Weinberg ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
dbd6355ce6 Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes 2009-11-02 11:36:43 -08:00
Boris Zbarsky
a15350e46e 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
389de9359d 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
6a6d66990d 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
6d5899f9b0 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
5510f297d0 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
b52b7d6d82 Make nsMediaFeature::mKeywordTable an mData union. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
L. David Baron
383e2263fa Fix serialization of tree pseudo-elements with arguments. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
780e6d0206 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
9bc18753bc Make parsing of tree pseudo-elements do proper parenthesis matching. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
David Zbarsky
bb6a0e81f4 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
bd900ff5fd 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
ed42a30cb8 Bug 508179. Implement 'pointer-events:none;' for all elements. r=roc, r=dbaron. 2009-08-26 20:53:35 -07:00
Ryo Kawaguchi
54bb0a0d80 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
63e2075a2a Bug 443976: Parsing support for the unicode-range: descriptor in @font-face. r=dbaron 2009-08-20 14:52:47 -07:00
Zack Weinberg
6ade4eb7d1 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
325ccb4cf2 Fix parenthesis-matching while parsing local() function in @font-face src: descriptor. (Bug 511333) r=zweinberg 2009-08-20 14:52:47 -07:00
Zack Weinberg
f8cb071942 Fix DEBUG-only crash parsing empty 'src' descriptor of @font-face rule. (Bug 511304) r=dbaron 2009-08-20 14:52:47 -07:00
Jonathon Jongsma ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
219a2fe88e Implement CSS transitions: implement the parsing and computation of the transition properties. (Bug 435441) r=bzbarsky 2009-08-20 14:52:47 -07:00
Zack Weinberg
c6caffd207 Bug 431948 - when skipping a malformed ruleset inside an @-rule, do not consume the close brace that ends the @-rule, lest we skip too much; r=dbaron 2009-08-19 15:11:30 +02:00
L. David Baron
7cff5f8599 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
Michael Ventnor
8ae6cd75f4 Bug 479220: Implement support for CSS gradients: -moz-linear-gradient() and -moz-radial-gradient(). r=roc, dbaron 2009-08-01 08:53:40 -07:00
David Zbarsky
92589bee61 Bug 499655: Selectors should have dual atoms so they can correctly (and case-sensitively) match non-HTML elements in text/html documents, part 1. r=dbaron 2009-08-01 08:53:40 -07:00
L. David Baron
36c7b60c0c Backed out changeset 358af1196dc2 (bug 499655) until we get bug 507487 sorted out. 2009-07-31 09:39:53 -07:00
David Zbarsky
eab4105f16 Bug 499655. Selectors should have dual atoms: HTML and other. r=dbaron 2009-07-30 13:28:42 -04:00
Jeff Walden
a24a25ba2e Bug 189519 - Implement CSS3 (-moz- for now)background-size. r=dbaron, other useful review comments from roc/bz 2009-05-28 11:09:05 -07:00
Neil Deakin
5303f25260 Bug 478416, replace chromedir attribute with :moz-locale-dir pseudoclass, r=neil,dao,dbaron,sr=dbaron 2009-07-29 14:33:53 -04:00
Boris Zbarsky
710dcca8d0 Bug 498562. Skip the Expand/Compress cycle in the common case of inline style sets. r+sr=dbaron 2009-07-09 14:50:39 -07:00
Timothy Nikkel
b21de22a53 Bug 488242. Make iframes with semi-transparent backgrounds work correctly by painting all canvas background colors using a dedicated fallback background color display item. r+sr=roc 2009-07-04 21:30:59 +12:00
L. David Baron
0d06184f97 Remove support for fallback background colors. (Bug 496721) r+sr=bzbarsky 2009-06-16 08:00:20 -07:00
Karl Tomlinson
1b9df1cee4 b=481751 block-height line-height for text input and strut baseline for textarea r=bz,sr=dbaron
--HG--
extra : rebase_source : 1241360066ea9387d15c71936da9468399240640
2009-05-19 10:13:12 +12:00
timeless@mozdev.org
9cbbaf5999 Bug 487188 - PRExpectEndValue is a typo for PEExpectEndValue. r=dbaron 2009-04-17 16:47:45 +02:00
Robert Longson
7235fc714e Bug 484150 - support image-rendering attribute. Includes some gfx code by vlad from bug 423756 which is r=joe. The rest is r=dbaron, sr=roc 2009-03-21 15:36:38 +00:00
L. David Baron
d8a2ce67e9 Reject non-positive values for widows and orphans. (Bug 481826) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
b7b6d499e0 Rename ParsePositiveVariant to ParseNonNegativeVariant. (Bug 481826) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
26b11568f1 Fix serialization of the list-style-type part of counter values. (Bug 481591) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
2a6e824389 Split eCSSUnit_String into eCSSUnit_String (with quotes), eCSSUnit_Ident (without quotes), and eCSSUnit_Families (font family list, but not for @font-face descriptor where the single family is stored as eCSSUnit_String). (Bug 481591) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
5d12dd078d Call SetPropertyBit(background_color) when we set data for that property, on the off chance it will fix the intermittent layout/reftests/bugs/289480.html orange. (Bug 322475) 2009-02-20 10:50:25 -08:00
L. David Baron
fa9a21c33d Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 21:29:21 -08:00
L. David Baron
2eb748571c Backed out changeset fde0b361f25e (bug 322475, main patch) due to Mac talos startup failures and hitting the NS_ABORT_IF_FALSE in SetupBackgroundClip, which may be related. 2009-02-19 13:51:46 -08:00
L. David Baron
d9ac02ed8c Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 12:33:09 -08:00
L. David Baron
a91aa25ab0 Back out all 8 changesets that I just landed (bugs 477959, 477961, 322475, 478899, 475215, 478156) again, because Talos Try server builds lie about which changesets they're testing. 2009-02-19 09:06:18 -08:00
L. David Baron
51ef1de194 Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
8b207bcc51 Revert (back out) the previous 11 changesets (bugs 477959, 477961, 477963, 477962, 322475, 478899, 475215, 478156), due to Mac talos orange with (as usual) no useful diagnostic. 2009-02-18 18:59:47 -08:00
L. David Baron
366992262c Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-18 17:13:25 -08:00
Zack Weinberg
41b6ec0b09 Bug 473815 - Improve diagnostics for malformed @font-face rules; r+sr=dbaron 2009-02-12 05:15:56 +01:00