L. David Baron
59f022def6
Bug 989560 patch 4 - Remove most uses of CheckEndProperty()/ExpectEndProperty(). r=heycam
2014-04-01 11:53:32 -07:00
L. David Baron
199afa4b90
Bug 989560 patch 3 - Add one more ExpectEndProperty() call that is needed for variables. r=heycam
...
This adds a check that is currently present in most but not all
codepaths leading to this point, but which patch 4 will remove from many
of those codepaths.
2014-04-01 11:53:32 -07:00
L. David Baron
149e756430
Bug 989560 patch 2 - Don't accept an empty value for font-variant-alternates. r=heycam
...
Had patch 3 not been present, this would be needed to prevent a test
failure with patch 4 (which removes the ExpectEndProperty check from the
CSS_PROPERTY_PARSE_VALUE case in
CSSParserImpl::ParseProperty(nsCSSProperty) since its callers handle
checking for appropriate endings), since the way this function returns
success for empty values leads var() functions alone inside
font-variant-alternates to be rejected, since
CSSParserImpl::ParseProperty(nsCSSProperty) won't try reparsing with
variables.
2014-04-01 11:53:32 -07:00
L. David Baron
e2bf84fbc7
Bug 989560 patch 1 - Make it an error to have an empty item within an animation or transition shorthand. r=heycam
...
This is needed to make the test in the next patch (which tests that we
reject entirely-empty properties) pass.
2014-04-01 11:53:31 -07:00
L. David Baron
fa273c3db2
Bug 988702 patch 3 - Fix missing UngetToken() calls in ParseCounterData(), and avoid evil CheckEndProperty() calls while I'm there. r=heycam
...
I tested that test_property_syntax_errors.html gives a failure on the
new test without the patch, and that the failure is not present with the
patch.
2014-04-01 11:53:31 -07:00
Simon Sapin
119a872512
Bug 978478 part 2: Add support for repeat() in <track-list> (CSS Grid) r=dholbert
2014-03-31 22:49:51 -07:00
Simon Sapin
36398a919d
Bug 978478 part 1: Add support for repeat() in <line-name-list> (CSS Grid) r=dholbert
2014-03-31 22:49:45 -07:00
Simon Sapin
76dab6e7e3
Bug 983175 - Part 2: Add style system support for 'subgrid' in the grid-template* properties. r=dholbert
...
http://dev.w3.org/csswg/css-grid/#subgrids
2014-03-27 11:54:40 -04:00
Simon Sapin
9220ef7f05
Bug 983175 - Part 1: Refactor ParseGridLineNames (CSS Grid). r=dholbert
...
Return a CSSParseResult rather than a bool to distinguish between
an empty list of names '()' and the lack of a list.
2014-03-27 11:54:40 -04:00
Simon Sapin
e2b77f7187
Bug 983175 - Part 0: Rename nsParsingStatus to CSSParseResult. r=dbaron
2014-03-27 11:54:40 -04:00
Simon Sapin
67fad84a78
Bug 984728 - Refactor grid-auto-flow parsing to use ParseBitmaskValues; r=dholbert
2014-03-24 14:26:04 +01:00
Simon Sapin
1dd63c0ce5
Bug 984760 part 2: Use GridTemplateAreasValue though nsRefPtr pointers. r=dholbert
2014-03-21 23:06:16 +08:00
Simon Sapin
4ca8d6c048
Bug 984760 part 1: Rename nsCSSValueGridTemplateAreas to css::GridTemplateAreasValue. r=dholbert
2014-03-21 23:06:13 +08:00
Simon Sapin
697a4d6a75
Bug 981752 part 3: Add the grid shorthand. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
598ed3b0c5
Bug 981752 part 2c: Add the grid-template shorthand. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
7265b46982
Bug 981752 part 2b: Refactor grid-template-{columns,rows} parsing, preparing for the grid-template shorthand. r=dholbert
...
... and a bit of grid-auto-flow, for the grid shorthand.
* Avoid using CheckEndProperty() when possible
* Distinguish between "error" and "not a <track-size>"
* Split out parsing of a <track-list>, given its initial [<line-names>?]
2014-03-21 23:06:12 +08:00
Simon Sapin
c3ce91f54d
Bug 981752 part 1: Add the grid-column, grid-row and grid-area shorthands. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
f487f90c70
Bug 984241: Refactor/optimize grid-template-areas, store number of columns. r=dholbert
...
In the parsing code for grid-template-areas:
* Move some of the processing into the helper function,
so that the grid-template will not have to duplicate it.
* Store the number of parsed columns (and rows),
as they will affect the size of the "explicit grid".
* Use a hash table instead of a linear scan to avoid O(n²)-ish complexity.
2014-03-18 22:05:49 +08:00
Benoit Jacob
46f2fcd439
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-07 12:14:25 -05:00
Benoit Jacob
ae67b77a1c
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-07 12:14:23 -05:00
Peter Chang
a7504a1140
backout of rev 45253e02bde3, fd02f1217e4c, 75217485ce5a b=981804
2014-03-12 15:16:20 +08:00
Simon Sapin
df5c6efc19
Bug 976787 part 5: Add grid-{column,row}-{start,end} and grid-auto-position to the style system. r=dholbert
2014-03-10 15:54:17 -07:00
Simon Sapin
95adb253ac
Bug 976787 part 4: Add the grid-auto-flow property to the style system. r=dholbert
2014-03-10 15:54:16 -07:00
Simon Sapin
32bb962e4a
Bug 976787 part 3: Add the grid-auto-{columns,rows} properties to the style system. r=dholbert
2014-03-10 15:54:15 -07:00
Simon Sapin
c0f201d73c
Bug 976787 part 2: Add the grid-template-areas property to the style system. r=dholbert
2014-03-10 15:54:14 -07:00
Simon Sapin
9c10be3e65
Bug 976787 part 1: Add the grid-template-{columns,rows} properties to the style system. r=dholbert
2014-03-10 15:54:13 -07:00
Benoit Jacob
f1e68e7668
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-07 12:14:25 -05:00
Benoit Jacob
73b34e3d33
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-07 12:14:23 -05:00
Ryan VanderMeulen
c27e336485
Backed out changesets d65a803d2b9a, 9456495d6121, and 73c710ddf3d8 (bug 977757) for Gaia UI test failures.
...
CLOSED TREE
2014-03-06 13:10:20 -05:00
Benoit Jacob
c560c39d3f
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-06 11:38:19 -05:00
Benoit Jacob
7f3cdabc47
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-06 11:38:17 -05:00
L. David Baron
fc1735d601
Bug 978903: Fix some uninitialized variable warnings in the CSS parser. r=heycam
...
The first provides a reasonable default (failure to parse) for the case
of an unknown value type (which should never happen).
The second reorders two failure checks so that the one that returns
early when units is uninitialized happens before the one that looks at
units.
2014-03-04 20:13:20 -08:00
Reuben Morais
16c1e76108
Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
2014-02-27 20:04:46 -03:00
Mats Palmgren
667dfd0408
Bug 966992 - Add a CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS bit for properties that are enabled by a pref but that are always enabled in UA sheets. r=cam
2014-02-22 01:18:23 +00:00
Ehsan Akhgari
a003a30ac7
Backed out 5 changesets (bug 966992, bug 965237) because of a PGO only build failure on Linux, landed on a CLOSED TREE
...
Backed out changeset f11cad93ceee (bug 966992)
Backed out changeset c84d530c9a51 (bug 965237)
Backed out changeset 740b13866bac (bug 966992)
Backed out changeset 8c3420cc77d8 (bug 966992)
Backed out changeset 7ddfc587edda (bug 966992)
2014-02-19 13:28:33 -05:00
Mats Palmgren
962f69f52a
Bug 966992 - Add a CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS bit for properties that are enabled by a pref but that are always enabled in UA sheets. r=cam
2014-02-19 14:14:52 +00:00
Robert O'Callahan
5016a05a35
Bug 968118. Make nsCSSProps keyword tables be int16_t instead of int32_t for a small space win. r=heycam
2014-02-06 00:10:44 +13:00
Nicholas Cameron
a334f75304
Bug 700926. border-image-source css parsing. r=roc
2014-01-31 16:36:42 +13:00
Birunthan Mohanathas
08efb5ff8c
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Benoit Girard
d4f516d8fd
Bug 940842 - 1/3 - Add will-change CSS property - r=dbaron
...
The current spec draft is at:
http://tabatkins.github.io/specs/css-will-change/
This CSS property is disabled by default and can be enabled by toggling:
layout.css.will-change.enabled
2013-11-22 11:48:27 -05:00
Nick Lebedev
2f872fc62f
Bug 795567 - Part 1: Add touch-action css property to the style system. r=dbaron
2014-01-15 10:03:15 -05:00
Frédéric Wang
9c735cc79a
Bug 838506 - Part 1: Add a -moz-math-display property. r=heycam
2014-01-14 09:39:50 -05:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Cameron McCormack
3c88df6757
Bug 731271 - Part 3: Store parsed CSS color values in their original syntactic form. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
15685090e3
Bug 731271 - Part 2: Add new nsCSSValue units to store colors in their original syntactic form. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
98ab6c03e1
Bug 731271 - Part 1: Rename eCSSUnit_Color to eCSSUnit_RGBAColor. r=dbaron
2013-09-16 09:35:48 +10:00
Masatoshi Kimura
c632653e23
Bug 941300 - Make circle radial-gradient invalid if two radii values are given. r=dbaron
2013-12-14 13:22:48 +09:00
Cameron McCormack
da34406ae7
Bug 773296 - Part 27: Support 'unset' in CSS variables. r=dbaron
2013-12-12 13:09:47 +11:00
Cameron McCormack
58fcf43537
Bug 773296 - Part 25: Parse variable declarations in @supports conditions. r=dbaron
...
Since we cannot parse and discard a white space token after the ':' in a
custom property declaration, we instead explicitly skip over it when
parsing a non-custom property's value.
2013-12-12 13:09:46 +11:00
Cameron McCormack
7d4c5d5057
Bug 773296 - Part 24: Recognize variables in CSS.supports("var-blah", "whatever") calls. r=dbaron
2013-12-12 13:09:46 +11:00