Michael Ventnor
0523fe3efe
Bug 446569 - Implement prefixed CSS3 columns shorthand r=dbaron
2011-08-23 14:18:22 +10:00
Mats Palmgren
beabba5960
Bug 677582 - Implement CSS3 text-overflow: <left> <right> in the style system. r=dbaron
2011-08-20 22:41:39 +02:00
L. David Baron
c6499ed3ce
Media queries spec defines <resolution> values as allowing <number>, not just <integer>. (Bug 677642) r=bzbarsky
2011-08-11 14:25:13 -07:00
Matt Woodrow
b84eabcf4a
Bug 505115 - Part 12a - Implement -moz-perspective-origin style property. r=dbaron
2011-08-03 15:04:24 +12:00
Matt Woodrow
236f72943c
Bug 505115 - Part 11a - Add nsCSSValueTriplet and optionally read a z component to -moz-transform-origin. r=dbaron
2011-08-03 15:04:23 +12:00
Matt Woodrow
b4bfd8dd6a
Bug 505115 - Part 9 - Implement the perspective() transform function and the perspective CSS property. r=dbaron
2011-08-03 15:04:22 +12:00
Matt Woodrow
c2d638a2ab
Bug 505115 - Part 6 - Implement the 3d -moz-transform functions. r=dbaron
2011-08-03 15:04:19 +12:00
arno renevier
8ed39834bd
Bug 669299 - Remove unneeded nsPrintfCString.h includes. r=bsmedberg
2011-07-21 04:37:31 +02:00
Matheus Kerschbaum ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
1b406143bc
Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron
2011-06-20 16:47:09 -07:00
L. David Baron
94572e57cf
Fix error in comment. r=bzbarsky
2011-06-12 18:52:32 -07:00
Matheus Kerschbaum
c0decf640b
Bug 660762 - Remove --disable-mathml support. r=roc
2011-06-02 13:11:33 +02:00
Ed Morley
f13392fb42
Bug 614515 - Remove MOZ_SVG conditions. r=roc
2011-05-30 09:34:50 +02:00
Zack Weinberg
2f9f710588
Bug 541496 part 6: remove no-longer-used stream-processing code from css::Loader and nsCSSParser. r=bzbarsky
2011-05-18 21:22:59 -04:00
Zack Weinberg
e852e1fb26
Bug 541496 part 1: add an overload of nsCSSParser::Parse() that takes a string rather than a stream; rename both methods ParseSheet(); change calling convention of the older overload for the templated implementation's sake. r=bzbarsky
2011-05-18 21:22:59 -04:00
Boris Zbarsky
d034eefa80
Bug 597291. Create nsIURI objects lazily for nsCSSValue::URL, so that we don't pay the cost of creating the ones we don't actually need. r=dbaron
...
In the new setup, the mURL member of nsCSSValue::URL stores either the actual URI pointed to or the base URI; a boolean flag keeps track of which is stored. Consumers use GetURI() to get the URI instead of raw access to mURI, and GetURI calls NS_NewURI as needed.
2011-05-11 11:28:53 -04:00
L. David Baron
9d0767783c
-moz-animation-play-state should not be part of the -moz-animation shorthand. (Bug 654890) r=bzbarsky
2011-05-09 15:02:35 -04:00
L. David Baron
8a90d74ad2
Unify positive-nonzero value restriction (used for integers) with one-or-larger value restriction (used for floats) as a single one-or-larger value restriction. (Bug 653842, patch 2) r=bzbarsky
2011-05-09 15:02:35 -04:00
Ms2ger
6bc5540bc3
Bug 414638 - Disallow mixed space/comma syntax for CSS rect() value; r=dbaron
2011-05-08 20:14:16 +02:00
Craig Topper
c3d4c659c7
Bug 648925 - Part 1: Change uses of nsICSSRule to css::Rule. r=bzbarsky
2011-04-07 18:23:46 -07:00
Yury
fed2749368
Bug 451165. Fix ParseColorString to report errors when there's garbage at the end of the color. r=dbaron
2011-05-05 17:12:04 -04:00
L. David Baron
6c68aef211
Add support for regexp() function in @-moz-document rule. (Bug 398962) r=bzbarsky
2011-04-28 10:21:37 -07:00
Masayuki Nakano
1adf21f3e7
Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky
2011-04-23 14:16:41 +09:00
L. David Baron
dad5a358cd
Add diagnostic for nested @-rules that are ignored. (Bug 652014) r=bzbarsky
2011-04-21 20:17:32 -07:00
L. David Baron
72447213b1
Remove parsing and storage code for CSS 2.0 aural properties. (Bug 649119) r=bzbarsky
2011-04-21 20:17:32 -07:00
L. David Baron
d177e3432d
ifdef CSS animations so that the feature can be backed out by flipping the switches in configure.in and then reverting the changes to the following four files appropriately: nsIDOMCSS2Properties.idl, nsIDOMCSSRule.idl, property_database.js, test_transitions_computed_values.html. (Bug 435442, patch 15) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
608bc593d5
Implement parsing and storage of @keyframes rule. (Bug 435442, patch 5) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
fa6f166e61
Implement parsing and computation for the new properties in css3-animation. (Bug 435442, patch 1) r=bzbarsky
2011-04-11 23:18:42 -07:00
L. David Baron
7bee896472
Implement step-start, step-end, and steps() timing functions. (Bug 435442, patch 0) r=bzbarsky
2011-04-11 23:18:42 -07:00
Craig Topper
25cb0ebb8b
Bug 645956 - Part 5: Remove NS_NewCSSCharsetRule, r=bzbarsky
2011-03-22 23:20:09 -07:00
Craig Topper
f6a3dfccf4
Bug 645956 - Part 3: Remove NS_NewCSSNamespaceRule, r=bzbarsky
2011-03-22 22:23:04 -07:00
Craig Topper
de8f5093de
Bug 645956 - Part 2: Remove NS_NewCSSImportRule, r=bzbarsky
2011-03-22 22:22:59 -07:00
Craig Topper
6096667acd
Bug 645956 - Part 1: Remove NS_NewCSSStyleRule, r=bzbarsky
2011-03-22 19:56:47 -07:00
Craig Topper
81dc782eed
Bug 577974 - Part 3: Rename nsCSSDocumentRule and nsCSSMediaRule, r=bzbarsky
2011-03-17 22:18:08 -07:00
Craig Topper
3265d1070e
Bug 577974 - Part 2: Remove nsICSSGroupRule, r=bzbarsky
...
--HG--
rename : layout/style/nsICSSGroupRule.h => layout/style/GroupRule.h
2010-08-07 22:28:33 -07:00
Daniel Holbert
04f492c512
Bug 645750: Remove unused variables 'variantMask' and 'table' from nsCSSParser. r=dbaron
2011-03-29 09:53:09 -07:00
L. David Baron
a1b15c117e
Remove the datastruct_ and member_ fields of the CSS_PROP macro. (Bug 645620, patch 5) r=bzbarsky
2011-03-28 16:07:27 -07:00
Boris Zbarsky
6cfa5555c3
Bug 602341 part 5. Get rid of some pseudoclass atoms in the CSS parser. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
7f04a7d94e
Bug 602341 part 4. Drop the nsIAtom arguments to AddPSeudoClass. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
f677f9d256
Bug 602341 part 2. Switch tree pseudoelements to using an nsAtomList (mClassList, to be exact), not an nsPseudoClassList (mPseudoClassList), for their list of atoms. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
d133473456
Bug 602341 part 1. Switch the pseudoclass Has*Arg functions from atoms to pseudoclass types. r=dbaron
2011-03-23 09:52:24 -04:00
Craig Topper
f73d0bfb43
Bug 577002 Part 2: Remove nsICSSImportRule. r=bzbarsky
...
--HG--
rename : layout/style/nsICSSImportRule.h => layout/style/ImportRule.h
2011-03-17 13:41:52 -04:00
Craig Topper
5fd4236789
Bug 576877 Part 2: Remove nsICSSNameSpaceRule. r=bzbarsky
...
--HG--
rename : layout/style/nsICSSNameSpaceRule.h => layout/style/NameSpaceRule.h
2011-03-17 13:41:52 -04:00
L. David Baron
6f8a7f7e04
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
276bc2fc4e
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
7366e14023
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
3ec2ecbf58
Use GatherURL in ParseNameSpaceRule and ParseImageRect, and rename GatherURL to ParseURLOrString for clarity. (Bug 604179, patch 1) r=bzbarsky
...
Note that this adds a missing UngetToken(), which affects the other
consumer of GatherURL, parsing of @import rules.
2011-03-11 11:29:44 -06:00
Craig Topper
678b9c7c11
Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
...
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
L. David Baron
949c14cb64
Use ParseSingleValueProperty for the components inside the 'transition' shorthand as well. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
0f0c809126
Make generic mechanism for parsing lists of single values with ParseVariant. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
9b37832256
Drive the ParseVariant calls in ParseSingleValueProperty from data rather than a big switch. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
92c4c1e812
Separate properties that are parsed in ParseSingleValueProperty with something other than ParseVariant. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
1b6756da8d
Separate the non-property parsed in ParseSingleValueProperty. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
43d08d340f
Disable parsing of 'marker', 'run-in', and 'compact' in a less hacky way. (Bug 636029) r=bzbarsky
...
This simply removes all the code for the values. This removes a
special-case that would otherwise need to become more complicated in a
later patch in this series.
2011-03-05 09:58:33 -08:00
L. David Baron
2167602644
Add parse types for CSS properties so we don't parse them in one huge switch. (Bug 636029) r=bzbarsky
...
With this patch, every CSS property is required to have one of the parse
type values (CSS_PROPERTY_PARSE_{FUNCTION,VALUE,INACCESSIBLE}) in its
flag bits. This avoids needing a switch in
CSSParserImpl::ParseProperty(nsCSSProperty).
Note that this reserves more space in CSS_PROPERTY_PARSE_PROPERTY_MASK
than appears to be necessary; that space will be used in a later patch
in this series.
2011-03-05 09:58:33 -08:00
Boris Zbarsky
f777ddac6c
Bug 616137. Skip to the nearest ']' when parsing an attr selector fails. r=dbaron
2011-03-04 10:27:02 -05:00
L. David Baron
f2adcfab27
-moz-box-ordinal-group should not accept 0, since the code that uses the property ignores values of 0. (Bug 636034) r=bzbarsky
2011-03-03 13:18:42 -08:00
L. David Baron
81285a506b
Fix skipping of @-rules that are inside blocks to conform to new rule in CSS 2.1, which says that we must look for end-of-outer-block in addition to a semicolon or a block. (Bug 604175) r=bzbarsky
...
This fixes http://test.csswg.org/suites/css2.1/20110111/html4/at-rule-013.htm
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
L. David Baron
471f66cce0
Make GatherMedia() stop at block or semicolon in invalid cases. (Bug 604172) r=bzbarsky
...
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
L. David Baron
c1f0fe176f
Add missing UngetToken() for invalid contents of @charset rule. (Bug 604172) r=bzbarsky
...
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
Zack Weinberg
eadfd13629
Bug 631615: suppress CSS parser diagnostics in ParseSelectorString. r=dbaron a2.0=dbaron
2011-02-04 14:17:00 -08:00
L. David Baron
639cdb33d9
Correct handling of unitless zero in calc() expressions. (Bug 595648) r=bzbarsky a=blocking2.0:betaN+
...
This ensures that we treat a unitless zero as a number rather than a
length inside of calc() expressions. This causes both the acceptance of
previously-rejected expressions (such as -moz-calc(0 * 1em)) and the
rejection of previously-accepted ones (such as -moz-calc(0 + 1em)).
2010-12-30 12:59:33 -05:00
L. David Baron
c64142dd70
In contexts where the CSS parser accepts numbers and lengths, treat unitless zero as a number rather than a length. (Bug 595648) r=bzbarsky,dholbert a=blocking2.0:betaN+
...
This patch has the side-effect of changing the representation of '0'
values in properties added by SVG to use the number representation
rather than the length representation. This requires marking the
stroke-dashoffset:0 test in test_value_computation.html as known to
fail, since computed style code now returns 0 rather than 0px, and also
requires changing some inputs and results in some SMIL tests (which
seems like it's showing a bug that we can't interpolate between
equivalent values when we ought to be able to do so).
2010-12-30 12:59:33 -05:00
Mihai Sucan
743a3b1798
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
Daniel Holbert
0a34a22927
Bug 615977: Make nsCSSValue::BufferFromString() return an already_AddRefed pointer. r=dbaron a=roc
...
--HG--
extra : rebase_source : b4048d8fbde522f05a01df693887e0e26a5afb97
2010-12-05 13:17:29 +00:00
L. David Baron
a31dcce1eb
Remove support (style system only) for 'wider' and 'narrower' values of 'font-stretch'. (Bug 604816) r=jdaggett a2.0=joedrew
2010-11-10 07:49:52 -08:00
Ginn Chen
285b0ccda4
Bug 590436 nsCSSParser.cpp failed to compile with Sun Studio compiler r=roc a=benjamin
2010-11-09 18:16:18 +08:00
Jim Mathies
55b9f24b32
Bug 543910 - Layout support for -moz-windows-theme. r=dbaron, a=final.
2010-10-09 15:53:45 -05:00
L. David Baron
4bf96ebd3a
Remove null-checks for infallible array allocations. (Bug 520234) r=bzbarsky a=blocking2.0:beta7
2010-09-15 08:11:27 -07:00
L. David Baron
22f1628b98
Add a fallible version of nsCSSValue::Array::Create. (Bug 520234) r=bzbarsky a=blocking2.0:beta7
2010-09-15 08:11:26 -07:00
L. David Baron
d4d2946639
Support calc() on background-position, background-size, -moz-transform-origin, and background-image gradient stop positions. (Bug 594934) r=bzbarsky a=blocking2.0:betaN
...
(Note: this also depends on the change to nsStyleAnimation.cpp's StyleCoordToValue in bug 520234 and on other changes in that bug.)
2010-09-15 08:11:26 -07:00
Josh Matthews
cbd5e1317d
Bug 474356 - Add -moz-device-pixel-ratio media query. r=dbaron a=approval2.0
...
--HG--
extra : rebase_source : 3a477fe6eab09f693538008aafa9c8bf880597b1
2010-09-10 16:27:52 -04:00
Josh Matthews
dcd679e6db
Backed out changeset ec2ffd935bd9 a=test-bustage
2010-09-11 21:04:09 -04:00
Josh Matthews
03f3add9c1
Bug 474356 - Add -moz-device-pixel-ratio media query. r=dbaron a=approval2.0
...
--HG--
extra : rebase_source : 1455dfbf13b66ac58cd2a66514c88adc76ff1a6c
2010-09-11 19:21:48 -04:00
L. David Baron
8e923adf2c
Remove support for min() and max() in calc(): remove support for parsing and storage. (Bug 363249) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-11 09:27:12 -07:00
Zack Weinberg ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
8537cb241d
Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6
...
This was generated with the command:
LC_ALL=C grep -irlEZe '[-_]moz[-_]border[-_]radius([-_](top|bottom)(right|left))?' * | xargs -0 perl -pi -e \
's/-moz-border-radius-(top|bottom)(left|right)/border-${1}-${2}-radius/gi;
s/_moz_border_radius_(top|bottom)Right/border_${1}_right_radius/g;
s/_moz_border_radius_(top|bottom)Left/border_${1}_left_radius/g;
s/-moz-border-radius/border-radius/gi;
s/_moz_border_radius/border_radius/g;'
2010-09-09 08:21:47 -07:00
L. David Baron
d282153a9d
Add calc() support for two properties I missed: outline-width and column-gap. (Bug 363249) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
7a0e99bcfb
Negative values for stroke-dasharray should be rejected. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-09 08:21:46 -07:00
L. David Baron
b157c42495
Add support for calc() on -moz-border-radius and -moz-outline-radius. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6
2010-09-09 08:21:45 -07:00
L. David Baron
b221c0b0c0
Add support for calc() to 'vertical-align' and 'text-indent'. (Bug 585715) r=bzbarsky a2.0=blocking:beta6+
2010-08-31 12:05:12 -04:00
L. David Baron
374fca8e4f
Add support for calc() to the '{margin,padding}-{top,right,bottom,left}' and '-moz-margin-{start,end}' properties. (Bug 585715) r=bzbarsky a2.0=blocking:beta6+
2010-08-31 12:05:12 -04:00
Boris Zbarsky
98047c9c5f
Bug 589672 followup. Don't unget on code paths where it's already been handled for us. Fixes test orange. r+a=dbaron
2010-08-25 17:10:11 -04:00
Boris Zbarsky
ea10f33cc0
Bug 589672. Parsing of malformed namespace rules can skip over too many tokens while recovering. r=dbaron, a=dbaron
2010-08-25 14:54:48 -04:00
L. David Baron
999bb0be9f
Add support for calc() to the 'top', 'right', 'bottom', and 'left' properties. (Bug 585715) r=bzbarsky a2.0=blocking+
2010-08-25 12:17:56 +02:00
L. David Baron
89545b0362
Add support for calc() to the 'min-width' and 'max-width' properties. (Bug 585715) r=bzbarsky a2.0=blocking+
2010-08-25 12:17:56 +02:00
L. David Baron
fce97072e6
Add support for calc() to the 'height', 'min-height', and 'max-height' properties. (Bug 585715) r=bzbarsky a2.0=blocking+
2010-08-25 12:17:55 +02:00
Zack Weinberg
d87b522209
Bug 576044 (10/12): Don't directly manipulate the contents of mTempData in the CSS parser. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
a2f399b4ed
Bug 576044 (9/12): Add an AddLonghandProperty method to nsCSSExpandedDataBlock. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
fa13062b84
Bug 576044 (8/12): remove the last MoveValue call from the CSS parser. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
f892a0765b
Bug 576044 (6/12): remove vestiges of nsCSSType. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
ca47f883ec
Bug 576044 (5/12): eliminate ValueList as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
69b647977d
Bug 576044 (4/12): eliminate ValuePairList as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
124282380a
Bug 576044 (3/12): eliminate Rect as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
c95db1a5f9
Bug 576044 (2/12): eliminate ValuePair as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
565ea99bfc
Bug 576044 (1/12): Move all the CSS 'storage types' (rect, value pair, etc) to nsCSSValue.h and their code to nsCSSValue.cpp. r=dbaron a2.0=dbaron
2010-08-19 15:33:43 -04:00
Robert O'Callahan
049e9fe833
Bug 537890. Part 4.5: Create 'mozmm' unit for physical millimeters on screen devices. r=dbaron
2010-08-13 21:58:02 +12:00
L. David Baron
bdab2e0934
Correct parenthesis-matching inside of :not(). (Bug 586070) r=bzbarsky a2.0=bsmedberg
2010-08-15 08:42:29 -04:00
Robert O'Callahan
25324c072d
Backing out bug 584282 and bug 537890
2010-08-14 02:35:06 +12:00
Markus Stange
fae48f3bbd
Bug 506826 - Parsing for background-image: -moz-element(#elementID). r=dbaron
2010-08-13 15:33:37 +02:00
L. David Baron
2a023744e6
Add support for calc() to the 'width' property. (Bug 585715) r=bzbarsky a2.0=blocking2.0+
2010-08-11 12:32:53 -07:00
L. David Baron
f88364d08c
Fix places where we should skip to a closing parenthesis during errors parsing functions. (Bug 575672) r=bzbarsky a2.0=blocking2.0+
2010-08-11 12:32:52 -07:00
L. David Baron
a286bcfd04
CSS transition timing functions should not allow X arguments to cubic-bezier() outside of 0-1. (Bug 575672) r=bzbarsky a2.0=blocking2.0+
2010-08-11 12:32:52 -07:00
Kyle Huey
65b4e6c0c6
Bug 578714: Stop doing Unicode-aware case-folding inside layout/style. r=zwol sr=bz
2010-08-02 15:19:04 -07:00
Zack Weinberg
9ccd63412b
Bug 581579: fix error recovery in parsing of CSS priority suffix. r+a=dbaron
2010-08-04 12:27:05 -07:00
Zack Weinberg
4f39493716
Bug 569719 part 15: Always copy the entire css::Declaration before changing it in any way. r=dbaron
2010-07-23 11:00:49 -07:00
Zack Weinberg
99904c8b6e
Bug 569719 part 13: move nsCSSParser methods that manipulate data blocks into the appropriate nsCSS*DataBlock classes. r=dbaron
2010-07-23 11:00:44 -07:00
Zack Weinberg
4a58609d8c
Bug 569719 part 12: replace nsCSSParser::ClearTempData with explicit use of mTempData.ClearProperty (and make that method handle shorthands). r=dbaron
2010-07-23 11:00:42 -07:00
Zack Weinberg
143a4b55b1
Bug 569719 part 11: take the fast path in ParseProperty for !important replacing !important, as well as normal replacing normal. r=dbaron
2010-07-23 11:00:39 -07:00
Zack Weinberg
793c8d0dc0
Bug 569719 part 10: refactor parsing of !important and the end of a property declaration. r=dbaron
2010-07-23 11:00:37 -07:00
Zack Weinberg
b184cb662d
Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron
2010-07-23 11:00:34 -07:00
Zack Weinberg
2d38832142
Bug 569719 part 5: in nsCSSValueList and nsCSSValuePairList, convert Equal() to operator==, and remove unnecessary argument from Clone(). r=dbaron
2010-07-23 11:00:24 -07:00
Zack Weinberg
85cd8e693c
Bug 569719 part 3: collapse nsDOMCSSDeclaration::ParseDeclaration into its sole caller (nsDOMCSSDeclaration::SetCSSText); remove always-constant flag arguments to nsCSSParser::ParseAndAppendDeclaration; rename that method to ParseDeclarations. r=dbaron
2010-07-23 11:00:19 -07:00
Robert O'Callahan
46ae2ef8d0
Bug 537890. Part 4.5: Create 'mozmm' unit for physical millimeters on screen devices. r=dbaron
2010-08-13 21:58:02 +12:00
Kyle Huey
02f6c3eb51
Backed out changeset 9e87c3efc33b
2010-07-29 16:01:41 -07:00
Kyle Huey
330a1072b2
Bug 578714: Stop doing Unicode-aware case-folding inside layout/style. r=zwol sr=bz
...
--HG--
extra : rebase_source : 7d5f43bf8d7d109c9669db68589e26554df9a250
2010-07-29 12:41:04 -07:00
Zack Weinberg
2f4426c2f1
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
d60d9e623f
Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron
2010-06-28 15:49:35 -07:00
Craig Topper
9855496f0b
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
d34dd05fe1
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
30d39f10f2
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
cd7fdfd709
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
f081169855
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
534169bd6e
Rename -moz-background-size to background-size. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
7a021d9262
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
1118f60946
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
db7a6cb346
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
13edc8e9a6
Add -moz-background-clip: content. (Bug 549809) r=roc
2010-06-08 18:44:32 -07:00
Mounir Lamouri
9b26ae26de
Bug 569337 - Fix compilation issues when SVG and SMIL are disabled. r=dbaron
2010-06-06 19:45:18 +02:00
L. David Baron
34387c7bbb
Revert changes in 0ff87d9d2d73 (Bug 541434) and adjust tests appropriately. (Bug 569646) r=zwol
2010-06-03 13:11:35 -07:00
Craig Topper
810d12acf5
Bug 569181. nsCOMPtr<nsMediaList> should be nsRefPtr. r=dbaron
2010-06-01 11:50:10 +12:00
Craig Topper
ef96f55ca1
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
bd3c6ba927
DeCOMtaminate nsIStyleSheet method signatures. (Bug 239008) r=dbaron
2010-05-12 13:18:47 -07:00
Craig Topper
0712e1b438
Inline a few methods in nsCSSStyleSheet. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
Craig Topper
b08d6c5ef5
Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
Craig Topper
55e9fbfa98
DeCOMtaminate CSSStyleSheet method signatures. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
L. David Baron
dcc4af33b9
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
97f744099a
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
a834b40a01
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
454d6dd6d0
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
328cba210e
Implement parsing of calc(). (Bug 363249) r=bzbarsky
2010-05-11 08:49:43 -07:00
L. David Baron
b9449d47f3
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
0b6c0a8e57
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
fc45a2cee3
Bug 556661: make nsDOMCSSDeclaration::SetProperty capable of removing !important. r=dbaron
2010-04-06 15:52:02 -07:00
Mats Palmgren
348f3082bf
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
7529e1fe6e
Bug 508466 part 3: remove eSelectorParsingStatus_Empty. r=dbaron
2010-03-31 11:08:11 -07:00
Zack Weinberg
223c22a153
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
3b15f59e43
Bug 508466 part 1: Refactor nsCSSParser::ParseSelector and nsCSSParser::ParseSelectorGroup for clarity. r=dbaron
2010-03-31 11:08:08 -07:00
Daniel Glazman
e00e8f9100
: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
27dcf91d68
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
9dfde9ca36
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
c601d5fe25
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
6ce13b76a5
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
1fdb0388ba
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
467d6b39a7
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
467d507067
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
082e12c87c
Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE'
2010-02-07 10:52:43 -05:00
Zack Weinberg
1d78bfa0d0
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
3ad3950083
Bug 399495: nsCSSScanner: absorb the '(' when returning a FUNCTION token. r=dbaron
2010-01-27 16:20:04 -08:00
L. David Baron
1dd144bce3
Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky
2010-01-24 12:06:19 -08:00
Robert Longson
fe14f634f1
Bug 537609 - Change to SVG 1.2T stroke-dasharray parsing. r=dbaron
2010-01-06 08:51:45 +00:00
Boris Zbarsky
2688bdb106
Bug 525608 followup. Initialize the variable, and remove the extra branch. r=dbaron
2009-12-12 00:03:17 -08:00
L. David Baron
3e142534cb
Ensure that declarations are mutable before calling SlotForValue. (Bug 522595) r=bzbarsky
2009-12-11 08:13:19 -08:00
Boris Zbarsky
9d4c216817
Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron
2009-12-11 02:37:41 -05:00
Boris Zbarsky
03a58e11a7
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
8202b90f61
Backing out bug 525608 and bug 525952
2009-12-10 18:28:08 -08:00
Boris Zbarsky
f67d744ed4
Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron
2009-12-10 14:36:07 -08:00
Boris Zbarsky
197fdecd49
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
41438063c9
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
43155b03e4
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)
5c26b37323
Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes
2009-11-02 11:36:43 -08:00
Boris Zbarsky
cd6ef92fd0
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
0902ed0ee1
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
3cb73212d1
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
4b1567d0cb
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
86e58b6697
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
f48aeb5191
Make nsMediaFeature::mKeywordTable an mData union. (Bug 522149) r=bzbarsky
2009-10-15 17:23:18 -07:00
L. David Baron
134bc3c1d1
Fix serialization of tree pseudo-elements with arguments. (Bug 521044) r=bzbarsky
2009-10-07 20:22:42 -07:00
L. David Baron
d81b2482f4
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
bb1f9785ae
Make parsing of tree pseudo-elements do proper parenthesis matching. (Bug 521044) r=bzbarsky
2009-10-07 20:22:42 -07:00
David Zbarsky
c16525f18a
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
42c20026e9
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
cc6158ce27
Bug 508179. Implement 'pointer-events:none;' for all elements. r=roc, r=dbaron.
2009-08-26 20:53:35 -07:00
Ryo Kawaguchi
f6adb8114c
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
36c0b9d09f
Bug 443976: Parsing support for the unicode-range: descriptor in @font-face. r=dbaron
2009-08-20 14:52:47 -07:00
Zack Weinberg
926f1a65a4
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
5c542710ad
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
eb2100a887
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)
b603ef9875
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
5c032e5046
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
5de91850ca
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
f89f2766b4
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
1a6e5fcda6
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
389de5e6db
Backed out changeset 358af1196dc2 (bug 499655) until we get bug 507487 sorted out.
2009-07-31 09:39:53 -07:00
David Zbarsky
08428e456d
Bug 499655. Selectors should have dual atoms: HTML and other. r=dbaron
2009-07-30 13:28:42 -04:00
Jeff Walden
1fb19be474
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
69bd6c8514
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
b5276441a8
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
8f1f1d1fd5
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
44a6267b1d
Remove support for fallback background colors. (Bug 496721) r+sr=bzbarsky
2009-06-16 08:00:20 -07:00
Karl Tomlinson
3bbadcfb42
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
3d4a36cc9d
Bug 487188 - PRExpectEndValue is a typo for PEExpectEndValue. r=dbaron
2009-04-17 16:47:45 +02:00